/* סטודיו וידאו - פריסה בלבד. כל הצבעים, הזכוכית והתנועה מגיעים מ-glass.css (Glass Pane) */
[hidden] { display: none !important; }
input, textarea { font: inherit; color: inherit; }
.err { color: var(--red); min-height: 1.3em; font-size: var(--fs-sub); text-align: center; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent-text); animation: spin 1s linear infinite; flex: none; }
.spinner.big { width: 34px; height: 34px; border-width: 3px; }

/* ---------- כניסה ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(380px, 100%); border-radius: 32px; padding: 32px 26px 22px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-align: center; animation: view-in .6s var(--spring) both; }
.login-card .h1 { margin-top: 4px; }
.login-card .lede { margin: 0 0 10px; }
.rail-logo.big { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto; }
.rail-logo.big svg.i { width: 30px; height: 30px; }
.field { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: var(--r-chip); color: var(--text-3); transition: border-color .2s; }
.field:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); }
.btn.wide { width: 100%; justify-content: center; height: 46px; margin-top: 6px; font-size: 14px; }

/* ---------- סרגל ועליון ---------- */
.rail label.rail-item { cursor: pointer; }
.rail .avatar, .who .avatar { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 70%, white), var(--accent)); color: #fff; font-weight: 700; }
.topbar { justify-content: space-between; }
.who { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 7px; padding-inline: 7px 16px; border-radius: var(--r-pill); font-size: 13px; color: var(--text-2); }
.who b { color: var(--text); }
.pc-pill { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--text-2); }
.pc-pill .led { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.pc-pill.on .led { background: var(--green); box-shadow: 0 0 10px var(--green); }
.pc-pill.on { color: var(--text); }

/* ---------- בית ---------- */
.hero { position: relative; overflow: hidden; border-radius: 30px; padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.hero::before { content: ""; position: absolute; inset-block-start: -40%; inset-inline-start: -10%; width: 60%; height: 180%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); pointer-events: none; }
.hero > * { position: relative; }
.hero-text { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 600; }
.eyebrow svg.i { width: 14px; height: 14px; }
.hero-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 14px 0 8px; }
.hero .lede { margin: 0 0 20px; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats { display: flex; flex-direction: column; gap: 4px; flex: none; min-width: 210px; padding: 8px; border-radius: 22px; background: rgba(0,0,0,.18); border: 1px solid var(--stroke); }
.hstat { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; }
.hstat + .hstat { border-top: 1px solid var(--divider); border-radius: 0; }
.hstat-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--glass-raised); color: var(--accent-text); flex: none; }
.hstat-icon svg.i { width: 17px; height: 17px; }
.hstat-value { font-size: 22px; font-weight: 700; line-height: 1.1; }
.hstat-label { font-size: 12px; color: var(--text-2); }

.section-head { display: flex; align-items: baseline; gap: 10px; margin: 0 4px 14px; }
.section-title { font-size: 18px; font-weight: 700; margin: 0; }

.projects-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.projects-grid:empty { display: none; }
.pcard { border-radius: var(--r-card); padding: 8px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; text-align: start; color: inherit; font: inherit; transition: transform .4s var(--spring), border-color .3s, box-shadow .4s; }
.pcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--stroke)); box-shadow: 0 18px 44px rgba(0,0,0,.4), 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.pcard:active { transform: scale(.98); }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: rgba(0,0,0,.4); display: grid; place-items: center; color: var(--text-3); }
.thumb video, .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--spring); }
.pcard:hover .thumb video, .pcard:hover .thumb img { transform: scale(1.04); }
.thumb > svg.i { width: 34px; height: 34px; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 35%, transparent 60%, rgba(0,0,0,.4)); pointer-events: none; }
.badge { position: absolute; z-index: 1; inset-block-start: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); }
.badge svg.i { width: 13px; height: 13px; }
.badge.done svg.i { color: var(--green); }
.badge.busy { color: var(--orange, #ffb25b); }
.badge .spinner { width: 11px; height: 11px; border-width: 1.5px; }
.play { position: absolute; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: color-mix(in srgb, var(--accent) 80%, transparent); box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 50%, transparent); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--spring); }
.play svg.i { width: 20px; height: 20px; fill: currentColor; margin-inline-start: 3px; }
[dir="rtl"] .play svg.i { margin-inline: 0 3px; transform: none; }
.pcard:hover .play { opacity: 1; transform: none; }
.pcard-body { padding: 10px 8px 6px; min-width: 0; }
.pcard-title { font-size: 15px; font-weight: 650; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; overflow-wrap: anywhere; }
.pcard-meta { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.pcard-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.pcard-meta svg.i { width: 13px; height: 13px; color: var(--text-3); }
.pcard-time { margin-inline-start: auto; color: var(--text-3); }

.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 20px; border-radius: var(--r-card); border: 1.5px dashed var(--stroke-hi); text-align: center; cursor: pointer; color: var(--text-2); transition: border-color .3s, background .3s; }
.dropzone b { color: var(--text); font-size: 15px; }
.dropzone .round { width: 56px; height: 56px; margin-bottom: 6px; }
.dropzone:hover, .main.over .dropzone { border-color: var(--accent); background: var(--accent-soft); }
.main.over .projects-grid { outline: 2px dashed var(--accent); outline-offset: 8px; border-radius: var(--r-card); }

