:root { --bg:#F6F7F4; --ink:#14181F; --grey:#5B6472; --line:#E1E4E9; --blue:#1F4FD8; --amber:#9A4A08; --green:#1D6B3A; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
.top { display: flex; justify-content: space-between; align-items: center; max-width: 520px; margin: 0 auto; padding: 12px 20px; }
.brand { font-weight: 800; font-size: 24px; color: var(--blue); text-decoration: none; }
.top-actions { display: flex; gap: 4px; }
.link { background: none; border: none; color: var(--blue); font-weight: 600; min-height: 44px; padding: 0 10px; }
main { max-width: 520px; margin: 0 auto; padding: 8px 20px 120px; display: flex; flex-direction: column; gap: 18px; }
h1 { font-size: 24px; line-height: 1.2; margin: 0; }
h2 { font-size: 17px; margin: 0; }
p { margin: 0; }
.muted { color: var(--grey); font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > input { min-width: 0; flex: 1; }
.between { justify-content: space-between; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card.ai { border-color: #C8D4F5; }
.badge { font-size: 12px; font-weight: 700; color: var(--blue); background: #E8ECF8; border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.btn { white-space: nowrap; min-height: 48px; border-radius: 12px; border: 1px solid var(--blue); background: #fff; color: var(--blue); font-weight: 700; padding: 0 16px; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.big { white-space: normal; min-height: 150px; font-size: 20px; border-radius: 20px; }
.btn:disabled { opacity: .55; }
.small { background: none; border: none; color: var(--grey); font-size: 13px; text-decoration: underline; min-height: 44px; padding: 0 4px; }
label { font-size: 13px; font-weight: 700; color: var(--grey); }
input[type=text], input[type=email], input[type=tel], textarea { width: 100%; border: 1px solid #C9CED6; border-radius: 12px; padding: 12px 14px; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.thumb { width: 72px; height: 72px; border-radius: 14px; background: #E8ECF8; object-fit: contain; flex-shrink: 0; }
.score { font-size: 26px; font-weight: 800; }
.stars { color: var(--amber); letter-spacing: 2px; white-space: nowrap; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #E9EBEF; border-radius: 12px; padding: 4px; }
.tab { min-height: 44px; border: none; border-radius: 9px; background: transparent; color: #444C59; font-weight: 700; }
.tab[aria-selected=true] { background: #fff; color: var(--ink); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14px; }
.good { color: var(--green); font-weight: 700; }
.bad { color: var(--amber); font-weight: 700; }
.bubble { border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.bubble.ai { background: #EEF1FA; }
.bubble.human { background: #EEF6F0; }
.bubble .who { font-size: 12px; font-weight: 700; }
.bubble.ai .who { color: var(--blue); }
.bubble.human .who { color: var(--green); }
.starpick { display: flex; gap: 6px; }
.starpick button { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 26px; color: #8A93A1; }
.starpick button[aria-pressed=true] { color: var(--amber); }
.bar { position: fixed; inset-inline: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); }
.bar-inner { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
#reader { width: 100%; border-radius: 16px; overflow: hidden; background: #0E1116; min-height: 260px; }
.toast { position: fixed; inset-inline: 20px; bottom: 96px; max-width: 480px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; text-align: center; z-index: 5; }
.notice { background: #FFF6E5; border: 1px solid #F0D9A8; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
[hidden] { display: none !important; }
