/* ================================================================
   DESIGN SYSTEM — GCL Spain
   Aesthetic: Refined Legal Authority
   Typography: DM Serif Display (display) + Satoshi (body)
   ================================================================ */

:root {
  /* Brand */
  --gcl-green: #166b43;
  --gcl-green-light: #1e9058;
  --gcl-green-pale: #e6f4ed;
  --gcl-green-deep: #0a2e1c;
  --gcl-green-muted: #2d8a5e;
  --gcl-gold: #c9a84c;
  --gcl-gold-pale: #faf5e8;
  --gcl-gold-deep: #a68a3a;

  /* Neutrals */
  --gcl-ink: #0c1a28;
  --gcl-text: #1e2a3a;
  --gcl-text-secondary: #556376;
  --gcl-text-muted: #8a95a5;
  --gcl-border: rgba(12, 26, 40, 0.07);
  --gcl-border-strong: rgba(12, 26, 40, 0.13);
  --gcl-surface: #f6f8fa;
  --gcl-surface-warm: #faf8f5;
  --gcl-white: #ffffff;

  /* Semantic */
  --gcl-red: #c2410c;
  --gcl-red-soft: #fff3ed;
  --gcl-yellow: #b45309;
  --gcl-yellow-soft: #fffbeb;
  --gcl-blue: #1d4ed8;
  --gcl-blue-soft: #eff6ff;

  /* Typography */
  --font-display: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-md: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.625rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(12, 26, 40, 0.04);
  --shadow-sm: 0 1px 3px rgba(12, 26, 40, 0.06), 0 1px 2px rgba(12, 26, 40, 0.04);
  --shadow-md: 0 4px 16px rgba(12, 26, 40, 0.07), 0 1px 4px rgba(12, 26, 40, 0.04);
  --shadow-lg: 0 12px 40px rgba(12, 26, 40, 0.09), 0 4px 12px rgba(12, 26, 40, 0.05);
  --shadow-xl: 0 24px 64px rgba(12, 26, 40, 0.12), 0 8px 20px rgba(12, 26, 40, 0.06);
  --shadow-green: 0 4px 20px rgba(22, 107, 67, 0.2);
  --shadow-green-lg: 0 8px 32px rgba(22, 107, 67, 0.25);

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 120ms;
  --transition-base: 200ms;
  --transition-slow: 350ms;

  /* Focus */
  --focus-ring: 0 0 0 2px var(--gcl-white), 0 0 0 4px var(--gcl-green);
}

/* ================================================================
   RESETS & GLOBAL
   ================================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--gcl-surface);
  color: var(--gcl-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, textarea, select { font: inherit; }

::selection {
  background: var(--gcl-green-pale);
  color: var(--gcl-green-deep);
}

*:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.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;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.18); }
* { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.1) transparent; }

/* Skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg,
    var(--gcl-surface) 0%,
    rgba(12, 26, 40, 0.04) 40%,
    var(--gcl-surface) 80%
  );
  background-size: 300% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

/* ================================================================
   CHAT INTERFACE
   ================================================================ */

.chat-page {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 520px);
  height: 100vh;
  overflow: hidden;
}

/* Brand Panel */
.chat-brand-panel {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(22, 107, 67, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    linear-gradient(170deg, #071e12 0%, #0a2e1c 30%, #0d3f28 60%, #0c3322 100%);
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.chat-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.chat-brand-panel::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.chat-brand-panel-inner {
  position: relative;
  z-index: 1;
  max-width: 380px;
}

.chat-brand-logo {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
}

.chat-brand-panel h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.chat-brand-tagline {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: 0;
}

.chat-brand-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--gcl-gold) 0%, transparent 100%);
  margin: 32px 0;
  opacity: 0.5;
}

.chat-brand-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-brand-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-base);
}

.chat-brand-feature svg {
  flex-shrink: 0;
  opacity: 0.4;
}

.chat-brand-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Chat Container */
.chat-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gcl-white);
  border-left: 1px solid var(--gcl-border);
  position: relative;
}