/* ---------- מסך פרויקט ---------- */
.title-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.title-wrap .h1 { cursor: text; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title-wrap .lede { margin: 0; }
[dir="rtl"] #back svg.i { scale: 1; }
.studio { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); grid-template-areas: "stage chat" "files chat"; align-items: start; }
.stage-card { grid-area: stage; }
.chat-card { grid-area: chat; display: flex; flex-direction: column; height: calc(100vh - 170px); min-height: 520px; position: sticky; inset-block-start: 16px; }
.files-card { grid-area: files; }
.screen { border-radius: 18px; overflow: hidden; background: #000; display: grid; place-items: center; }
.screen video, .screen img { width: 100%; max-height: 58vh; display: block; object-fit: contain; background: #000; }
.noplay { padding: 80px 16px; color: var(--text-3); }
.versions { margin-top: 12px; flex-wrap: wrap; border-radius: var(--r-chip); }
.versions:empty { display: none; }

/* צ'אט */
.messages { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 2px 10px; }
.msg { flex-shrink: 0; padding: 10px 14px; border-radius: 18px; line-height: 1.6; white-space: pre-wrap; max-width: 90%; overflow-wrap: anywhere; font-size: 13.5px; animation: rise .4s var(--spring) both; }
.msg.user { align-self: flex-start; color: #fff; border-end-start-radius: 6px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, white), var(--accent)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.msg.assistant { align-self: flex-end; border-end-end-radius: 6px; background: var(--glass-raised); border: 1px solid var(--stroke); box-shadow: inset 0 1px 0 var(--stroke-hi); }
.msg.act, .msg.stage { align-self: flex-end; padding: 0 6px; font-size: 12px; line-height: 1.5; color: var(--text-3); display: block; }
.msg.act::before, .msg.stage::before { content: ""; display: inline-block; vertical-align: middle; margin-inline-end: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-text); opacity: .7; }
.msg.error { align-self: flex-end; color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); border: 1px solid color-mix(in srgb, var(--red) 25%, transparent); }
.msg.warn { align-self: center; color: var(--yellow); background: color-mix(in srgb, var(--yellow) 12%, transparent); font-size: 12.5px; }
.msg code { background: rgba(255,255,255,.1); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; direction: ltr; unicode-bidi: isolate; }
.msg.user code { background: rgba(255,255,255,.2); }
.status { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; padding-inline: 14px 8px; border-radius: var(--r-pill); font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.status .btn { margin-inline-start: auto; }
.composer { border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s; }
.composer:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.composer textarea { resize: none; background: none; border: 0; outline: 0; min-height: 64px; padding: 4px 6px; line-height: 1.55; }
.composer-actions { display: flex; align-items: center; gap: 8px; }
.composer-actions .hint { margin-inline-start: auto; font-size: 11.5px; }

/* חומרים */
.files li { display: flex; align-items: center; gap: 12px; padding: 9px 2px; }
.ftile { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 75%, white), var(--c)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.ftile svg.i { width: 17px; height: 17px; }
.files .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; cursor: pointer; }
.files .fname small { display: block; font-weight: 500; color: var(--text-2); font-size: 12px; }
.files .tool { width: 32px; height: 32px; }
.files .tool svg.i { width: 16px; height: 16px; }
.sub-head { margin: 14px 0 0; }

/* ---------- מגירות ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; justify-content: flex-start; padding: 16px; animation: fade .3s ease both; }
.sheet-bg.center { justify-content: center; align-items: center; }
@keyframes fade { from { opacity: 0; } }
.sheet, .upload-card { background: var(--sheet-bg, rgba(22,18,30,.82)); }
.sheet { width: min(480px, 100%); border-radius: 28px; padding: 18px; display: flex; flex-direction: column; gap: 12px; animation: sheet-in .5s var(--spring) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateX(30px); filter: blur(6px); } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.crumbs button { height: 28px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.crumbs button:hover { background: var(--glass-raised); }
.crumbs span { color: var(--text-3); }
.lib-list { flex: 1; min-height: 0; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.lib-list li { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 14px; cursor: pointer; border-top-color: transparent !important; transition: background .2s; }
.lib-list li:hover { background: var(--glass-raised); }
.lib-list li.sel { background: var(--accent-soft); }
.lib-list .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lib-list .fname small { display: block; font-weight: 500; color: var(--text-2); font-size: 12px; }
.lib-list .check { pointer-events: none; }
.lib-screen video { max-height: 28vh; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--divider); }
.prompts-list { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.p-section { font-size: var(--fs-micro); font-weight: 700; color: var(--accent-text); margin: 10px 4px 0; letter-spacing: .02em; }
.p-item { text-align: start; border-radius: var(--r-chip); padding: 12px 14px; transition: background .2s, transform .25s var(--spring); }
.p-item:hover { background: var(--glass-hover); }
.p-item:active { transform: scale(.98); }
.p-item b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.p-item span { color: var(--text-2); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.wide-sheet { width: min(760px, 100%); }
.p-grid { display: flex; flex-direction: column; gap: 8px; }
.wide-sheet .p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.wide-sheet .p-item { display: flex; flex-direction: column; }
.wide-sheet .p-item .p-tags { margin-top: auto; padding-top: 10px; }
.p-item .p-desc { -webkit-line-clamp: 1; }
.p-art { aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden; margin: -4px -6px 10px; border: 1px solid var(--stroke); }
.p-art svg { display: block; width: 100%; height: 100%; transition: transform .5s var(--spring); }
.p-item:hover .p-art svg { transform: scale(1.05); }
.wide-sheet .p-item .p-desc { -webkit-line-clamp: 2; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.p-tags i { font-style: normal; font-size: 11px; font-weight: 600; height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: var(--r-pill); border: 1px solid var(--stroke); color: var(--text-2); background: rgba(255,255,255,.03); }
.p-tags i.lvl { border-color: transparent; color: color-mix(in srgb, var(--c) 70%, white); background: color-mix(in srgb, var(--c) 18%, transparent); }
/* Prompt Motion ו-Freesound */
.sheet-body { display: flex; flex-direction: column; gap: 12px; min-height: 0; flex: 1; }
.search-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-row .field { flex: 1; min-width: 200px; height: 42px; }
.motion-grid { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; align-content: start; }
.m-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-chip); text-align: start; color: inherit; font: inherit; cursor: pointer; transition: background .2s, transform .25s var(--spring); }
.m-card:hover { background: var(--glass-hover); }
.m-card:active { transform: scale(.98); }
.m-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); }
.m-icon svg.i { width: 16px; height: 16px; }
.m-text { flex: 1; min-width: 0; text-align: left; }
.m-text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.35; }
.m-text small { color: var(--text-3); font-size: 11.5px; }
.m-kind { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); color: var(--text-2); background: rgba(255,255,255,.06); flex: none; }
.m-kind.skill { color: color-mix(in srgb, var(--tag-teal) 75%, white); background: color-mix(in srgb, var(--tag-teal) 16%, transparent); }
#motion-detail .screen video { max-height: 34vh; }
#motion-back { align-self: flex-start; }
.motion-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; direction: ltr; justify-content: flex-end; }
.motion-prompt { margin: 0; padding: 12px 14px; border-radius: var(--r-chip); white-space: pre-wrap; overflow: auto; max-height: 24vh; font: 12.5px/1.6 ui-monospace, Consolas, monospace; color: var(--text-2); text-align: left; }
.fs-list { flex: 1; min-height: 0; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.fs-list li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; }
.fs-list .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }
.fs-list .fname small { display: block; font-weight: 500; color: var(--text-2); font-size: 11.5px; }
.fs-list .tag { font-style: normal; flex: none; }
.fs-play { color: var(--accent-text); }
.fs-play svg.i { fill: currentColor; }
.fs-setup { flex-direction: column; align-items: flex-start !important; gap: 4px; padding: 14px !important; border-radius: var(--r-chip); background: var(--accent-soft); }
.fs-setup span { color: var(--text-2); font-size: 13px; }
#fs-more { align-self: center; }
.upload-card { border-radius: 28px; padding: 28px 32px; width: min(360px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; overflow-wrap: anywhere; }
.upload-card .progress { width: 100%; margin-top: 6px; }

/* ---------- מובייל ---------- */
/* ---------- טלפון: כלים עליונים, בחירה מהירה, כיתוב ---------- */
.top-tools { display: flex; align-items: center; gap: 8px; }
button.pc-pill { cursor: pointer; border: 0; }
#bell.on { color: var(--text); }
#bell.on .i { color: var(--accent); }
.quick { display: flex; gap: 6px; overflow-x: auto; padding: 0 2px 8px; scrollbar-width: none; flex-shrink: 0; }
.quick::-webkit-scrollbar { display: none; }
.qchip { flex-shrink: 0; height: 34px; padding: 0 13px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--glass-raised); border: 1px solid var(--stroke); transition: background .2s, color .2s, transform .25s var(--spring); }
.qchip:active { transform: scale(.95); }
.qchip[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 26%, transparent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--text); }
.picked { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 0; }
.chip-on { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px 0 6px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); border: 0; }
.chip-on .i { width: 14px; height: 14px; opacity: .7; }
.p-item[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent); }
.p-item .p-when { display: block; margin-top: 6px; font-size: 11.5px; color: var(--text-3); -webkit-line-clamp: 2; }
.caption-box { margin-top: 12px; border-radius: var(--r-chip); padding: 12px 14px; }
.caption-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13.5px; }
#caption-text { margin: 0; white-space: pre-line; color: var(--text-2); font-size: 13px; line-height: 1.6; max-height: 9.6em; overflow: auto; }
#upload-hint { font-size: 12px; text-align: center; max-width: 280px; line-height: 1.5; }

