/* Jean-Claude — EO institutional aesthetic
   Palette: EU blue #003399, EU yellow #ffcc00, off-white paper, regulatory red */

:root {
  --eo-blue: #003399;
  --eo-blue-deep: #001f5c;
  --eo-blue-bright: #0050d0;
  --eo-blue-soft: #e8eef9;
  --eo-yellow: #ffcc00;
  --eo-yellow-soft: #fff4cc;
  --eo-red: #c8202c;
  --eo-red-soft: #fde8ea;
  --eo-green: #1f8a5b;
  --eo-green-soft: #e3f5ec;
  --eo-amber: #d97706;
  --eo-amber-soft: #fef3c7;

  --paper: #ffffff;
  --paper-2: #f7f6f1;
  --paper-3: #efeee8;
  --ink: #1a1a1a;
  --ink-2: #404040;
  --ink-3: #6b6b6b;
  --ink-4: #9a9a9a;
  --rule: #d8d6cf;
  --rule-soft: #e9e7e0;

  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-data: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
  --font-display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body, #root {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--eo-blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--eo-blue-bright); }

button { font-family: inherit; font-size: inherit; cursor: pointer; }

/* Top header */
.jc-header {
  background: var(--eo-blue);
  color: white;
  border-bottom: 4px solid var(--eo-yellow);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.jc-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.jc-brand-mark { width: 38px; height: 38px; }
.jc-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.jc-brand-tag {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-style: italic;
}
.jc-header-spacer { flex: 1; }
.jc-header-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
}
.jc-compliance-badge {
  background: var(--eo-yellow);
  color: var(--eo-blue);
  border-radius: 4px;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e6b800;
}
.jc-bell {
  position: relative;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
}
.jc-bell-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--eo-red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--eo-blue);
}
.jc-lang-button {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
}
.jc-help-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.jc-avatar-frame {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid var(--eo-yellow);
  position: relative;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}
.jc-avatar-flag {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 14px; height: 14px;
  border: 1px solid white;
  border-radius: 2px;
  overflow: hidden;
}

