:root {
--bg-outer:#eceae3; --bg-app:#faf8f4; --surface:#ffffff; --surface-soft:#f3efe7;
--border:rgba(20,45,36,0.09); --border-strong:rgba(20,45,36,0.16);
--text:#162620; --text-muted:#566861; --text-light:#7c8d86;
--brand:#145b47; --brand-hover:#0e4636; --brand-soft:#e5f3ee;
--accent:#e86343; --accent-hover:#d45030; --accent-soft:#fdece7;
--safe:#15803d; --safe-bg:#dcfce7; --caution:#b45309; --caution-bg:#fef3c7; --danger:#dc2626; --danger-bg:#fee2e2;
--radius-sm:12px; --radius-md:18px; --radius-lg:24px;
--shadow-sm:0 2px 10px rgba(20,45,36,0.05); --shadow-md:0 10px 28px rgba(20,45,36,0.09); --shadow-cta:0 10px 22px rgba(232,99,67,0.28);
}
*,*::before,*::after { box-sizing:border-box; }
html,body { margin:0; padding:0; font-family:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; background:var(--bg-outer); color:var(--text); -webkit-font-smoothing:antialiased; }
body { min-height:100vh; display:flex; justify-content:center; background-image:radial-gradient(circle at 15% 15%,rgba(20,91,71,0.08),transparent 36%),radial-gradient(circle at 85% 80%,rgba(232,99,67,0.08),transparent 40%); }
.app-shell { width:100%; max-width:460px; min-height:100vh; background:var(--bg-app); position:relative; display:flex; flex-direction:column; box-shadow:0 0 0 1px rgba(20,45,36,0.06),0 24px 60px rgba(20,45,36,0.12); }
@media (max-width:520px) { body { background:var(--bg-app); } .app-shell { max-width:100%; box-shadow:none; } }
.topbar { position:sticky; top:0; z-index:30; display:flex; align-items:center; justify-content:space-between; gap:6px; padding:11px 13px; background:rgba(250,248,244,0.92); backdrop-filter:blur(12px); border-bottom:1px solid var(--border); }
.brand-btn { display:flex; align-items:center; gap:8px; background:none; border:none; padding:0; cursor:pointer; color:var(--text); text-align:left; flex-shrink:0; }
.brand-icon { width:32px; height:32px; border-radius:10px; background:linear-gradient(135deg,var(--brand),#1e7c61); color:#fff; display:grid; place-items:center; box-shadow:0 4px 10px rgba(20,91,71,0.25); flex-shrink:0; }
.brand-name { font-weight:800; font-size:15.5px; letter-spacing:-0.02em; display:flex; align-items:center; gap:5px; white-space:nowrap; }
.topbar-actions { display:flex; align-items:center; gap:4px; min-width:0; }
.credits-pill { font-family:inherit; font-size:11px; font-weight:800; padding:4px 7px; border-radius:999px; background:linear-gradient(135deg,#fff7ed,#ffedd5); color:#c2410c; border:1px solid rgba(234,88,12,0.28); cursor:pointer; white-space:nowrap; flex-shrink:0; }
.credits-pill.ready { background:var(--safe-bg); color:var(--safe); border-color:rgba(21,128,61,0.28); }
.nav-pill { font-family:inherit; font-size:11px; font-weight:700; padding:4px 8px; border-radius:999px; background:var(--surface); color:var(--text); border:1px solid var(--border-strong); cursor:pointer; white-space:nowrap; max-width:136px; overflow:hidden; text-overflow:ellipsis; }
.nav-pill.logged-in { background:var(--brand-soft); color:var(--brand); border-color:rgba(20,91,71,0.3); font-weight:800; }
.lang-toggle { display:inline-flex; background:var(--surface-soft); border:1px solid var(--border); border-radius:999px; padding:2px; flex-shrink:0; }
.lang-toggle button { border:none; background:transparent; padding:4px 8px; border-radius:999px; font-size:11px; font-weight:700; color:var(--text-muted); cursor:pointer; }
.lang-toggle button.active { background:var(--brand); color:#fff; }
.main-view { flex:1; padding:18px 16px 36px; display:flex; flex-direction:column; }
.screen { display:none; animation:fadeSlide 0.24s ease; }
.screen.active { display:flex; flex-direction:column; gap:14px; }
@keyframes fadeSlide { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.eyebrow { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; background:var(--brand-soft); color:var(--brand); font-size:12px; font-weight:700; padding:6px 12px; border-radius:999px; }
.hero-title { margin:0; font-size:26px; line-height:1.18; font-weight:800; letter-spacing:-0.03em; }
.hero-sub { margin:0; font-size:14px; line-height:1.55; color:var(--text-muted); }
.hero-mock { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:14px; box-shadow:var(--shadow-md); }
.mock-stage { position:relative; border-radius:var(--radius-md); background:linear-gradient(135deg,#1b312a,#274a3e); color:#fff; padding:16px; overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.mock-laser { position:absolute; left:0; right:0; height:2px; background:linear-gradient(90deg,transparent,#34d399,#fef08a,#34d399,transparent); box-shadow:0 0 12px #34d399; animation:scanBeam 2.4s ease-in-out infinite; }
@keyframes scanBeam { 0%,100% { top:10%; opacity:0.4; } 50% { top:88%; opacity:1; } }
.mock-items { display:flex; align-items:center; gap:10px; z-index:1; }
.mock-emoji-frame { width:54px; height:54px; border-radius:14px; background:rgba(255,255,255,0.14); border:1px dashed rgba(255,255,255,0.45); display:grid; place-items:center; font-size:28px; flex-shrink:0; }
.mock-meta { display:flex; flex-direction:column; gap:4px; }
.mock-caption { font-size:12px; color:rgba(255,255,255,0.8); }
.mock-alert { font-size:13.5px; font-weight:800; color:#fecaca; }
.mock-score-pill { z-index:1; background:#dc2626; color:#fff; font-weight:800; font-size:14px; padding:8px 11px; border-radius:13px; flex-shrink:0; }
.species-strip { display:flex; gap:6px; overflow-x:auto; padding-top:12px; scrollbar-width:none; }
.species-strip::-webkit-scrollbar { display:none; }
.species-strip.wrap-strip { flex-wrap:wrap; overflow-x:visible; }
.species-mini { flex-shrink:0; background:var(--surface-soft); border:1px solid var(--border); border-radius:999px; padding:5px 9px; font-size:11.5px; font-weight:700; color:var(--text); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:none; border-radius:var(--radius-md); font-family:inherit; font-weight:700; font-size:15px; padding:15px 18px; cursor:pointer; transition:transform 0.14s ease,background 0.16s ease; width:100%; }
.btn:active { transform:scale(0.985); }
.btn:disabled { opacity:0.52; cursor:not-allowed; }
.btn-cta { background:linear-gradient(135deg,var(--accent),#f07b42); color:#fff; box-shadow:var(--shadow-cta); }
.btn-primary { background:var(--brand); color:#fff; box-shadow:0 8px 18px rgba(20,91,71,0.22); }
.btn-secondary { background:var(--surface); color:var(--text); border:1px solid var(--border-strong); }
.btn-ad-earn { background:linear-gradient(135deg,#0f766e,#145b47); color:#fff; box-shadow:0 6px 16px rgba(15,118,110,0.22); }
.btn-sm { padding:9px 13px; font-size:13px; border-radius:var(--radius-sm); width:auto; }
.trust-row { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.trust-item { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:10px 7px; text-align:center; font-size:11.5px; font-weight:700; color:var(--text-muted); }
.trust-item span { display:block; font-size:16px; margin-bottom:3px; }
.section-label { font-size:12.5px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-light); margin:4px 0 0; }
.feature-list { display:flex; flex-direction:column; gap:10px; }
.feature-card { display:flex; align-items:flex-start; gap:12px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:13px; box-shadow:var(--shadow-sm); }
.feature-icon { width:40px; height:40px; border-radius:12px; background:var(--brand-soft); display:grid; place-items:center; font-size:20px; flex-shrink:0; }
.feature-card h4 { margin:0 0 3px; font-size:14.5px; font-weight:800; }
.feature-card p { margin:0; font-size:13px; line-height:1.45; color:var(--text-muted); }
.quiz-progress-wrap { display:flex; flex-direction:column; gap:8px; }
.quiz-top-meta { display:flex; align-items:center; justify-content:space-between; font-size:12.5px; font-weight:700; color:var(--text-muted); }
.link-btn { background:none; border:none; color:var(--brand); font-family:inherit; font-weight:700; font-size:13px; padding:4px 0; cursor:pointer; }
.progress-track { height:7px; background:var(--surface-soft); border-radius:999px; overflow:hidden; }
.progress-fill { height:100%; background:linear-gradient(90deg,var(--brand),#299474); border-radius:999px; transition:width 0.3s ease; }
.quiz-title { margin:0; font-size:21px; line-height:1.24; font-weight:800; }
.quiz-sub { margin:4px 0 10px; font-size:13.5px; line-height:1.5; color:var(--text-muted); }
.species-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.choice-card,.species-card { background:var(--surface); border:2px solid var(--border); border-radius:var(--radius-md); padding:13px 12px; display:flex; align-items:center; gap:10px; cursor:pointer; font-family:inherit; text-align:left; color:var(--text); transition:border-color 0.15s,background 0.15s; }
.choice-card:hover,.species-card:hover { border-color:rgba(20,91,71,0.4); }
.choice-card.selected,.species-card.selected { border-color:var(--brand); background:var(--brand-soft); box-shadow:var(--shadow-sm); }
.choice-card .emoji,.species-card .emoji { font-size:26px; line-height:1; flex-shrink:0; }
.choice-card .label,.species-card .label { font-size:13.5px; font-weight:700; }
.choice-card.span-2,.species-card.span-2 { grid-column:span 2; justify-content:center; }
.field-group { display:flex; flex-direction:column; gap:7px; }
.field-group label { font-size:13px; font-weight:700; }
.text-input,.textarea-input { width:100%; border:1.5px solid var(--border-strong); border-radius:var(--radius-sm); padding:12px 13px; font-family:inherit; font-size:14px; color:var(--text); background:var(--surface); outline:none; }
.text-input:focus,.textarea-input:focus { border-color:var(--brand); }
.textarea-input { resize:vertical; min-height:62px; }
.preset-row { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.preset-pill { background:var(--surface); border:1.5px solid var(--border-strong); border-radius:999px; padding:6px 11px; font-family:inherit; font-size:12px; font-weight:700; color:var(--text-muted); cursor:pointer; transition:all 0.14s ease; }
.preset-pill:hover { border-color:var(--brand); color:var(--brand); }
.preset-pill.active { background:var(--brand); border-color:var(--brand); color:#fff; }
.chip-wrap { display:flex; flex-wrap:wrap; gap:8px; }
.chip { background:var(--surface); border:1.5px solid var(--border-strong); border-radius:999px; padding:8px 13px; font-family:inherit; font-size:13px; font-weight:600; color:var(--text); cursor:pointer; }
.chip.selected { background:var(--brand); border-color:var(--brand); color:#fff; }
.age-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.age-card,.age-btn { background:var(--surface); border:2px solid var(--border); border-radius:var(--radius-sm); padding:11px 8px; text-align:center; cursor:pointer; font-family:inherit; color:var(--text); transition:all 0.14s ease; }
.age-card.selected,.age-btn.selected { border-color:var(--brand); background:var(--brand-soft); }
.age-card strong,.age-btn strong { display:block; font-size:13px; font-weight:800; }
.age-card span,.age-btn span { font-size:11px; color:var(--text-muted); }
.loader-box { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:30px 20px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:14px; margin-top:24px; box-shadow:var(--shadow-md); }
.pulse-ring { width:72px; height:72px; border-radius:50%; background:var(--brand-soft); display:grid; place-items:center; font-size:34px; animation:pulseGlow 1.5s infinite; }
@keyframes pulseGlow { 0% { box-shadow:0 0 0 0 rgba(20,91,71,0.35); } 70% { box-shadow:0 0 0 18px rgba(20,91,71,0); } 100% { box-shadow:0 0 0 0 rgba(20,91,71,0); } }
.loader-steps { width:100%; display:flex; flex-direction:column; gap:8px; text-align:left; }
.loader-step { font-size:13px; color:var(--text-light); display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:10px; background:var(--surface-soft); }
.loader-step.done { background:var(--safe-bg); color:var(--safe); font-weight:700; }
.pet-banner { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:11px 13px; display:flex; align-items:center; justify-content:space-between; gap:8px; box-shadow:var(--shadow-sm); }
.pet-banner-left { display:flex; align-items:center; gap:10px; min-width:0; flex:1; }
.pet-avatar { width:42px; height:42px; border-radius:13px; background:var(--brand-soft); display:grid; place-items:center; font-size:23px; flex-shrink:0; }
.pet-banner-info { min-width:0; flex:1; }
.pet-banner-name { font-weight:800; font-size:14.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pet-banner-meta { font-size:11.5px; color:var(--text-muted); line-height:1.3; word-break:break-word; }
.pet-banner-actions { display:flex; gap:5px; flex-shrink:0; }
.icon-pill { background:var(--surface-soft); border:1px solid var(--border); border-radius:10px; padding:7px 9px; font-family:inherit; font-size:11.5px; font-weight:700; color:var(--text); cursor:pointer; white-space:nowrap; }
.energy-card { background:linear-gradient(135deg,#eefaf5,#f6f4ee); border:1.5px solid rgba(20,91,71,0.22); border-radius:var(--radius-md); padding:13px 14px; display:flex; flex-direction:column; gap:9px; box-shadow:var(--shadow-sm); }
.energy-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.energy-title { font-size:13.5px; font-weight:800; color:var(--text); }
.energy-sub { font-size:12px; color:var(--text-muted); margin-top:2px; }
.energy-badge { font-size:13px; font-weight:800; padding:6px 11px; border-radius:12px; background:#fff; border:1.5px solid rgba(20,91,71,0.22); color:var(--brand); white-space:nowrap; }
.mode-tabs { display:grid; grid-template-columns:repeat(5,1fr); gap:4px; background:var(--surface-soft); padding:5px; border-radius:var(--radius-md); border:1px solid var(--border); }
.mode-tab { border:none; background:transparent; border-radius:11px; padding:8px 3px; font-family:inherit; font-size:11px; font-weight:700; color:var(--text-muted); cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:3px; text-align:center; line-height:1.18; }
.mode-tab span.icon { font-size:17px; }
.mode-tab.active { background:var(--surface); color:var(--brand); box-shadow:var(--shadow-sm); }
.moat-hub-box { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:10px 11px; display:flex; flex-direction:column; gap:7px; box-shadow:var(--shadow-sm); }
.moat-hub-label { font-size:10.5px; font-weight:800; letter-spacing:0.05em; color:var(--brand); }
.moat-toolbar { display:grid; grid-template-columns:repeat(2,1fr); gap:6px; }
.moat-pill { border:1px solid rgba(20,91,71,0.22); background:linear-gradient(135deg,#f5fbf8,#ffffff); border-radius:11px; padding:8px 9px; font-family:inherit; font-size:12px; font-weight:800; color:var(--text); cursor:pointer; display:flex; align-items:center; gap:6px; text-align:left; transition:transform 0.15s, border-color 0.15s; }
.moat-pill:hover { border-color:var(--brand); background:var(--brand-soft); }
.signup-promo-strip { background:linear-gradient(135deg,#fffbeb,#fef3c7); border:1.5px dashed #f59e0b; border-radius:13px; padding:9px 12px; font-size:12px; font-weight:800; color:#92400e; cursor:pointer; text-align:center; }
.meal-calc-card { background:linear-gradient(135deg,#ecfdf5,#f8fafc); border:1.5px solid rgba(20,91,71,0.28); border-radius:14px; padding:11px 13px; }
.privacy-blur { filter:blur(9px); transition:filter 0.2s ease; cursor:pointer; }
.vetpass-card { background:linear-gradient(145deg,#123c30,#1b5947); color:#fff; border-radius:var(--radius-md); padding:14px; display:flex; flex-direction:column; gap:12px; }
.vetpass-card.is-lost { background:linear-gradient(145deg,#7f1d1d,#b91c1c); }
.vetpass-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.vp-code-pill { display:inline-block; font-size:10.5px; font-weight:800; background:var(--brand-soft); color:var(--brand); border:1px solid rgba(20,91,71,0.22); padding:2px 8px; border-radius:999px; white-space:nowrap; }
.vetpass-card .vp-code-pill { background:rgba(255,255,255,0.2); color:#fff; border-color:transparent; }
.vp-verified-badge { font-size:11px; font-weight:800; background:#ecfdf5; color:#145b47; padding:4px 9px; border-radius:999px; white-space:nowrap; }
.lost-alert-badge { font-size:11px; font-weight:800; background:#fef08a; color:#991b1b; padding:4px 9px; border-radius:999px; white-space:nowrap; }
.vetpass-qr-row { display:flex; align-items:center; gap:12px; }
.qr-frame { background:#fff; padding:6px; border-radius:12px; flex-shrink:0; display:grid; place-items:center; }
.lost-toggle-box { border:1.5px dashed rgba(185,28,28,0.32); background:#fff5f5; border-radius:12px; padding:10px; }
.lost-toggle-box.active { border-style:solid; border-color:#dc2626; }
.lost-emergency-banner { background:#fef2f2; border:2px solid #dc2626; color:#991b1b; border-radius:13px; padding:11px 13px; font-size:12.5px; line-height:1.45; }
.srr-tap-circle { width:168px; height:168px; margin:4px auto; border-radius:50%; border:4px solid var(--brand); background:var(--brand-soft); color:var(--brand); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; cursor:pointer; font-family:inherit; box-shadow:0 10px 24px rgba(20,91,71,0.16); transition:transform 0.1s; }
.srr-tap-circle strong { font-size:13px; font-weight:800; }
.srr-tap-circle small { font-size:10.5px; color:var(--text-muted); max-width:130px; }
.srr-tap-circle.pulsing { background:#145b47; color:#fff; border-color:#fbbf24; }
.srr-tap-circle.pulsing small { color:rgba(255,255,255,0.82); }
.dropzone { position:relative; border:2px dashed rgba(20,91,71,0.35); border-radius:var(--radius-lg); background:var(--surface); min-height:210px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:18px; cursor:pointer; overflow:hidden; transition:border-color 0.2s, box-shadow 0.2s; }
.dropzone.has-image { padding:0; border-style:solid; border-color:var(--brand); }
.dropzone.need-photo-alert { border-color:#e86343; background:#fff7f5; animation:dzShake 0.36s ease; }
@keyframes dzShake { 0%,100% { transform:translateX(0); } 25% { transform:translateX(-6px); } 75% { transform:translateX(6px); } }
.dropzone input[type="file"] { display:none; }
.upload-icon-circle { width:50px; height:50px; border-radius:16px; background:var(--brand-soft); color:var(--brand); display:grid; place-items:center; font-size:24px; margin:0 auto 8px; }
.dropzone h4 { margin:0 0 5px; font-size:14.5px; font-weight:800; line-height:1.3; }
.dropzone p { margin:0 auto; font-size:12px; color:var(--text-muted); max-width:320px; line-height:1.45; }
.upload-btn-row { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:12px; }
.preview-img { width:100%; max-height:265px; object-fit:cover; display:block; }
.photo-action-bar { position:absolute; bottom:10px; left:10px; right:10px; display:flex; justify-content:space-between; gap:8px; z-index:3; pointer-events:none; }
.photo-pill-btn { pointer-events:auto; background:rgba(18,34,28,0.86); color:#fff; border:1px solid rgba(255,255,255,0.22); border-radius:999px; padding:7px 13px; font-family:inherit; font-size:12px; font-weight:700; cursor:pointer; backdrop-filter:blur(4px); }
.photo-pill-btn.danger { background:rgba(185,28,28,0.9); }
.scan-overlay { position:absolute; inset:0; background:rgba(14,32,26,0.82); backdrop-filter:blur(5px); display:none; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:#fff; padding:18px; text-align:center; z-index:5; }
.scan-overlay.active { display:flex; }
.cancel-scan-btn { margin-top:12px; background:#ef4444; color:#fff; border:2px solid rgba(255,255,255,0.85); border-radius:999px; padding:9px 16px; font-family:inherit; font-size:12.5px; font-weight:800; cursor:pointer; box-shadow:0 6px 18px rgba(0,0,0,0.32); }
.cancel-scan-btn:active { transform:scale(0.97); }
.btn-cta.need-photo { background:var(--surface-soft); color:var(--brand); border:1.5px dashed rgba(20,91,71,0.45); box-shadow:none; }
.btn-cta.is-cancelling { background:#dc2626; color:#fff; border:none; }
.scan-status-notice { border-radius:13px; padding:10px 13px; font-size:12.5px; font-weight:700; line-height:1.45; }
.scan-status-notice.warn { background:#fff7ed; color:#c2410c; border:1.5px solid rgba(234,88,12,0.3); }
.scan-status-notice.ok { background:#ecfdf5; color:#15803d; border:1.5px solid rgba(21,128,61,0.3); }
.samples-box { display:flex; flex-direction:column; gap:6px; }
.samples-label { font-size:11.5px; font-weight:800; color:var(--text-muted); }
.samples-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.sample-btn { background:var(--surface); border:1.5px solid var(--border); border-radius:11px; padding:7px 8px; display:flex; align-items:center; gap:6px; cursor:pointer; font-family:inherit; text-align:left; min-width:0; }
.sample-btn:hover,.sample-btn.active { border-color:var(--brand); background:var(--brand-soft); }
.sample-btn .s-emoji { font-size:18px; flex-shrink:0; }
.sample-btn .s-title { display:block; font-size:11px; font-weight:800; color:var(--text); line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sample-btn .s-tag { display:block; font-size:10px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.result-hero-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:18px; box-shadow:var(--shadow-md); display:flex; flex-direction:column; gap:14px; }
.result-top-row { display:flex; align-items:center; gap:16px; }
.score-gauge { position:relative; width:86px; height:86px; flex-shrink:0; }
.score-gauge svg { width:86px; height:86px; transform:rotate(-90deg); }
.score-gauge circle { fill:none; stroke-width:8; }
.score-gauge .track { stroke:var(--surface-soft); }
.score-gauge .fill { stroke-linecap:round; transition:stroke-dashoffset 0.8s ease; }
.score-number { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1; }
.score-number strong { font-size:24px; font-weight:800; }
.score-number span { font-size:10px; font-weight:700; color:var(--text-light); margin-top:2px; }
.verdict-pill { display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:800; padding:5px 10px; border-radius:999px; margin-bottom:6px; white-space:nowrap; }
.verdict-safe { background:var(--safe-bg); color:var(--safe); }
.verdict-caution { background:var(--caution-bg); color:var(--caution); }
.verdict-danger { background:var(--danger-bg); color:var(--danger); }
.result-item-name { margin:0; font-size:17px; font-weight:800; line-height:1.25; }
.result-headline { margin:0; font-size:14.5px; font-weight:800; line-height:1.4; }
.result-summary { margin:0; font-size:13.5px; line-height:1.55; color:var(--text-muted); }
.detail-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:15px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:10px; }
.detail-card h4 { margin:0; font-size:14.5px; font-weight:800; display:flex; align-items:center; gap:7px; }
.detail-text { margin:0; font-size:13.5px; line-height:1.55; color:var(--text-muted); }
.finding-item { border-radius:12px; padding:11px 12px; border-left:4px solid var(--brand); background:var(--surface-soft); }
.finding-item.danger { border-left-color:var(--danger); background:#fff5f5; }
.finding-item.caution { border-left-color:var(--caution); background:#fffbeb; }
.finding-item.safe { border-left-color:var(--safe); background:#f0fdf4; }
.finding-item strong { display:block; font-size:13.5px; margin-bottom:3px; }
.finding-item p { margin:0; font-size:12.5px; line-height:1.45; color:var(--text-muted); }
.checklist { display:flex; flex-direction:column; gap:8px; }
.check-item { display:flex; align-items:flex-start; gap:9px; font-size:13.5px; line-height:1.45; cursor:pointer; }
.check-item input { margin-top:3px; accent-color:var(--brand); width:16px; height:16px; flex-shrink:0; }
.check-item input:checked + span { text-decoration:line-through; color:var(--text-light); }
.alt-item { background:#f0fdf4; border:1px solid rgba(21,128,61,0.16); border-radius:12px; padding:10px 12px; }
.alt-item strong { display:block; font-size:13.5px; color:var(--safe); margin-bottom:2px; }
.alt-item p { margin:0; font-size:12.5px; color:var(--text-muted); }
.sponsor-native-card { background:linear-gradient(135deg,#fffbeb,#fef3c7); border:1.5px solid rgba(217,119,6,0.28); border-radius:var(--radius-md); padding:14px; display:flex; flex-direction:column; gap:10px; box-shadow:var(--shadow-sm); }
.sponsor-native-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.sponsor-tag { font-size:10px; font-weight:800; letter-spacing:0.06em; background:#d97706; color:#fff; padding:2px 7px; border-radius:999px; }
.sponsor-brand-name { font-size:12px; font-weight:800; color:#92400e; }
.sponsor-native-body { display:flex; align-items:center; gap:11px; }
.sponsor-emoji { width:44px; height:44px; border-radius:13px; background:#fff; display:grid; place-items:center; font-size:24px; flex-shrink:0; }
.vet-box { background:#f4f7f6; border:1px dashed rgba(20,91,71,0.3); border-radius:12px; padding:12px; font-size:13px; line-height:1.5; }
.vet-q-list { margin:6px 0 0; padding-left:18px; font-size:12.5px; color:var(--text-muted); line-height:1.5; }
.chat-messages { display:flex; flex-direction:column; gap:8px; max-height:260px; overflow-y:auto; }
.chat-bubble { padding:10px 12px; border-radius:14px; font-size:13px; line-height:1.5; white-space:pre-wrap; }
.chat-bubble.user { align-self:flex-end; background:var(--brand); color:#fff; max-width:85%; }
.chat-bubble.ai { align-self:flex-start; background:var(--surface-soft); color:var(--text); max-width:92%; }
.chat-form { display:flex; gap:8px; }
.chat-form input { flex:1; }
.disclaimer-box { font-size:11.5px; line-height:1.45; color:var(--text-light); text-align:center; padding:10px 12px; background:var(--surface-soft); border-radius:var(--radius-sm); }
.modal-backdrop { position:fixed; inset:0; z-index:60; background:rgba(15,28,23,0.68); backdrop-filter:blur(5px); display:none; align-items:flex-end; justify-content:center; padding:12px; }
.modal-backdrop.open { display:flex; }
#editPetModal { z-index:75; }
#publicVetPassModal { z-index:78; }
@media (min-width:520px) { .modal-backdrop { align-items:center; } }
.modal-sheet { width:100%; max-width:440px; max-height:90vh; overflow-y:auto; background:var(--surface); border-radius:var(--radius-lg); padding:18px; box-shadow:0 24px 60px rgba(0,0,0,0.34); display:flex; flex-direction:column; gap:12px; }
.modal-header { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.modal-header h3 { margin:0; font-size:16.5px; font-weight:800; line-height:1.25; }
.close-btn { width:32px; height:32px; border-radius:50%; border:none; background:var(--surface-soft); color:var(--text); font-size:15px; cursor:pointer; flex-shrink:0; }
.ad-player-sheet { background:#fdfcf9; border:2px solid var(--brand); }
.ad-topbar { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.ad-step-pill { font-size:11.5px; font-weight:800; background:var(--brand); color:#fff; padding:4px 10px; border-radius:999px; }
.ad-source-pill { font-size:11px; font-weight:700; background:var(--surface-soft); color:var(--text-muted); padding:4px 9px; border-radius:999px; }
.ad-timer-pill { font-size:12px; font-weight:800; background:#fef3c7; color:#b45309; padding:4px 10px; border-radius:999px; font-variant-numeric:tabular-nums; }
.ad-timer-pill.done { background:var(--safe-bg); color:var(--safe); }
.ad-series-bar { display:flex; align-items:center; justify-content:center; gap:6px; font-size:11.5px; font-weight:800; }
.ad-dot { padding:4px 9px; border-radius:999px; background:var(--surface-soft); color:var(--text-light); border:1px solid var(--border); }
.ad-dot.active { background:#fef3c7; color:#b45309; border-color:#f59e0b; }
.ad-dot.done { background:var(--safe-bg); color:var(--safe); border-color:rgba(21,128,61,0.3); }
.ad-creative-box { background:linear-gradient(145deg,#133b2f,#1d5645); color:#fff; border-radius:var(--radius-md); padding:16px; display:flex; flex-direction:column; gap:11px; }
.ad-brand-row { display:flex; align-items:center; gap:10px; }
.ad-brand-avatar { width:42px; height:42px; border-radius:12px; background:rgba(255,255,255,0.16); display:grid; place-items:center; font-size:24px; flex-shrink:0; }
.ad-visual-banner { border-radius:14px; background:rgba(0,0,0,0.22); min-height:118px; display:grid; place-items:center; overflow:hidden; border:1px solid rgba(255,255,255,0.14); padding:14px; text-align:center; }
.ad-video { width:100%; max-height:190px; border-radius:10px; }
.ad-banner-frame { width:300px; height:250px; max-width:100%; border:none; border-radius:10px; background:#fff; }
.ad-visual-art { font-size:44px; line-height:1.2; }
.ad-headline { margin:0; font-size:17px; font-weight:800; line-height:1.3; color:#fff; }
.ad-body-text { margin:0; font-size:13px; line-height:1.45; color:rgba(255,255,255,0.86); }
.ad-coupon-strip { background:rgba(251,191,36,0.18); border:1px dashed #fbbf24; color:#fef08a; border-radius:10px; padding:7px 10px; font-size:12px; font-weight:700; text-align:center; }
.ad-visit-btn { background:#fff !important; color:#145b47 !important; border:none !important; width:100% !important; text-decoration:none; }
.ad-visibility-hint { font-size:11.5px; text-align:center; color:var(--text-muted); min-height:16px; }
.pet-list-item { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:11px 12px; border-radius:14px; border:1.5px solid var(--border); background:var(--surface); cursor:pointer; }
.pet-list-item.active { border-color:var(--brand); background:var(--brand-soft); }
.pet-item-actions { display:flex; align-items:center; gap:5px; flex-shrink:0; }
.pet-mini-btn { border:1px solid var(--border-strong); background:var(--surface); color:var(--text); border-radius:8px; padding:5px 8px; font-family:inherit; font-size:11.5px; font-weight:700; cursor:pointer; }
.pet-mini-btn:hover { border-color:var(--brand); color:var(--brand); }
.pet-mini-btn.danger:hover { border-color:var(--danger); color:var(--danger); }
.history-item { display:flex; flex-direction:column; gap:8px; padding:11px 12px; border-radius:14px; border:1px solid var(--border-strong); background:var(--surface); }
.history-item-main { display:flex; align-items:center; gap:10px; }
.history-thumb { width:48px; height:48px; border-radius:10px; object-fit:cover; flex-shrink:0; border:1px solid var(--border); background:var(--surface-soft); }
.history-thumb-placeholder { width:48px; height:48px; border-radius:10px; display:grid; place-items:center; font-size:22px; background:var(--surface-soft); flex-shrink:0; }
.followup-banner, .cloud-save-banner { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:14px; background:var(--brand-soft); border:1.5px solid rgba(20,91,71,0.28); }
.followup-thumb, .result-scan-thumb { width:52px; height:52px; border-radius:11px; object-fit:cover; flex-shrink:0; border:1px solid var(--border-strong); }
.visual-evidence-card { background:linear-gradient(145deg,#ffffff,#f4faf7); border-color:rgba(20,91,71,0.22); }
.progress-compare-card { background:linear-gradient(145deg,#f0fdf4,#ffffff); border:1.5px solid rgba(21,128,61,0.28); }
.before-after-row { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:4px 0; }
.ba-box { flex:1; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:8px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:4px; }
.ba-box.active { border-color:var(--brand); box-shadow:0 4px 12px rgba(20,91,71,0.1); }
.ba-img { width:64px; height:64px; border-radius:10px; object-fit:cover; }
.ba-score { font-size:15px; font-weight:800; color:var(--text); }
.ba-arrow { font-size:18px; font-weight:800; color:var(--brand); }
.timeline-chart-box { background:var(--surface-soft); border:1px solid var(--border); border-radius:14px; padding:11px 12px; display:flex; flex-direction:column; gap:7px; }
.timeline-bars { display:flex; align-items:flex-end; gap:8px; height:76px; padding-top:10px; overflow-x:auto; }
.t-bar-col { display:flex; flex-direction:column; align-items:center; gap:3px; min-width:46px; }
.t-bar { width:26px; border-radius:6px 6px 3px 3px; min-height:8px; transition:height 0.25s ease; }
.filter-chip { flex-shrink:0; border:1px solid var(--border-strong); background:var(--surface); color:var(--text); border-radius:999px; padding:5px 11px; font-size:12px; font-weight:700; cursor:pointer; font-family:inherit; }
.filter-chip.active { background:var(--brand); color:#fff; border-color:var(--brand); }
.share-canvas-wrap { display:flex; justify-content:center; background:#14221d; border-radius:var(--radius-md); padding:12px; }
.share-canvas-wrap canvas { width:220px; height:auto; border-radius:14px; }
.row-actions { display:flex; gap:8px; }
.toxin-item { border-radius:14px; padding:12px; border:1px solid var(--border); background:var(--surface-soft); display:flex; flex-direction:column; gap:5px; }
.toxin-item-top { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.toxin-item-top .verdict-pill { margin:0; flex-shrink:0; white-space:nowrap; }
.hidden { display:none !important; }
#topHistoryBtn { flex-shrink:0; }
@media (max-width:420px) { .topbar { padding:10px 9px; gap:4px; } .brand-btn { gap:6px; } .brand-icon { width:28px; height:28px; border-radius:9px; } .brand-name { font-size:14px; } .topbar-actions { gap:3px; } .credits-pill,.nav-pill { padding:4px 6px; font-size:10.5px; } .lang-toggle button { padding:3px 6px; font-size:10.5px; } }
