:root {
  --ink: #10241d;
  --muted: #66746d;
  --green: #00684f;
  --green-2: #0a8a68;
  --green-soft: #edf8f2;
  --cream: #fff8ec;
  --paper: #fffdf8;
  --line: #e7d7bf;
  --red: #e92f24;
  --miss: #00a76f;
  --gold: #f6b73c;
  --purple: #7c3aed;
  --orange: #ff7a1a;
  --shadow: 0 12px 34px rgba(43, 54, 45, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 104, 79, 0.12), transparent 28%),
    radial-gradient(circle at 98% 2%, rgba(246, 183, 60, 0.14), transparent 26%),
    linear-gradient(135deg, #f7f2e8 0%, #eef7f1 100%);
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

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

#app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 92px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 180px),
    var(--cream);
  overflow-x: hidden;
}

#page-root {
  min-height: calc(100vh - 92px);
}

.page {
  min-height: calc(100vh - 92px);
  padding: 18px 14px 22px;
}

.page.compact {
  padding-top: 14px;
}

.top {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

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

.brand-title {
  display: grid;
  gap: 7px;
}

.brand-name {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 950;
  color: var(--ink);
}

.slogan {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #073d2f;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 104, 79, 0.16);
  box-shadow: 0 8px 22px rgba(0, 104, 79, 0.1);
  font-size: 15px;
  font-weight: 900;
}

.slogan-mark,
.avatar-mark {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.vip-pill,
.status-pill,
.small-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 950;
}

.vip-pill {
  min-height: 34px;
  padding: 0 12px;
  color: #7a4200;
  background: linear-gradient(135deg, #fff4cc, #ffd67a);
  border: 1px solid rgba(188, 124, 24, 0.22);
  font-size: 15px;
}

.date-card {
  min-height: 52px;
  border-radius: 17px;
  padding: 9px 11px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 251, 246, 0.94));
  border: 1px solid rgba(0, 104, 79, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.date-card span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.date-card strong {
  display: block;
  color: #09291f;
  font-size: 17px;
  line-height: 1.15;
}

.home-status-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.home-status-strip::-webkit-scrollbar {
  display: none;
}

.home-status-strip span {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #073d2f;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(231, 215, 191, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.data-warning {
  padding: 9px 11px;
  border-radius: 14px;
  color: #6f4300;
  background: #fff0bf;
  border: 1px solid rgba(246, 183, 60, 0.42);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.date-button,
.route-button,
.ghost-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.date-button,
.route-button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(0, 104, 79, 0.16);
}

.date-input-wrap {
  position: relative;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: #eef8f3;
  border: 1px solid rgba(0, 104, 79, 0.16);
  box-shadow: none;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
}

.date-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.01;
  cursor: pointer;
}

.route-button,
.ghost-button {
  color: var(--green);
  background: #eef8f3;
  border: 1px solid rgba(0, 104, 79, 0.14);
}

.section {
  display: block;
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(224, 207, 182, 0.86);
  box-shadow: var(--shadow);
  padding: 13px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
}

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

.section-head h2,
.page-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 950;
}

.page-title {
  font-size: 27px;
}

.page-sub {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.review-hero {
  padding: 0;
  overflow: hidden;
  border-color: rgba(233, 47, 36, 0.32);
}

.review-top {
  padding: 13px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.26), transparent 30%),
    linear-gradient(135deg, #c91e17, #f0472f 58%, #ff7a1a);
}

.review-top h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
}

