@import url("/src/tokens.css");
* { box-sizing: border-box; }
body { margin: 0; color: #1a2832; background: #edf1f3; font-family: var(--font); font-size: 14px; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #2867ad; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100dvh; }
.workspace[hidden] { display: none; }
.sidebar { padding: 28px 14px; background: #17242d; color: #d4dfe3; }
.workspace-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.workspace-brand strong, .workspace-brand span { display: block; }
.workspace-brand strong { color: white; font-size: 18px; letter-spacing: -.02em; }
.workspace-brand span { margin-top: 2px; color: #abbcc4; font-size: 12px; }
.sidebar-section { margin: 42px 10px 12px; color: #91a3ad; font-size: 12px; }
.sidebar-management { margin-top: 32px; }
.workspace-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; color: inherit; text-align: left; border: 0; border-radius: 6px; background: transparent; }
.nav-item:disabled { color: #a0b1b9; }
.nav-item.is-active { color: white; background: #324b5a; }
.workspace-main { min-width: 0; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 12px 28px; border-bottom: 1px solid #dbe3e6; background: #fff; }
.header-label { display: block; margin-bottom: 4px; color: #687a83; font-size: 11px; }
.team-select select { min-width: 220px; border: 0; background: transparent; color: #1a2832; font-weight: 650; }
.header-context { color: #73858c; font-size: 13px; }
.work-area { display: grid; grid-template-columns: minmax(210px, 260px) minmax(340px, 1fr) minmax(190px, 240px); min-height: calc(100dvh - 76px); }
.conversation-list { min-width: 0; padding: 24px 14px; border-right: 1px solid #dce4e7; background: #fbfcfc; }
.list-heading { padding: 0 10px 20px; }
.list-heading h1 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.list-heading p { margin: 6px 0 0; color: #778991; font-size: 12px; }
.conversation-items { display: grid; gap: 5px; }
.conversation-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: #344b56; text-align: left; }
.conversation-item.is-active { background: #e8f1f6; color: #173f58; }
.conversation-avatar { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 50%; background: #dce6ea; color: #426170; font-weight: 650; }
.conversation-item strong, .conversation-item small { display: block; }
.conversation-item strong { font-size: 13px; font-weight: 650; }
.conversation-item small { margin-top: 3px; color: #6c8089; font-size: 11px; }
.conversation-panel { display: flex; min-width: 0; flex-direction: column; background: #fff; }
.conversation-tabs { display: flex; gap: 3px; min-height: 50px; padding: 8px 16px 0; overflow-x: auto; border-bottom: 1px solid #dce4e7; background: #f3f6f7; }
.conversation-tab { flex: 0 0 auto; min-height: 42px; padding: 9px 15px; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; background: transparent; color: #5b6c75; font-size: 12px; }
.conversation-tab[aria-selected="true"] { border-color: #dce4e7; background: white; color: #1b506b; font-weight: 650; }
.conversation-heading { padding: 20px 26px; border-bottom: 1px solid #e4eaec; }
.conversation-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.conversation-heading p { margin: 5px 0 0; color: #75878f; font-size: 12px; }
.message-area { display: grid; flex: 1; min-height: 240px; place-items: center; padding: 32px; overflow-y: auto; }
.empty-message { display: grid; justify-items: center; gap: 12px; color: #84949b; text-align: center; }
.empty-message svg { width: 28px; height: 28px; }
.empty-message p { margin: 0; font-size: 13px; }
.composer { margin: 16px 22px 24px; border: 1px solid #cfdade; border-radius: 8px; background: #fff; }
.composer:focus-within { border-color: #6692a8; }
.composer textarea { display: block; width: 100%; min-height: 86px; resize: vertical; padding: 16px; border: 0; outline: 0; background: transparent; color: #1a2832; line-height: 1.5; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px; }
.attachments:empty { display: none; }
.attachment { display: flex; align-items: center; gap: 8px; max-width: 220px; padding: 6px; border: 1px solid #dce4e7; border-radius: 5px; background: #f6f9fa; }
.attachment img, .attachment-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 3px; background: #e4ecef; object-fit: cover; }
.attachment-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.attachment-remove { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; padding: 0; border: 0; background: transparent; color: #566c77; font-size: 20px; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 14px; }
.composer-actions > div { display: flex; align-items: center; min-width: 0; gap: 10px; }
.icon-button { display: grid; width: 40px; height: 40px; flex-shrink: 0; place-items: center; border: 1px solid #d6e0e3; border-radius: 5px; background: white; color: #365a6b; }
.icon-button:hover { background: #edf4f6; }
.composer-hint { color: #778b94; font-size: 12px; }
.send-button { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 5px; background: #dce5e9; color: #6b7d86; }
.send-button span { margin-left: 12px; }
.context-panel { min-width: 0; padding: 30px 22px; border-left: 1px solid #dce4e7; background: #fbfcfc; }
.context-panel h2 { margin: 0; font-size: 16px; }
.context-panel p { margin: 8px 0 0; color: #75878f; font-size: 13px; }
.context-panel h3 { margin: 0 0 12px; color: #63777f; font-size: 12px; font-weight: 600; }
.context-divider { height: 1px; margin: 25px 0; background: #e0e7e9; }
.context-item { display: flex; justify-content: space-between; width: 100%; min-height: 46px; padding: 12px 0; border: 0; border-bottom: 1px solid #e5ebed; background: transparent; color: #647981; text-align: left; }
@media (max-width: 1080px) {
  .workspace { grid-template-columns: 70px minmax(0, 1fr); }
  .workspace-brand { padding: 0 5px; }
  .workspace-brand div, .sidebar-section, .nav-item span { display: none; }
  .workspace-nav { margin-top: 30px; }
  .nav-item { justify-content: center; padding-inline: 8px; }
  .work-area { grid-template-columns: 220px minmax(0, 1fr); }
  .context-panel { display: none; }
}
@media (max-width: 700px) {
  .workspace { display: block; }
  .sidebar { display: flex; align-items: center; gap: 16px; padding: 8px 16px; }
  .workspace-brand { padding: 0; }
  .workspace-brand div { display: block; }
  .workspace-brand strong { font-size: 15px; }
  .workspace-brand span { display: none; }
  .sidebar .workspace-nav { display: flex; margin: 0 0 0 auto; }
  .sidebar-management, .sidebar nav[aria-label="Management"] { display: none; }
  .nav-item { width: 40px; min-height: 40px; }
  .workspace-header { min-height: 62px; padding: 10px 18px; }
  .team-select select { min-width: 0; }
  .work-area { display: flex; flex-direction: column; min-height: calc(100dvh - 120px); }
  .conversation-list { padding: 14px 14px 10px; border-right: 0; border-bottom: 1px solid #dce4e7; }
  .list-heading { display: flex; align-items: baseline; gap: 10px; padding: 0 4px 10px; }
  .list-heading h1 { font-size: 16px; }
  .list-heading p { margin: 0; }
  .conversation-items { display: flex; overflow-x: auto; }
  .conversation-item { width: auto; min-width: 160px; }
  .conversation-panel { flex: 1; }
  .conversation-heading { padding: 16px 18px; }
  .message-area { min-height: 180px; }
  .composer { margin: 14px 12px 18px; }
  .composer-hint { font-size: 11px; }
}
