@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap");
:root { color-scheme: light; --bg: #f3f6fb; --fg: #0f1f3d; --muted: #5a6782; --accent: #14284b; --accent2: #f2a541;
	--border: #d5dceb; }
.welcome-img { display: block; width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 12px; }
:root {
	--logo: 1; }
.avatar.logo { background: #14284b; color: #fff; font-weight: 700; letter-spacing: .5px; border: 2px solid #fff; box-shadow: 0 0 0 2px #14284b;
	--x: 1; --radius: 18px; --font: "Outfit", sans-serif; --card: #fff; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 20% 0%, #d6ebe3, var(--bg) 60%); min-height: 100vh; color: var(--fg); font-family: var(--font); }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.app { min-height: 100vh; }
.screen { max-width: 480px; margin: 0 auto; padding: 16px 16px 110px; }
.screen.wide { max-width: 80rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600;
	cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn:disabled { opacity: .6; }
.input { width: 100%; min-height: 48px; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; color: var(--fg); }
.link { background: none; border: 0; color: var(--muted); min-height: 44px; cursor: pointer; text-decoration: underline; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 8px 0 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 22px; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 20px; line-height: 1.4; animation: pop .25s ease; }
.bubble.bot { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.me { background: var(--accent); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; white-space: pre-wrap; }
.bubble.done { display: flex; flex-direction: column; gap: 12px; border-color: var(--accent); }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.composer { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--accent); background: #fff; color: var(--accent); font-weight: 600; cursor: pointer; }
.chip:active { background: var(--accent); color: #fff; }
.row-in { display: flex; gap: 8px; align-items: flex-end; }
.send { width: 48px; height: 48px; padding: 0; flex: none; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; background: #fff; border-top: 1px solid var(--border);
	padding: 6px 8px max(8px, env(safe-area-inset-bottom)); }
.tabbar button { flex: 1; max-width: 240px; min-height: 56px; border: 0; background: none; color: var(--muted); display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 2px; font-size: .8rem; cursor: pointer; border-radius: 12px; }
.tabbar button span { font-size: 1.3rem; }
.tabbar button.on { color: var(--accent); font-weight: 700; background: #e3f1ec; }
.lock { max-width: 420px; margin: 40px auto; }
.inbox-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.inbox-head h2 { margin: 0; flex: 1; }
.msgs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.msg { display: flex; flex-direction: column; gap: 6px; }
.msg.is-done { opacity: .55; }
.msg-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.reason { font-weight: 600; color: var(--accent); }
.details { margin: 0; white-space: pre-wrap; }
.tag { font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: #e3f1ec; }
.tag.urgent { background: #fde3c4; color: #8a4b00; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.badge { padding: 4px 12px; border-radius: 999px; background: var(--accent2); color: #3b2500; font-weight: 600; font-size: .85rem; }
.loading { display: flex; justify-content: center; padding: 16px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: var(--border); border-radius: 8px; min-height: 16px; }
.empty { text-align: center; padding: 32px; color: var(--muted); }
.empty-title { font-weight: 600; color: var(--fg); }
.alert { padding: 12px 14px; border-radius: 12px; }
.alert-error { background: #fde4e1; color: #8c1d12; }
.list { list-style: none; padding: 0; margin: 0; } .list-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.file-pick { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.attach { margin-top: 8px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 12px; word-break: break-word; }
