:root{--y: #fffa65;--fg: #1a1a1b;--muted: #5f656e;--border: #e6e8eb;--bg: #ffffff;--soft: #f7f8fa;--accent: #4f46e5}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font:15px/1.55 -apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;color:var(--fg);background:var(--soft)}.muted{color:var(--muted)}.pad{padding:16px}.err{background:#fde8e8;color:#9b1c1c;padding:10px 12px;border-radius:8px;margin:12px 0;font-size:13px}.logo{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;background:var(--y);color:#000;font-weight:800;border-radius:7px;font-family:Georgia,serif}.brand{display:flex;align-items:center;gap:9px;font-weight:700}.brand-lg{display:flex;align-items:center;gap:12px;font-weight:800;font-size:22px}.brand-lg .logo{width:40px;height:40px;font-size:22px;border-radius:10px}.signin{max-width:440px;margin:8vh auto;background:var(--bg);padding:36px;border:1px solid var(--border);border-radius:16px}.signin h1{font-size:24px;margin:22px 0 8px}.lbl{display:block;font-size:12px;font-weight:600;margin:18px 0 6px}.inp,.search{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:9px;font:inherit}.btn{margin-top:18px;width:100%;background:var(--y);border:none;padding:12px 16px;border-radius:10px;font:inherit;font-weight:700;cursor:pointer}.btn:disabled{opacity:.6;cursor:default}.linkbtn{background:none;border:none;color:var(--accent);font:inherit;font-weight:600;cursor:pointer;padding:8px 0}.linkbtn:hover{text-decoration:underline}.app{height:100%;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;background:var(--bg);border-bottom:1px solid var(--border)}.cols{flex:1;display:flex;min-height:0}.sidebar{width:320px;flex:0 0 320px;background:var(--bg);border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0}.sidebar .search{margin:12px;width:auto}.list{list-style:none;margin:0;padding:0;overflow-y:auto}.item{padding:11px 16px;border-bottom:1px solid var(--border);cursor:pointer}.item:hover{background:var(--soft)}.item.active{background:#fffdf0;box-shadow:inset 3px 0 0 var(--y)}.item-title{font-weight:600;font-size:14px}.item-meta{color:var(--muted);font-size:12px;margin-top:2px}.detail{flex:1;overflow-y:auto;padding:24px 32px;min-width:0}.detail h2{margin:0 0 2px;font-size:22px}.sub{font-size:13px;margin-bottom:18px}.block{margin-top:22px}.block h3{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:0 0 10px}.block-head{display:flex;align-items:center;justify-content:space-between}.block-head h3{margin-bottom:0}.recap{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:4px 16px;margin:0;font:inherit;font-size:14px}.md{font-size:14px;line-height:1.6}.md h1,.md h2,.md h3{font-size:15px;margin:14px 0 6px}.md p{margin:8px 0}.md ul,.md ol{margin:6px 0;padding-left:20px}.md li{margin:3px 0}.md strong{font-weight:700}.md code{background:var(--soft);padding:1px 5px;border-radius:5px;font-size:13px}.md>:first-child{margin-top:0}.md>:last-child{margin-bottom:0}.detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.detail-actions{display:flex;gap:12px;flex:0 0 auto}.linkbtn.danger{color:#b91c1c}.list-row{list-style:none}.day-header{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:12px 16px 5px;background:var(--bg)}.transcript{display:flex;flex-direction:column;gap:12px}.turn{max-width:760px}.spk{font-size:12px;font-weight:700;color:var(--accent);margin-bottom:3px}.bubble{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:10px 14px;font-size:14px}.tabs{display:flex;gap:4px}.tab{background:none;border:none;padding:7px 14px;border-radius:8px;font:inherit;font-weight:600;color:var(--muted);cursor:pointer}.tab:hover{background:var(--soft)}.tab.active{background:var(--y);color:#000}.chat{flex:1;display:flex;flex-direction:column;min-height:0}.chat-scroll{flex:1;overflow-y:auto;padding:24px}.chat-empty{max-width:640px;margin:8vh auto 0;text-align:center}.chat-empty h2{font-size:22px;margin:0 0 6px}.suggestions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:18px}.chip{background:var(--bg);border:1px solid var(--border);border-radius:20px;padding:8px 14px;font:inherit;font-size:13px;cursor:pointer}.chip:hover{border-color:var(--accent)}.msg{max-width:760px;margin:0 auto 16px}.msg.user .msg-body{background:var(--y);border-radius:14px 14px 4px;padding:11px 15px;margin-left:auto;max-width:80%;width:fit-content}.msg.assistant .msg-body{background:var(--bg);border:1px solid var(--border);border-radius:14px 14px 14px 4px;padding:13px 16px;white-space:pre-wrap}.sources{font-size:11px;color:var(--muted);margin-top:6px;padding-left:4px}.composer{display:flex;gap:10px;padding:14px 24px;border-top:1px solid var(--border);background:var(--bg)}.composer-input{flex:1;padding:12px 14px;border:1px solid var(--border);border-radius:10px;font:inherit}.composer-input:focus{outline:none;border-color:var(--accent)}.btn.send{width:auto;margin-top:0;padding:12px 22px}
