:root {
  --soil: #34281f;
  --ink: #18221b;
  --muted: #68756b;
  --surface: #fffdf7;
  --page: #e8eee7;
  --line: #dce6da;
  --green: #247348;
  --green-dark: #164d34;
  --green-soft: #e6f2e7;
  --amber: #c28525;
  --amber-soft: #fff1d6;
  --red-soft: #fbe3dc;
  --blue-soft: #e5eef4;
  --shadow: 0 24px 70px rgba(21, 38, 27, 0.22);
  --card-shadow: 0 12px 32px rgba(34, 57, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(194, 133, 37, 0.18), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(36, 115, 72, 0.18), transparent 30%),
    linear-gradient(135deg, #f9faf4 0%, var(--page) 58%, #d9e1d7 100%);
}

html,
body {
  overflow-x: hidden;
}

button,
label {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.phone {
  width: min(420px, calc(100vw - 28px));
  aspect-ratio: 9 / 19.4;
  border-radius: 48px;
  padding: 13px;
  background: linear-gradient(145deg, #172019, #30382f);
  box-shadow: var(--shadow);
}

.phone-bezel {
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: #f8faf4;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-bezel::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 24px;
  border-radius: 999px;
  background: #151b17;
  transform: translateX(-50%);
  z-index: 5;
}

.status-bar {
  height: 42px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  position: relative;
  z-index: 6;
}

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

.status-icons i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  display: block;
}

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

.content {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 18px 18px 92px;
  scrollbar-width: none;
}

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

.screen-header {
  display: grid;
  grid-template-columns: 42px 1fr 48px;
  gap: 10px;
  align-items: center;
  padding: 12px 18px 8px;
}

.screen-header p,
.brand-row p,
.reminder-card p,
.care-alert p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.screen-header h1,
.brand-row h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: 0;
}

.icon-btn,
.mini-home {
  height: 38px;
  border-radius: 14px;
  background: #edf3ea;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.icon-btn span {
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  transform: rotate(45deg);
  display: inline-block;
  margin-left: 4px;
}

.brand-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--green-dark);
  color: #f8fff8;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(22, 77, 52, 0.24);
}

.home-hero {
  padding-top: 6px;
}

.scan-card {
  width: 100%;
  min-height: 174px;
  margin-top: 22px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(22, 77, 52, 0.95), rgba(40, 125, 77, 0.94)),
    var(--green-dark);
  color: #fff;
  text-align: left;
  display: grid;
  align-content: end;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(22, 77, 52, 0.22);
}

.scan-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 45% 0 45% 0;
  right: -34px;
  top: -48px;
  background: linear-gradient(145deg, rgba(221, 238, 151, 0.95), rgba(88, 163, 93, 0.4));
  transform: rotate(-22deg);
}

.scan-lens {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.74);
  position: relative;
  z-index: 1;
}

.scan-lens::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 2px;
  right: 3px;
  bottom: 9px;
  background: rgba(255, 255, 255, 0.74);
  transform: rotate(45deg);
}

.scan-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 24px;
  line-height: 1.08;
  max-width: 220px;
}

.scan-card small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.35;
}

.section-block,
.diagnosis-card,
.evidence-card,
.trend-card,
.history-card,
.care-alert,
.reminder-card,
.summary-card,
.report-photo-card {
  border: 1px solid rgba(220, 230, 218, 0.86);
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--card-shadow);
}

.section-block {
  margin-top: 18px;
  padding: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title h2,
.diagnosis-card h2,
.evidence-card h2,
.care-alert h2,
.trend-card h2,
.history-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.18;
}

.section-title button {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.summary-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 10px;
}

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

.thumb {
  width: 76px;
  height: 88px;
  border-radius: 17px;
}

.summary-card h3 {
  margin: 8px 0 4px;
  font-size: 16px;
}

.summary-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.mini-diagnosis-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.mini-diagnosis,
.sample-option,
.history-row {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.mini-diagnosis {
  min-width: 0;
  padding: 8px;
  border-radius: 16px;
  background: #f3f7ef;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: center;
  text-align: left;
  border: 1px solid transparent;
}

.mini-diagnosis.active {
  border-color: rgba(36, 115, 72, 0.3);
  background: var(--green-soft);
}

.mini-diagnosis img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
  grid-row: span 2;
}

.mini-diagnosis span,
.mini-diagnosis b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-diagnosis span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.mini-diagnosis b {
  color: var(--muted);
  font-size: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  margin: 0;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
}

.pill.caution {
  color: #805115;
  background: var(--amber-soft);
}

.pill.healthy {
  color: var(--green-dark);
  background: var(--green-soft);
}