.review-top p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.review-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.review-legend span,
.review-day-strip span {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.legend-hit,
.review-day-strip span:nth-child(1) {
  background: var(--red);
}

.legend-miss,
.review-day-strip span:nth-child(2) {
  background: var(--miss);
}

.legend-pending,
.review-day-strip span:nth-child(3) {
  color: #593d00;
  background: var(--gold);
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 7px;
  padding: 10px 13px 0;
  background: #fff;
}

.metric {
  min-height: 54px;
  border-radius: 15px;
  padding: 8px 7px;
  background: #fff9ef;
  border: 1px solid rgba(231, 215, 191, 0.82);
}

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

.metric strong {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-size: 20px;
  line-height: 1;
}

.primary-metric {
  grid-column: 1 / -1;
  min-height: 76px;
  display: grid;
  align-content: center;
  background: linear-gradient(135deg, #fff7eb, #fff1dc);
}

.primary-metric strong {
  font-size: 32px;
}

.primary-metric em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.mini-table {
  display: grid;
  width: 100%;
  max-width: 100%;
  padding: 10px 13px 13px;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.mini-table::-webkit-scrollbar {
  display: none;
}

.mini-row,
.review-row {
  display: grid;
  grid-template-columns: 48px minmax(132px, 1.25fr) repeat(5, minmax(92px, 1fr));
  min-width: 700px;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid rgba(231, 215, 191, 0.82);
  border-bottom: 0;
  background: #fff;
  font-size: 12px;
}

.home-mini-table {
  overflow-x: hidden;
}

.home-mini-row {
  grid-template-columns: 52px minmax(145px, 1.35fr) minmax(108px, 1fr) minmax(108px, 1fr);
  min-width: 0;
}

.mini-row:first-child,
.review-row:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.mini-row:last-child,
.review-row:last-child {
  border-bottom: 1px solid rgba(231, 215, 191, 0.82);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.mini-row.header,
.review-row.header {
  min-height: 32px;
  color: var(--muted);
  background: #fff8ed;
  font-weight: 950;
}

.mini-row > div,
.review-row > div {
  display: grid;
  align-items: center;
  padding: 7px;
  border-left: 1px solid rgba(231, 215, 191, 0.82);
  min-width: 0;
}

.mini-row > div:first-child,
.review-row > div:first-child {
  border-left: 0;
}

.mini-row > .result-cell,
.review-row > .result-cell {
  padding: 6px 7px;
  align-content: center;
  gap: 2px;
  color: #fff;
  border-left-color: rgba(255, 255, 255, 0.38);
}

.result-cell.is-hit {
  background: linear-gradient(135deg, #dc1f18, var(--red));
}

.result-cell.is-miss {
  background: linear-gradient(135deg, #007d55, var(--miss));
}

.result-cell.is-pending {
  color: #593d00;
  background: linear-gradient(135deg, #ffe19b, var(--gold));
}

.result-cell .dim-label {
  display: none;
}

.result-cell strong {
  font-size: 14px;
  line-height: 1.1;
  font-weight: 950;
}

.result-cell small {
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  line-height: 1.25;
  opacity: 0.94;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  text-align: center;
}

.badge.hit {
  background: var(--red);
}

.badge.miss {
  background: var(--miss);
}

.badge.pending {
  color: #674600;
  background: #ffe5a2;
}

.badge.part {
  background: var(--purple);
}

.screenshot-card {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff7d8, #fffdf7 58%, #eef9f2);
  border: 1px solid rgba(246, 183, 60, 0.58);
  box-shadow: 0 18px 40px rgba(43, 54, 45, 0.12);
}

.shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  color: #fff;
  background: linear-gradient(135deg, #004b39, var(--green) 54%, #0aa374);
  font-weight: 950;
}

.shot-head span {
  font-size: 17px;
}

.shot-head strong {
  font-size: 13px;
  opacity: 0.9;
}

.shot-body {
  display: grid;
  gap: 11px;
  padding: 14px;
}

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

.shot-brand b {
  display: block;
  color: #08281f;
  font-size: 24px;
  line-height: 1;
}

.shot-brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.shot-brand > span {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #6a4100;
  background: #ffe29a;
  border: 1px solid rgba(246, 183, 60, 0.72);
  font-size: 12px;
  font-weight: 950;
}

.shot-rows {
  display: grid;
  gap: 9px;
}

.shot-row {
  display: grid;
  grid-template-columns: 32px 76px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.shot-index,
.shot-no,
.shot-choice {
  border-radius: 15px;
  display: grid;
  align-content: center;
}

.shot-index {
  place-items: center;
  color: #fff;
  background: var(--red);
  font-size: 18px;
  font-weight: 950;
}

.shot-no {
  padding: 8px 7px;
  text-align: center;
  color: #fff;
  background: var(--green);
}

.shot-no span,
.shot-choice span,
.shot-summary span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.82;
}

.shot-no strong {
  margin-top: 3px;
  font-size: 22px;
  line-height: 1;
}

.shot-choice {
  padding: 9px 11px;
  background: #fff;
  border: 1px solid rgba(231, 215, 191, 0.95);
}

.shot-choice strong {
  display: block;
  margin-top: 4px;
  color: #081f18;
  font-size: 20px;
  line-height: 1.1;
}

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

.shot-combo {
  padding: 12px;
  border-radius: 16px;
  color: #7a3200;
  background: #fff0bf;
  border: 1px solid rgba(246, 183, 60, 0.5);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
}

.shot-summary div {
  min-height: 58px;
  padding: 9px 10px;
  border-radius: 16px;
  background: #fff8e2;
  border: 1px solid rgba(246, 183, 60, 0.42);
}

.shot-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-size: 20px;
  line-height: 1;
}

.shot-note {
  padding: 10px 11px;
  border-radius: 14px;
  color: #5f3c00;
  background: rgba(255, 245, 216, 0.88);
  border: 1px solid rgba(246, 183, 60, 0.28);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.shot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 0 14px 14px;
}

.empty-shot {
  padding-bottom: 13px;
}

.solution-card {
  overflow: hidden;
  padding: 0;
  border-color: rgba(0, 104, 79, 0.22);
}

.solution-head {
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #073d2f;
  background: #fff4d7;
  border-bottom: 1px solid var(--line);
  font-weight: 950;
}

.solution-card .empty {
  margin: 0;
  padding: 16px 13px;
  color: #654600;
  background: #fff9e8;
  border-top: 1px solid rgba(246, 183, 60, 0.16);
  font-size: 14px;
  line-height: 1.7;
}

.solution-card-lite {
  cursor: pointer;
}

.solution-card-lite .combo-line {
  margin-bottom: 10px;
}

.solution-card-lite .solution-meta {
  padding-top: 0;
}

.ticket-list {
  display: grid;
  gap: 7px;
  padding: 8px 13px 10px;
}

.ticket-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(231, 215, 191, 0.92);
}

.ticket-no {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--green);
  font-size: 17px;
  font-weight: 950;
}

.combo-line {
  margin: 12px 13px 0;
  padding: 11px 12px;
  border-radius: 14px;
  color: #7a3200;
  background: #fff0bf;
  border: 1px solid rgba(246, 183, 60, 0.48);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.45;
}

.ticket-main strong,
.prediction-title strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.ticket-main span,
.prediction-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.solution-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 13px 13px;
}

.solution-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 13px 13px;
}

.prediction-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "spf rq"
    "goals half"
    "score score";
  gap: 7px;
  padding: 0 13px 13px;
}

.prediction-fields .dimension-spf { grid-area: spf; }
.prediction-fields .dimension-rq { grid-area: rq; }
.prediction-fields .dimension-goals { grid-area: goals; }
.prediction-fields .dimension-score { grid-area: score; }
.prediction-fields .dimension-half_full { grid-area: half; }

.match-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.match-info-grid div {
  min-height: 58px;
  padding: 9px 8px;
  border-radius: 15px;
  background: #fff8e2;
  border: 1px solid rgba(246, 183, 60, 0.36);
}

.match-info-grid span {
  display: block;
  color: #7a5300;
  font-size: 11px;
  font-weight: 950;
}

.match-info-grid strong {
  display: block;
  margin-top: 5px;
  color: #10241d;
  font-size: 13px;
  line-height: 1.2;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.meta-box,
.field-box {
  min-height: 55px;
  border-radius: 14px;
  padding: 8px 6px;
  text-align: center;
  background: #f5faf7;
  border: 1px solid rgba(0, 104, 79, 0.12);
}

.meta-box span,
.field-box span {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
}

.meta-box strong,
.field-box strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.15;
}

.prediction-layer-label {
  margin: 12px 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settled-field {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 102px;
  padding: 10px 8px;
  color: #243b32;
  background: #f1f8f5;
  border-color: #bcd9ce;
  box-shadow: inset 0 4px 0 transparent;
}

.settled-field span {
  color: #08705a;
  font-size: 12px;
}

.settled-field-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.settled-field-head em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.field-box.settled-field strong {
  width: auto;
  min-width: 0;
  margin: 3px auto 2px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1.25;
}

.settled-field small {
  display: block;
  color: #52675f;
  line-height: 1.35;
  font-size: 11px;
  font-weight: 750;
}

.settled-field.is-hit {
  background: #fff3f0;
  border-color: #edb1aa;
  box-shadow: inset 0 4px 0 #e43a31;
}

.settled-field.is-hit em {
  color: #fff;
  background: #e43a31;
  box-shadow: 0 3px 8px rgba(228, 58, 49, 0.18);
}

.settled-field.is-miss {
  background: #eaf7f1;
  border-color: #9bcdbb;
  box-shadow: inset 0 4px 0 #008b65;
}

.settled-field.is-miss em {
  color: #fff;
  background: #008b65;
  box-shadow: 0 3px 8px rgba(0, 139, 101, 0.18);
}

.settled-field.is-pending {
  color: #73510a;
  background: #fff5d8;
  border-color: #e4c76e;
  box-shadow: inset 0 4px 0 #d3a52e;
}

.settled-field.is-pending span,
.settled-field.is-pending small {
  color: #73510a;
}

.settled-field.is-pending em {
  color: #fff;
  background: #b9850d;
}

.field-box:nth-child(1) strong {
  color: var(--red);
}

.field-box:nth-child(2) strong {
  color: var(--green);
}

.field-box:nth-child(3) strong {
  color: #7a3200;
}

.field-box.dimension-goals strong,
.field-box.dimension-score strong,
.field-box.dimension-half_full strong {
  color: #7a3200;
}

.upgrade-note,
.plain-note,
.assistant-card {
  border-radius: 18px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  color: #33463d;
  font-size: 14px;
  line-height: 1.62;
}

.hero-os-entry {
  position: relative;
  min-height: 148px;
  margin-bottom: 12px;
  padding: 20px;
  overflow: hidden;
  border-radius: 23px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(246, 183, 60, 0.34), transparent 108px),
    linear-gradient(140deg, #063e30, #087055 66%, #0a8a68);
  box-shadow: 0 18px 38px rgba(0, 104, 79, 0.2);
}

.hero-os-entry::after {
  content: "5";
  position: absolute;
  right: 15px;
  bottom: -32px;
  color: rgba(255, 255, 255, 0.12);
  font: 950 126px/1 Georgia, serif;
}

.hero-os-copy {
  position: relative;
  z-index: 1;
  max-width: 275px;
}

.hero-os-kicker {
  color: #f6d986;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.07em;
}

.hero-os-entry h2 {
  margin: 8px 0 6px;
  font-size: 26px;
}

.hero-os-entry p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.55;
}

.hero-os-entry button {
  position: relative;
  z-index: 1;
  min-height: 36px;
  margin-top: 15px;
  padding: 0 14px;
  border-radius: 12px;
  color: #073d2f;
  background: #fff;
  font-size: 12px;
  font-weight: 950;
}

.upgrade-note {
  color: #5f3c00;
  background: #fff0bf;
  border-color: rgba(246, 183, 60, 0.48);
  font-weight: 800;
}

.tier-grid {
  display: grid;
  gap: 9px;
}

.tier-grid div {
  min-height: 74px;
  padding: 12px;
  border-radius: 17px;
  background: linear-gradient(135deg, #fff8e2, #fff);
  border: 1px solid rgba(246, 183, 60, 0.38);
}

.tier-grid strong {
  display: block;
  color: #10241d;
  font-size: 16px;
  line-height: 1.2;
}

.tier-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.prediction-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 17px;
  background: var(--paper);
  border: 1px solid rgba(231, 215, 191, 0.92);
  box-shadow: 0 8px 20px rgba(43, 54, 45, 0.06);
  overflow: hidden;
}

.prediction-card .plain-note {
  margin: 0;
}

.prediction-card + .prediction-card {
  margin-top: 10px;
}

.compact-prediction {
  gap: 7px;
  padding: 10px;
}

.compact-prediction .prediction-fields {
  padding: 0;
}

.compact-prediction .field-box {
  min-height: 48px;
  padding: 7px 5px;
}

.compact-prediction .field-box strong {
  font-size: 14px;
}

.prediction-tools {
  display: grid;
  gap: 9px;
  padding: 10px;
  margin-bottom: 10px;
}

.prediction-search {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(231, 215, 191, 0.95);
}

.prediction-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.prediction-search span {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.prediction-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.status-pill {
  min-height: 26px;
  padding: 0 9px;
  color: #6a4600;
  background: #ffe8aa;
  font-size: 12px;
}

.status-pill.single {
  color: #8a2f00;
  background: #fff0bf;
  border-color: rgba(246, 183, 60, 0.6);
}

.status-pill.live {
  color: #fff;
  background: var(--green);
}

.status-pill.done {
  color: #fff;
  background: #e43a31;
  border: 1px solid #d8322a;
  box-shadow: 0 4px 10px rgba(228, 58, 49, 0.16);
}

.status-pill.wait {
  color: #674600;
  background: #ffe5a2;
}

.prediction-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.detail-top {
  margin: -18px -14px 12px;
  padding: 18px 18px 14px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #005a44, #0d8c69);
}

.back-button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 950;
}

.detail-top h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.12;
}

