@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #202b39;
  --muted: #748092;
  --line: #e7ebf0;
  --paper: #ffffff;
  --background: #f6f8fb;
  --accent: #5b65e8;
  --accent-dark: #474fd0;
  --accent-soft: #eef0ff;
  --mint: #dff7ee;
  --green: #16845e;
  --danger: #a83242;
  --shadow: 0 18px 50px rgba(35, 48, 75, .07);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(218, 224, 255, .55), transparent 33rem),
    var(--background);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}
.topbar {
  min-height: 76px;
  padding: 0 clamp(20px, 6vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(231,235,240,.85);
}
.brand { display:flex; align-items:center; gap:10px; color:var(--ink); font:800 21px 'Manrope',sans-serif; text-decoration:none; letter-spacing:-.8px; }
.brand-icon { display:grid; place-items:center; width:39px; height:39px; background:var(--accent-soft); border-radius:13px; font-size:22px; }
.brand-accent { color:var(--accent); }
.status { display:flex; align-items:center; gap:8px; color:#667386; font-size:12px; font-weight:600; }
.status-dot { width:8px; height:8px; border-radius:50%; background:#2eb889; box-shadow:0 0 0 4px #e0f8ef; }
.page { width:min(1180px, calc(100% - 40px)); margin:0 auto; }
.hero { text-align:center; padding:58px 12px 38px; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; color:var(--accent-dark); background:var(--accent-soft); border-radius:100px; font-size:10px; font-weight:800; letter-spacing:1.1px; }
.eyebrow span { font-size:14px; }
h1,h2,h3,p { margin-top:0; }
h1 { margin:20px 0 12px; font:800 clamp(34px, 5vw, 52px)/1.12 'Manrope',sans-serif; letter-spacing:-2px; }
h1 span { color:var(--accent); }
.hero p { max-width:570px; margin:0 auto; color:var(--muted); font-size:15px; line-height:1.75; }
.layout { display:grid; grid-template-columns:minmax(0, 1.05fr) minmax(0, .95fr); gap:22px; align-items:stretch; }
.panel { background:var(--paper); border:1px solid rgba(226,231,239,.9); border-radius:22px; box-shadow:var(--shadow); padding:clamp(22px, 3vw, 34px); min-width:0; }
.section-heading { display:flex; align-items:center; gap:14px; margin-bottom:27px; }
.heading-icon { width:48px; height:48px; flex:0 0 auto; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent); border-radius:15px; font-size:28px; }
.section-heading h2,.result-top h2 { margin:0 0 5px; font:800 19px 'Manrope',sans-serif; letter-spacing:-.5px; }
.section-heading p { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }
.fields { display:grid; grid-template-columns:1fr 1fr; gap:19px 16px; }
.field { display:flex; flex-direction:column; gap:8px; font-size:13px; font-weight:700; }
.field > span:first-child { color:#354154; }
.field small { color:var(--muted); font-weight:500; }
.field input { width:100%; height:47px; border:1px solid #dfe4ec; background:#fbfcfe; border-radius:11px; padding:0 13px; color:var(--ink); font:500 14px 'DM Sans',sans-serif; outline:none; transition:border .2s, box-shadow .2s; }
.field input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(91,101,232,.12); background:white; }
.field input::placeholder { color:#a9b1bf; }
.field-help { color:#919aaa; font-size:10px; font-weight:400; line-height:1.4; }
.field-wide { grid-column:1/-1; }
.primary-button { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:51px; margin-top:27px; padding:0 18px; border:0; border-radius:12px; background:var(--accent); color:white; font:700 14px 'DM Sans',sans-serif; cursor:pointer; box-shadow:0 8px 18px rgba(91,101,232,.2); transition:transform .15s,background .15s; }
.primary-button:hover { background:var(--accent-dark); transform:translateY(-1px); }
.primary-button:disabled { opacity:.65; cursor:wait; transform:none; }
.primary-button span:last-child { font-size:22px; }
.form-note { margin:13px 0 0; text-align:center; color:#929baa; font-size:10px; line-height:1.5; }
.result-panel { background:linear-gradient(155deg,#fff 0%,#fcfcff 100%); }
.result-top { display:flex; align-items:flex-start; justify-content:space-between; }
.result-kicker { margin-bottom:8px; color:var(--accent); font-size:10px; font-weight:800; letter-spacing:1.3px; }
.result-top h2 { font-size:23px; }
.result-paw { display:grid; place-items:center; width:46px; height:46px; border-radius:15px; background:var(--mint); font-size:23px; }
.empty-state { min-height:365px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:25px 12px; }
.empty-illustration { width:104px; height:104px; display:grid; place-items:center; margin-bottom:21px; border-radius:32px; background:linear-gradient(135deg,#f0f1ff,#e7f8f1); font-size:52px; transform:rotate(-4deg); }
.empty-state h3 { margin:0 0 9px; font:800 17px 'Manrope',sans-serif; }
.empty-state p { max-width:270px; margin:0; color:var(--muted); font-size:12px; line-height:1.8; }
.hidden { display:none !important; }
.prediction { padding-top:31px; }
.prediction-label { margin-bottom:7px; color:var(--muted); font-size:12px; }
.prediction > h3 { margin-bottom:24px; color:var(--accent-dark); font:800 clamp(28px, 4vw, 36px) 'Manrope',sans-serif; letter-spacing:-1px; overflow-wrap:anywhere; }
.confidence-row { display:flex; justify-content:space-between; gap:12px; color:#6c7789; font-size:12px; margin-bottom:10px; }
.confidence-row strong { color:var(--green); font-size:13px; }
.progress-track { height:9px; overflow:hidden; border-radius:20px; background:#edf0f5; }
.progress-value { width:0; height:100%; border-radius:20px; background:linear-gradient(90deg,#6b72f0,#45c6a0); transition:width .45s ease; }
.probabilities-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:29px 0 13px; }
.probabilities-heading h3 { margin:0; font:800 13px 'Manrope',sans-serif; }
.probabilities-heading span { color:var(--muted); font-size:10px; }
.probability-list { display:flex; flex-direction:column; gap:11px; max-height:250px; overflow-y:auto; padding-right:5px; }
.probability-item { display:grid; grid-template-columns:minmax(0,1fr) 48px; gap:5px 12px; align-items:center; }
.probability-name { overflow-wrap:anywhere; color:#5b6678; font-size:11px; }
.probability-number { text-align:right; color:#3b4658; font-size:11px; font-weight:700; }
.probability-track { grid-column:1/-1; height:5px; border-radius:20px; background:#edf0f5; overflow:hidden; }
.probability-bar { height:100%; border-radius:20px; background:#9299f3; }
.disclaimer { margin:20px 0 0; color:#8b95a4; font-size:10px; line-height:1.6; }
.error-message { margin-top:20px; padding:13px 14px; border:1px solid #f3c9cf; border-radius:12px; background:#fff4f5; color:var(--danger); font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.loading { display:flex; align-items:center; justify-content:center; gap:10px; margin:16px 0 0; color:var(--accent); font-size:12px; }
.spinner { width:16px; height:16px; border:2px solid #dfe1ff; border-top-color:var(--accent); border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
footer { display:flex; justify-content:space-between; gap:15px; padding:25px 4px 30px; color:#929baa; font-size:10px; }
@media (max-width:850px) { .layout { grid-template-columns:1fr; } .hero { padding-top:42px; } .empty-state { min-height:260px; } }
@media (max-width:520px) { .topbar { min-height:66px; padding:0 18px; } .status { font-size:10px; } .page { width:calc(100% - 26px); } .hero { padding:38px 3px 28px; } h1 { letter-spacing:-1.4px; } .hero p { font-size:13px; } .panel { padding:21px 18px; border-radius:18px; } .fields { grid-template-columns:1fr; gap:16px; } .field-wide { grid-column:auto; } footer { flex-direction:column; text-align:center; } }
