/* ═══════════════════════════════════════════════════════════════════
   StatutAI brand overlay
   ───────────────────────────────────────────────────────────────────
   Sits on top of Outprime's hud_theme.css. Only redefines tokens
   and surfaces specific to StatutAI:
     - logo + word-mark
     - sidebar Org/Matter context fields (compact)
     - language selector (statusbar)
     - small typography polish for Polish text
   ═══════════════════════════════════════════════════════════════════ */


/* ── BRAND TOKENS ─────────────────────────────────────────────────── */
/* If you want to retune the StatutAI palette, do it here.
   Outprime's hud_theme already exposes :root variables; we override.   */
:root {
  /* Outprime accent is blue (#2563eb). StatutAI keeps the same blue
     for now to align brands; switch here if you want a divergence. */
  /* --accent: #1e40af; */
}


/* ── LOGO MARK ────────────────────────────────────────────────────── */
/* Outprime's .lc-mark and .sb-mark draw a stylized geometric badge.
   StatutAI ships a real PNG/SVG logo, so we replace the visual. */

.lc-mark.statutai-mark,
.sb-mark.statutai-mark {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lc-mark.statutai-mark::after,
.lc-mark.statutai-mark::before,
.sb-mark.statutai-mark::after,
.sb-mark.statutai-mark::before {
  content: none;
}

.lc-mark.statutai-mark img,
.sb-mark.statutai-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lc-mark.statutai-mark { width: 56px; height: 56px; }


/* ── WORD-MARK ────────────────────────────────────────────────────── */
/* "StatutAI" wordmark with superscript AI, used in login + sidebar. */

.lc-name,
.sb-name {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  letter-spacing: -.5px;
}

.logo-ai {
  font-size: .55em;
  font-weight: 700;
  letter-spacing: .5px;
  margin-left: 1px;
  vertical-align: super;
  color: var(--accent, #2563eb);
}


/* ── SIDEBAR CONTEXT FIELDS ───────────────────────────────────────── */
/* StatutAI keeps Org/Matter selectors. These live inside .sb-context
   below the breadcrumb. Compact form-field styling for narrow sidebar. */

.sb-context-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.sb-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-field > label {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted, #6b7280);
  text-transform: uppercase;
  margin: 0;
}

.sb-field .input-group-sm .form-control {
  font-size: 11px;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  background: rgba(255, 255, 255, .6);
  border-color: rgba(11, 18, 32, .12);
  color: var(--text, #0b1220);
}

.sb-field .input-group-sm .form-control:focus {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .15);
  background: white;
}

.sb-field .btn-lookup {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-color: rgba(11, 18, 32, .12);
  color: var(--muted, #6b7280);
}

.sb-field .btn-lookup:hover {
  background: var(--accent, #2563eb);
  border-color: var(--accent, #2563eb);
  color: white;
}


/* ── LANGUAGE SELECTOR (statusbar) ────────────────────────────────── */
/* Static "PL · EN" toggle. Will be wired to real i18n later. */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}

.lang-btn {
  all: unset;
  cursor: pointer;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--muted, #6b7280);
  padding: 0 2px;
  transition: color .12s ease;
}

.lang-btn:hover {
  color: var(--text, #0b1220);
}

.lang-btn.active {
  color: var(--accent, #2563eb);
}

.lang-sep {
  color: rgba(11, 18, 32, .25);
  font-size: 10px;
}

.statusbar-sep {
  color: rgba(11, 18, 32, .25);
  margin: 0 6px;
}


/* ── POLISH TYPOGRAPHY POLISH ─────────────────────────────────────── */
/* Some Polish words run long (e.g. "WYMAGANE LOGOWANIE",
   "Ostatnie rozmowy"). Soften letter-spacing in compact UIs. */

#statusMode,
.sb-section-label,
.workspace-menu-meta .wm-label,
#workspaceMenu .menu-btn {
  letter-spacing: .6px;  /* Outprime defaults are tighter for English */
}


/* ── DEFAULT EMPTY DOC PANEL ──────────────────────────────────────── */
/* When no entity is open, docPanel is collapsed (chat-only mode).
   This rule mirrors Outprime's #docPanel default (closed) but is
   safe to repeat in case load order matters. */

#docPanel:not(.open) {
  width: 0;
  flex: 0 0 0;
  overflow: hidden;
  border-right: none;
}


/* ── LOGIN HEADER ALIGNMENT ───────────────────────────────────────── */
/* Outprime's login centers brand mark above wordmark. StatutAI keeps
   that, but the PNG mark looks better with a touch more breathing room. */
.lc-logo {
  gap: 8px;
}