.detail-top p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.45;
}

.range-tabs,
.quick-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.review-controls {
  align-items: center;
  margin: 10px 0 12px;
}

.review-date-picker {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(231, 215, 191, 0.95);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #073d2f;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 5px 18px rgba(24, 50, 39, 0.06);
  font-size: 12px;
  font-weight: 900;
}

.review-date-picker input {
  width: 118px;
  border: 0;
  outline: 0;
  color: #10241d;
  background: transparent;
  font: inherit;
}

.review-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  margin: -13px -13px 10px;
  color: #fff;
  background: linear-gradient(135deg, #c91e17, #f0472f 58%, #ff7a1a);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  font-weight: 950;
}

.review-day-head small {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
}

.review-day-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -2px 0 8px;
}

.range-tabs::-webkit-scrollbar,
.quick-list::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #073d2f;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

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

.assistant-card {
  display: grid;
  gap: 11px;
}

.assistant-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 950;
}

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

.assistant-actions button {
  min-height: 42px;
  border-radius: 14px;
  color: var(--green);
  background: #fff;
  border: 1px solid rgba(0, 104, 79, 0.14);
  font-weight: 900;
}

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

.quick-grid button {
  min-height: 48px;
  border-radius: 15px;
  color: #073d2f;
  background: linear-gradient(135deg, #eef8f3, #fff);
  border: 1px solid rgba(0, 104, 79, 0.16);
  font-size: 14px;
  font-weight: 950;
}

.chat-page {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 14px 12px 0;
}

.chat-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 4px 2px 14px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.message {
  max-width: 88%;
  border-radius: 18px;
  padding: 12px 13px;
  line-height: 1.65;
  font-size: 15px;
  white-space: pre-line;
  box-shadow: 0 10px 28px rgba(18, 36, 29, 0.08);
}

.message.user {
  justify-self: end;
  color: #fff;
  background: var(--green);
  border-bottom-right-radius: 8px;
}

.message.ai {
  justify-self: start;
  background: #fff;
  border: 1px solid rgba(224, 207, 182, 0.86);
  border-bottom-left-radius: 8px;
}

.message.ai strong {
  color: var(--green);
}

.message-meta {
  display: block;
  margin-top: 9px;
  padding-top: 8px;
  color: rgba(29, 66, 54, 0.66);
  border-top: 1px solid rgba(224, 207, 182, 0.72);
  font-size: 11px;
  line-height: 1.45;
}

.message-coverage {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  color: #174d3e;
  background: #f3f8f5;
  border: 1px solid rgba(0, 104, 79, 0.18);
  font-size: 11px;
  line-height: 1.45;
}

.message-coverage > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 12px;
}