/* Chat Header */
.chat-header {
  background: linear-gradient(135deg, #071e12 0%, var(--gcl-green) 55%, var(--gcl-green-muted) 100%);
  color: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.chat-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
  pointer-events: none;
}

.chat-header-logo {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.chat-header-info {
  position: relative;
  z-index: 1;
}

.chat-header-info h1 {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chat-header-info p {
  font-size: var(--text-xs);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-weight: 500;
}

.header-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  animation: pulse-dot 2.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    linear-gradient(180deg, #f2f4f7 0%, var(--gcl-surface) 30%, var(--gcl-white) 100%);
}

.message {
  max-width: 78%;
  padding: 12px 16px;
  font-size: var(--text-base);
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.55;
  animation: msgIn 0.35s var(--ease-out-expo);
  position: relative;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.message.bot {
  background: var(--gcl-white);
  align-self: flex-start;
  border-radius: 4px 18px 18px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gcl-border);
}

.message.user {
  background: linear-gradient(135deg, var(--gcl-green) 0%, var(--gcl-green-light) 100%);
  color: white;
  align-self: flex-end;
  border-radius: 18px 18px 4px 18px;
  box-shadow: var(--shadow-green);
}

.message .time {
  font-size: 0.625rem;
  margin-top: 6px;
  text-align: right;
  opacity: 0.45;
  font-weight: 500;
}

.message.user .time {
  color: rgba(255, 255, 255, 0.65);
}

/* Typing indicator */
.typing-indicator {
  align-self: flex-start;
  padding: 14px 18px;
  background: var(--gcl-white);
  border-radius: 4px 18px 18px 18px;
  border: 1px solid var(--gcl-border);
  box-shadow: var(--shadow-xs);
  display: none;
  gap: 4px;
  align-items: center;
}

.typing-indicator span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gcl-green);
  border-radius: 50%;
  opacity: 0.3;
  animation: bounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.16s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.32s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Chat Input */
.chat-input-area {
  padding: 16px 20px;
  background: var(--gcl-white);
  box-shadow: 0 -1px 12px rgba(12, 26, 40, 0.04);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.chat-input-area input[type="text"] {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid var(--gcl-border-strong);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  outline: none;
  background: var(--gcl-surface);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.chat-input-area input[type="text"]:focus {
  border-color: var(--gcl-green);
  box-shadow: 0 0 0 3px rgba(22, 107, 67, 0.08);
  background: var(--gcl-white);
}

.chat-input-area input[type="text"]::placeholder {
  color: var(--gcl-text-muted);
}

.chat-input-area button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base) ease;
  flex-shrink: 0;
}

.btn-send {
  background: var(--gcl-green);
  color: white;
  box-shadow: var(--shadow-green);
}

.btn-send:hover {
  background: var(--gcl-green-light);
  box-shadow: var(--shadow-green-lg);
  transform: translateY(-1px);
}

.btn-send:active {
  transform: translateY(0) scale(0.97);
}

.btn-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-upload {
  background: transparent;
  color: var(--gcl-text-muted);
  border: 1.5px solid var(--gcl-border-strong) !important;
}

.btn-upload:hover {
  color: var(--gcl-green);
  border-color: var(--gcl-green) !important;
  background: var(--gcl-green-pale);
}

.btn-upload:active {
  transform: scale(0.95);
}

#file-input { display: none; }

.upload-toast {
  background: var(--gcl-green-pale);
  color: var(--gcl-green);
  padding: 10px 20px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: center;
  display: none;
  border-bottom: 1px solid rgba(22, 107, 67, 0.1);
  letter-spacing: 0.01em;
}

/* Chat Footer */
.chat-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  font-size: 0.625rem;
  color: var(--gcl-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  border-top: 1px solid var(--gcl-border);
  background: var(--gcl-surface);
}

/* ================================================================
   PORTAL: AUTH OVERLAY
   ================================================================ */

.portal-page {
  padding: 20px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(22, 107, 67, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
    var(--gcl-surface);
  min-height: 100vh;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 20, 0.65);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.auth-overlay.visible {
  display: flex;
}

.auth-card {
  width: min(440px, 100%);
  background: var(--gcl-white);
  border: 1px solid var(--gcl-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 48px 40px;
  position: relative;
  animation: authCardIn 0.5s var(--ease-out-expo);
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-brand-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gcl-green-deep), var(--gcl-green));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 24px;
  box-shadow: var(--shadow-green);
}

.auth-brand {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gcl-green);
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.15;
  color: var(--gcl-ink);
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.auth-copy {
  color: var(--gcl-text-secondary);
  font-size: var(--text-base);
}

.auth-divider {
  width: 100%;
  height: 1px;
  background: var(--gcl-border);
  margin: 24px 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--gcl-text);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.auth-form input {
  border: 1.5px solid var(--gcl-border-strong);
  background: var(--gcl-surface);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.auth-form input:focus {
  border-color: var(--gcl-green);
  box-shadow: 0 0 0 3px rgba(22, 107, 67, 0.08);
  background: var(--gcl-white);
}

.auth-form input::placeholder {
  color: var(--gcl-text-muted);
  font-weight: 400;
}

.auth-form button,
.note-form button,
.doc-download,
#logout-btn {
  border: none;
  cursor: pointer;
}

.auth-form button {
  background: var(--gcl-green);
  color: white;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-green);
  transition: all var(--transition-base) ease;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.auth-form button:hover {
  background: var(--gcl-green-light);
  box-shadow: var(--shadow-green-lg);
  transform: translateY(-1px);
}

.auth-form button:active {
  transform: translateY(0) scale(0.98);
}

.auth-form button .btn-arrow {
  transition: transform var(--transition-base);
}

.auth-form button:hover .btn-arrow {
  transform: translateX(3px);
}

.auth-form button .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.auth-form button.loading .btn-text { opacity: 0.7; }
.auth-form button.loading .btn-arrow { display: none; }
.auth-form button.loading .btn-spinner { display: inline-block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-error {
  min-height: 18px;
  color: var(--gcl-red);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ================================================================
   PORTAL: LAYOUT
   ================================================================ */

.portal-wrapper {
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-wrapper.portal-hidden {
  display: none;
}

.portal-wrapper.portal-visible {
  animation: portalReveal 0.5s var(--ease-out-expo);
}

@keyframes portalReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shared panel style */
.portal-header,
.stats-bar,
.sidebar,
.detail-chat,
.detail-info {
  background: var(--gcl-white);
  border: 1px solid var(--gcl-border);
  box-shadow: var(--shadow-sm);
}

/* Header */
.portal-header {
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.portal-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portal-header-brand {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gcl-green-deep), var(--gcl-green));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-green);
}

.portal-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.15;
  color: var(--gcl-ink);
  letter-spacing: -0.02em;
  font-weight: 400;
}

.portal-subtitle {
  color: var(--gcl-text-muted);
  font-size: var(--text-sm);
  margin-top: 2px;
  font-weight: 500;
}

.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  background: var(--gcl-surface);
  color: var(--gcl-text-secondary);
  border: 1px solid var(--gcl-border);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gcl-text-muted);
  transition: background var(--transition-base);
}

