/* User reference: lernen.development-zoning.de / bot-* chat. Local DSDR tokens. */
.view[data-view="tutor"]{display:flex;flex-direction:column;padding:.75rem var(--gutter);overflow:hidden}
.bot-chat-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:100%;max-width:56rem;min-height:0;flex:1;background:var(--white);border:1px solid var(--line);border-radius:24px;overflow:hidden;margin:0 auto}
.bot-chat-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.8rem;border-bottom:1px solid var(--line);min-width:0}
.bot-chat-identity{display:flex;align-items:center;gap:.65rem;min-width:0}
.bot-chat-identity>div{min-width:0}
.bot-chat-identity h1{font-size:1rem;line-height:1.3;letter-spacing:-.025em;text-wrap:initial}
.bot-chat-identity p{display:flex;gap:.3rem;align-items:center;font-size:.75rem;color:var(--ink-soft);margin-top:.15rem}
.bot-avatar{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:50%;background:var(--action-bg);color:#fff}
.bot-avatar .svg-icon{width:24px;height:24px}
.bot-ready-dot{width:6px;height:6px;flex:none;border-radius:50%;background:var(--ink-soft)}
.bot-ready-dot.is-ready{background:var(--green)}
.bot-chat-actions{display:flex;gap:.25rem;flex:none}
.bot-header-button{display:grid;justify-items:center;align-content:center;gap:.1rem;background:transparent;border:0;color:var(--accent);min-height:48px;min-width:48px;max-width:72px;padding:.2rem;cursor:pointer;font:inherit;-webkit-tap-highlight-color:transparent}
.bot-header-button>span{font:400 26px/1 var(--font)}
.bot-header-button .svg-icon{width:24px;height:24px}
.bot-header-button small{font-size:.75rem;line-height:1.25;color:var(--ink-soft)}
.bot-header-button[aria-expanded="true"]{background:var(--accent-wash);border-radius:12px}
.bot-header-button:disabled{opacity:.5;cursor:wait}
.bot-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:1rem;scroll-padding:1rem}
.bot-scroll:focus:not(:focus-visible){outline:none}
.bot-welcome{text-align:center;display:grid;justify-items:center;gap:1rem;padding:1.25rem .5rem 1rem}
.bot-welcome-mark{color:var(--accent);background:var(--accent-wash);width:52px;height:52px;display:grid;place-items:center;border-radius:18px}
.bot-welcome-mark .svg-icon{width:28px;height:28px}
.bot-welcome h2{font-size:clamp(1.7rem,7vw,2.2rem);line-height:1.2;letter-spacing:-.04em;max-width:15ch}
.bot-welcome p{color:var(--ink-soft);font-size:.85rem;line-height:1.5;max-width:32ch}
.bot-composer{padding:.75rem 1rem;background:var(--white);margin:0;border-top:1px solid var(--line)}
.bot-scroll>.bot-composer{border:0;padding:.5rem 0}
.bot-input-row{display:flex;align-items:flex-end;gap:.5rem;padding:.45rem;border:1px solid var(--accent-line);border-radius:24px;background:var(--white)}
.bot-input-row:has(:focus-visible){outline:2px solid var(--accent);outline-offset:1px}
.bot-input-row textarea{flex:1;min-width:0;resize:none;min-height:44px;max-height:140px;overflow-y:auto;border:0;background:transparent;color:var(--ink);font:400 16px/1.5 var(--font);padding:.65rem .5rem;outline:none}
.bot-input-row textarea::placeholder{color:var(--ink-soft)}
.bot-send{display:grid;place-items:center;flex:none;width:48px;height:48px;min-width:48px;border:0;border-radius:50%;background:var(--action-bg);color:#fff;cursor:pointer}
.bot-send .svg-icon{width:24px;height:24px;transform:rotate(-90deg)}
.bot-send:disabled{opacity:.45;cursor:not-allowed}
.bot-composer-meta{display:flex;justify-content:space-between;gap:1rem;color:var(--ink-soft);font-size:.75rem;line-height:1.35;margin-top:.4rem}
.bot-counter{font-variant-numeric:tabular-nums;flex:none}
.bot-suggestions{display:grid;gap:.55rem;margin:.6rem 0}
.bot-suggestions>button{display:grid;grid-template-columns:40px minmax(0,1fr) 20px;align-items:center;gap:.65rem;padding:.65rem;border:1px solid var(--line);border-radius:18px;background:var(--white);color:var(--accent);font:600 .85rem/1.4 var(--font);text-align:left;min-height:60px;cursor:pointer}
.bot-suggestions>button:disabled{opacity:.55;cursor:not-allowed}
.bot-suggestion-icon{display:grid;place-items:center;border-radius:12px;width:40px;height:40px;background:var(--accent-wash)}
.bot-suggestions>button>.svg-icon{width:18px;height:18px}
.bot-message{padding:1rem 0;min-width:0;overflow-wrap:anywhere}
.bot-message p{white-space:normal;line-height:1.6}
.bot-user{padding:.9rem 1rem;border-radius:20px;background:var(--accent-wash);border:1px solid var(--accent-line);margin-bottom:.35rem}
.bot-user>strong{display:block;font-size:.75rem;margin-bottom:.4rem}
.bot-user>p{white-space:pre-wrap;font-size:.95rem}
.bot-assistant>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.4rem;font-size:.8rem;margin-bottom:.6rem}
.bot-assistant>header>strong{color:var(--accent)}
.bot-assistant>header>span{font-size:.75rem;color:var(--ink-soft)}
.bot-answer-text{font-size:.95rem;line-height:1.65}
.bot-answer-text p+p{margin-top:.75rem}
.bot-points{padding-left:1.2rem;margin-block:.75rem;display:grid;gap:.5rem;font-size:.95rem}
.bot-q{display:inline-flex;align-items:center;justify-content:center;min-height:28px;min-width:28px;padding:.15rem .35rem;border:0;border-radius:6px;background:var(--accent-wash);color:var(--accent);font:700 .75rem/1.2 var(--font);text-decoration:none;margin-inline:.1rem;vertical-align:baseline;cursor:pointer}
.bot-citations,.bot-learning{margin-top:1rem;border-top:1px solid var(--line);font-size:.85rem}
.bot-citations>summary,.bot-learning>summary{cursor:pointer;padding:.75rem 0;min-height:44px;font-weight:700}
.bot-citations>summary span{color:var(--ink-soft);margin-left:.5rem}
.bot-citation{padding:.65rem 0;border-bottom:1px solid var(--line)}
.bot-citation>a{display:flex;gap:.5rem;align-items:center;text-decoration:none}
.bot-citation p,.bot-citation blockquote{font-size:.8rem;line-height:1.5;color:var(--ink-soft);margin:.5rem 0 0}
.bot-citation .bot-q{background:var(--action-bg);color:#fff}
.bot-citation-unit{display:inline-block;white-space:nowrap}
.bot-followups{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.8rem}
.bot-followups .chip{font-size:.8rem;min-height:44px}
.bot-pending{display:flex;align-items:center;gap:.5rem;padding:1rem 0;color:var(--ink-soft);font-size:.85rem}
.bot-error,.bot-coverage{padding:.8rem;border-radius:12px;background:var(--red-wash);color:var(--red);font-size:.85rem;line-height:1.5;margin-block:.75rem}
.bot-coverage{background:var(--paper);color:var(--ink-soft)}
.bot-setup{padding:.8rem;border-radius:12px;background:var(--paper);font-size:.85rem;line-height:1.5;margin-bottom:.5rem}
.bot-setup p{color:var(--ink-soft);margin-top:.3rem}
.bot-context{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:var(--accent-wash);border-radius:12px;font-size:.8rem;margin-bottom:.75rem}
.bot-context>span{flex:1;min-width:0;overflow-wrap:anywhere}
.bot-context>.icon-button{width:44px;height:44px;background:transparent;border:0}
.bot-section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.bot-section-head h2{font-size:1.2rem}
.bot-threads{list-style:none;display:grid;gap:.5rem;margin-block:1rem}
.bot-threads li{display:flex;align-items:center;gap:.4rem;padding:.5rem;background:var(--paper);border-radius:14px}
.bot-threads li>button:first-child{flex:1;min-width:0;display:grid;gap:.35rem;padding:.4rem;border:0;background:transparent;color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.bot-threads strong{font-size:.9rem;line-height:1.4;overflow-wrap:anywhere}
.bot-threads small{font-size:.75rem;color:var(--ink-soft)}
.bot-mode{margin-block:1.25rem}
.bot-legacy{border-top:1px solid var(--line);padding-block:1rem;font-size:.85rem}
.bot-legacy summary{cursor:pointer;min-height:44px}
.bot-legacy ul{list-style:none}
.bot-legacy .link-button{text-align:left;overflow-wrap:anywhere}
.bot-budget{font-size:.8rem;line-height:1.5;color:var(--ink-soft);margin-block:1rem}
@media(max-width:360px){.view[data-view="tutor"]{padding:.5rem}.bot-chat-shell{border-radius:18px}.bot-chat-header{padding:.65rem;gap:.35rem}.bot-chat-identity{gap:.4rem}.bot-avatar{width:36px;height:36px}.bot-chat-identity h1{font-size:.9rem}.bot-chat-identity p{font-size:.75rem}.bot-header-button{min-width:48px;max-width:56px}.bot-scroll{padding:.8rem}.bot-composer{padding:.65rem .8rem}.bot-welcome{padding:.75rem .25rem}.bot-welcome h2{font-size:1.75rem}}
@media(min-width:960px){.view[data-view="tutor"]{padding:1.25rem 2rem}.bot-chat-header{padding:1rem 1.5rem}.bot-scroll{padding:1.5rem 2rem}.bot-composer{padding:1rem 2rem}.bot-welcome{padding-block:2rem}.bot-suggestions{max-width:36rem;margin:1rem auto}.bot-scroll>.bot-composer{max-width:36rem;margin:auto}}

.bot-removed{color:var(--ink-soft);font-size:.75rem;line-height:1.5;margin-top:.75rem}