.reminder-card {
  margin-top: 14px;
  padding: 18px;
  background: linear-gradient(145deg, #fffaf0, #f4f8ef);
}

.reminder-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.reminder-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.bottom-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  height: 64px;
  border-radius: 24px;
  padding: 8px;
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid rgba(220, 230, 218, 0.94);
  box-shadow: 0 16px 40px rgba(34, 57, 40, 0.14);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.bottom-nav button {
  min-width: 0;
  border-radius: 17px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 850;
}

.bottom-nav button.active {
  color: #fff;
  background: var(--green);
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.camera-frame,
.scan-preview {
  height: 370px;
  border-radius: 30px;
  background: #20362a;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 42px rgba(21, 38, 27, 0.22);
}

.camera-preview {
  filter: saturate(0.95) contrast(1.02);
}

.camera-frame p {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  color: #fff;
  background: rgba(19, 30, 23, 0.68);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.focus-corner {
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.82);
}

.top-left {
  top: 22px;
  left: 22px;
  border-top: 3px solid;
  border-left: 3px solid;
  border-radius: 12px 0 0 0;
}

.top-right {
  top: 22px;
  right: 22px;
  border-top: 3px solid;
  border-right: 3px solid;
  border-radius: 0 12px 0 0;
}

.bottom-left {
  bottom: 22px;
  left: 22px;
  border-bottom: 3px solid;
  border-left: 3px solid;
  border-radius: 0 0 0 12px;
}

.bottom-right {
  bottom: 22px;
  right: 22px;
  border-bottom: 3px solid;
  border-right: 3px solid;
  border-radius: 0 0 12px 0;
}

.capture-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

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

.sample-option {
  min-width: 0;
  padding: 8px;
  border-radius: 17px;
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid rgba(220, 230, 218, 0.94);
  color: var(--muted);
  display: grid;
  gap: 7px;
}

.sample-option.active {
  border-color: rgba(36, 115, 72, 0.44);
  background: var(--green-soft);
  color: var(--green-dark);
}

.sample-option img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 13px;
  object-fit: cover;
}

.sample-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
}

.secondary-button,
.primary-button,
.secondary-wide {
  min-height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
}

.secondary-button {
  position: relative;
  overflow: hidden;
  color: var(--green-dark);
  background: #edf4ea;
}

.secondary-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 26px rgba(36, 115, 72, 0.22);
}

.secondary-wide {
  width: 100%;
  margin: 10px 0;
  color: var(--green-dark);
  background: #edf4ea;
}

.tip-list {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.tip-list div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.82);
}

.tip-list b {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 13px;
}

.tip-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.scan-preview {
  height: 390px;
}

.scan-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(7, 16, 11, 0.2));
}

.scan-line {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 40px;
  height: 3px;
  border-radius: 999px;
  background: rgba(220, 255, 219, 0.94);
  box-shadow: 0 0 22px rgba(220, 255, 219, 0.95);
  animation: scan 2.2s ease-in-out infinite;
  z-index: 2;
}

.scan-grid {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 42px 42px;
  z-index: 1;
}

@keyframes scan {
  0% { transform: translateY(0); }
  50% { transform: translateY(306px); }
  100% { transform: translateY(0); }
}

.analysis-list {
  display: grid;
  gap: 9px;
  margin: 16px 0;
}

.analysis-list div {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.88);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.analysis-list span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dbe4d8;
}

.analysis-list .done span,
.analysis-list .active span {
  background: var(--green);
}

.analysis-list .active {
  color: var(--green-dark);
  border: 1px solid rgba(36, 115, 72, 0.22);
}

.report-photo-card {
  height: 250px;
  position: relative;
  overflow: hidden;
}

.score-card {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  align-content: center;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 14px 30px rgba(21, 38, 27, 0.22);
}

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

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

.diagnosis-card,
.evidence-card,
.care-alert,
.trend-card,
.history-card,
.confidence-note {
  margin-top: 14px;
  padding: 16px;
}

.diagnosis-card h2 {
  margin: 10px 0 12px;
  font-size: 25px;
}

.probability {
  margin-top: 10px;
}

.probability div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.probability i {
  display: block;
  height: 9px;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #82b65d);
}

.evidence-card {
  margin-bottom: 14px;
}

.confidence-note {
  border-radius: 22px;
  background: var(--blue-soft);
  border: 1px solid #d0dce4;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
}

.confidence-note b {
  font-size: 16px;
}

.confidence-note span {
  color: #536370;
  font-size: 12px;
  line-height: 1.4;
}

.confidence-note button {
  grid-row: span 2;
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  color: #315163;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.evidence-card p {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 10px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.evidence-card p span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 5px;
  background: var(--amber);
}

.care-alert {
  background: linear-gradient(145deg, var(--amber-soft), #f6faf0);
}

.care-alert h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.care-alert span {
  color: #72582a;
  font-size: 13px;
  line-height: 1.45;
}

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

.step-list article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(220, 230, 218, 0.9);
}

.step-list article > b {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
}

.step-list span {
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
}

.step-list h3 {
  margin: 4px 0;
  font-size: 16px;
}

.step-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-hero {
  display: grid;
  grid-template-columns: 114px 1fr;
  gap: 14px;
  align-items: end;
}

