/* WINNSTORM identity layer. Source of truth: WINNSTORM/docs/BRAND.md.
   Layout and application behavior remain in styles.css and app.js. */
:root {
  --ink: #1a1a1a;
  --muted: #666666;
  --line: #e5e5e5;
  --orange: #ff6600;
  --paper: #ffffff;
  --surface: #f5f5f5;
  --navy: #1e293b;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
}
h1, h2, h3, .brand, .btn, .nav, .eyebrow, .mini-label {
  font-family: 'Montserrat', system-ui, sans-serif;
}
h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; }
.eyebrow { font-size: 10px; letter-spacing: .13em; }
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible { outline-color: var(--orange); }
input, textarea, select { border-color: #cccccc; border-radius: 0; }
input, select { min-height: 48px; }
.checkline input { min-height: auto; accent-color: var(--orange); }
.btn, .badge, .panel, .room-tab, .suggestion, .composer, .callout,
.turn-state, .empty, dialog, #toast { border-radius: 0; }
.btn { min-height: 44px; font-weight: 600; letter-spacing: .025em; }
.btn:hover { background: var(--surface); border-color: #aaaaaa; }
.btn.primary, .btn.orange {
  background: var(--orange); border-color: var(--orange); color: var(--ink);
  font-weight: 700; text-transform: uppercase;
}
.btn.primary:hover, .btn.orange:hover { background: var(--orange); filter: brightness(.94); }
.btn.small { min-height: 40px; }
.btn.danger { color: #a52828; }
.badge { background: #fafafa; }
.badge.dark { background: transparent; color: #ffffff; border-color: #555555; }
.brand { gap: 12px; letter-spacing: normal; line-height: 1.2; }
.winnstorm-logo { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.brand-lockup { display: grid; gap: 7px; min-width: 0; }
.brand-lockup strong { color: #ffffff; font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.brand-lockup small { color: #cccccc; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 400; }
.login-story { color: #ffffff; padding: 44px 64px; background: var(--ink); }
.login-story:after { display: none; }
.login-story .brand { position: relative; z-index: 1; }
.login-copy { max-width: 550px; margin: 64px 0; }
.login-copy:before { content: ''; display: block; width: 64px; height: 4px; background: var(--orange); margin-bottom: 24px; }
.login-copy .eyebrow { color: #cccccc; margin-bottom: 20px; }
.login-copy h1 {
  font-family: 'Montserrat', system-ui, sans-serif; font-size: clamp(36px, 3.4vw, 56px);
  font-weight: 800; text-transform: uppercase; line-height: 1.16; letter-spacing: -.03em;
  margin-bottom: 28px;
}
.login-copy h1 span { color: var(--orange); }
.login-copy p { color: #cccccc; max-width: 420px; font-size: 15px; line-height: 1.8; }
.login-footer { color: #aaaaaa; line-height: 1.8; font-size: 10px; }
.login-form-wrap { background: #ffffff; }
.login-form { max-width: 390px; }
.login-form h2 { font-size: 28px; line-height: 1.3; }
.login-form .hint { font-size: 13px; }
.login-form .btn { min-height: 48px; }
.login-form input { font-size: 16px; background: #fafafa; }
.login-form img[alt='Authenticator setup QR code'] { max-width: 100%; height: auto; }
.shell { background: linear-gradient(to right, var(--ink) 248px, var(--surface) 248px); grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { color: #fafafa; padding: 22px 16px; }
.sidebar .brand { padding: 0 6px; gap: 8px; }
.sidebar .winnstorm-logo { width: 56px; height: 56px; }
.sidebar .brand-lockup strong { font-size: 18px; }
.sidebar .brand-lockup small { font-size: 10px; }
.sidebar .eyebrow { color: #aaaaaa; margin: 24px 12px 20px; }
.nav button { color: #cccccc; border-radius: 0; min-height: 46px; border-left: 3px solid transparent; padding: 12px 10px; font-size: 12px; }
.nav button:hover { color: #ffffff; background: #252525; }
.nav button.active { color: #ffffff; background: #303030; border-left-color: var(--orange); }
.nav button.active .nav-icon { color: var(--orange); }
.sidebar-note { color: #aaaaaa; }
.identity { border-top-color: #3b3b3b; }
.identity small, .signout { color: #bbbbbb; }
.signout { min-height: 44px; }
.avatar { background: #e8ecf1; color: var(--navy); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.topbar { border-bottom: 2px solid var(--orange); }
.top-meta .badge { background: #fff5eb; color: var(--ink); border-color: #e5e5e5; }
.page-heading h1 { font-size: 28px; }
.room-tab.selected { border-color: #cccccc; border-bottom: 2px solid var(--orange); }
.room-tab { min-height: 44px; }
.chat-header { background: #fafafa; }
.welcome h2 { font-family: 'Montserrat', system-ui, sans-serif; font-size: 26px; }
.welcome .avatar { width: 48px; height: 48px; }
.suggestion { font-size: 13px; background: #ffffff; }
.suggestion:hover { background: #fff5eb; border-color: var(--orange); }
.message.assistant .avatar { background: var(--orange); color: var(--ink); }
.message-heading time { color: var(--muted); }
.message-text { font-size: 14px; }
.composer { border-color: #cccccc; }
.composer:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.composer textarea { font-size: 14px; }
.turn-state { background: var(--surface); }
.entry pre { font-family: 'Inter', system-ui, sans-serif; }
.empty { border-color: #cccccc; }
dialog { border-color: #cccccc; box-shadow: 0 25px 90px #00000033; }
dialog::backdrop { background: #1a1a1ab0; }
#toast { border-color: #555555; }
@media (max-width: 1180px) {
  .shell { grid-template-columns: 228px minmax(0, 1fr); background: linear-gradient(to right, var(--ink) 228px, var(--surface) 228px); }
  .sidebar .brand-lockup strong { font-size: 16px; }
  .login-story { padding: 40px; }
  .login-copy h1 { font-size: 38px; }
}
@media (max-width: 760px) {
  .login-story { padding: 24px; }
  .login-story .brand { font-size: inherit; }
  .login-story .winnstorm-logo { width: 56px; height: 56px; }
  .brand-lockup strong { font-size: 22px; }
  .login-copy { margin: 30px 0 8px; }
  .login-copy:before { margin-bottom: 18px; width: 48px; }
  .login-copy .eyebrow { font-size: 9px; margin-bottom: 16px; }
  .login-copy h1 { font-size: 30px; max-width: none; margin-bottom: 12px; }
  .login-form-wrap { padding: 28px 24px 44px; }
  .login-form h2 { font-size: 25px; }
  .shell { display: block; background: var(--surface); }
  .sidebar { padding: 16px 12px 10px; }
  .sidebar > .brand { display: flex; margin: 0 4px 14px; }
  .sidebar .winnstorm-logo { width: 44px; height: 44px; }
  .sidebar .brand-lockup { gap: 4px; }
  .sidebar .brand-lockup strong { font-size: 19px; }
  .sidebar .brand-lockup small { font-size: 11px; }
  .nav { gap: 4px; }
  .nav button { min-height: 44px; border-left: 0; border-bottom: 2px solid transparent; padding: 10px; font-size: 11px; }
  .nav button.active { border-bottom-color: var(--orange); }
  .topbar { padding: 0 16px; gap: 6px; }
  .breadcrumbs { font-size: 10px; line-height: 1.6; }
  .breadcrumbs span { display: block; margin-left: 0; }
  .top-meta { gap: 8px; }
  .top-meta .badge { font-size: 9px; padding: 5px 7px; }
  .mobile-brand button { min-height: 44px; }
  .page-heading h1 { font-size: 23px; line-height: 1.3; }
  .page-heading .btn { flex-shrink: 0; }
  .welcome h2 { font-size: 23px; }
  .composer textarea, input, textarea, select { font-size: 16px; }
  .composer-footer small { flex: 1; min-width: 0; }
  .composer-footer .btn { flex-shrink: 0; white-space: nowrap; font-size: 10px; padding: 10px; }
}
/* Knowledge originals and explicit room participation use the existing brand. */
.upload-limits,.participant-list{padding-left:1.2rem;line-height:1.8}
.source-file{padding:18px 0;border-bottom:1px solid #dedbd6;overflow-wrap:anywhere}
.source-file:last-child{border-bottom:0}
.source-file .btn{margin:8px 8px 0 0}
.chat-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
progress{width:100%;accent-color:#FF6600;margin-top:16px}
#dialog textarea{width:100%;max-height:45vh;box-sizing:border-box}
#dialog{max-height:90vh;overflow:auto}
.form-panel [hidden]{display:none}
