:root { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
body.team-desk { --green: #18735c; --line: #dfe5e5; --muted: #59686e; color: #202b30; background: #f5f7f8; }
.team-desk .sidebar { background: #fcfdfd; padding: 22px 14px; }
.team-desk .brand { font-size: 18px; padding: 0 8px 22px; }
.team-desk .sidebar nav button { min-height: 40px; border-radius: 5px; }
.team-desk .sidebar nav button.active { color: #155e4e; background: #e4f1ec; box-shadow: inset 3px 0 #23816a; }
.team-desk .topbar { padding: 18px 24px; min-height: 82px; gap: 12px; flex-wrap: wrap; }
.team-desk .topbar h1 { font-size: 20px; line-height: 1.3; }
.team-desk .header-actions { flex-wrap: wrap; }
.team-desk .toolbar { flex-wrap: wrap; gap: 8px; }
.team-desk .toolbar input { flex: 1 1 170px; max-width: 340px; }
.team-desk .toolbar select { max-width: 100%; }
.team-desk .conversation { padding: 15px 18px; min-height: 100px; }
.team-desk .conversation.selected { background: #edf5f2; }
.team-desk .thread { background: #f8fafb; }
.team-desk .thread-head h2 { font-size: 17px; line-height: 1.4; }
.team-desk .thread-actions button { font-size: 12px; min-height: 34px; }
.team-desk .bubble { line-height: 1.65; }
.team-desk .message.assistant .bubble { border-left: 3px solid #7197b4; }
.team-desk .facts { background: #f1f5f6; }
.team-desk .composer { position: sticky; bottom: 0; z-index: 2; }
.team-desk .composer textarea:focus { outline: 2px solid #358575; outline-offset: 1px; }
.team-desk .composer footer { padding-right: 72px; }
.team-desk .pill { white-space: normal; overflow-wrap: anywhere; }
.team-desk .section, .team-desk .work-desk { min-width: 0; }
.team-desk .table-wrap { max-width: 100%; }
.team-desk .split { height: calc(100dvh - 210px); min-height: 440px; }
.team-desk .main { padding-bottom: 90px; }
.login-page { background: #f4f7f8; border-top: 4px solid #18735c; }
.login-box { border: 0; background: transparent; padding: 28px 12px; width: min(400px, calc(100% - 40px)); }
.login-box h1 { font-size: 25px; }
.login-box input { min-height: 46px; }
.login-box .primary { min-height: 46px; background: #18735c; }
.login-box .brand-mark { width: 44px; height: 44px; background: #18735c; }
.lib-nav-toggle { display: none; }
.lib-nav-backdrop { display: none; }
.workspace-session { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 24px; background: #fff5d9; border-bottom: 1px solid #d9c68d; }
.workspace-session p { flex: 1 1 220px; margin: 0; }
.workspace-session a { color: #18584a; text-decoration: underline; }
@media (max-width: 760px) {
  .lib-nav-toggle { display: inline-flex; }
  .team-desk .sidebar { display: none; }
  .team-desk.lib-nav-open .sidebar { display: flex; position: fixed; inset: 0 auto 0 0; width: min(280px, calc(100% - 64px)); height: 100dvh; z-index: 110; padding: 20px 14px; }
  .team-desk.lib-nav-open .sidebar nav { display: grid; overflow-y: auto; min-height: 0; }
  .team-desk.lib-nav-open .sidebar nav button { white-space: normal; }
  .team-desk.lib-nav-open .sidebar .staff-identity, .team-desk.lib-nav-open .sidebar form { display: block; }
  .team-desk.lib-nav-open .lib-nav-backdrop { display: block; position: fixed; inset: 0; border: 0; border-radius: 0; background: #14242780; z-index: 109; width: 100%; height: 100%; }
  .team-desk .topbar { padding: 12px; }
  .team-desk .topbar > div:first-child { flex: 1; }
  .team-desk .header-actions { width: 100%; justify-content: flex-end; }
  .team-desk .header-actions select { max-width: 110px; }
  .team-desk .split { height: calc(100dvh - 240px); min-height: 400px; }
  .team-desk .thread-head { padding: 12px; }
  .team-desk .toolbar input { max-width: none; }
  .team-desk .composer footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