.profile-photo {
  height: 144px;
  border-radius: 24px;
  box-shadow: 0 12px 26px rgba(21, 38, 27, 0.16);
}

.profile-hero h2 {
  margin: 9px 0 5px;
  font-size: 25px;
  line-height: 1.05;
}

.profile-hero span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.metric-grid div {
  padding: 15px;
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(220, 230, 218, 0.9);
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.metric-grid b {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1;
}

.trend {
  height: 104px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: end;
  padding-top: 16px;
}

.trend i {
  min-height: 34px;
  border-radius: 12px 12px 5px 5px;
  background: linear-gradient(180deg, #8fc76e, var(--green));
  position: relative;
}

.trend span {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.history-card {
  margin-bottom: 14px;
}

.history-card p {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.history-card b {
  color: var(--green-dark);
}

.history-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.history-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px 1fr 40px;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #f4f8f0;
  text-align: left;
  border: 1px solid transparent;
}

.history-row.active {
  border-color: rgba(36, 115, 72, 0.34);
  background: var(--green-soft);
}

.history-row img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}

.history-row span {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.history-row span b {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-row em {
  width: 40px;
  height: 34px;
  border-radius: 13px;
  background: #fff;
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 14px;
  font-weight: 950;
}

.environment-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(220, 230, 218, 0.86);
  box-shadow: var(--card-shadow);
}

.environment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.environment-grid div {
  min-width: 0;
  padding: 11px;
  border-radius: 16px;
  background: #f3f7ef;
}

.environment-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.environment-grid b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.agenda-preview {
  margin: 14px 0;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(220, 230, 218, 0.9);
}

.agenda-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.agenda-chip {
  min-width: 0;
  padding: 10px;
  border-radius: 15px;
  background: #f3f7ef;
}

.agenda-chip.urgent {
  background: var(--amber-soft);
}

.agenda-chip.soon {
  background: var(--blue-soft);
}

.agenda-chip span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.agenda-chip b {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.2;
}

.calendar-hero {
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--green-dark), #2b8150);
  color: #fff;
  box-shadow: 0 18px 40px rgba(22, 77, 52, 0.22);
}

.calendar-hero p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.calendar-hero h2 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.12;
}

.calendar-hero span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.week-strip div {
  min-width: 0;
  padding: 10px 6px;
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.9);
  text-align: center;
  border: 1px solid rgba(220, 230, 218, 0.86);
}

.week-strip div.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.week-strip b,
.week-strip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-strip b {
  font-size: 11px;
}

.week-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.week-strip .active span {
  color: rgba(255, 255, 255, 0.76);
}

.agenda-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.agenda-row {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(220, 230, 218, 0.9);
}

.agenda-row.urgent {
  border-color: rgba(194, 133, 37, 0.36);
}

.agenda-row.soon {
  border-color: #c9d9e1;
}

.agenda-day {
  min-height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #f3f7ef;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.agenda-row.urgent .agenda-day {
  background: var(--amber-soft);
  color: #805115;
}

.agenda-row.soon .agenda-day {
  background: var(--blue-soft);
  color: #315163;
}

.agenda-row h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.agenda-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.assistant-card,
.question-panel,
.answer-card,
.assistant-next {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(220, 230, 218, 0.86);
  box-shadow: var(--card-shadow);
}

.assistant-card {
  margin-top: 0;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: center;
  background: linear-gradient(145deg, #f4f8ef, #fffaf0);
}

.assistant-avatar {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--green-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.assistant-card p,
.answer-card p,
.assistant-next p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.question-panel h2,
.answer-card h2,
.assistant-next h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.question-list {
  display: grid;
  gap: 9px;
}

.question-chip {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 15px;
  background: #f3f7ef;
  color: var(--green-dark);
  text-align: left;
  font-size: 13px;
  font-weight: 900;
}

.question-chip.active {
  background: var(--green);
  color: #fff;
}

.answer-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 950;
}

.answer-card h2 {
  margin-bottom: 8px;
  line-height: 1.2;
}

.assistant-next button {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
}

.share-preview,
.share-copy {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(220, 230, 218, 0.86);
  box-shadow: var(--card-shadow);
}

.share-preview {
  margin-top: 0;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: end;
}

.share-photo {
  height: 136px;
  border-radius: 22px;
}

.share-preview h2 {
  margin: 10px 0 5px;
  font-size: 24px;
}

.share-preview span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.share-copy h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.share-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.share-copy:not(.compact) {
  background: linear-gradient(145deg, #fffaf0, #f4f8ef);
}

@media (max-width: 480px) {
  .stage {
    padding: 0;
    background: #101713;
    width: 100%;
    overflow: hidden;
  }

  .phone {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    aspect-ratio: auto;
  }

  .phone-bezel {
    border-radius: 0;
  }

  .phone-bezel::before {
    display: none;
  }

  .camera-frame,
  .scan-preview {
    height: 52vh;
    min-height: 330px;
  }
}
