/* NewWeb Second Brain — interfejs demo. Paleta i kroje z newweb.tech (Manrope + Inter, Blue #2A5BFF). */
@font-face { font-family: "Inter"; src: url("fonts/inter-vf.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-vf.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07080c;
  --bg-2: #0b0d13;
  --panel: #10131b;
  --panel-2: #161a24;
  --panel-3: #1d2230;
  --ink: #f4f5f7;
  --ink-2: #c9ccd3;
  --muted: #8a909c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --blue: #2a5bff;
  --blue-2: #5b83ff;
  --blue-3: #9db4ff;
  --glow: rgba(42, 91, 255, .38);
  --red: #ff5d5d;
  --amber: #ffb547;
  --pink: #ff6b9a;
  --green: #3ddc97;
  --display: "Manrope", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --side-w: 264px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
::selection { background: rgba(42, 91, 255, .45); }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.scroll::-webkit-scrollbar, .history::-webkit-scrollbar, .modal-body::-webkit-scrollbar { width: 8px; }
.scroll::-webkit-scrollbar-thumb, .history::-webkit-scrollbar-thumb, .modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 8px; }

/* ---------- start ---------- */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 90; transition: opacity .35s var(--ease); }
.boot img { width: 44px; height: 44px; animation: pulse 1.4s var(--ease) infinite; }
.boot.fade { opacity: 0; pointer-events: none; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.9); opacity: .6; } }