.header-badge.active .badge-dot {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
  animation: pulse-dot 2.5s ease infinite;
}

.session-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 6px;
  background: var(--gcl-surface);
  color: var(--gcl-text);
  border: 1px solid var(--gcl-border);
  font-size: var(--text-sm);
  font-weight: 500;
}

.session-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gcl-green), var(--gcl-green-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

#logout-btn {
  background: transparent;
  color: var(--gcl-text-muted);
  padding: 6px;
  margin-left: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

#logout-btn:hover {
  color: var(--gcl-red);
  background: var(--gcl-red-soft);
}

/* ================================================================
   STATS BAR
   ================================================================ */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1px;
  padding: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gcl-border);
}

.stat-card {
  padding: 20px 18px;
  background: var(--gcl-white);
  transition: background var(--transition-base);
  position: relative;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--gcl-border-strong);
  transition: background var(--transition-base);
}

.stat-card:hover {
  background: var(--gcl-surface);
}

.stat-card-primary::before { background: var(--gcl-green); }
.stat-card-active::before { background: var(--gcl-blue); }
.stat-card-escalated::before { background: var(--gcl-red); }
.stat-card-completed::before { background: var(--gcl-text-muted); }
.stat-card-service::before { background: var(--gcl-gold); }

.stat-card .value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gcl-ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-card .label {
  margin-top: 6px;
  color: var(--gcl-text-secondary);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.stat-card-primary {
  background: linear-gradient(135deg, var(--gcl-green-deep) 0%, var(--gcl-green) 100%);
}

.stat-card-primary::before { display: none; }

.stat-card-primary .value,
.stat-card-primary .label {
  color: white;
}

.stat-card-primary .label { opacity: 0.75; }

.stat-card-primary:hover {
  background: linear-gradient(135deg, #0c3520 0%, var(--gcl-green-light) 100%);
}

/* Stat skeletons */
.stat-skeleton {
  padding: 20px 18px;
  background: var(--gcl-white);
}

.stat-skeleton-value {
  width: 48px;
  height: 26px;
  margin-bottom: 8px;
}

.stat-skeleton-label {
  width: 80px;
  height: 12px;
}

/* ================================================================
   PORTAL BODY: SIDEBAR + DETAIL
   ================================================================ */

.portal-body {
  flex: 1;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
}

.sidebar,
.detail-chat,
.detail-info {
  border-radius: var(--radius-xl);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.sidebar-filters {
  padding: 16px;
  border-bottom: 1px solid var(--gcl-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-wrapper {
  flex: 1 1 100%;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gcl-text-muted);
  pointer-events: none;
}

.search-wrapper input {
  padding-left: 36px !important;
}

.sidebar-filters input,
.sidebar-filters select,
.note-form input,
.note-form textarea {
  width: 100%;
  border: 1.5px solid var(--gcl-border-strong);
  background: var(--gcl-surface);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  color: var(--gcl-text);
}

.sidebar-filters input::placeholder,
.note-form input::placeholder,
.note-form textarea::placeholder {
  color: var(--gcl-text-muted);
}

.sidebar-filters input:focus,
.sidebar-filters select:focus,
.note-form input:focus,
.note-form textarea:focus {
  border-color: var(--gcl-green);
  box-shadow: 0 0 0 3px rgba(22, 107, 67, 0.06);
  background: var(--gcl-white);
}

.sidebar-filters select {
  flex: 1 1 140px;
  cursor: pointer;
  color: var(--gcl-text-secondary);
}

.sidebar-count {
  flex: 1 1 100%;
  font-size: var(--text-xs);
  color: var(--gcl-text-muted);
  font-weight: 500;
  padding: 2px 4px 0;
}

/* Conv List */
.conv-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}

.empty-list {
  padding: 48px 24px;
  text-align: center;
}

.empty-list-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--gcl-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gcl-text-muted);
}

.empty-list-text {
  color: var(--gcl-text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.conv-item {
  width: 100%;
  text-align: left;
  background: transparent;
  padding: 14px 14px 14px 18px;
  border: 1.5px solid transparent;
  border-left: 3px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  margin-bottom: 2px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.conv-item:hover {
  background: var(--gcl-surface);
  border-color: var(--gcl-border);
  border-left-color: var(--gcl-border-strong);
}

.conv-item.active {
  background: var(--gcl-green-pale);
  border-color: rgba(22, 107, 67, 0.15);
  border-left-color: var(--gcl-green);
  box-shadow: var(--shadow-xs);
}

.conv-item.status-escalated {
  border-left-color: transparent;
}
.conv-item.status-escalated:hover { border-left-color: var(--gcl-red); }
.conv-item.status-escalated.active { border-left-color: var(--gcl-red); }

.conv-item.status-completed {
  border-left-color: transparent;
}
.conv-item.status-completed:hover { border-left-color: var(--gcl-text-muted); }
.conv-item.status-completed.active { border-left-color: var(--gcl-text-muted); }

/* Avatar */
.conv-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
  color: white;
  letter-spacing: -0.02em;
}

.conv-avatar-green { background: linear-gradient(135deg, #166b43, #1e9058); }
.conv-avatar-blue { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.conv-avatar-gold { background: linear-gradient(135deg, #a68a3a, #c9a84c); }
.conv-avatar-rose { background: linear-gradient(135deg, #be185d, #e11d48); }
.conv-avatar-purple { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.conv-avatar-teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }

.conv-item-content {
  flex: 1;
  min-width: 0;
}

.conv-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.conv-item-name {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--gcl-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-item-phone {
  font-size: var(--text-xs);
  color: var(--gcl-text-muted);
  margin-top: 1px;
}

.conv-item-time {
  font-size: var(--text-xs);
  color: var(--gcl-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.conv-item-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 8px 0 6px;
}

.conv-item-meta {
  display: flex;
  gap: 14px;
  font-size: var(--text-xs);
  color: var(--gcl-text-muted);
}

.conv-item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.doc-name-row,
.note-header,
.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.muted-text,
.doc-meta {
  color: var(--gcl-text-secondary);
}

.detail-chat-subtitle {
  color: var(--gcl-text-secondary);
}

/* Chips / Badges */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.chip-service { background: var(--gcl-blue-soft); color: #1e40af; }
.chip-status-active { background: #ecfdf5; color: #047857; }
.chip-status-escalated { background: var(--gcl-red-soft); color: var(--gcl-red); }
.chip-status-completed { background: #f3f4f6; color: #4b5563; }
.chip-stage-intake { background: #eff6ff; color: #1d4ed8; }
.chip-stage-assessment { background: var(--gcl-yellow-soft); color: #92400e; }
.chip-stage-recommendation { background: #f5f3ff; color: #6d28d9; }
.chip-stage-documents { background: #eff6ff; color: #1e40af; }
.chip-stage-consultation { background: #fdf2f8; color: #be185d; }
.chip-stage-lead { background: #ecfdf5; color: #047857; }
.chip-stage-closed { background: #f3f4f6; color: #4b5563; }

/* Conv skeleton */
.conv-skeleton {
  display: flex;
  gap: 12px;
  padding: 14px 14px 14px 18px;
  margin-bottom: 2px;
}

.conv-skeleton-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.conv-skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conv-skeleton-name { width: 120px; height: 14px; }
.conv-skeleton-phone { width: 80px; height: 10px; }
.conv-skeleton-badges { width: 160px; height: 18px; border-radius: var(--radius-full); }
.conv-skeleton-meta { width: 100px; height: 10px; }

/* ================================================================
   DETAIL PANEL
   ================================================================ */

.detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 340px;
  gap: 16px;
  min-height: 0;
}

.detail-empty {
  grid-column: 1 / -1;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: var(--gcl-white);
  border: 1.5px dashed rgba(12, 26, 40, 0.08);
  text-align: center;
  padding: 48px;
}

.detail-empty-inner {
  animation: floatIn 0.6s var(--ease-out-expo);
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gcl-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gcl-text-muted);
  animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.7; }
}

.detail-empty h3 {
  font-family: var(--font-display);
  margin-top: 8px;
  font-size: var(--text-xl);
  max-width: 420px;
  color: var(--gcl-text-secondary);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.detail-empty-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gcl-text-muted) !important;
}

/* Chat detail */
.detail-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.detail-chat-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--gcl-border);
}

.detail-chat-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gcl-green);
}

.detail-chat-header h2 {
  margin: 6px 0 4px;
  font-size: var(--text-xl);
  color: var(--gcl-ink);
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

.detail-chat-subtitle {
  font-size: var(--text-sm);
}

.detail-state-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Stage strip — segmented bar */
.stage-strip {
  display: flex;
  gap: 4px;
  padding: 18px 28px 20px;
  border-bottom: 1px solid var(--gcl-border);
}

.stage-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stage-node-bar {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(12, 26, 40, 0.06);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-slow);
}

.stage-node-bar-fill {
  position: absolute;
  inset: 0;
  background: var(--gcl-green);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.stage-node.done .stage-node-bar-fill {
  transform: scaleX(1);
  opacity: 0.45;
}

.stage-node.current .stage-node-bar-fill {
  transform: scaleX(1);
  opacity: 1;
  box-shadow: 0 0 12px rgba(22, 107, 67, 0.3);
}

.stage-node.current .stage-node-bar {
  animation: stageGlow 2s ease-in-out infinite;
}

@keyframes stageGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 107, 67, 0); }
  50% { box-shadow: 0 0 8px 2px rgba(22, 107, 67, 0.15); }
}

.stage-node-label {
  font-size: 0.5625rem;
  color: var(--gcl-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

.stage-node.current .stage-node-label {
  color: var(--gcl-green);
  font-weight: 700;
}

.stage-node.done .stage-node-label {
  color: var(--gcl-text-secondary);
}

/* Detail messages */
.detail-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--gcl-surface);
}

.date-separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 8px;
  font-size: 0.625rem;
  color: var(--gcl-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.date-separator::before,
.date-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gcl-border);
}

.detail-message {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: var(--gcl-white);
  border: 1px solid var(--gcl-border);
  animation: msgIn 0.3s var(--ease-out-expo);
}

.detail-message.role-user {
  align-self: flex-end;
  background: var(--gcl-green-pale);
  border-color: rgba(22, 107, 67, 0.1);
}

.detail-message.role-bot {
  align-self: flex-start;
}

.detail-message.role-lawyer {
  align-self: flex-end;
  background: var(--gcl-gold-pale);
  border-color: rgba(201, 168, 76, 0.18);
}

.role-label {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--gcl-text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.role-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.role-bot .role-icon {
  background: var(--gcl-green-pale);
  color: var(--gcl-green);
}

.role-user .role-icon {
  background: rgba(22, 107, 67, 0.08);
  color: var(--gcl-green);
}

.role-lawyer .role-icon {
  background: var(--gcl-gold-pale);
  color: var(--gcl-gold-deep);
}

.detail-message-body {
  font-size: var(--text-sm);
  color: var(--gcl-text);
  line-height: 1.6;
}

/* Detail info sidebar */
.detail-info {
  overflow-y: auto;
  padding: 24px;
}

.info-section {
  margin-bottom: 28px;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--gcl-text-muted);
}

.info-section h3 svg {
  opacity: 0.5;
}

.info-row {
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  transition: background var(--transition-fast);
}

.info-row:nth-child(odd) {
  background: rgba(12, 26, 40, 0.02);
}

.info-row .label {
  font-weight: 500;
  color: var(--gcl-text-secondary);
}

.info-row .value {
  max-width: 58%;
  text-align: right;
  font-weight: 600;
  color: var(--gcl-ink);
  word-break: break-word;
}

/* Cards: assessment, docs, notes */
.assessment-item,
.doc-card,
.note-item {
  background: var(--gcl-surface);
  border: 1px solid var(--gcl-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.assessment-item:hover,
.doc-card:hover,
.note-item:hover {
  border-color: var(--gcl-border-strong);
  box-shadow: var(--shadow-xs);
}

.assessment-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-shell {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.doc-main {
  min-width: 0;
  flex: 1;
}

.doc-file-mark {
  min-width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--gcl-green-pale) 0%, var(--gcl-gold-pale) 100%);
  color: var(--gcl-green-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(22, 107, 67, 0.08);
}

.assessment-item .q {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gcl-text-muted);
}

.assessment-item .a,
.doc-title {
  font-weight: 600;
  color: var(--gcl-ink);
  font-size: var(--text-sm);
}

.doc-heading {
  min-width: 0;
  flex: 1;
}

.doc-title,
.doc-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-subtitle {
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--gcl-text-muted);
}

.doc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.doc-status-chip,
.doc-detail-chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 4px 9px;
  font-size: var(--text-xs);
  line-height: 1.2;
}

.doc-status-chip {
  background: var(--gcl-gold-pale);
  color: var(--gcl-gold-deep);
  border: 1px solid rgba(166, 138, 58, 0.14);
  font-weight: 600;
}

.doc-detail-chip {
  background: var(--gcl-white);
  color: var(--gcl-text-secondary);
  border: 1px solid var(--gcl-border);
}

.doc-download {
  background: var(--gcl-ink);
  color: white;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
}

.doc-download:hover {
  background: var(--gcl-green);
  box-shadow: var(--shadow-green);
}

.doc-download:disabled {
  opacity: 0.4;
}

.doc-desc {
  margin-top: 10px;
  font-size: var(--text-xs);
  color: var(--gcl-text-secondary);
  line-height: 1.55;
}

.doc-meta {
  font-size: var(--text-xs);
}

@media (max-width: 720px) {
  .doc-shell {
    flex-direction: column;
  }

  .doc-file-mark {
    min-width: 42px;
    width: 42px;
    height: 42px;
  }

  .doc-name-row {
    flex-direction: column;
    align-items: stretch;
  }

  .doc-download {
    align-self: flex-start;
  }
}

/* Note form */
.note-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gcl-border);
}

.note-form textarea {
  min-height: 80px;
  resize: vertical;
}

.note-form button {
  background: var(--gcl-green);
  color: white;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-weight: 600;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-green);
  transition: all var(--transition-base) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-end;
}

.note-form button:hover {
  background: var(--gcl-green-light);
  box-shadow: var(--shadow-green-lg);
  transform: translateY(-1px);
}

.note-form button:active {
  transform: translateY(0) scale(0.98);
}

.note-header {
  font-size: var(--text-xs);
  color: var(--gcl-text-secondary);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--gcl-ink);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.35s var(--ease-out-expo), toastOut 0.3s ease 2.7s forwards;
  pointer-events: auto;
}

.toast-success { border-left: 3px solid #4ade80; }
.toast-error { border-left: 3px solid var(--gcl-red); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1400px) {
  .portal-body {
    grid-template-columns: 340px minmax(0, 1fr);
  }
}

@media (max-width: 1200px) {
  .portal-body {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: 400px;
  }
}

@media (max-width: 900px) {
  .portal-page {
    padding: 12px;
  }

  .auth-overlay { padding: 16px; }

  .auth-card {
    padding: 32px 28px;
    border-radius: var(--radius-xl);
  }

  .auth-card h1 { font-size: var(--text-2xl); }

  .portal-header {
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-header h1 { font-size: var(--text-xl); }

  .portal-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .stats-bar { border-radius: var(--radius-lg); }

  .sidebar { min-height: 320px; }

  .detail-chat { min-height: 420px; }

  .stage-strip {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px 18px;
  }

  .stage-node {
    min-width: 72px;
  }

  .detail-chat-header { padding: 18px 20px 14px; }
  .detail-messages { padding: 16px 20px 20px; }
  .detail-info { padding: 18px; }
}

@media (max-width: 768px) {
  .chat-page {
    grid-template-columns: 1fr;
  }

  .chat-brand-panel {
    display: none;
  }

  .chat-container {
    border-left: none;
    border-right: none;
  }
}

@media (max-width: 480px) {
  .portal-page { padding: 8px; }

  .portal-header { border-radius: var(--radius-lg); padding: 16px; }
  .portal-header h1 { font-size: var(--text-lg); }

  .stats-bar { border-radius: var(--radius-md); }
  .stat-card { padding: 14px 12px; }
  .stat-card .value { font-size: var(--text-xl); }

  .sidebar,
  .detail-chat,
  .detail-info { border-radius: var(--radius-lg); }

  .chat-header { padding: 16px 18px; }
  .chat-header-logo { width: 40px; height: 40px; border-radius: 12px; }
  .chat-messages { padding: 16px 14px; }
  .chat-input-area { padding: 12px 14px; }
  .chat-footer { font-size: 0.5625rem; }
}

/* Print */
@media print {
  .portal-header-actions,
  .sidebar-filters,
  .note-form,
  .stage-strip,
  .toast-container { display: none !important; }

  .portal-body { display: block; }
  .sidebar { display: none; }
  .detail-panel { display: block; }
  .detail-chat, .detail-info { box-shadow: none; border: none; }
}
