:root {
  --ink: #0f172a; --ink2: #334155; --muted: #475569; --line: #e2e8f0; --soft: #f1f5f9; --bg: #ffffff;
  --side: #0f172a; --side-ink: #cbd5e1; --side-hi: #1e293b; --amber: #f59e0b; --amber-soft: #fef3c7; --amber-ink: #92400e;
  --green: #047857; --green-soft: #d1fae5; --green-ink: #065f46; --red: #b91c1c;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; }
a { color: var(--green); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.shell { min-height: 100vh; display: flex; }

/* sidebar */
.sidebar { width: 280px; flex: 0 0 280px; background: var(--side); color: var(--side-ink); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; text-decoration: none; }
.sun { width: 32px; height: 32px; border-radius: 10px; background: var(--amber); display: inline-flex; align-items: center; justify-content: center; }
.sun-sm { width: 26px; height: 26px; border-radius: 8px; margin-right: 8px; }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; color: #f8fafc; }
.brand-by { font-size: 12px; color: #94a3b8; }
.new-chat { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--amber); color: var(--ink); font-weight: 700; padding: 12px; border-radius: 12px; text-decoration: none; margin-bottom: 10px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.group { margin: 14px 10px 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--side-ink); text-decoration: none; min-height: 44px; }
.sidebar nav a svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.sidebar nav a:hover { background: var(--side-hi); color: #f8fafc; }
.sidebar nav a.active { background: var(--side-hi); color: #f8fafc; font-weight: 600; }
.tag { margin-left: auto; font-size: 11px; }
.tag.soon { color: #fcd34d; } .tag.later { color: #94a3b8; }
.account { margin-top: auto; padding: 14px 6px 0; border-top: 1px solid var(--side-hi); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: #334155; color: #f8fafc; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.account .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.account .who b { color: #f8fafc; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account .who span { font-size: 12px; color: #94a3b8; }
.link-btn { background: none; border: 0; color: #fcd34d; font-weight: 600; font-size: 13px; padding: 10px 6px; cursor: pointer; text-decoration: none; }

/* small screens: a top bar and a sliding menu */
.topbar { display: none; }
.scrim[hidden] { display: none; }
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .topbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--side); color: #f8fafc; position: sticky; top: 0; z-index: 20; }
  .brand-sm { display: flex; align-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 30; }
}
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; color: inherit; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: rgba(148, 163, 184, .15); }

/* main */
main { flex: 1; min-width: 0; padding: 40px 24px 64px; outline: none; }
.page { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
h1 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 34px; line-height: 1.15; }
h2 { margin: 0; font-size: 20px; }
.lead { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.6; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.spread { justify-content: space-between; }
.badge { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge.green { background: var(--green-soft); color: var(--green-ink); }
.badge.amber { background: var(--amber-soft); color: var(--amber-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.amber { background: var(--amber); color: var(--ink); }
.btn.ghost { background: #fff; color: var(--ink); border-color: #cbd5e1; }
.btn.danger { background: #fff; color: var(--red); border-color: #fecaca; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.mono { font-family: 'JetBrains Mono', monospace; }
.note { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.msg { padding: 12px 14px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.msg.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--green-ink); }
.msg.info { background: var(--amber-soft); border: 1px solid #fde68a; color: var(--amber-ink); }
.msg.err { background: #fef2f2; border: 1px solid #fecaca; color: var(--red); }
label { font-size: 14px; font-weight: 500; color: var(--ink2); }
.field { display: flex; flex-direction: column; gap: 6px; }
input[type=text], input[type=email], input[type=password], textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px 14px; font-size: 16px; color: var(--ink); background: #fff; }
textarea { resize: vertical; }
.seg { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 12px; overflow: hidden; }
.seg button { border: 0; background: #fff; color: var(--ink2); padding: 10px 16px; min-height: 44px; cursor: pointer; font-weight: 500; }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; font-weight: 600; }
.bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: #10b981; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--soft); }
.keybox { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.keybox code { flex: 1 1 360px; min-width: 0; overflow-x: auto; background: #fff; border: 1px solid #d1fae5; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
pre.code { margin: 0; background: var(--ink); color: #e2e8f0; border-radius: 12px; padding: 16px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-x: auto; }
.voice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.play { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* home */
.home { min-height: calc(100vh - 104px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; }
.home .big-sun { width: 76px; height: 76px; border-radius: 22px; background: var(--amber-soft); display: flex; align-items: center; justify-content: center; }
.home h1 { font-size: 44px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.chip { background: #fff; border: 1px solid var(--line); color: var(--ink2); padding: 10px 14px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.chip.amber { background: var(--amber-soft); border-color: #fde68a; color: var(--amber-ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.ask { width: 100%; max-width: 760px; border: 1px solid #cbd5e1; border-radius: 20px; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); background: #fff; text-align: left; }
.ask textarea { border: 0; border-radius: 20px 20px 0 0; padding: 18px 20px 6px; font-size: 17px; outline: none; resize: none; }
.ask .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px 12px; }
.ask .tools .grow { flex: 1; }
.ask .dialect { background: var(--soft); border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 600; min-height: 44px; }
.ask .send { background: var(--ink); color: #fff; }
.ask .icon-btn { color: var(--ink2); }
.fine { font-size: 13px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.social { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.google-slot { min-height: 44px; display: flex; justify-content: center; }
.btn.apple { background: #000; color: #fff; border-radius: 999px; }
.divider { margin: 2px 0; text-align: center; font-size: 13px; color: var(--muted); }

.beta { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #0f172a; background: #6ee7b7; padding: 2px 7px; border-radius: 999px; margin-left: 2px; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.beta-note { margin: 0; padding: 10px 20px; background: #fef3c7; color: #92400e; font-size: 14px; line-height: 1.5; text-align: center; border-bottom: 1px solid #fde68a; }
.home { min-height: calc(100vh - 150px); }

.nav-pair { display: flex; align-items: center; gap: 2px; }
.nav-pair > a:first-child { flex: 1; }
.sidebar nav a.nav-icon { flex: 0 0 44px; width: 44px; justify-content: center; padding: 0; color: #fcd34d; }
.sidebar nav a.nav-icon:hover { background: var(--side-hi); color: #fde68a; }

.account { position: relative; }
.acct-btn { width: 100%; display: flex; align-items: center; gap: 10px; background: transparent; border: 0; color: inherit; padding: 8px 6px; border-radius: 12px; cursor: pointer; text-align: left; min-height: 52px; }
.acct-btn:hover, .acct-btn[aria-expanded=true] { background: var(--side-hi); }
.acct-btn svg { flex: 0 0 18px; color: #94a3b8; }
.avatar-img { border-radius: 999px; object-fit: cover; flex: 0 0 auto; background: #334155; }
.acct-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); background: #111827; color: #e2e8f0; border: 1px solid #334155; border-radius: 18px; box-shadow: 0 18px 44px rgba(2, 6, 23, .55); padding: 12px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.acct-menu[hidden] { display: none; }
.acct-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; border-bottom: 1px solid #1f2937; }
.acct-head .avatar, .acct-head .avatar-img { box-shadow: 0 0 0 3px #111827, 0 0 0 5px var(--amber); }
.acct-head .who { min-width: 0; display: flex; flex-direction: column; }
.acct-head .who b { color: #f8fafc; font-size: 15px; } .acct-head .who span { color: #94a3b8; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-plan { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: #1e293b; font-size: 14px; font-weight: 600; color: #fcd34d; }
.acct-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.acct-tiles a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 72px; padding: 12px; border-radius: 12px; background: #0f172a; border: 1px solid #1f2937; color: #e2e8f0; text-decoration: none; font-size: 13px; font-weight: 600; }
.acct-tiles a svg { color: var(--amber); }
.acct-tiles a:hover { border-color: var(--amber); background: #1e293b; }
.acct-out { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; background: transparent; border: 1px solid #3f1d1d; color: #fca5a5; font-weight: 600; cursor: pointer; }
.acct-out:hover { background: #2a1416; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 20px; border-radius: 14px; background: #0f172a; color: #fff; text-decoration: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 11px; opacity: .8; } .store-btn b { font-size: 18px; }
.store-btn:hover { background: #1e293b; }
.store-btn.off { background: #e2e8f0; color: #64748b; cursor: default; }

.brand-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.brand-row .brand { min-width: 0; }
.side-close { color: #94a3b8; flex: 0 0 36px; width: 36px; height: 36px; margin-top: 2px; }
.brand-row .brand { gap: 8px; padding-right: 0; }
.brand-row .brand-by { white-space: nowrap; }
.side-close:hover { color: #f8fafc; }
.side-open { position: fixed; top: 10px; left: 10px; z-index: 30; background: var(--side); color: #f8fafc; box-shadow: 0 6px 18px rgba(2, 6, 23, .25); }
.side-open:hover { background: #1e293b; }
.side-open[hidden] { display: none; }
body.side-hidden .sidebar { display: none; }
body.side-hidden .beta-note { padding-left: 64px; }
@media (max-width: 860px) {
  body.side-hidden .sidebar { display: flex; }
  .side-open { display: none; }
  body.side-hidden .beta-note { padding-left: 20px; }
}

/* chat: word answers */
.home.chatting { justify-content: flex-end; min-height: calc(100vh - 140px); }
.thread { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.thread:empty { display: none; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 18px; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble.jir { align-self: flex-start; background: #fff; border: 1px solid #e2e8f0; border-bottom-left-radius: 6px; display: flex; flex-direction: column; gap: 10px; }
.bubble.jir p { margin: 0; }
.typing { color: #64748b; font-style: italic; }
.src-note { font-size: 13px; color: #64748b; }
.w-card { border: 1px solid #f1f5f9; background: #f8fafc; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.w-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.w-ku { font-size: 20px; color: #0f172a; }
.w-tags { font-size: 12px; color: #64748b; background: #e2e8f0; border-radius: 999px; padding: 2px 8px; }
.w-meaning { font-size: 16px; color: #1e293b; }
.w-ex { font-size: 14px; color: #475569; }
.w-src { font-size: 12px; color: #94a3b8; }
.play.sm { width: 32px; height: 32px; min-height: 32px; }
.home [hidden] { display: none !important; }

.wx-now { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wx-icon { font-size: 40px; line-height: 1; }
.wx-temp { font-size: 32px; font-weight: 700; color: #0f172a; }
.wx-text { color: #475569; font-size: 14px; }
.wx-hours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.wx-h { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 58px; padding: 8px 6px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; font-size: 13px; color: #475569; }
.wx-h b { font-size: 20px; }

.ai-label { font-size: 12px; font-weight: 600; color: #b45309; background: #fef3c7; border-radius: 999px; padding: 3px 10px; align-self: flex-start; margin: 0; }
.w-card.ai { background: #fff; }
.ai-text p { margin: 0 0 6px; font-size: 16px; color: #1e293b; line-height: 1.55; }
.ai-src { margin: 4px 0 0; padding-left: 20px; font-size: 13px; }
.ai-src a { color: #0369a1; word-break: break-word; }
select.dialect { appearance: auto; cursor: pointer; }

.fb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-top: 1px solid #f1f5f9; padding-top: 8px; }
.fb-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font-size: 18px; cursor: pointer; }
.fb-btn:hover { border-color: var(--amber); }
.fb-btn:disabled, .fb-link:disabled { opacity: .45; cursor: default; }
.fb-link { border: 0; background: none; color: #0369a1; font-weight: 600; cursor: pointer; padding: 8px; }
.fb-box { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.fb-box[hidden] { display: none; }
.fb-fix { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 10px; font: inherit; }
.teach { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.teach s { color: #94a3b8; }

.card.stt { align-items: center; }
.stt-mic { width: 96px; height: 96px; border-radius: 999px; border: 0; background: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; align-self: center; box-shadow: 0 10px 28px rgba(15, 23, 42, .25); }
.stt-mic.on { background: #dc2626; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); } 50% { box-shadow: 0 0 0 16px rgba(220, 38, 38, 0); } }
.card.stt .field, .card.stt .msg, .card.stt .row { width: 100%; }

.tr-langs select { flex: 1; min-height: 44px; border: 1px solid #cbd5e1; border-radius: 12px; padding: 0 12px; font: inherit; background: #fff; }
.tr-langs { flex-wrap: nowrap; }
.tr-out { display: flex; flex-direction: column; gap: 10px; }
.tr-text { font-size: 18px; line-height: 1.6; color: #0f172a; margin: 0; white-space: pre-wrap; }
.fine.disclaimer { font-weight: 600; color: #475569; }

/* "Built with Llama" (Llama license), small in the bottom right corner; on phones at the end of the page */
.built-with { position: fixed; right: 16px; bottom: 12px; margin: 0; font-size: 11px; color: var(--muted); pointer-events: none; z-index: 1; }
@media (max-width: 720px) { .built-with { position: static; text-align: center; padding: 8px 16px 16px; order: 99; } }

/* Delete my Jîr account (#/account/delete) */
.acct-leave { display: block; text-align: center; font-size: 12px; color: var(--muted); padding: 6px 0 2px; text-decoration: underline; }
.leave .w-card { display: flex; flex-direction: column; gap: 10px; }
.leave .row { display: flex; gap: 8px; flex-wrap: wrap; }
.leave-input { display: block; width: 100%; max-width: 360px; margin: 8px 0; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; }
.btn.danger-solid { background: #e11d48; color: #fff; border-color: #e11d48; }
.btn.danger-line { background: transparent; color: #be123c; border: 1.5px solid #fda4af; }

/* Spell check (#/spell) */
.spell-text { line-height: 2; white-space: pre-wrap; margin: 8px 0 0; }
.spell-bad { all: unset; cursor: pointer; text-decoration: underline wavy #e11d48; text-underline-offset: 4px; }
.spell-bad.unknown { text-decoration-color: #f59e0b; }
.spell-open { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; background: #fff7ed; border-radius: 8px; padding: 0 4px; }
.spell-open s { color: #be123c; }
.spell-menu { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.spell-menu .chip { padding: 2px 10px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; font: inherit; }

/* Kurdish writing help under every text field (kurdishAssist in app.js) */
.ku-assist { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.ku-letters { display: flex; gap: 4px; flex-wrap: wrap; }
.ku-letters button { min-width: 34px; height: 30px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ku-letters button:hover { background: #fef3c7; }
.ku-hint[hidden] { display: none; }
.ku-hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 6px 10px; font-size: 14px; }
.ku-hint b { color: #b45309; }
.ku-hint .chip { padding: 2px 12px; border-radius: 999px; border: 1px solid #f59e0b; background: #f59e0b; color: #0f172a; font-weight: 700; cursor: pointer; }
.ku-hint-x { margin-left: auto; border: 0; background: none; font-size: 18px; cursor: pointer; color: #64748b; }
.chip { padding: 4px 12px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; font: inherit; cursor: pointer; }

/* chat history in the sidebar (ChatGPT / Claude style) */
.history { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.hist-head { display: flex; align-items: center; justify-content: space-between; }
.hist-head .group { margin: 10px 10px 4px; }
.hist-toggle { width: 32px; height: 28px; border: 0; background: none; color: #94a3b8; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hist-toggle:hover { background: var(--side-hi); color: #f8fafc; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.hist li { display: flex; align-items: center; border-radius: 10px; }
.hist li:hover, .hist li.active { background: var(--side-hi); }
.hist a { flex: 1; min-width: 0; padding: 9px 10px; color: var(--side-ink); text-decoration: none; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist li.active a { color: #f8fafc; font-weight: 600; }
.hist-x { flex: 0 0 28px; height: 28px; margin-right: 4px; border: 0; background: none; color: #94a3b8; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; opacity: 0; }
.hist li:hover .hist-x, .hist li.active .hist-x, .hist-x:focus-visible { opacity: 1; }
.hist-x:hover { color: #fecaca; }
@media (hover: none) { .hist-x { opacity: 1; } }
.hist-more { border: 0; background: none; color: #94a3b8; font-size: 13px; padding: 8px 10px; cursor: pointer; text-align: left; }
.hist-more:hover { color: #f8fafc; }
.history:empty { flex: 0 0 auto; }
/* Learn Kurdish, Documents and the account always at the bottom, also before the first chat */
.side-links { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--side-hi); }
.side-links + .account { margin-top: 8px; }

/* the chat: a greeting and the box in the middle; in a conversation the box stays at the bottom */
.home .hello { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 40px; margin: 0; }
.hello-sun { width: 52px; height: 52px; border-radius: 16px; background: var(--amber-soft); display: inline-flex; align-items: center; justify-content: center; }
.composer { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.home.chatting { justify-content: flex-start; min-height: calc(100vh - 150px); padding-bottom: 0; }
.home.chatting .thread { flex: 1; }
.home.chatting .composer { position: sticky; bottom: 0; padding: 18px 0 10px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 22px); margin-top: auto; }
.home.chatting .chips { display: none; }
.ask textarea { width: 100%; display: block; min-height: 56px; max-height: 220px; padding: 18px 20px 4px; line-height: 1.5; }
.ask .ku-assist { padding: 0 14px; }
.ask .ku-letters { display: none; }
.ask.letters-on .ku-letters { display: flex; }
.ask .letters-btn { font-weight: 700; font-size: 17px; width: 40px; height: 40px; }
.ask .letters-btn[aria-pressed=true] { background: var(--amber-soft); color: var(--amber-ink); }
.ask .icon-btn[disabled] { opacity: .45; cursor: default; }
.ask .send { width: 40px; height: 40px; border-radius: 999px; }
.composer .disclaimer { margin: 0; font-weight: 400; font-size: 12px; color: #64748b; text-align: center; }
main:has(.home.chatting) { padding-bottom: 0; }
