:root {
  --bg: #f4f7fb; --surface: #fff; --ink: #172033; --muted: #697386;
  --primary: #1956d1; --primary-dark: #1044aa; --border: #dce3ee;
  --danger: #b42318; --shadow: 0 12px 35px rgba(27, 44, 85, .09);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 Inter, system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: var(--primary); text-decoration: none; }
.topbar { min-height: 70px; padding: 0 5vw; display: flex; align-items: center; gap: 34px; background: #10213d; color: white; }
.brand { color: white; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }.brand span { color: #78a7ff; font-weight: 600; }
.topbar nav { display: flex; gap: 22px; }.topbar nav a { color: #dce8ff; }.profile { margin-left: auto; display: flex; align-items: center; gap: 18px; }.profile div { display: flex; flex-direction: column; text-align: right; }.profile small { color: #aebbd0; }
.container { width: min(1160px, 92vw); margin: 38px auto 80px; }.notice { padding: 10px 5vw; background: #fff4ce; color: #694800; border-bottom: 1px solid #ead58a; }
h1 { margin: 4px 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.14; letter-spacing: -1.2px; }h2 { line-height: 1.25; }.eyebrow { color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }.muted { color: var(--muted); }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 28px; }.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }.task-card, .user-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 22px; }.task-card { position: relative; display: flex; flex-direction: column; }.task-link { color: var(--ink); flex: 1; }.task-org { color: var(--primary); font-weight: 800; }.task-card h2 { font-size: 19px; margin: 8px 0 28px; }.task-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13px; }.task-card form { position: absolute; top: 16px; right: 16px; }
.button { appearance: none; border: 0; border-radius: 9px; padding: 10px 16px; font: inherit; font-weight: 750; cursor: pointer; }.button:disabled { opacity: .55; cursor: wait; }.button.primary { color: white; background: var(--primary); }.button.primary:hover { background: var(--primary-dark); }.button.ghost { color: inherit; background: transparent; border: 1px solid currentColor; }.button.danger { color: var(--danger); background: #fff1f0; }.button.small { padding: 6px 10px; font-size: 12px; }.button.wide { width: 100%; }
.empty { text-align: center; padding: 70px 24px; border: 1px dashed #b9c5d8; border-radius: 16px; background: rgba(255,255,255,.55); }.empty.compact { padding: 35px 20px; }.auth-card { width: min(460px, 100%); margin: 8vh auto; background: white; border: 1px solid var(--border); padding: 38px; border-radius: 18px; box-shadow: var(--shadow); }
.stack { display: grid; gap: 17px; }label { display: grid; gap: 7px; font-weight: 700; }input, textarea, select { width: 100%; border: 1px solid #bbc7d7; border-radius: 9px; padding: 11px 12px; background: white; font: inherit; color: var(--ink); }input:focus, textarea:focus, select:focus { outline: 3px solid rgba(25,86,209,.15); border-color: var(--primary); }textarea { resize: vertical; }.checkbox { display: flex; align-items: center; gap: 9px; }.checkbox input { width: auto; }.error { background: #fff1f0; color: #8a1c13; border: 1px solid #ffccc7; padding: 12px 14px; border-radius: 9px; margin: 12px 0; }
dialog { border: 0; border-radius: 16px; width: min(540px, 92vw); padding: 28px; box-shadow: 0 28px 90px rgba(0,0,0,.28); }dialog::backdrop { background: rgba(9,21,42,.6); }.dialog-heading { display: flex; align-items: center; justify-content: space-between; }.dialog-heading h2 { margin: 0; }.icon-button { background: transparent; border: 0; font-size: 30px; cursor: pointer; }
.task-heading { margin-bottom: 26px; }.back { display: inline-block; margin-bottom: 22px; }.chat { display: grid; gap: 18px; }.message { max-width: 88%; border-radius: 15px; padding: 16px 18px; }.message.user { justify-self: end; background: #dce8ff; }.message.assistant { justify-self: start; background: white; border: 1px solid var(--border); box-shadow: var(--shadow); }.message-label { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.message-body > :first-child { margin-top: 0; }.message-body > :last-child { margin-bottom: 0; }.message-body img { display: block; max-width: 100%; max-height: 620px; object-fit: contain; margin: 14px 0; border-radius: 10px; }.message-body pre { overflow-x: auto; padding: 14px; background: #101827; color: #e8eef9; border-radius: 9px; }.message-body table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }.message-body th, .message-body td { border: 1px solid var(--border); padding: 7px 9px; }.prewrap { white-space: pre-wrap; }.message-error { border-color: #f3aaa4 !important; background: #fff1f0 !important; }.streaming { min-width: 220px; }
.composer { margin-top: 28px; padding: 12px; background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 24px rgba(22,35,62,.1); }.composer-row { display: flex; align-items: stretch; gap: 10px; }.composer-row textarea { min-height: 56px; max-height: 150px; }.composer-tools { flex: 0 0 auto; display: flex; align-items: stretch; gap: 8px; }.composer-tools input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }.attachment-button { width: 48px; display: grid; place-items: center; border: 1px solid #bbc7d7; border-radius: 9px; background: #f7f9fc; font-size: 21px; cursor: pointer; }.attachment-button:hover { border-color: var(--primary); background: #eef4ff; }.composer-send { min-width: 112px; }.attachment-status { margin-top: 9px; display: flex; align-items: center; gap: 10px; padding: 7px 9px; background: #eef2f8; border-radius: 9px; }.attachment-status[hidden] { display: none; }.image-preview img { display: block; width: 48px; height: 48px; object-fit: cover; border-radius: 7px; }.clear-attachment { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff1f0; color: var(--danger); font-size: 22px; line-height: 1; cursor: pointer; }.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.participants { margin: -8px 0 24px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: white; border: 1px solid var(--border); border-radius: 12px; }.participant { display: inline-block; margin-left: 7px; padding: 4px 9px; background: #eef2f8; border-radius: 999px; font-size: 12px; }.invite-form { display: flex; align-items: end; gap: 8px; }.invite-form label { font-size: 12px; }.invite-form select { min-width: 230px; padding: 7px 9px; }.message-attachments { display: grid; gap: 8px; margin-top: 10px; }.message-attachments img { display: block; max-width: min(100%, 680px); max-height: 620px; object-fit: contain; border-radius: 10px; }
.user-grid { display: grid; gap: 14px; }.user-card { display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 16px; }.user-card.inactive { opacity: .62; }.avatar { width: 48px; height: 48px; border-radius: 50%; background: #dce8ff; color: var(--primary); display: grid; place-items: center; font-size: 20px; font-weight: 800; }.user-info { display: grid; }.user-info h2 { margin: 0 0 2px; font-size: 18px; }.user-info span { color: var(--muted); }.badges { display: flex; gap: 6px; flex-wrap: wrap; }.badge { background: #eef2f8; border-radius: 999px; padding: 5px 9px; font-size: 12px; }
@media (max-width: 720px) { .topbar { padding: 14px 4vw; flex-wrap: wrap; gap: 12px 20px; }.profile { width: 100%; margin: 0; justify-content: space-between; }.profile div { text-align: left; }.page-heading { align-items: flex-start; flex-direction: column; }.user-card { grid-template-columns: 48px 1fr; }.badges, .user-card form { grid-column: 2; }.message { max-width: 96%; }.participants, .invite-form { align-items: stretch; flex-direction: column; }.invite-form .button { width: 100%; }.invite-form select { min-width: 0; }.composer-row { flex-direction: column; }.composer-tools { justify-content: flex-end; }.composer-tools .composer-send { flex: 1; } }