.coverage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.coverage-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 850;
}

.coverage-chip.available {
  color: #00684f;
  background: #dff3ea;
}

.coverage-chip.partial {
  color: #8a5700;
  background: #fff0bf;
}

.coverage-chip.missing {
  color: #8b5046;
  background: #f7e8e3;
}

.message.pending {
  color: rgba(29, 66, 54, 0.76);
}

.composer {
  position: sticky;
  bottom: 0;
  padding: 10px 2px max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(255, 248, 236, 0.95) 32%, var(--cream));
}

.composer-inner {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: center;
  padding: 8px 8px 8px 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 104, 79, 0.22);
  box-shadow: 0 14px 36px rgba(0, 104, 79, 0.14);
}

.composer input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.composer input:disabled {
  opacity: 0.72;
  cursor: wait;
}

.send-button {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(0, 104, 79, 0.24);
}

.send-button:disabled {
  opacity: 0.68;
  cursor: wait;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  width: 100%;
  max-width: 430px;
  height: 76px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 8px 14px max(8px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 1px solid rgba(224, 207, 182, 0.72);
  border-bottom: 0;
  backdrop-filter: blur(14px);
  box-shadow: 0 -10px 30px rgba(18, 36, 29, 0.08);
}

.nav-item {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  border-radius: 15px;
  color: #6a7a71;
  font-size: 12px;
  font-weight: 850;
}

.nav-symbol {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  font-size: 16px;
}

.nav-item.active {
  color: var(--green);
}

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

.empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

@media (min-width: 560px) {
  body {
    padding: 22px 0;
  }

  #app {
    min-height: 932px;
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(23, 39, 32, 0.18);
  }
}

.home-status-strip,
.review-top p,
.solution-actions,
.review-summary {
  display: none !important;
}

.date-card .date-input-wrap {
  display: none !important;
}
