/* Moovlin Portal. Same look as the Moovlin Dashboard: navy #0c1c2c, teal #2B9994, Inter, flat. */
:root { --navy: #0c1c2c; --teal: #2B9994; --teal-dark: #23807c; --tint: #e4f3f2; --tint-ink: #1c6f6b; --ink: #0c1c2c; --muted: #5e6e73; --line: #e6ecee; --red: #b4412f; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #eef2f3; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); font-size: 15px; line-height: 1.4; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.mvp-stage { display: flex; justify-content: center; min-height: 100vh; min-height: 100dvh; }
.mvp-app { width: 100%; max-width: 460px; height: 100vh; height: 100dvh; background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.mvp-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mvp-scroll { flex: 1; overflow-y: auto; padding-bottom: 16px; }
.mvp-preview { display: block; background: #fbf1dd; color: #6b4a10; font-size: 13px; text-align: center; padding: 8px 12px; text-decoration: underline; }

.mvp-top { background: var(--navy); color: #fff; padding: calc(22px + env(safe-area-inset-top)) 20px 24px; }
.mvp-top.has-nav { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mvp-eye { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7fd0cb; margin-bottom: 6px; }
.mvp-top h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.mvp-nav { display: flex; gap: 6px; }
.mvp-nav button { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: none; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; }
.mvp-nav button:disabled { opacity: .35; cursor: default; }
.mvp-error { background: #fae9e5; color: var(--red); padding: 10px 20px; font-size: 14px; }
.mvp-empty { color: var(--muted); padding: 22px 20px; font-size: 14px; }
.mvp-sec { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 20px 6px; }
.mvp-sub { font-size: 13px; color: var(--muted); margin-top: 8px; overflow-wrap: anywhere; }

.mvp-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.mvp-stats.is-two { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-top: 14px; }
.mvp-stats div { padding: 14px 4px; text-align: center; font-size: 12px; color: var(--muted); }
.mvp-stats b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }

/* leads */
.mvp-lead { border-bottom: 1px solid var(--line); }
.mvp-lead-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 20px; border: 0; background: none; text-align: left; font-size: 15px; color: var(--ink); }
.mvp-lead-head:hover { background: #f7fafa; }
.mvp-lead-main { flex: 1; min-width: 0; }
.mvp-lead-main b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.mvp-lead-main small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.mvp-lead.is-open { margin: 8px 12px; border: 1px solid #cfdadc; border-radius: 12px; overflow: hidden; background: #fff; }
.mvp-lead.is-open .mvp-lead-head { padding: 12px 14px 10px; }
.mvp-lead.is-open .mvp-lead-head:hover { background: none; }
.mvp-lead-body { padding: 0 14px 14px; }
.mvp-msg { background: #f4f7f7; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.mvp-contact { font-size: 13px; color: var(--muted); margin-top: 10px; overflow-wrap: anywhere; }
.mvp-tag { flex: none; font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 4px; background: var(--tint); color: var(--tint-ink); white-space: nowrap; }
.mvp-tag.is-grey { background: #eef1f2; color: #4a5a5f; }
.mvp-tag.is-new { background: var(--navy); color: #fff; }

/* buttons */
.mvp-btn { display: flex; align-items: center; justify-content: center; padding: 10px 12px; border: 1px solid var(--teal); border-radius: 8px; background: var(--teal); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center; }
.mvp-btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.mvp-btn:disabled { opacity: .6; cursor: default; }
.mvp-btn.is-quiet { background: #fff; color: var(--ink); border-color: #c3cfd1; font-weight: 500; }
.mvp-btn.is-quiet:hover { border-color: var(--teal); }
.mvp-btn.is-tint { background: var(--tint); color: var(--tint-ink); border-color: var(--tint); }
.mvp-btn.is-tint.is-on { border-color: var(--teal); }
.mvp-btn.is-grey { background: #eef1f2; color: #4a5a5f; border-color: #eef1f2; font-weight: 500; }
.mvp-btn.is-grey.is-on { border-color: #8d9a9e; }
.mvp-acts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 8px; }
.mvp-acts.is-outcome { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mvp-win { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mvp-win label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.mvp-win-row { display: flex; align-items: center; gap: 8px; }
.mvp-win-row span { font-size: 18px; font-weight: 500; }
.mvp-win-row input { flex: 1; min-width: 0; font-size: 16px; padding: 10px 12px; min-height: 46px; border: 1px solid #c3cfd1; border-radius: 8px; color: var(--ink); }
input:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); outline: 0; }

/* results */
.mvp-trend { padding: 16px 20px 0; color: var(--muted); }
.mvp-bars { padding: 4px 20px 0; }
.mvp-bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; font-size: 14px; }
.mvp-bar-row b { font-weight: 600; }
.mvp-bar-row i { grid-column: 1 / -1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.mvp-bar-row em { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.mvp-line { display: flex; justify-content: space-between; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); text-decoration: none; }
.mvp-line b { font-weight: 500; }
a.mvp-line b { color: var(--tint-ink); }

/* support */
.mvp-support, .mvp-done { padding: 18px 20px 4px; }
.mvp-support label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.mvp-support textarea { width: 100%; font-size: 16px; padding: 12px; border: 1px solid #c3cfd1; border-radius: 8px; color: var(--ink); resize: vertical; margin-bottom: 12px; }
.mvp-support .mvp-btn, .mvp-done .mvp-btn { width: 100%; padding: 13px; }
.mvp-done b { font-size: 18px; }
.mvp-done p { color: var(--muted); margin: 4px 0 16px; }
.mvp-out { display: block; text-align: center; color: var(--muted); font-size: 14px; padding: 22px; }

/* tab bar */
.mvp-tabs { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: #fff; padding-bottom: env(safe-area-inset-bottom); }
.mvp-tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 11px; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 500; }
.mvp-tabs button.is-on { color: var(--teal); }
