﻿:root {
  --ink: #081431;
  --muted: #61708c;
  --line: #d9e2f1;
  --blue: #145cc8;
  --blue-2: #0a3f91;
  --green: #09884a;
  --red: #df202b;
  --purple: #5e43c8;
  --teal: #0d9b9b;
  --amber: #f39a17;
  --paper: #f7f9fd;
  --card: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(20, 92, 200, 0.14), transparent 28rem),
    linear-gradient(180deg, #edf3fb 0%, #ffffff 46%, #eaf1fb 100%);
  color: var(--ink);
}

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

.phone-shell {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  background: var(--paper);
  border-left: 1px solid rgba(8, 20, 49, 0.08);
  border-right: 1px solid rgba(8, 20, 49, 0.08);
  padding: max(12px, env(safe-area-inset-top)) 12px calc(84px + env(safe-area-inset-bottom));
  position: relative;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.shield-logo {
  width: 42px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(145deg, #1b6ee1, #052d73);
  clip-path: polygon(50% 0, 92% 15%, 86% 70%, 50% 100%, 14% 70%, 8% 15%);
  box-shadow: 0 7px 18px rgba(20, 92, 200, 0.26);
  flex: 0 0 auto;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}

.brand p,
small,
.source-note {
  color: var(--muted);
}

.brand p {
  font-size: 12px;
  margin-top: 4px;
}

.icon-btn,
.close-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 800;
}

.risk-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.risk-strip div,
.metric-grid article,
.evidence-grid article,
.today-card,
.form-card,
.review-card,
.recommend-card,
.vault-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.risk-strip div {
  min-height: 58px;
  padding: 9px 8px;
}

.risk-strip span,
.metric-grid span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.risk-strip strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}

.risk-strip .warn {
  border-color: #f3b35b;
  background: #fff8ea;
}

.risk-strip .danger {
  border-color: #ef858b;
  background: #fff0f1;
}

.today-card,
.form-card,
.review-card,
.recommend-card,
.vault-card {
  padding: 12px;
  box-shadow: 0 12px 28px rgba(18, 45, 82, 0.08);
}

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

h2 {
  font-size: 16px;
}

.status-pill {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.manual {
  color: #344054;
  background: #f0f3f7;
}

.likely {
  color: #925600;
  background: #fff4d9;
  border-color: #ffd37a;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.metric-grid article {
  min-height: 78px;
  padding: 10px;
}

.metric-grid strong {
  display: block;
  font-size: 20px;
  margin: 5px 0 2px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.primary,
.outline {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 850;
  border: 0;
  padding: 10px;
}

.primary {
  color: #fff;
}

.blue {
  background: linear-gradient(180deg, #1d73e0, var(--blue));
}

.red {
  background: linear-gradient(180deg, #f14952, var(--red));
}

.green {
  background: linear-gradient(180deg, #0aa65d, var(--green));
}

.purple {
  background: linear-gradient(180deg, #7a60e6, var(--purple));
}

.outline {
  background: #fff;
  border: 1px solid var(--line);
}

.outline.red {
  color: var(--red);
}

.outline.green {
  color: var(--green);
}

.outline.blue {
  color: var(--blue);
}

.full {
  width: 100%;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 28px rgba(8, 20, 49, 0.08);
  z-index: 10;
}

.tabbar button {
  border: 0;
  background: transparent;
  color: #4c5870;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 900;
}

.tabbar span {
  display: block;
  font-size: 10px;
  margin-top: 2px;
  font-weight: 700;
}

.tabbar .active {
  color: var(--blue);
  background: #eaf2ff;
}

.panel {
  display: none;
  margin-top: 12px;
}

.panel.active {
  display: block;
}

.bottom-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px 20px 8px 8px;
  padding: 8px 14px 14px;
  box-shadow: 0 -10px 28px rgba(8, 20, 49, 0.11);
}

.grabber {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: #9aa7bb;
  margin: 0 auto 10px;
}

.check-list,
.recommend-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li,
.recommend-card li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 13px;
  border-bottom: 1px solid #edf1f7;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8f8ef;
  border: 5px solid #e8f8ef;
  box-shadow: inset 0 0 0 6px var(--green);
}

.recommend-card li::before {
  content: "";
  color: var(--blue);
  position: absolute;
  left: 8px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  font-weight: 900;
}

label {
  display: grid;
  gap: 5px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 9px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  padding: 9px 10px;
}

textarea {
  resize: vertical;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.split-box {
  border: 1px solid #cbd8ec;
  background: #f7fbff;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 9px;
}

.split-box strong,
.split-box span {
  display: block;
  font-size: 13px;
}

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

.evidence-grid article {
  padding: 11px;
  min-height: 96px;
}

.logo {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #fff;
  font-weight: 950;
  margin-right: 6px;
}

.logo.big {
  width: 38px;
  height: 38px;
  font-size: 20px;
}

.dd {
  background: var(--red);
}

.stride {
  background: var(--teal);
}

.calc {
  background: var(--purple);
}

.evidence-grid strong {
  display: block;
  font-size: 23px;
  margin-top: 7px;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

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

.recent-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 56px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recent-item strong {
  display: block;
  font-size: 13px;
}

.earning-head strong {
  color: var(--red);
  font-size: 28px;
}

.earning-head time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.field-map {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.field-map div {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 34px;
  border-bottom: 1px solid var(--line);
}

.field-map div:last-child {
  border-bottom: 0;
}

dt,
dd {
  margin: 0;
  padding: 8px;
  font-size: 12px;
}

dt {
  background: #f3f6fb;
  color: #3d4b63;
  font-weight: 850;
}

dd {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-weight: 850;
}

dd span {
  color: var(--green);
  background: #e8f8ef;
  border: 1px solid #bce7cf;
  border-radius: 999px;
  padding: 1px 5px;
  font-size: 10px;
  white-space: nowrap;
}

.source-note {
  font-size: 12px;
  line-height: 1.45;
  margin-top: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(16px);
  width: min(calc(100% - 28px), 402px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(8, 20, 49, 0.22);
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
  z-index: 20;
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 720px) {
  body {
    padding: 24px 0;
  }

  .phone-shell {
    min-height: 900px;
    border: 8px solid #111827;
    border-radius: 42px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(8, 20, 49, 0.25);
  }

  .tabbar {
    border-radius: 0 0 32px 32px;
  }
}

