@font-face{font-family:Almarai;src:url(/fonts/Almarai-Regular.ttf)format("truetype");font-weight:400;font-display:swap}@font-face{font-family:Almarai;src:url(/fonts/Almarai-Bold.ttf)format("truetype");font-weight:700;font-display:swap}:root{--ground:#f5f5f7;--surface:#fff;--ink:#1d1d1f;--muted:#6e6e73;--accent:#0071e3;--accent-ink:#fff;--edge:#00000014;--bubble-me:#0071e3;--bubble-me-ink:#fff;--bubble-them:#fff;--warn:#b3261e;--ease-enter:cubic-bezier(.22, 1, .36, 1);--ease-exit:cubic-bezier(.4, 0, 1, 1);--ease-move:cubic-bezier(.65, 0, .35, 1);--duration-enter:.22s;--duration-exit:.176s}@media (prefers-color-scheme:dark){:root{--ground:#000;--surface:#1c1c1e;--ink:#f5f5f7;--muted:#a1a1a6;--edge:#ffffff1f;--bubble-them:#1c1c1e;--accent:#0a84ff;--bubble-me:#0a84ff;--warn:#ff6961}}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--ground);color:var(--ink);-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums;font-family:Almarai,-apple-system,BlinkMacSystemFont,SF Pro Text,system-ui,sans-serif}button{font:inherit;color:inherit;cursor:pointer}button:active:not(:disabled){scale:.97}button:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app{flex-direction:column;max-width:720px;height:100dvh;margin:0 auto;display:flex}.top{padding:calc(10px + env(safe-area-inset-top)) 16px 10px;justify-content:space-between;align-items:center;gap:12px;display:flex}.top img{width:auto;height:22px}.top select{background:var(--surface);border:1px solid var(--edge);font:inherit;color:var(--ink);border-radius:999px;min-height:32px;padding:6px 12px;font-size:13px}.feed{scroll-behavior:smooth;flex-direction:column;flex:1;gap:10px;padding:8px 16px 16px;display:flex;overflow-y:auto}.welcome{text-align:center;flex-direction:column;align-items:center;gap:18px;margin:auto;padding:24px 8px;display:flex}.welcome img{width:56px;height:56px}.welcome h1{text-wrap:balance;margin:0;font-size:22px;font-weight:700}.chips{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.chip{background:var(--surface);border:1px solid var(--edge);border-radius:999px;min-height:40px;padding:9px 14px;font-size:14px}.row{animation:msg-in var(--duration-enter) var(--ease-enter) backwards;flex-direction:column;display:flex}.row.me{align-items:flex-end}.row.them{align-items:flex-start}.bubble{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:20px;max-width:85%;padding:10px 14px;font-size:15px;line-height:1.6}.bubble p{text-align:start;margin:0}.bubble p+p{margin-top:10px}.me .bubble{background:var(--bubble-me);color:var(--bubble-me-ink)}.them .bubble{background:var(--bubble-them);border:1px solid var(--edge)}.bubble.urgent{border-color:var(--warn)}.bubble,.card,.fix{text-align:start}.card{background:var(--surface);border:1px solid var(--edge);border-radius:18px;width:min(85%,420px);margin-top:6px;padding:12px 14px;font-size:14px}.card h3{margin:0 0 8px;font-size:14px;font-weight:700}.slots{flex-wrap:wrap;gap:6px;display:flex}.slots button{background:var(--ground);border:1px solid var(--edge);border-radius:12px;min-height:40px;padding:8px 10px;font-size:13px}.kv{grid-template-columns:auto 1fr;gap:4px 12px;display:grid}.kv dt{color:var(--muted)}.kv dd{margin:0}.card a{color:var(--accent);font-weight:700;text-decoration:none}.tag{background:var(--ground);color:var(--muted);border-radius:999px;margin-top:6px;padding:3px 9px;font-size:12px;display:inline-block}.tag.urgent{color:var(--warn)}.rate{opacity:.55;transition:opacity .15s var(--ease-enter);gap:2px;margin-top:2px;display:flex}.rate:hover,.rate.on{opacity:1}.rate button{background:0 0;border:0;border-radius:10px;min-width:44px;min-height:36px;font-size:15px}.rate button[aria-pressed=true]{background:var(--surface)}.fix{gap:6px;width:min(85%,420px);margin-top:4px;display:flex}.fix input{border:1px solid var(--edge);font:inherit;background:var(--surface);color:var(--ink);border-radius:12px;flex:1;padding:8px 10px;font-size:14px}.fix button{background:var(--ink);color:var(--ground);border:0;border-radius:12px;padding:0 12px}.typing{background:var(--bubble-them);border:1px solid var(--edge);border-radius:20px;justify-content:center;align-self:flex-start;gap:4px;width:64px;padding:14px;display:flex}.typing i{background:var(--muted);width:6px;height:6px;animation:dot 1.1s infinite var(--ease-move);border-radius:50%}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}.composer{padding:10px 16px calc(10px + env(safe-area-inset-bottom));align-items:flex-end;gap:8px;display:flex}.composer textarea{resize:none;border:1px solid var(--edge);font:inherit;background:var(--surface);max-height:140px;color:var(--ink);border-radius:22px;flex:1;padding:11px 16px;font-size:15px;line-height:1.4}.composer button{background:var(--accent);width:44px;height:44px;color:var(--accent-ink);border:0;border-radius:50%;flex:none;place-items:center;display:grid}.composer button:disabled{opacity:.4}.scrim{animation:fade-in var(--duration-enter) var(--ease-enter) backwards;z-index:10;background:#00000052;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{background:var(--surface);width:100%;max-width:400px;animation:pop-in var(--duration-enter) var(--ease-enter) backwards;border-radius:22px;flex-direction:column;gap:14px;padding:22px;display:flex}.modal p{margin:0;line-height:1.7}.modal button{background:var(--accent);color:var(--accent-ink);border:0;border-radius:14px;min-height:44px;padding:12px;font-weight:700}.err{color:var(--warn);align-self:center;font-size:13px}@keyframes msg-in{0%{opacity:0;transform:translateY(6px)}}@keyframes fade-in{0%{opacity:0}}@keyframes pop-in{0%{opacity:0;transform:scale(.95)}}@keyframes dot{0%,80%,to{opacity:.3}40%{opacity:1}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:1ms!important;animation-duration:1ms!important;animation-iteration-count:1!important}button:active:not(:disabled){scale:1}}
