/* Chat Decode — نظام التصميم: ورقي دافئ، حبر داكن، مرجاني. بلا خطوط خارجية (خصوصية + سرعة). */
:root {
  --coral: #f05c4f; --coral-d: #d94437; --ink: #191817; --cream: #f6f1e8; --paper: #fffdf8;
  --lilac: #dcd4ff; --mint: #bce2cf; --butter: #f4dc83; --line: #ded7cc; --muted: #6a645e; --ok: #2f7d57; --bad: #b3261e;
  --font: -apple-system, BlinkMacSystemFont, "SF Arabic", "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 18px 45px rgba(55, 42, 29, .13);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.7 var(--font); overflow-x: hidden; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- الشعار ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 19px/1 var(--font); direction: ltr; letter-spacing: -.02em; }
.brand b { color: var(--coral); font-weight: 800; }
.mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; transform: skewX(-12deg); }
.mark i { width: 6px; border-radius: 4px; background: var(--coral); display: block; }
.mark i:nth-child(1) { height: 12px; } .mark i:nth-child(2) { height: 22px; background: var(--ink); } .mark i:nth-child(3) { height: 8px; background: #9e958c; }

/* ---------- الرأس ---------- */
.top { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.top nav { display: flex; gap: 26px; margin-inline-start: auto; font-size: 15px; font-weight: 600; color: var(--muted); }
.top nav a { text-decoration: none; padding: 8px 0; } .top nav a:hover { color: var(--coral); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; background: transparent; white-space: nowrap; min-height: 44px; }
.pill:hover { background: var(--ink); color: #fff; }
.top .pill { margin-inline-start: 0; }

/* ---------- أزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 26px; border: 0; border-radius: 6px; font-weight: 800; font-size: 16px; text-decoration: none; transition: transform .18s, background .18s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--coral); color: #fff; } .btn-primary:hover { background: var(--coral-d); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.link { background: none; border: 0; color: var(--coral); font-weight: 700; padding: 8px 4px; min-height: 40px; text-decoration: underline; text-underline-offset: 4px; }
.kicker { font: 600 12px/1 var(--mono); letter-spacing: .08em; color: var(--coral); direction: ltr; display: inline-block; }
em { font-style: normal; color: var(--coral); background: linear-gradient(transparent 82%, rgba(240, 92, 79, .22) 82%); padding-inline: 2px; }

/* ---------- الواجهة الرئيسية ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 48px 0 84px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; color: var(--coral); }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(240, 92, 79, .15); }
h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.12; font-weight: 800; margin: 18px 0 20px; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.facts span::before { content: "✓ "; color: var(--ok); font-weight: 800; }

.card-stage { position: relative; min-height: 440px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(240, 92, 79, .3); border-radius: 50%; transform: rotate(-23deg); pointer-events: none; }
.orbit.a { width: 92%; height: 52%; } .orbit.b { width: 100%; height: 70%; transform: rotate(27deg); border-color: rgba(25, 24, 23, .12); }
.sample { position: relative; z-index: 2; width: min(380px, 100%); background: var(--paper); padding: 22px; box-shadow: var(--shadow); transform: rotate(-2.5deg); border: 1px solid rgba(25, 24, 23, .06); }
.sample::before { content: ""; position: absolute; inset: 8px -8px -8px 8px; border: 1.5px solid var(--coral); z-index: -1; }
.sample-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sample-head span:last-child { color: var(--coral); font: 600 11px var(--mono); }
.bubbles { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 6px; }
.bub { max-width: 82%; padding: 9px 14px; font-size: 14px; border-radius: 14px; background: #efeae1; }
.bub.me { align-self: flex-start; background: var(--coral); color: #fff; }
.bub small { display: block; font: 10px var(--mono); opacity: .6; margin-top: 2px; direction: ltr; text-align: end; }
.insight { display: flex; align-items: center; gap: 12px; background: var(--lilac); padding: 13px 15px; margin-top: 16px; }
.insight > b:first-child { font-size: 22px; }
.insight div { flex: 1; line-height: 1.4; } .insight strong { display: block; font-size: 13px; } .insight div span { font-size: 13px; color: #4f4666; }
.insight > b:last-child { font-size: 22px; }
.bar { height: 7px; background: #e9e2d7; border-radius: 9px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--coral); border-radius: 9px; }
.tag-float { position: absolute; z-index: 3; padding: 10px 14px; font-weight: 700; font-size: 14px; box-shadow: 6px 6px 0 var(--coral); background: var(--ink); color: #fff; }
.tag-float.t1 { top: 14px; inset-inline-end: 0; transform: rotate(5deg); }
.tag-float.t2 { bottom: 24px; inset-inline-start: 0; background: var(--paper); color: var(--ink); box-shadow: 6px 6px 0 var(--butter); transform: rotate(-4deg); }

.ticker { background: var(--ink); color: #fff; overflow: hidden; }
.ticker ul { display: flex; gap: 30px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 15px 18px; font-weight: 600; font-size: 14px; }
.ticker li + li::before { content: "✦"; color: var(--coral); margin-inline-end: 30px; }

section.block { padding: 86px 0; }
.heading { display: flex; justify-content: space-between; align-items: end; gap: 28px 60px; margin-bottom: 40px; flex-wrap: wrap; }
h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.18; font-weight: 800; margin-top: 12px; }
.heading > p { max-width: 360px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step .art { height: 170px; display: grid; place-items: center; margin: 10px 0 18px; border: 1px solid var(--line); font-weight: 700; }
.step:nth-child(1) .art { background: var(--lilac); } .step:nth-child(2) .art { background: var(--butter); } .step:nth-child(3) .art { background: var(--mint); font-size: 52px; }
.step h3 { font-size: 21px; } .step p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.num { font: 600 12px var(--mono); color: var(--coral); }

.ex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ex article { padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.ex .l { background: var(--lilac); } .ex .b { background: var(--butter); } .ex .m { background: var(--mint); }
.ex .ic { font-size: 28px; } .ex h3 { font-size: 22px; } .ex p { font-size: 15px; }
.ex .meter { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.ex .meter .bar { flex: 1; background: rgba(25, 24, 23, .14); } .ex .meter .bar i { background: var(--ink); }

.privacy { background: var(--ink); color: #fff; padding: 56px clamp(22px, 5vw, 70px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; margin-bottom: 20px; }
.privacy .kicker { color: var(--butter); } .privacy h2 em { color: var(--butter); background: none; }
.privacy p { color: #b8b0a7; margin: 14px 0 22px; max-width: 460px; }
.privacy .pl { display: grid; gap: 18px; }
.privacy .pl li { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; }
.privacy .pl b { color: var(--coral); font: 600 12px var(--mono); grid-row: span 2; padding-top: 5px; }
.privacy .pl strong { font-size: 17px; } .privacy .pl span { color: #9d958c; font-size: 14px; }
.privacy .btn { align-self: start; }

.final { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding: 90px 0 80px; }
.final h2 { font-size: clamp(40px, 7vw, 74px); line-height: 1.1; }
footer.foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
footer.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer.foot nav { display: flex; gap: 18px; }

/* ---------- التطبيق ---------- */
.app-top { border-bottom: 1px solid var(--line); background: rgba(246, 241, 232, .92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.app-top .wrap { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.who { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; direction: ltr; }
.panel { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(55, 42, 29, .05); padding: 26px; }
.auth { max-width: 520px; margin: 54px auto 70px; }
.auth h1 { font-size: clamp(32px, 6vw, 44px); margin: 12px 0 10px; }
.auth p { color: var(--muted); }
.field { display: block; margin-top: 22px; font-weight: 700; font-size: 14px; }
.field input { display: block; width: 100%; margin-top: 8px; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: #fbf8f2; direction: ltr; text-align: left; font-size: 17px; }
.field input:focus { outline: none; border-color: var(--coral); }
.auth .btn { width: 100%; margin-top: 16px; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.msg { padding: 12px 14px; font-size: 14px; margin-top: 16px; border-inline-start: 4px solid var(--coral); background: #fff2ed; }
.msg.ok { border-color: var(--ok); background: #eaf6ef; }
.sent { text-align: center; } .sent .big { font-size: 48px; }
.tabs { display: flex; gap: 6px; margin: 28px 0 18px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: 12px 18px; font-weight: 800; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; min-height: 48px; }
.tabs button.on { color: var(--ink); border-color: var(--coral); }
.grid2 { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; align-items: start; }
.drop { border: 2px dashed #c9c0b5; padding: 26px 16px; display: grid; justify-items: center; gap: 4px; text-align: center; cursor: pointer; transition: .2s; margin-top: 16px; }
.drop:hover, .drop.over { border-color: var(--coral); background: #fff9f2; }
.drop .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--lilac); display: grid; place-items: center; font-size: 22px; }
.drop strong { font-size: 16px; } .drop small { color: var(--muted); font-size: 13px; }
.or { display: flex; align-items: center; gap: 12px; color: #9a9289; font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
textarea.chat { width: 100%; min-height: 150px; resize: vertical; padding: 14px; border: 1.5px solid var(--line); border-radius: 6px; background: #fbf8f2; line-height: 1.8; font-size: 15px; }
textarea.chat:focus { outline: none; border-color: var(--coral); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--muted); }
.detect { margin-top: 12px; padding: 10px 14px; background: #eaf6ef; font-size: 14px; border-inline-start: 4px solid var(--ok); }
.detect.warn { background: #fff7e0; border-color: #c9a227; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 10px 14px; border: 1.5px solid var(--line); background: transparent; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); min-height: 44px; }
.chip.on, .chip:hover { border-color: var(--coral); background: #fff2ed; color: var(--coral); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 14px; background: var(--mint); padding: 14px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.go { width: 100%; margin-top: 16px; }
.how-box { font-size: 14px; color: var(--muted); margin-top: 16px; } .how-box strong { color: var(--ink); }
.how-box ol { margin: 8px 0 0; padding-inline-start: 20px; } .how-box li { margin: 4px 0; }

/* ---------- التقرير ---------- */
.report { margin-top: 24px; padding: 0; }
.r-head { padding: 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.r-head h2 { font-size: clamp(26px, 5vw, 38px); margin: 8px 0 0; }
.r-meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.r-meta span { background: var(--lilac); padding: 5px 11px; color: var(--ink); font-weight: 700; }
.r-body { padding: 26px; display: grid; gap: 26px; }
.top-grid { display: grid; grid-template-columns: 1fr 200px; gap: 26px; align-items: center; }
.sum { display: flex; gap: 14px; } .sum .badge { flex: none; width: 46px; height: 46px; background: var(--butter); display: grid; place-items: center; font-size: 22px; }
.sum p { font-size: 17px; line-height: 1.8; } .sum .tone { font-weight: 800; color: var(--coral); display: block; font-size: 14px; margin-bottom: 4px; }
.score { text-align: center; border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.score span { font-size: 13px; color: var(--muted); display: block; } .score strong { display: block; font-size: 58px; line-height: 1.1; font-weight: 800; direction: ltr; } .score strong small { font-size: 24px; color: var(--coral); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tags span { border: 1.5px solid var(--ink); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sig { background: #fbf8f2; border: 1px solid var(--line); padding: 16px; } .sig span { font-size: 13px; color: var(--muted); } .sig strong { display: block; font-size: 20px; margin: 4px 0 10px; }
.sig .na { color: #aaa19a; font-size: 14px; font-weight: 600; }
h3.sec { font-size: 19px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; } h3.sec::before { content: ""; width: 8px; height: 22px; background: var(--coral); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.person { border: 1px solid var(--line); padding: 18px; background: #fbf8f2; }
.person h4 { margin: 0 0 4px; font-size: 18px; display: flex; justify-content: space-between; gap: 8px; }
.person h4 small { font: 600 13px var(--mono); color: var(--coral); direction: ltr; }
.person .bar { margin: 8px 0 12px; }
.person dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; font-size: 14px; } .person dt { color: var(--muted); } .person dd { margin: 0; font-weight: 700; direction: ltr; text-align: end; }
.person p.style { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 15px; }
.list li { padding: 12px 14px; background: #fbf8f2; border-inline-start: 4px solid var(--butter); margin-bottom: 8px; font-size: 15px; }
.list li b { display: block; } .list li span { color: var(--muted); font-size: 14px; }
.list.sg li { border-color: var(--mint); }
.hours { display: flex; align-items: flex-end; gap: 3px; height: 90px; direction: ltr; }
.hours i { flex: 1; background: var(--coral); opacity: .85; min-height: 2px; border-radius: 2px 2px 0 0; }
.hours-l { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--muted); margin-top: 6px; direction: ltr; }
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fact { border: 1px solid var(--line); padding: 12px 14px; } .fact span { font-size: 13px; color: var(--muted); display: block; } .fact strong { font-size: 18px; }
.fallback { background: #fff7e0; border-inline-start: 4px solid #c9a227; padding: 14px; font-size: 14px; }
.caution { background: #fdeceb; border-inline-start: 4px solid var(--bad); padding: 14px 16px; font-size: 15px; }
.r-foot { border-top: 1px solid var(--line); padding: 18px 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.r-foot div { display: flex; gap: 6px; flex-wrap: wrap; }
.busy { position: fixed; inset: 0; background: rgba(246, 241, 232, .9); z-index: 50; display: grid; place-items: center; text-align: center; padding: 20px; }
.busy .box { max-width: 340px; } .busy .mark { height: 40px; margin-bottom: 18px; } .busy .mark i { animation: pulse 1s ease-in-out infinite; width: 10px; }
.busy .mark i:nth-child(2) { animation-delay: .15s; } .busy .mark i:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 50% { transform: scaleY(.45); } }
.hist { display: grid; gap: 10px; }
.h-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); }
.h-item button.open { text-align: start; background: none; border: 0; padding: 0; min-height: 44px; }
.h-item strong { display: block; font-size: 17px; } .h-item small { color: var(--muted); font-size: 13px; }
.h-item .del { background: none; border: 1.5px solid var(--line); padding: 8px 12px; border-radius: 6px; color: var(--bad); font-weight: 700; font-size: 13px; min-height: 40px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.danger { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
.danger .link { color: var(--bad); }
.toast { position: fixed; inset-inline: 0; bottom: 22px; margin-inline: auto; width: max-content; max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 12px 18px; z-index: 60; font-size: 14px; box-shadow: var(--shadow); }

/* صفحة نصية (الخصوصية) */
.doc { max-width: 760px; margin: 40px auto 80px; } .doc h1 { font-size: clamp(34px, 6vw, 52px); margin: 10px 0 16px; }
.doc h2 { font-size: 24px; margin: 38px 0 10px; } .doc p, .doc li { color: #403b36; margin-bottom: 10px; } .doc ul { list-style: disc; padding-inline-start: 22px; }
.doc .callout { background: var(--butter); padding: 16px 18px; margin: 20px 0; font-weight: 600; }

/* ---------- الجوال ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 26px 0 60px; }
  .card-stage { min-height: 400px; }
  .top nav { display: none; }
  .top .pill { margin-inline-start: auto; }
  .steps, .ex, .privacy { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .top-grid { grid-template-columns: 1fr; }
  .score { border: 0; padding: 18px 0 0; border-top: 1px solid var(--line); text-align: start; }
  .signals { grid-template-columns: 1fr; }
  section.block { padding: 58px 0; }
  .final { padding: 60px 0 56px; }
  .panel, .r-head, .r-body { padding: 18px; }
  .r-foot { padding: 16px 18px; }
  .who span { max-width: 110px; }
  .tabs button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .app-top, .tabs, .r-foot, .no-print, .busy { display: none !important; } body { background: #fff; } }

/* ---------- الواجهة الجديدة: خطوات + قصة + لؤلؤة ---------- */
.ic { display: inline-block; vertical-align: -4px; flex: none; }
.fl { max-width: 640px; margin: 0 auto; padding-bottom: 60px; }
.fl-top { display: flex; align-items: center; gap: 14px; margin: 6px 0 26px; }
.fl-back { background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; color: var(--muted); min-height: 36px; }
.fl-bar { flex: 1; height: 8px; background: #e7e0d4; border-radius: 99px; overflow: hidden; } .fl-bar i { display: block; height: 100%; width: 25%; background: var(--coral); border-radius: 99px; transition: width .35s; }
#fl-n { font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.fl-q { font-size: clamp(24px, 5vw, 32px); line-height: 1.35; margin: 0 0 8px; } .fl .sub { color: var(--muted); margin: 0 0 22px; }
.fl-cards { display: grid; gap: 12px; margin-top: 22px; }
.fl-card { display: flex; align-items: center; gap: 16px; text-align: start; width: 100%; background: var(--paper); border: 1.5px solid var(--line); border-bottom-width: 4px; border-radius: 16px; padding: 16px 18px; transition: transform .15s, border-color .15s; }
.fl-card:hover, .fl-card.on { border-color: var(--ink); transform: translateY(-2px); }
.fl-card b { display: block; font-size: 18px; } .fl-card small { color: var(--muted); font-size: 13.5px; }
.fl-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none; color: var(--ink); }
.k1 { background: #ffc9d9; } .k2 { background: var(--butter); } .k3 { background: #ffd2b8; } .k4 { background: var(--lilac); } .k5 { background: var(--mint); }
.fl .drop { margin-top: 20px; min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; border: 2px dashed #c9bfb0; border-radius: 18px; background: var(--paper); padding: 26px; cursor: pointer; }
.fl .drop.over { border-color: var(--coral); background: #fff2ed; } .fl .drop .ic { color: var(--ink); } .fl .drop small { color: var(--muted); }
.fl-priv { margin: 12px 0; display: flex; gap: 6px; align-items: center; }
.fl .detect.ok { background: linear-gradient(135deg, #f05c4f, #f4a742); color: #fff; border: 0; border-radius: 18px; text-align: center; padding: 22px; margin: 16px 0; }
.fl .detect .big-n { font-size: 54px; font-weight: 800; line-height: 1.1; } .fl .detect .q { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; background: #fff; color: #2f7d57; border-radius: 99px; padding: 4px 14px; font-weight: 700; font-size: 14px; }
.fl .how-box { margin-top: 12px; } .fl textarea.chat { width: 100%; min-height: 140px; margin-top: 10px; }
.fl-go { width: 100%; margin-top: 22px; }
.nm-list { display: grid; gap: 12px; } .nm { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.nm input { flex: 1; border: 0; background: none; font-size: 17px; font-weight: 700; min-height: 44px; outline-offset: 4px; }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px; flex: none; }
.fl-pearl { display: grid; justify-items: center; margin: 4px 0 12px; }
.fl .consent { margin-top: 20px; }

.pearl { display: block; overflow: visible; } .pearl .p-top { transform-origin: 57px 70px; transition: transform .4s; }
.pearl-think .p-top { animation: shell 2.2s ease-in-out infinite; } .pearl-think .p-body { animation: bob 2.2s ease-in-out infinite; } .pearl-happy .p-body { animation: bob 3s ease-in-out infinite; }
.pearl .pe { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes shell { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-3deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) { .pearl *, .pearl { animation: none !important; } }
.busy-pearl { display: grid; justify-items: center; margin-bottom: 14px; }

.story { max-width: 560px; margin: 0 auto; padding-bottom: 60px; }
.st-top { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; } .st-seg { flex: 1; display: flex; gap: 4px; } .st-seg i { flex: 1; height: 5px; border-radius: 9px; background: #e2dacd; } .st-seg i.done { background: var(--ink); }
.sl { display: none; border-radius: 22px; padding: 26px 22px 30px; min-height: 420px; } .sl.on { display: block; animation: slin .35s ease; }
@keyframes slin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sl h2 { font-size: clamp(24px, 5.5vw, 32px); line-height: 1.3; margin: 0 0 6px; } .sl .sub { color: rgba(25, 24, 23, .65); margin: 0 0 20px; font-size: 15px; }
.c-night { background: #141a33; color: #fff; } .c-night .sub { color: #c9cbe0; } .c-mint { background: #bcefdc; } .c-butter { background: #fce9a8; } .c-sand { background: #efe5d8; } .c-lilac { background: #ddd5ff; } .c-coral { background: #ffd3c7; } .c-end { background: var(--paper); border: 1.5px solid var(--line); text-align: center; display: none; }
.c-end.on { display: grid; justify-items: center; gap: 12px; align-content: center; }
.cal { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; direction: ltr; margin-top: 18px; }
.cal-c { aspect-ratio: 1; border-radius: 3px; background: #262d4d; } .cal-c.l1 { background: #6b5b3a; } .cal-c.l2 { background: #9c8248; } .cal-c.l3 { background: #cfae55; } .cal-c.l4 { background: #ffd35c; }
.blk { background: rgba(255, 255, 255, .62); border-radius: 16px; padding: 14px 16px; margin-top: 12px; } .blk h3 { font-size: 14px; margin: 0 0 10px; color: rgba(25, 24, 23, .7); }
.pb { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; margin-bottom: 12px; } .pb b { font-size: 15px; } .pb em { font-style: normal; font-weight: 800; font-size: 18px; } .pb .bar { grid-column: 1 / -1; height: 10px; background: rgba(0, 0, 0, .08); border-radius: 9px; overflow: hidden; } .pb .bar i { display: block; height: 100%; border-radius: 9px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.kp { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } .k { background: rgba(255, 255, 255, .7); border-radius: 16px; padding: 14px; display: grid; gap: 2px; } .k span { font-size: 13px; color: rgba(25, 24, 23, .7); } .k strong { font-size: 26px; line-height: 1.2; } .k small { color: rgba(25, 24, 23, .6); }
.sl .hours { display: flex; align-items: flex-end; gap: 3px; height: 90px; direction: ltr; } .sl .hours i { flex: 1; background: #8a6d1d; border-radius: 3px 3px 0 0; min-height: 3px; } .sl .hours-l { display: flex; justify-content: space-between; direction: ltr; font-size: 11px; color: rgba(25, 24, 23, .6); margin-top: 4px; }
.sl .note { margin-top: 10px; font-size: 13.5px; }
.lm { background: rgba(255, 255, 255, .7); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; } .lm-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .lm-h strong { margin-inline-start: auto; font-size: 22px; } .lm-h small { color: var(--muted); flex-basis: 100%; }
.lm summary { cursor: pointer; font-weight: 700; color: var(--coral-d); margin-top: 8px; } .bub { background: #dff7d4; border-radius: 14px; padding: 12px 14px; margin-top: 8px; white-space: pre-wrap; word-break: break-word; font-size: 15px; max-height: 260px; overflow: auto; }
.bub-r { max-width: 85%; border-radius: 14px; padding: 8px 12px; margin-bottom: 8px; background: #fff; display: grid; } .bub-r small { color: var(--muted); font-weight: 700; font-size: 11.5px; } .bub-r.b { margin-inline-start: auto; background: #dff7d4; }
.wd { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; background: rgba(255, 255, 255, .7); border-radius: 16px; padding: 14px; margin-bottom: 10px; } .wl, .el { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; } .wl span { background: #fff; border-radius: 99px; padding: 4px 14px; font-weight: 700; } .el span { font-size: 26px; }
.st-nav { display: flex; gap: 10px; margin-top: 16px; } .st-nav .btn { flex: 1; }
.end-pearl { margin-bottom: 4px; }
.dlg { position: fixed; inset: 0; background: rgba(25, 24, 23, .5); z-index: 60; display: grid; place-items: center; padding: 16px; } .dlg-box { background: var(--paper); border-radius: 18px; padding: 24px; width: min(460px, 100%); max-height: 92vh; overflow: auto; }
.dlg-box h2 { margin: 0 0 6px; font-size: 24px; } .dlg-box .sub { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; } .opt small { display: block; color: var(--muted); font-size: 13px; } .opt.off { opacity: .55; cursor: not-allowed; }
.dlg-act { display: flex; align-items: center; gap: 12px; margin-top: 14px; } .sh-link { display: flex; gap: 8px; margin: 16px 0 10px; } .sh-link input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; }
.h-act { display: flex; gap: 6px; align-items: center; }
.promo { margin: 34px auto 0; max-width: 560px; text-align: center; background: var(--ink); color: #fff; border-radius: 22px; padding: 28px 22px; display: grid; justify-items: center; gap: 10px; } .promo p { color: #d8d1c6; margin: 0; } .promo .btn { background: var(--coral); color: #fff; margin-top: 6px; }
.share-top { text-align: center; padding: 26px 0 6px; } .share-top p { color: var(--muted); }
.stack .sl { display: block; margin-bottom: 16px; min-height: 0; animation: none; } .stack .sl.c-end { display: none; }
@media (max-width: 520px) { .sl { padding: 22px 16px 26px; } .fl-card { padding: 13px 14px; } }