@media (max-width: 1000px) {
  .studio { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "chat" "files"; }
  .chat-card { position: static; height: 70vh; min-height: 440px; }
}
@media (max-width: 640px) {
  .topbar { margin-block-start: 0; }
  .who span { display: none; }
  .who { padding: 0 7px; }
  .hero { flex-direction: column; align-items: stretch; padding: 22px 18px; gap: 18px; }
  .hero-stats { flex-direction: row; min-width: 0; }
  .hstat { flex: 1; flex-direction: column; text-align: center; gap: 6px; padding: 8px 4px; }
  .hstat + .hstat { border-top: 0; border-inline-start: 1px solid var(--divider); }
  .hero .actions > * { flex: 1; justify-content: center; }
  .sheet-bg { padding: 10px; align-items: flex-end; }
  .sheet { width: 100%; max-height: 85vh; }
  .page-head .actions { width: 100%; }
  .page-head .actions > * { flex: 1; justify-content: center; }
  .composer-actions .hint { display: none; }
  .top-tools { gap: 6px; }
  .top-tools .pc-pill { padding: 0 12px; }
  #install span, #bell span { display: none; }
  .stage-card .card-head { flex-wrap: wrap; }
  .chat-card { height: auto; min-height: 0; }
  .chat-card .messages { max-height: 46vh; min-height: 160px; }
  .qchip { height: 38px; font-size: 13.5px; }
  /* אפקטים בטלפון: שני טורים, ציור קטן, ובלי התגיות */
  #effects .p-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  #effects .p-item { padding: 8px; }
  #effects .p-art { margin: 0 0 8px; border-radius: 10px; }
  #effects .p-item b { font-size: 12.5px; }
  #effects .p-item .p-desc, #effects .p-item .p-tags { display: none; }
  #effects .p-item .p-when { margin-top: 2px; font-size: 11px; -webkit-line-clamp: 3; }
  #effects .sheet-foot { position: sticky; bottom: 0; }
  #effects .sheet { overflow: auto; }
  .composer-actions #send { margin-inline-start: auto; }
}