/* Compliance breadcrumb strip */
.jc-strip {
  background: white;
  border-bottom: 1px solid var(--rule);
  padding: 6px 20px;
  display: flex;
  gap: 18px;
  font-size: 11px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.jc-strip-item { display: inline-flex; align-items: center; gap: 5px; }
.jc-strip-item.ok::before { content: "✓"; color: var(--eo-green); font-weight: 700; }

/* Notice bar */
.jc-notice {
  background: var(--eo-red-soft);
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.jc-notice-dot {
  width: 18px; height: 18px;
  background: var(--eo-red);
  color: white;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.jc-notice-link {
  margin-left: auto;
  background: white;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  color: #721c24;
  white-space: nowrap;
}

/* Main layout */
.jc-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.jc-main {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 12px;
  padding: 12px;
  flex: 1;
  min-height: 0;
}
@media (max-width: 1100px) {
  .jc-main { grid-template-columns: 220px 1fr; }
  .jc-sidebar-right { display: none; }
}
@media (max-width: 800px) {
  .jc-main { grid-template-columns: 1fr; }
  .jc-sidebar-left { display: none; }
}

/* Cards / sidebars */
.jc-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px;
}
.jc-card h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.jc-card-section + .jc-card-section { margin-top: 14px; }

.jc-sidebar-left, .jc-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Convo list */
.jc-convo-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.jc-convo-title { font-weight: 700; font-size: 14px; }
.jc-new-btn {
  background: white;
  border: 1px solid var(--rule);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--ink-2);
}
.jc-new-btn:hover { background: var(--eo-blue-soft); border-color: var(--eo-blue); color: var(--eo-blue); }
.jc-convo-list { display: flex; flex-direction: column; gap: 4px; }
.jc-convo-item {
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
}
.jc-convo-item:hover { background: var(--paper-2); }
.jc-convo-item.active {
  background: var(--eo-blue-soft);
  border-color: #c5d3eb;
}
.jc-convo-item-title {
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
  display: flex; justify-content: space-between; gap: 6px;
}
.jc-convo-item-time { color: var(--ink-4); font-size: 11px; font-weight: 400; }
.jc-convo-item-sub { color: var(--ink-3); font-size: 11px; margin-top: 2px; }
.jc-convo-status {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid;
}
.jc-status-amber { background: var(--eo-amber-soft); color: var(--eo-amber); border-color: #fcd34d; }
.jc-status-red { background: var(--eo-red-soft); color: var(--eo-red); border-color: #f5c6cb; }
.jc-status-green { background: var(--eo-green-soft); color: var(--eo-green); border-color: #b6dec8; }
.jc-status-blue { background: var(--eo-blue-soft); color: var(--eo-blue); border-color: #c5d3eb; }

/* Nav */
.jc-nav { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--rule-soft); }
.jc-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-2);
  background: none; border: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.jc-nav-item:hover { background: var(--paper-2); color: var(--ink); }
.jc-nav-item.active { background: var(--eo-blue-soft); color: var(--eo-blue); font-weight: 600; }
.jc-nav-item-icon { width: 16px; flex-shrink: 0; opacity: 0.7; }
.jc-nav-item .jc-pill {
  margin-left: auto;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.jc-pill-info { background: var(--eo-blue-soft); color: var(--eo-blue); }
.jc-pill-warn { background: var(--eo-amber-soft); color: var(--eo-amber); }
.jc-pill-green { background: var(--eo-green-soft); color: var(--eo-green); }

/* CEF banner */
.jc-cef-banner {
  margin-top: auto;
  background: var(--eo-blue-soft);
  border: 1px solid #c5d3eb;
  padding: 10px;
  border-radius: 4px;
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-2);
}
.jc-cef-flag { width: 28px; height: 19px; flex-shrink: 0; }
.jc-cef-banner a { display: block; margin-top: 4px; font-size: 11px; }

/* Center column / chat */
.jc-chat-frame {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.jc-chat-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.jc-chat-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.jc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid;
  letter-spacing: 0.02em;
}
.jc-chip.red { background: var(--eo-red-soft); color: var(--eo-red); border-color: #f5c6cb; }
.jc-chip.blue { background: var(--eo-blue-soft); color: var(--eo-blue); border-color: #c5d3eb; }
.jc-chip.green { background: var(--eo-green-soft); color: var(--eo-green); border-color: #b6dec8; }
.jc-chip.gray { background: var(--paper-2); color: var(--ink-3); border-color: var(--rule); }

.jc-chat-thread {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(to bottom, white, var(--paper-2));
  min-height: 320px;
}
.jc-msg-row { display: flex; gap: 10px; align-items: flex-start; }
.jc-msg-row.user { flex-direction: row-reverse; }
.jc-msg-avatar {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--eo-blue);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--rule);
}
.jc-msg-avatar svg { width: 100%; height: 100%; }
.jc-msg-bubble {
  max-width: min(560px, 80%);
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid var(--rule);
  background: white;
  position: relative;
}
.jc-msg-bubble.user {
  background: var(--eo-blue-soft);
  border-color: #c5d3eb;
  color: var(--ink);
}
.jc-msg-bubble.assistant {
  background: white;
}
.jc-msg-bubble .jc-msg-time {
  font-size: 10px;
  color: var(--ink-4);
  margin-top: 4px;
  font-family: var(--font-data);
}
.jc-msg-bubble .jc-disclaimer {
  font-size: 11px;
  font-style: italic;
  color: var(--ink-3);
  border-left: 2px solid var(--eo-yellow);
  padding-left: 8px;
  margin-top: 6px;
  background: rgba(255, 204, 0, 0.06);
  padding: 4px 8px;
  border-radius: 0 3px 3px 0;
}
.jc-msg-bubble .jc-thinking {
  font-style: italic;
  color: var(--ink-3);
  font-size: 12px;
}
.jc-msg-bubble.refused {
  border-color: #f5c6cb;
  background: var(--eo-red-soft);
}
.jc-msg-bubble.invoice {
  border-color: #fcd34d;
  background: #fffbeb;
}
.jc-msg-citation {
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--eo-blue);
  margin-top: 6px;
}

/* Composer */
.jc-composer {
  padding: 12px 14px;
  border-top: 1px solid var(--rule);
  background: white;
}
.jc-composer-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.jc-textarea {
  flex: 1;
  min-height: 56px;
  max-height: 140px;
  resize: none;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  background: var(--paper-2);
  color: var(--ink);
}
.jc-textarea:focus {
  outline: none;
  border-color: var(--eo-blue);
  background: white;
  box-shadow: 0 0 0 3px var(--eo-blue-soft);
}
.jc-submit-btn {
  background: var(--eo-blue);
  color: white;
  border: 1px solid var(--eo-blue-deep);
  border-radius: 4px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.jc-submit-btn:hover { background: var(--eo-blue-deep); }
.jc-submit-btn:disabled { background: var(--ink-4); border-color: var(--ink-4); cursor: not-allowed; }
.jc-submit-btn.yellow { background: var(--eo-yellow); color: var(--eo-blue); border-color: #e6b800; }
.jc-submit-btn.yellow:hover { background: #f0bf00; }

.jc-composer-meta {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 8px;
}
.jc-composer-disclaimer {
  font-size: 11px;
  color: var(--ink-3);
  font-style: italic;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--rule);
}

/* Right sidebar */
.jc-score-ring {
  position: relative;
  width: 120px; height: 120px;
  margin: 8px auto;
}
.jc-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.jc-score-ring-text {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.jc-score-num { font-size: 28px; font-weight: 700; color: var(--eo-green); font-family: var(--font-data); }
.jc-score-label { font-size: 10px; color: var(--ink-3); }

.jc-checklist { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.jc-checklist-item { display: flex; gap: 6px; align-items: flex-start; color: var(--ink-2); }
.jc-checklist-item::before {
  content: "✓";
  color: var(--eo-green);
  font-weight: 700;
}
.jc-checklist-item .jc-sub { color: var(--ink-4); font-size: 10px; display: block; }

.jc-rights-list { display: flex; flex-direction: column; gap: 4px; }
.jc-rights-btn {
  background: white;
  border: 1px solid var(--rule);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--ink-2);
  text-align: left;
  display: flex; align-items: center; gap: 6px;
}
.jc-rights-btn:hover { background: var(--paper-2); border-color: var(--eo-blue); color: var(--eo-blue); }

/* Cookie banner */
.jc-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 90;
  display: flex; align-items: flex-end;
}
.jc-cookie-banner {
  background: white;
  width: 100%;
  border-top: 4px solid var(--eo-yellow);
  padding: 18px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  position: relative;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.jc-cookie-mascot {
  width: 90px;
  height: auto;
  flex-shrink: 0;
}
.jc-cookie-text { font-size: 13px; color: var(--ink); max-width: 600px; }
.jc-cookie-text h2 {
  font-family: var(--font-display);
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--eo-blue);
}
.jc-cookie-buttons { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.jc-cookie-btn {
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid;
  text-align: center;
}
.jc-cookie-btn.primary { background: var(--eo-yellow); color: var(--eo-blue); border-color: #e6b800; }
.jc-cookie-btn.primary:hover { background: #f0bf00; }
.jc-cookie-btn.secondary { background: white; color: var(--eo-blue); border-color: var(--eo-blue); }
.jc-cookie-btn.secondary:hover { background: var(--eo-blue-soft); }
.jc-cookie-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none; border: none; font-size: 18px; color: var(--ink-3);
}

/* Modal */
.jc-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.jc-modal {
  background: white;
  border-top: 4px solid var(--eo-blue);
  border-radius: 4px;
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.jc-modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.jc-modal-title { font-weight: 700; font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.jc-modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.jc-modal-footer { padding: 12px 18px; border-top: 1px solid var(--rule); display: flex; justify-content: flex-end; gap: 8px; }
.jc-close-btn { background: none; border: none; font-size: 20px; color: var(--ink-3); cursor: pointer; }

/* Buttons */
.jc-btn {
  background: white;
  border: 1px solid var(--rule);
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.jc-btn:hover { background: var(--paper-2); }
.jc-btn.primary { background: var(--eo-blue); color: white; border-color: var(--eo-blue-deep); }
.jc-btn.primary:hover { background: var(--eo-blue-deep); }
.jc-btn.yellow { background: var(--eo-yellow); color: var(--eo-blue); border-color: #e6b800; font-weight: 600; }
.jc-btn.yellow:hover { background: #f0bf00; }
.jc-btn.danger { background: var(--eo-red); color: white; border-color: #a01820; }

/* Footer */
.jc-footer {
  background: var(--eo-blue);
  color: white;
  padding: 10px 20px;
  font-size: 11px;
  border-top: 4px solid var(--eo-yellow);
}
.jc-footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.jc-footer-meta {
  margin-top: 4px;
  display: flex; flex-wrap: wrap; gap: 18px;
  color: rgba(255,255,255,0.75);
  font-size: 10px;
}
.jc-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.jc-footer a:hover { color: var(--eo-yellow); text-decoration: underline; }
.jc-footer-flag { width: 24px; height: 16px; }

/* Floating widgets */
.jc-floating-card {
  position: fixed;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  z-index: 60;
  font-size: 12px;
  width: 280px;
}
.jc-floating-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600;
  font-size: 12px;
}
.jc-floating-body { padding: 12px; }

/* Von Der Chatbot launcher */
.jc-von-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px; height: 60px;
  background: var(--eo-blue);
  color: white;
  border: 3px solid var(--eo-yellow);
  border-radius: 50%;
  cursor: pointer;
  z-index: 70;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,51,153,0.4);
  transition: transform 0.15s;
}
.jc-von-launcher:hover { transform: scale(1.05); }
.jc-von-launcher::after {
  content: "EO";
  position: absolute;
  bottom: -4px; right: -4px;
  background: var(--eo-yellow);
  color: var(--eo-blue);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
}

.jc-von-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 560px;
  max-height: calc(100vh - 40px);
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  z-index: 70;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.jc-von-header {
  background: var(--eo-blue);
  color: white;
  padding: 12px 14px;
  border-bottom: 4px solid var(--eo-yellow);
  display: flex; align-items: center; justify-content: space-between;
}
.jc-von-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.jc-von-thread {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper-2);
}
.jc-von-bubble {
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  background: white;
  border: 1px solid var(--rule);
}
.jc-von-bubble.user { align-self: flex-end; background: var(--eo-blue-soft); border-color: #c5d3eb; }
.jc-von-composer {
  padding: 10px;
  border-top: 1px solid var(--rule);
  display: flex; gap: 6px;
}
.jc-von-composer input {
  flex: 1;
  border: 1px solid var(--rule);
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
}
.jc-von-composer input:focus { outline: none; border-color: var(--eo-blue); }

/* Utility */
.jc-mono { font-family: var(--font-data); }
.jc-italic { font-style: italic; }
.jc-small { font-size: 11px; }
.jc-muted { color: var(--ink-3); }

.jc-hr { border: none; border-top: 1px solid var(--rule-soft); margin: 10px 0; }

/* Tweaks panel positioning override (from starter) */
[data-tweak-panel] { z-index: 80 !important; }

/* Page-specific (audit log, compliance, settings, landing, 404) */
.jc-page {
  flex: 1;
  padding: 20px;
  background: var(--paper-2);
  overflow-y: auto;
}
.jc-page-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.jc-page-title {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0;
  color: var(--eo-blue);
}
.jc-page-sub { color: var(--ink-3); font-size: 13px; margin-top: -10px; }
.jc-page-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 18px;
}
.jc-page-card h2 { margin: 0 0 10px; font-size: 16px; color: var(--ink); }

/* Table */
.jc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.jc-table th, .jc-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.jc-table th { background: var(--paper-2); font-weight: 600; color: var(--ink-2); }
.jc-table tr:hover td { background: var(--paper-2); }

/* Loader */
.jc-loader-bar {
  height: 3px;
  width: 100%;
  background: var(--rule-soft);
  overflow: hidden;
  position: relative;
  border-radius: 2px;
}
.jc-loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--eo-blue);
  width: 30%;
  animation: jc-load 1.4s linear infinite;
}
@keyframes jc-load {
  from { left: -30%; } to { left: 100%; }
}

/* Mascot illustration (Ursula-the-bureaucrat) */
.jc-mascot {
  width: 90px;
  display: block;
}
