/* Styles for xanrean/characters/character.html — moved out of the markup verbatim. */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    
    body {
      font-family: var(--font-body);
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      line-height: 1.7;
    }
    
    .back-link {
      display: inline-block;
      padding: 1rem 2rem;
      color: var(--royal-light);
      text-decoration: none;
    }
    
    .back-link:hover { text-decoration: underline; }
    
    .char-layout {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 2rem;
      padding: 0 2rem 2rem;
    }
    
    .char-sidebar {
      position: sticky;
      top: 20px;
      height: fit-content;
    }
    
    .char-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 1.5rem;
      text-align: center;
    }
    
    .char-avatar {
      width: 140px;
      height: 140px;
      background: var(--surface2);
      border-radius: 50%;
      margin: 0 auto 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 4rem;
      overflow: hidden;
    }
    
    .char-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .char-card h2 {
      font-family: var(--font-display);
      font-size: 1.3rem;
      margin-bottom: 0.25rem;
      line-height: 1.3;
    }
    
    .char-card .subtitle {
      color: var(--muted);
      font-size: 0.9rem;
      margin-bottom: 1.5rem;
    }
    
    .char-stat {
      display: flex;
      justify-content: space-between;
      padding: 0.6rem 0;
      border-bottom: 1px solid var(--border);
      font-size: 0.9rem;
    }
    
    .char-stat:last-child { border-bottom: none; }
    .char-stat-label { color: var(--muted); }
    
    .char-main { min-height: calc(100vh - 100px); }
    
    .char-section { margin-bottom: 2rem; }
    
    .char-section h1 {
      font-family: var(--font-display);
      font-size: 2rem;
      margin-bottom: 1rem;
    }
    
    .char-section h3 {
      font-family: var(--font-display);
      font-size: 1.3rem;
      color: var(--royal-light);
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid var(--border);
    }
    
    .char-section p { margin-bottom: 1rem; }
    .char-section ul { margin-left: 1.5rem; margin-bottom: 1rem; }
    .char-section li { margin-bottom: 0.5rem; }
    .char-section strong { color: var(--royal-light); }
    .char-section a { color: var(--royal-light); }
    .char-section a:hover { text-decoration: underline; }
    
    .char-loading, .char-error {
      text-align: center;
      padding: 4rem;
      color: var(--muted);
    }
    
    @media (max-width: 900px) {
      .char-layout { grid-template-columns: 1fr; }
      .char-sidebar { position: static; }
    }
    /* Canon Status Markers */
    .canon-confirmed {
      color: #10b981;
      font-weight: 600;
    }
    
    .canon-unconfirmed {
      color: #6b7280;
      font-style: italic;
    }
    
    .canon-possible {
      color: #f59e0b;
      font-weight: 500;
    }
    
    .canon-verify {
      color: #3b82f6;
      font-weight: 500;
    }
    
    [data-theme="dark"] .canon-confirmed { color: #34d399; }
    [data-theme="dark"] .canon-unconfirmed { color: #9ca3af; }
    [data-theme="dark"] .canon-possible { color: #fbbf24; }
    [data-theme="dark"] .canon-verify { color: #60a5fa; }
    
    /* Content area styling */
    .char-main h1, .char-content h1 {
      font-size: 2rem;
      margin-bottom: 1rem;
    }
    
    .char-main h2, .char-content h2 {
      font-size: 1.5rem;
      margin-top: 2rem;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
    }
    
    .char-main h3, .char-content h3 {
      font-size: 1.25rem;
      margin-top: 1.5rem;
      margin-bottom: 0.75rem;
      color: var(--text);
    }
    
    .char-main h4, .char-content h4 {
      font-size: 1rem;
      margin-top: 1rem;
      margin-bottom: 0.5rem;
      color: var(--muted);
    }
    
    .char-main ul, .char-content ul {
      margin-left: 1.5rem;
      margin-bottom: 1rem;
    }
    
    .char-main li, .char-content li {
      margin-bottom: 0.5rem;
    }
    
    .char-main hr, .char-content hr {
      border: none;
      border-top: 1px solid var(--border);
      margin: 2rem 0;
    }
    
    .rel-section { margin-top: 2rem; }
    .rel-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1rem; margin-top: 1rem;
    }
    .rel-card {
      background: var(--surface); border: 1px la solid var(--border);
      border-radius: 12px; padding: 1rem;
      border-left: 4px solid var(--royal);
    }
    .rel-name {
      font-family: var(--font-display); font-size: 1.1rem;
      color: var(--royal-light); text-decoration: none;
      display: block; margin-bottom: 0.25rem;
    }
    .rel-type {
      font-size: 0.8rem; color: var(--muted);
      text-transform: uppercase; font-weight: 600;
      margin-bottom: 0.5rem; display: block;
    }
    .rel-desc { font-size: 0.9rem; color: var(--text); }
  