/* ---------- logowanie ---------- */
.login { position: fixed; inset: 0; background: #000; overflow: auto; }
.login-mark { position: absolute; top: 32px; left: 32px; width: 30px; height: 30px; }
.login-box { min-height: 100%; display: grid; place-items: center; padding: 96px 16px 48px; }
.login-form { width: 100%; max-width: 560px; }
.login-form h1 { font: 600 clamp(24px, 3.2vw, 32px)/1.2 var(--display); letter-spacing: -.02em; text-align: center; margin: 0 0 32px; }
.login-form label { display: block; font-weight: 600; font-size: 16px; margin: 18px 0 8px; }
.login-field { display: flex; align-items: center; gap: 8px; }
.login-field input {
  flex: 1; min-width: 0; background: #151a2a; border: 1px solid transparent; border-radius: 4px;
  padding: 7px 0 7px 2px; font-size: 17px; outline: none; transition: border-color .15s;
}
.login-field input:focus { border-color: var(--blue); }
.eye { background: none; border: 0; color: var(--ink); padding: 4px; display: grid; place-items: center; }
.eye svg { width: 20px; height: 20px; }
.login-btn {
  margin-top: 26px; width: 100%; padding: 13px 16px; border: 0; border-radius: 999px;
  background: #171717; color: var(--ink-2); font-size: 17px; transition: background .2s var(--ease), color .2s;
}
.login-btn:hover:not(:disabled) { background: var(--blue); color: #fff; }
.login-btn:disabled { opacity: .55; cursor: default; }
.login-err { color: var(--red); min-height: 22px; margin-top: 12px; text-align: center; font-size: 14px; }
.login-note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 18px; }
.login-note a { color: var(--ink-2); }

/* ---------- układ aplikacji ---------- */
.app { position: fixed; inset: 0; display: flex; }
.side {
  width: var(--side-w); flex: none; background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 12px 10px; gap: 2px; z-index: 30;
  transition: transform .3s var(--ease);
}
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 14px; }
.side-logo { display: flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: 0; text-align: left; }
.side-logo img { height: 18px; width: auto; display: block; }
.side-logo span { font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#sideClose { display: none; }
.icon-btn { background: none; border: 0; color: var(--muted); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--panel-2); color: var(--ink); }
.icon-btn svg, .side-item svg, .menu button svg { width: 18px; height: 18px; flex: none; }
.side-item {
  display: flex; align-items: center; gap: 11px; width: 100%; background: none; border: 0; text-align: left;
  padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; transition: background .15s, color .15s;
}
.side-item:hover, .side-item.on { background: var(--panel-2); color: var(--ink); }
.side-item.primary { color: var(--ink); font-weight: 600; }
.side-label { font-size: 12px; color: var(--muted); padding: 18px 10px 6px; font-weight: 600; }
.history { flex: 1; overflow-y: auto; min-height: 60px; }
.hist {
  display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; text-align: left;
  padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-size: 14px;
}
.hist span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist:hover, .hist.on { background: var(--panel-2); color: var(--ink); }
.hist .del { opacity: 0; color: var(--muted); background: none; border: 0; padding: 0 2px; }
.hist:hover .del { opacity: 1; }
.hist .del:hover { color: var(--red); }
.hist-empty { color: var(--muted); font-size: 13px; padding: 4px 10px; }
.side-user { position: relative; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.user-btn { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 8px 10px; border-radius: 10px; text-align: left; }
.user-btn:hover { background: var(--panel-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-3)); display: grid; place-items: center; font: 700 13px/1 var(--display); color: #fff; flex: none; }
.user-btn b { display: block; font-size: 14px; font-weight: 600; }
.user-btn small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.menu {
  position: absolute; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px;
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.7); z-index: 60; min-width: 230px;
}
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; text-align: left; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--ink-2); }
.menu button:hover { background: var(--panel-3); color: var(--ink); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.user-menu { bottom: 58px; left: 0; right: 0; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); position: relative; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: 56px; }
.topbar .open-side { display: none; }
.model { display: flex; align-items: center; gap: 6px; font: 600 16px/1 var(--display); letter-spacing: -.01em; }
.model svg { width: 16px; height: 16px; color: var(--muted); }
.badge { margin-left: auto; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.scroll { flex: 1; overflow-y: auto; padding: 8px 16px 24px; }
.thread { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }

/* pusty czat */
.empty { padding: 11vh 0 0; }
.empty-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.empty-head img { width: 42px; height: 42px; }
.empty-head h1 { font: 600 clamp(24px, 3.4vw, 32px)/1.2 var(--display); letter-spacing: -.02em; margin: 0; }
.sugg-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 26px 0 6px; }
.sugg-label svg { width: 14px; height: 14px; }
.sugg { display: block; width: 100%; background: none; border: 0; text-align: left; padding: 10px 12px; border-radius: 12px; transition: background .15s; }
.sugg:hover { background: var(--panel); }
.sugg b { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.sugg span { font-size: 13.5px; color: var(--muted); }

/* wiadomości */
.msg-user { align-self: flex-end; max-width: 82%; background: var(--panel-2); border-radius: 22px 22px 6px 22px; padding: 10px 18px; white-space: pre-wrap; word-wrap: break-word; }
.msg-bot { display: flex; gap: 14px; align-items: flex-start; }
.bot-ava { width: 30px; height: 30px; flex: none; margin-top: 2px; }
.bot-main { flex: 1; min-width: 0; }
.bot-name { font: 600 14.5px/1 var(--display); margin: 6px 0 10px; display: flex; align-items: center; gap: 8px; }
.bot-name small { font: 400 12px/1 var(--body); color: var(--muted); }
.md { color: var(--ink-2); overflow-wrap: anywhere; }
.md p { margin: 0 0 10px; } .md p:last-child { margin-bottom: 0; }
.md strong { color: var(--ink); font-weight: 650; }
.md h1, .md h2, .md h3 { font-family: var(--display); color: var(--ink); letter-spacing: -.01em; margin: 16px 0 8px; line-height: 1.3; }
.md h1 { font-size: 20px; } .md h2 { font-size: 17px; } .md h3 { font-size: 15.5px; }
.md ul, .md ol { margin: 4px 0 10px; padding-left: 22px; }
.md li { margin: 3px 0; }
.md code { background: var(--panel-2); border-radius: 6px; padding: 1px 6px; font-size: 13.5px; }
.md pre { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md blockquote { margin: 8px 0; padding: 2px 14px; border-left: 3px solid var(--line-2); color: var(--muted); }
.md .tbl { overflow-x: auto; margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 12px; }
.md table { border-collapse: collapse; width: 100%; font-size: 14px; }
.md th, .md td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.md th { color: var(--ink); font-weight: 600; background: var(--panel); }
.md tr:last-child td { border-bottom: 0; }
.cite {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin: 0 1px; vertical-align: 2px;
  border-radius: 7px; border: 0; background: var(--panel-3); color: var(--blue-3); font: 600 11px/1 var(--body);
  transition: background .15s, color .15s;
}
.cite:hover { background: var(--blue); color: #fff; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.src-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px 5px 6px; font-size: 13px; color: var(--ink-2); }
.src-chip:hover { border-color: var(--line-2); color: var(--ink); }
.src-chip b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 6px; background: var(--panel-3); color: var(--blue-3); font-size: 11px; }
.src-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-chip.own b { color: var(--green); }
.actions { display: flex; gap: 2px; margin-top: 10px; }
.actions .icon-btn { width: 30px; height: 30px; border-radius: 8px; }
.actions .icon-btn svg { width: 16px; height: 16px; }
.err-msg { color: var(--red); }
.typing { display: inline-flex; gap: 5px; padding: 8px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* pole wiadomości */
.composer-wrap { padding: 0 16px 14px; }
.composer {
  max-width: 780px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 26px;
  padding: 10px 10px 8px 16px; box-shadow: 0 12px 40px -18px rgba(0,0,0,.8); position: relative; transition: border-color .15s;
}
.composer:focus-within { border-color: var(--line-2); }
.composer textarea { width: 100%; background: none; border: 0; outline: none; resize: none; max-height: 220px; overflow-y: hidden; padding: 6px 4px 4px; font-size: 15.5px; line-height: 1.5; }
.composer textarea::placeholder { color: var(--muted); }
.composer-row { display: flex; align-items: center; gap: 6px; }
.grow { flex: 1; }
.round { border-radius: 50%; border: 1px solid var(--line-2); width: 34px; height: 34px; }
.pill-btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); padding: 6px 12px; font-size: 13.5px; }
.pill-btn svg { width: 16px; height: 16px; }
.pill-btn:hover { color: var(--ink); background: var(--panel-2); }
.pill-btn.rec { border-color: var(--red); color: var(--red); }
.send { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink); color: #000; display: grid; place-items: center; transition: opacity .15s, background .15s; }
.send svg { width: 18px; height: 18px; }
.send:disabled { opacity: .25; cursor: default; }
.send.stop { background: var(--ink-2); }
.plus-menu { bottom: 52px; left: 8px; }
.fine { max-width: 780px; margin: 8px auto 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- ekran powitalny ---------- */
.home { position: fixed; inset: 0; z-index: 50; background: radial-gradient(1200px 700px at 72% 18%, rgba(42,91,255,.22), transparent 60%), radial-gradient(900px 600px at 12% 92%, rgba(91,131,255,.12), transparent 60%), #030409; overflow-y: auto; animation: fadein .45s var(--ease); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.home canvas.bg { position: fixed; inset: 0; width: 100%; height: 100%; opacity: .34; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 34% 30% at 50% 44%, transparent 40%, #000 100%); mask-image: radial-gradient(ellipse 34% 30% at 50% 44%, transparent 40%, #000 100%); }
.home-inner { position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px; }
.home-logo { position: absolute; top: 28px; left: 32px; height: 18px; opacity: .9; }
.greet { font: 800 clamp(40px, 6.4vw, 72px)/1.05 var(--display); letter-spacing: -.035em; text-align: center; }
.greet b { font-weight: 800; background: linear-gradient(90deg, var(--blue) 0%, var(--blue-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.greet .wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.2s ease-in-out 1 .4s; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
.home-sub { color: var(--ink-2); font-size: clamp(16px, 1.8vw, 21px); margin: 18px 0 44px; text-align: center; }
.home-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 450px)); gap: 24px; width: 100%; justify-content: center; }
.home-card {
  text-align: left; background: rgba(16, 19, 27, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 20px; padding: 32px 30px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.home-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 20px 60px -20px var(--glow); }
.home-card .ic { font-size: 30px; line-height: 1; margin-bottom: 26px; }
.home-card h3 { font: 700 22px/1.25 var(--display); letter-spacing: -.015em; margin: 0 0 12px; color: var(--ink); }
.home-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.voice-bar { width: 100%; max-width: 1250px; display: flex; align-items: center; gap: 14px; margin: -18px 0 22px; }
.voice-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; border: 0; border-radius: 14px; padding: 13px 22px; font: 700 16px/1 var(--display); box-shadow: 0 12px 34px -12px var(--glow); transition: background .2s, transform .2s var(--ease); }
.voice-btn:hover { background: #3a68ff; transform: translateY(-1px); }
.voice-btn svg { width: 18px; height: 18px; }
.voice-bar small { color: var(--muted); font-size: 14px; }
.brief-cards { width: 100%; max-width: 1250px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.brief-card { background: rgba(16, 19, 27, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: 20px; padding: 26px 26px 22px; }
.brief-card h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 700 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.brief-card.z h3 { color: #ff9a9a; } .brief-card.w h3 { color: var(--blue-3); } .brief-card.u h3 { color: #ffb0cb; }
.brief-card .dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.brief-card.z .dot { background: var(--red); box-shadow: 0 0 14px rgba(255,93,93,.6); }
.brief-card.w .dot { background: var(--blue); box-shadow: 0 0 14px var(--glow); }
.brief-card.u .dot { background: var(--pink); box-shadow: 0 0 14px rgba(255,107,154,.5); }
.brief-card .md { color: var(--ink); font-size: 16px; line-height: 1.5; }
.brief-card .md ul { list-style: none; padding: 0; margin: 0; }
.brief-card .md li { margin: 0 0 12px; padding-left: 18px; position: relative; }
.brief-card .md li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.sk { height: 14px; border-radius: 7px; margin: 12px 0; background: linear-gradient(90deg, var(--panel-2), var(--panel-3), var(--panel-2)); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
.sk.short { width: 60%; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.go-chat { margin-top: 30px; background: rgba(16,19,27,.7); border: 1px solid var(--line-2); color: var(--ink); border-radius: 14px; padding: 14px 26px; font: 700 17px/1 var(--display); transition: border-color .2s, background .2s; }
.go-chat:hover { border-color: var(--blue); background: rgba(42,91,255,.12); }
.home-brand { margin-top: 48px; font: 800 20px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.14); text-align: center; }

/* ---------- okna ---------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fadein .2s var(--ease); }
.modal-card { width: 100%; max-width: 720px; max-height: min(86vh, 900px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 40px 120px -30px rgba(0,0,0,.9); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { flex: 1; margin: 0; font: 700 18px/1.3 var(--display); letter-spacing: -.01em; }
.modal-body { overflow-y: auto; padding: 18px 24px 24px; }
.kb-sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 10px; }
.kb-sec h3 { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.kb-item { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; text-align: left; }
.kb-item:hover { background: var(--panel-2); border-color: var(--line); }
.kb-item .fi { width: 34px; height: 34px; border-radius: 9px; background: var(--panel-3); display: grid; place-items: center; color: var(--blue-3); flex: none; }
.kb-item .fi svg { width: 17px; height: 17px; }
.kb-item.own .fi { color: var(--green); }
.kb-item div { flex: 1; min-width: 0; }
.kb-item b { display: block; font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-item small { color: var(--muted); font-size: 12.5px; }
.kb-note { color: var(--muted); font-size: 13px; margin: 14px 2px 0; }
.kb-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.note-form input, .note-form textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; outline: none; margin-bottom: 10px; }
.note-form input:focus, .note-form textarea:focus { border-color: var(--blue); }
.note-form textarea { min-height: 180px; resize: vertical; }
.btn-main { background: var(--blue); color: #fff; border: 0; border-radius: 12px; padding: 11px 20px; font-weight: 600; }
.btn-main:hover { background: #3a68ff; }
.doc-view { font-size: 14.5px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 16px; font-size: 14px; z-index: 95; box-shadow: 0 18px 50px -12px rgba(0,0,0,.8); animation: fadein .2s var(--ease); max-width: calc(100vw - 32px); }
.drop { position: fixed; inset: 0; z-index: 85; background: rgba(42,91,255,.12); border: 2px dashed var(--blue-2); display: grid; place-items: center; font: 700 22px/1.2 var(--display); pointer-events: none; }

/* graf pełnoekranowy */
.graph-full { position: fixed; inset: 0; z-index: 70; background: radial-gradient(1000px 700px at 50% 40%, rgba(42,91,255,.16), transparent 65%), #030409; animation: fadein .3s var(--ease); }
.graph-full canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.graph-full canvas:active { cursor: grabbing; }
.graph-head { position: absolute; top: 18px; left: 24px; right: 18px; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.graph-head h2 { margin: 0; font: 700 18px/1 var(--display); }
.graph-head small { color: var(--muted); }
.graph-head .icon-btn { margin-left: auto; pointer-events: auto; background: var(--panel-2); }
.graph-legend { position: absolute; left: 24px; bottom: 20px; display: flex; gap: 16px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.graph-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

.scrim { display: none; }

/* ---------- telefon ---------- */
@media (max-width: 900px) {
  .brief-cards { grid-template-columns: 1fr; max-width: 560px; }
  .voice-bar { max-width: 560px; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .side { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); box-shadow: 0 0 60px rgba(0,0,0,.8); }
  .app.side-open .side { transform: none; }
  .app.side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 25; }
  .topbar .open-side, #sideClose { display: grid; }
  .badge { display: none; }
  .home-cards { grid-template-columns: 1fr; max-width: 560px; }
  .home-card { padding: 24px 22px; }
  .home-card .ic { margin-bottom: 16px; }
  .home-logo { left: 16px; top: 20px; }
  .home canvas.bg { opacity: .3; }
  .login-mark { top: 20px; left: 16px; }
  .msg-user { max-width: 92%; }
  .bot-ava { display: none; }
  .composer-wrap { padding: 0 10px 10px; }
  .pill-btn .lbl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
