/* Keyframes for the spinner *//*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 *//*  koad was here  *//* Opacity utilities — migrated from koad:io-style-basic-bitch 02-variables.css.
   Ten steps, 10 apart, covering the full range. *//* Cursor utilities — migrated from koad:io-style-basic-bitch cursor.css.
   Global utility classes; component authors who use inline cursor styles don't need these,
   but Blaze templates that sprinkle cursor classes on elements rely on them. *//* Button system — migrated from koad:io-style-basic-bitch buttons.css.
   Replaces Bootstrap .btn, .btn-primary, .btn-default etc.
   All colors derive from theme-engine variables — no hardcoded hex.

   Class map vs Bootstrap:
     .btn-brand   → primary action  (was .btn.btn-primary)
     .btn-outline → secondary/ghost  (was .btn.btn-default or .btn.btn-secondary)
     .btn-success → success action  (uses --success)
     .btn-warning → warning action  (uses --warning)
     .btn-danger  → destructive     (uses --danger)
     .btn-tag     → inline pill tag

   Note: Bootstrap .btn cursor is also covered by cursor-utilities.css.
*/

/* Base button reset — removes browser chrome, applies theme colors as the floor.
   All button variants layer on top of this. *//* Iron Router progress bar — migrated from koad:io-style-basic-bitch iron-router-progress.css.
   Without these rules the progress bar renders white-on-white on dark backgrounds
   and is invisible. Uses --text-bright so it reads on any theme color. *//* Custom scrollbar — migrated from koad:io-style-basic-bitch scroll-bars.css.
   Webkit-only. Thumb colors use opacity-layered white (works on any dark background).
   The original had a layout-specific margin-top calc(88px + 22vh) on the track —
   that belongs in daemon-interface's own CSS, not here. Removed. *//* Table base styles — migrated from koad:io-style-basic-bitch tables.css.
   Provides: full-width reset, sticky thead with backdrop blur, accent-color row hover.
   Retired: .the2adwtf (renamed .table-header-row), .txtr/.rectr (hardcoded black borders),
            .dimmed-cell/.dimmed-cells (hardcoded #555/#999 — use var(--text-muted) instead),
            th.rotate (too layout-specific for a base package). *//* Typography utilities — migrated from koad:io-style-basic-bitch text.css.
   Retired: .text-danger/.text-warning (hardcoded red/orange — use var(--danger)/var(--warning) in component CSS),
            .big-ol-star (novelty), pixel max-widths (let components own their constraints),
            input[type=text] reset (redundant with body.css).
   Kept: ellipsis truncation, word-wrap, glow signal animations. */

/* Single-line overflow truncation *//* Container utilities — migrated from koad:io-style-basic-bitch containers.css.
   Provides the structural positioning classes active in daemon-interface layout.
   Retired: .container/.container-fluid (Bootstrap 3 fixed-pixel widths),
            app-specific graveyard (.episode-selector, .filter-input-banner,
            .bottom-inner-card, .upper-section, .bottom-section, etc.).
   Bootstrap grid (.col-md-*) is not ported — use CSS Grid directly. */

/* Positioned main scroll container — daemon-interface uses this as the primary scroll area *//* SweetAlert2 style overrides — migrated from koad:io-style-basic-bitch background-effects.css.
   Conforms to theme-engine variables; original used hardcoded #fff, #0004.
   These make SweetAlert2 popups legible on dark themed backgrounds. *//* Theme presets — migrated from koad:io-style-basic-bitch themes.css.
   Class-based outfit overrides that demonstrate the h/s/b derivation system.
   Apply to <body> or any container element to scope the theme.

   koad.theme.set() in logic.js can activate these programmatically by
   setting --application-hue / --application-saturation / --application-brightness
   on :root — these class presets are the named shorthand form.

   Preset inventory:
     .theme-github-dark  — default dark (h:215, s:15, b:16)
     .theme-alice        — alice product surface (h:193, s:73, b:57)
     .theme-pandora      — high-saturation yellow (h:69, s:88, b:57)
     .theme-hazes        — multi-hue dark (h:242, accent:10, shadow:0)
     .theme-astro        — teal-leaning light (h:192, s:88, b:29)

   Note: class names use .theme-* prefix to avoid collision with generic utility
   classes. Legacy names (.github-dark, .alice, etc.) without prefix are preserved
   as aliases for backward compatibility.
*/

/* github-dark — the baseline dark theme *//* theme-engine debug inspector styles — self-scoped to .theme-debug-* classes *//* =============================================================
   sovereign-profiles — component stylesheet
   Design: Muse. Functional first. Beautiful always.

   Palette follows koad:io design system:
     bg       #0D0D0D   surface  #111111   raised   #171717
     text      #E8E6E1   dim      #A09E9A   subtle   #555555
     accent    #C9A84C   border   rgba(255,255,255,0.07)
     mono      JetBrains Mono / Fira Code

   Entity outfit integration via CSS vars injected by the parent:
     --entity-hue            (0–360)
     --entity-saturation     (%)
     --entity-brightness     (%)
     --entity-accent         hsl(h, s%, b%)
     --entity-accent-light   hsl(h, s%, b%+20%)

   Where outfit vars are absent, the accent falls back to the
   system amber (#C9A84C). All components are self-contained —
   the package ships its own full styling.
   ============================================================= */

/* ── Custom property defaults (overridden by parent at runtime) ──────────── *//* SPDX-License-Identifier: AGPL-3.0-or-later */
/*
 * activity-stream.css — Base styles for the activity stream component.
 * Intentionally minimal — consumer themes override via koad:io-theme-engine.
 *//*
 * Outfit CSS fallback — for non-Meteor contexts (static sites, browser extension,
 * email templates, OBS overlays). Import this file; stamp the data attributes.
 *
 * Usage:
 *   <body data-outfit-h="29" data-outfit-s="54">
 *   or
 *   <div class="entity-chip" data-outfit-h="29" data-outfit-s="54">Juno</div>
 *
 * For dynamic hue/saturation, inject:
 *   <style>:root { --entity-hue: 29; --entity-saturation: 54%; }</style>
 * and the selectors below will pick them up.
 *
 * CSS variable contract (VESTA-SPEC-063 §5):
 *   --entity-hue          Level 0 — hue in degrees
 *   --entity-saturation   Level 0 — saturation %
 *   --entity-font-heading Level 1 — heading font family
 *   --entity-font-body    Level 1 — body font family
 *   --entity-font-mono    Level 1 — mono font family
 *   --entity-easing       Level 3 — CSS easing function
 *   --entity-duration     Level 3 — transition duration (ms value)
 *
 * Dark Passenger migration note (SPEC-063 §5):
 *   --shadow-hue, --shadow-saturation, --shadow-brightness alias to --entity-*
 *   during transition. New code uses --entity-* only.
 *//* -----
SVG Icons - svgicons.sparkk.fr
----- *//* =============================================
   Announcement Surface
   Base visual spec: Muse, 2026-04-21 (Round 9 brief)
   data-authored-by variants extend without overriding base.
   ============================================= *//* =============================================================
   brandBondGraph — force-directed SVG bond network
   Namespace: .brand-bond-graph-*
   Fills its container. No fixed outer width/height.
   ============================================================= *//* chain-verify-line/styles.css
   Self-scoped. Fluid (inline-level, fills no fixed width — sits in flow).
   Honors theme-engine vars: --text-muted, --font-mono, --accent-color.
   No hardcoded hex. No hardcoded px for colors or brand values.
*//* =============================================================
   brandBondList — entity-grouped bond list
   Namespace: .brand-bond-list-*
   Fills its container. No fixed outer width/height.
   ============================================================= *//* ============================================================
   Content cards — base
   ============================================================ *//* ============================================================
   Audio card
   ============================================================ *//* ============================================================
   Image card
   ============================================================ *//* ============================================================
   Link fallback card
   ============================================================ *//* ============================================================
   X/Twitter card
   ============================================================ *//* ============================================================
   Video card
   ============================================================ *//* ============================================================
   YouTube card
   ============================================================ *//* ============================================================
   conversationNode — recursive emission tree node
   ============================================================ *//* EntityChat — chat harness for any entity namespace route.
   Self-scoped: all selectors prefixed with .entity-chat-*.
   Honors theme-engine vars: --font-mono, --font-body, --accent, --entity-accent,
   --entity-hue, --entity-saturation, --entity-brightness, --bg, --surface,
   --border, --text, --text-dim. *//* live-kingdom/styles.css — live kingdom widget component styles
 * .section-live, .live-kingdom-header, .live-avatars, .live-feed etc. live in host root styles.css.
 *//* ---- Emission item — brandEmissionItem ---- */    /* Entity grid — container for brandEntityCardDashboard instances */
    /* Masonry-style flow — cards size to their content, no gaps from uneven neighbors.
       CSS columns fills top-to-bottom per column. Reading order is column-major. *//* brandEntityProfileMedium — sidebar profile card styles */
/* Selectors scoped to .entity-profile and its children. */
/* Does NOT claim .entity-chip or .entity-card (owned by koad:io-templating). */

/* --- Left sidebar container --- *//* brandEntityRecentActivityPanel — scoped styles
   Inherits overview card/panel styles for shared classes (entity-role, entity-host,
   entity-stat, bond-row, key-row) from the host package.
   The ep-* selectors below are exclusive to this component. *//* ---- Landed flight item card — brandFlightItem ----
   Base emission-item / emission-header / emission-stats styles are shared
   with brandEmissionItem (client/emission/item/styles.css). This file adds
   the 2×2 grid for the flight-specific body: desc | runtime / stats | cost. */

/* The whole tile is an anchor to /flights/:_id. Reset link styling and
   add a subtle affordance on hover. A flight is a take-off-and-return
   type of mission — clicking reveals that one mission's details. *//* ---- Active flight pinned tile — brandFlightPinned ----
   The whole tile is a link to /flights/:_id. A flight is a take-off-and-
   return type of mission; clicking reveals that flight's detail. *//* ---- Flight table row — brandFlightRow ---- *//* brandOverviewAlerts — alert item styling for the activity panel card.
   Moved from client/kingdom/overview/styles.css where it was inline with
   the parent shell. Kept in this component's own file per the self-scoped
   CSS principle. */

/* ---- Alert item (activity panel) ---- *//* brandSpiritGroup — one card per (host, entity) pair, rows per session context. *//* ---- brandKingdomAlerts — alerts view ---- *//* ---- brandKingdomBonds — bonds view ---- *//* ---- brandKingdomCrossKingdomBonds — cross-kingdom bonds view ---- *//* ---- brandKingdomFlights — flight table view ---- *//* ---- brandKingdomHealth — health view ---- *//* ---- brandKingdomKeys — keys view ---- *//* ---- brandKingdomTickles — tickles view ---- *//* brandEntityBondsList — entity-detail panel bonds section *//* brandEntityKeysList — entity-detail panel keys section *//* brandEntityTicklesList — entity-detail panel tickles section *//* Floating player control bar — bottom center *//* ============================================================
   Profile shared styles
   Used across multiple profile sub-components.
   ============================================================ */

/* --- User avatar circle (no hue — neutral) --- *//* ============================================================
   ProfileActivity — enriched emission row as clickable link
   Namespace: .entity-emission-row (shared) — override only link behavior
   ============================================================ */

/* Emission rows are now <a> tags — reset link defaults *//* ============================================================
   Profile bonds split layout — graph left, list right
   Namespace: .profile-bonds-*
   Note: --breakpoint-md CSS var can't be used in media queries directly;
         hardcoded 768px matches --breakpoint-md from theme-engine.
   Note: brandBondGraph + brandBondList components are from
         kingofalldata:brand-components — their internal styles live there.
   ============================================================ *//* ProfileDevices — /<handle>/devices *//* ============================================================
   Profile Files view — two-pane storefront browser
   Namespace: .profile-files-*, .profile-tree-*
   Shared: .markdown-body, .user-content-empty-msg live in profile/_shared.css
   ============================================================ *//* ============================================================
   Profile Identity view
   Namespace: .profile-identity-*
   Shared: .markdown-body lives in profile/_shared.css
   ============================================================ *//* ProfileLeaves — /<handle>/leaves
 * Proof flow styles per Muse's visual brief (leaves-proof-flow-visual.md).
 * Extends existing chip vocabulary; adds panel + artifact display styles.
 */

/* ── Intro ─────────────────────────────────────────────────────────────────── *//* profile/sessions/styles.css — ProfileSessions component styles *//* ============================================================
   Profile sigchain view
   Namespace: .profile-sigchain-*
   Also includes radial bond graph nodes + edges (.bond-node*, .bond-edge*)
   rendered by sigchain/logic.js — not shared with brand-components.
   ============================================================ */

/* Radial bond graph container *//* profile/signature/styles.css — ProfileSignature single-declaration detail styles */
/* Visual register: matches ProfileSessions + ProfileBonds; monospace, dark, branded *//* profile/signatures/styles.css — ProfileSignatures component styles */
/* Visual register: matches ProfileSessions + ProfileBonds — monospace, subtle rows *//* /sessions index — kingdom-wide session list *//* /sessions/timeline — Gantt archive page */

/* ---------------------------------------------------------------------------
   Page shell
--------------------------------------------------------------------------- *//* ThroneContinuationPanel — sovereign-only continuation panel on archive session pages.
   Fluid layout (fills available width), scoped to .throne-panel.
   No hardcoded hex/px for colors — uses outfit/theme-engine variables where possible. *//* address-card — self-scoped, fluid, theme-variable-only *//* address-taint-summary — inline identity chip *//* stake-lifecycle-indicator — state badge *//* stake-card *//* stake-portfolio-view *//* vote-tally-bar *//* vote-ballot-card *//* proposal-summary *//* proposal-tally-panel *//* alliance-card *//* alliance-two-panel-view — SPEC-007 §7.1 sovereignty boundary is visual *//* kingdom-membership-card *//* alliance-member-list — skeleton *//* predicate-evaluation-tree — skeleton *//* chain-block-tail — skeleton *//* address-search-input — skeleton *//* kingdom-overview-panel — skeleton *//* alliance-pool-view-panel — skeleton *//* stake-restaking-lineage — skeleton *//* explorer-mode-switcher — skeleton *//* AccessCard — access/card/styles.css
   Styles for the denied-access card shell and scorecard toggle trigger.
   Muse R2 §8: scorecard toggle is part of the card; inline expansion is scorecard-inline/.
   Note: btn-sponsor-path stays in styles.css — also used by disclosure-dashboard. */

/* ============================================================
   AccessCard — denied-slot placeholder
   REPLACE: Muse visionary direction — placeholder only.
   Extension point: data-slot attribute identifies which gate.
   ============================================================ *//* ScorecardInline — access/scorecard-inline/styles.css
   Muse R2 §8 — in-context scorecard (not modal overlay, not /me full dashboard).
   Phase 4: proximity bar + leaf row state classes. */

/* =======================================================
   Scorecard — inline expansion inside AccessCard
   Muse R2 §8 — in-context, not modal overlay
   Phase 4: proximity bar + leaf row state classes
   ======================================================= *//* ActivityView — /activity route — structural styles only */
/* Visual polish is Muse+koad's lane. This file just prevents layout collapse. *//* Benchmarks Aggregate — /benchmarks */
/* Self-scoped — all class names prefixed benchmarks-aggregate-* / benchmarks-dist-* *//* Benchmarks page — /:entity/benchmarks */
/* Polish by Muse. Theme vars from styles.css :root. */
/* Three rules: fluid, self-scoped, honor the theme. *//* ============================================================
   ChannelIndexPage — /channel
   List of live rooms. Density-friendly; operational register.
   Status indicators communicate room state at a glance.
   ============================================================ */

/* --- Page shell --- *//* ============================================================
   ChannelTopicPage — /channel/:slug
   Operational surface: live multi-entity room, cue model (SPEC-154 v2).
   Visual register: dark, terminal-adjacent, monospace-heavy.
   Per-entity accent via data-entity attr + _ENTITY_HUE map.
   ============================================================ */

/* --- Page shell --- *//* ============================================================
   ConversationTreePage — sessions stats section
   Namespace: .conversation-sessions-*
   Full visual polish deferred to Muse+koad pass.
   ============================================================ *//* Daily page — /daily and /daily/:year/:month/:day */
/* Structure only — Muse handles polish. No hardcoded hex or px beyond layout. *//* =======================================================
   /me — DisclosureDashboard (anonymous shell only)
   Anonymous: full-page wrapper for meBecomingPanel.
   Authenticated: redirect to /<handle> — this file rarely loaded.
   Questline styles live in me-becoming-panel/styles.css.
   ======================================================= *//* ExplorerAddressPage — layout wrapper only; component styles live in explorer-components *//* ExplorerAlliancePage — layout wrapper only; component styles live in explorer-components *//* ExplorerHomePage — layout wrapper only; component styles live in explorer-components *//* ExplorerProposalPage — layout wrapper only; component styles live in explorer-components *//* ExplorerStakePage — layout wrapper only; component styles live in explorer-components *//* ── Callback ────────────────────────────────────────────────────────────── *//* ── Dashboard ───────────────────────────────────────────────────────────── *//* ── Join page ───────────────────────────────────────────────────────────── *//* ── Not a sponsor ───────────────────────────────────────────────────────── *//* ── Sign-in ─────────────────────────────────────────────────────────────── *//* ---- Rituals index page (/rituals) ---- *//* ---- Ritual slug page (/rituals/:slug) ---- *//* Signals page — /signals */
/* Structure only — Muse handles polish. *//* ── Sovereign Login ────────────────────────────────────────────────────────── *//* StatusPage layout — /status route shell.
   Component styles (kingdomHealth, kingdomFuel) live in kingofalldata:brand-components. *//* ============================================================
   Blog — /blog and /blog/:slug
   ============================================================ *//* =======================================================
   meBecomingPanel — self-contained sovereign arc styles
   Muse visual spec 2026-04-25.
   Composes from existing kit; no new design tokens.
   ======================================================= */

/* ── Panel mode shell (authenticated, isOwn, stages incomplete) ─────────────── *//* =========================================================================
   Rituals — shared CSS (state badges, cadence badge)
   Consumed by rituals-index-page and rituals-slug-page.
   Kingdom neutral baseline. No entity hue — rhythm, not personality.
   ========================================================================= */

/* Shared state badge system *//* ============================================================
   kingofalldata.com — Design system by Muse, implemented by Vulcan
   Palette: near-black bg, off-white text, amber accent, cool slate
   Type: Inter (headings/body) + JetBrains Mono (code/technical)
   ============================================================ */

/* --- Custom Properties --- */
@-webkit-keyframes iron-router-progress-before {
	0%   { -webkit-transform: rotate(0deg);   transform: rotate(0deg); }
	100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@-moz-keyframes iron-router-progress-before {
	0%   { -moz-transform: rotate(0deg);   transform: rotate(0deg); }
	100% { -moz-transform: rotate(360deg); transform: rotate(360deg); }
}
@-o-keyframes iron-router-progress-before {
	0%   { -o-transform: rotate(0deg);   transform: rotate(0deg); }
	100% { -o-transform: rotate(360deg); transform: rotate(360deg); }
}
@-ms-keyframes iron-router-progress-before {
	0%   { -ms-transform: rotate(0deg);   transform: rotate(0deg); }
	100% { -ms-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes iron-router-progress-before {
	0%   { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Main progress bar */
#iron-router-progress {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background-color: rgba(160, 160, 160, 0.6);
	box-shadow: 0 0 5px rgba(160, 160, 160, 0.6);
	opacity: 1;
	z-index: 10000;
}

/* CSS-only spinner */
/* The spinner only shows after 0.5 seconds of load time */
#iron-router-progress.spinner:before {
	content: "";
	display: block;
	position: fixed;
	top: 10px;
	right: 10px;
	width: 25px;
	height: 25px;
	background-color: transparent;
	border: 3px solid rgba(160, 160, 160, 0.6);
	border-radius: 100px;
	border-right-color: transparent !important;
	opacity: 0;
	z-index: 10000;
	pointer-events: none;
	transition: 0.5s opacity;
	transition-delay: 0.5s;
}

/* Loading state transitions */
#iron-router-progress.loading {
	transition: 1s width, 1s opacity;
	transition-delay: 0s, 1s;
}

#iron-router-progress.loading.spinner:before {
	opacity: 1;
	-webkit-animation: iron-router-progress-before 0.5s linear infinite;
	-moz-animation: iron-router-progress-before 0.5s linear infinite;
	-o-animation: iron-router-progress-before 0.5s linear infinite;
	-ms-animation: iron-router-progress-before 0.5s linear infinite;
	animation: iron-router-progress-before 0.5s linear infinite;
}

/* Done state - fade out */
#iron-router-progress.done {
	opacity: 0;
}

#iron-router-progress.done.spinner:before {
	opacity: 0;
}

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}


/*!
 * Bootstrap v3.3.7 (http://getbootstrap.com)
 * Copyright 2011-2016 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(packages/koad_io-theme-engine/fonts/glyphicons-halflings-regular.eot);src:url(packages/koad_io-theme-engine/fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(packages/koad_io-theme-engine/fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(packages/koad_io-theme-engine/fonts/glyphicons-halflings-regular.woff) format('woff'),url(packages/koad_io-theme-engine/fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(packages/koad_io-theme-engine/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px\9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed;border-bottom:4px solid\9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:rgba(0,0,0,0);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}

:root {
 
   /* Hue determines the colour, in degrees; 0 to 360 */
   --application-hue: 222;     

   /* Determines the saturation; 0 to 100 percent */
   /* A higher number will give you intense colour */
   /* A lower number will give you a less intense colour */     
   --application-saturation: 22; 

   /* Determines the brightness; 0 to 100 percent */
   --application-brightness: 8;  

   /* Determines the transparency; 0 to 100 percent */
   --application-transparency: 10;  
   --shadow-transparency: 10;  
   --accent-transparency: 10;  

   --content-width: 90vw;
   --contrastThreshold: 80%;
   --lightnessTransform: 50%;
   --darknessTransform: 55%;
   --accent-text-brightness-percent: 100%;  

   /*these puppies can be used logically*/
   --side-edges: 10px;
   --left-edge: 0px;
   --right-edge: 0px;
   --bottom-edge: 0px;
   --top-edge: 0px;

   /* these we can generate from the single hue */
   --text-hue: var(--application-hue);         
   --shadow-hue: var(--application-hue);         
   --accent-hue: var(--application-hue);       

   --text-brightness: calc(100 - var(--application-brightness));
   --text-brightness: 100%;
   --text-saturation: calc(var(--application-saturation) - 2);
   --shadow-saturation: calc(var(--application-saturation) - 5);
   --accent-saturation: calc(var(--application-saturation) + 12);

   --shadow-brightness: calc(var(--application-brightness) / 2);  
   --accent-brightness: calc(var(--application-brightness) * 2);  

   /* CALCULATIONS */
   /*TODO:  SOME OF THIS SHIT DOESNT WORK WHEN MINIMIZED;*/
   /*TODO:  SOME OF THIS SHIT DOESNT WORK WHEN MINIMIZED;*/
   /*TODO:  SOME OF THIS SHIT DOESNT WORK WHEN MINIMIZED;*/
   /*TODO:  SOME OF THIS SHIT DOESNT WORK WHEN MINIMIZED;*/
   /*intermediates are needed here, the minifier will break this shit otherwise.*/

   --application-brightness-intermediate: calc(100 / var(--application-brightness));
   --application-brightness-percent: calc(100% / var(--application-brightness-intermediate));

   --application-saturation-intermediate: calc(100 / var(--application-saturation));
   --application-saturation-percent: calc(100% / var(--application-saturation-intermediate));

   --text-brightness-intermediate: calc(100 / var(--text-brightness));
   --text-brightness-percent: calc(100% / var(--text-brightness-intermediate));
   
   --text-saturation-intermediate: calc(100 / var(--text-saturation));
   --text-saturation-percent: calc(100% / var(--text-saturation-intermediate));

   --accent-saturation-intermediate: calc(100 / var(--accent-saturation));
   --accent-saturation-percent: calc(100% / var(--accent-saturation-intermediate));

   --accent-brightness-intermediate: calc(100 / var(--accent-brightness));
   --accent-brightness-percent: calc(100% / var(--accent-brightness-intermediate));

   --shadow-saturation-intermediate: calc(100 / var(--shadow-saturation));
   --shadow-saturation-percent: calc(100% / var(--shadow-saturation-intermediate));

   --shadow-brightness-intermediate: calc(100 / var(--shadow-brightness));
   --shadow-brightness-percent: calc(100% / var(--shadow-brightness-intermediate));

   --application-transparency-intermediate: calc(100 / var(--application-transparency));
   --application-transparency-percent: calc( 100% - calc(100% / var(--application-transparency-intermediate)));

   --text-inverted: hsl(var(--text-hue), var(--text-saturation-percent), calc(100% - var(--text-brightness-percent)));
   --light-l: calc(var(--application-brightness) * 6);
   --dark-l: calc(var(--application-brightness) - var(--darknessTransform));


   /*TODO:  SOME OF THIS SHIT DOESNT WORK WHEN MINIMIZED;*/
   /*TODO:  SOME OF THIS SHIT DOESNT WORK WHEN MINIMIZED;*/
   /*TODO:  SOME OF THIS SHIT DOESNT WORK WHEN MINIMIZED;*/
   /*TODO:  SOME OF THIS SHIT DOESNT WORK WHEN MINIMIZED;*/

   --border-color: hsl(var(--accent-hue), var(--text-saturation-percent), calc(100% - var(--text-brightness-percent)));
   --text-color: hsl(var(--text-hue), var(--text-saturation-percent), var(--text-brightness-percent));
   --shadow-color: hsla(var(--shadow-hue), var(--shadow-saturation-percent), var(--shadow-brightness-percent), var(--application-transparency-percent));
   --background-color: hsla(var(--application-hue), var(--application-saturation-percent), 6%, 1);

   --highlight-color: hsl(var(--application-hue), var(--application-saturation-percent), var(--application-brightness-percent));
   --highlight-color-transparent: hsla(var(--application-hue), var(--application-saturation-percent), var(--application-brightness-percent), var(--application-transparency-percent));
   --highlight-text-color: var(--text-color);

   --accent-color: hsla(var(--accent-hue), var(--accent-saturation-percent), var(--accent-brightness-percent), 1);
   --accent-text-color: hsla(var(--accent-hue), var(--accent-saturation-percent), var(--accent-text-brightness-percent), 1);

   --base: hsl(var(--application-hue), var(--application-saturation-percent), var(--accent-brightness-percent));
   --dark: hsl(var(--application-hue), var(--application-saturation-percent), 9%);
   --light: hsl(var(--application-hue), var(--application-saturation-percent), 77%);

   --fill-color: hsla(var(--application-hue), var(--application-saturation-percent), 88%, 0.88);

   --text: var(--text-color);
   --background: var(--background-color);
   --primary: hsla(var(--application-hue), var(--application-saturation-percent), 40%, 1);
   --secondary: hsl(var(--application-hue), var(--application-saturation-percent), 25%);
   --accent: hsl(var(--application-hue), var(--application-saturation-percent), calc(100% - var(--application-brightness-percent)));

   /* Text brightness variants — derived from text-brightness, component authors choose lightness only */
   --text-dim: hsl(var(--text-hue), var(--text-saturation-percent), calc(var(--text-brightness-percent) - 20%));
   --text-muted: hsl(var(--text-hue), var(--text-saturation-percent), calc(var(--text-brightness-percent) - 35%));
   --text-faint: hsl(var(--text-hue), var(--text-saturation-percent), calc(var(--text-brightness-percent) - 50%));
   --text-bright: hsl(var(--text-hue), var(--text-saturation-percent), 100%);

   /* Surface brightness variants — layered depth above --background-color */
   --bg-surface: hsl(var(--application-hue), var(--application-saturation-percent), calc(var(--application-brightness-percent) + 3%));
   --bg-raised: hsl(var(--application-hue), var(--application-saturation-percent), calc(var(--application-brightness-percent) + 6%));

   /* Border shorthand — alias of --border-color */
   --border: var(--border-color);

   /* Monospace font stack */
   --font-mono: ui-monospace, SFMono-Regular, 'Courier New', monospace;

   /* Typography scale — outfit-overridable; see design-system/koad-io-design-system.md */

   /* Heading hierarchy */
   --font-h1: 3.052rem;
   --font-h2: 2.441rem;
   --font-h3: 1.953rem;
   --font-h4: 1.563rem;
   --font-body: 1.444rem;
   --font-sm: 1.222rem;

   /* Weight system */
   --font-regular: 400;
   --font-medium: 500;
   --font-semibold: 600;
   --font-bold: 700;

   /* Monospace variants */
   --font-mono-body: 0.85rem;
   --font-mono-label: 0.75rem;

   /* Line heights */
   --line-height-body: 1.5;
   --line-height-heading: 1.3;

   /* STATUS TOKENS — hsl-derived, outfit-overridable.
      Outfit or host may override --success-hue, --warning-hue, --danger-hue, --info-hue.
      Defaults are semantic hue offsets; saturation uses --application-saturation-percent for
      outfit participation; brightness is fixed for legibility on dark backgrounds. */

   /* Overridable hue knobs */
   --success-hue: 140;
   --warning-hue: 43;
   --danger-hue: 4;
   --info-hue: 195;

   /* Derived status colors — hue overridable, saturation tracks outfit, brightness fixed for legibility */
   --success: hsl(var(--success-hue), var(--application-saturation-percent), 45%);
   --warning: hsl(var(--warning-hue), var(--application-saturation-percent), 55%);
   --danger:  hsl(var(--danger-hue),  var(--application-saturation-percent), 48%);
   --info:    hsl(var(--info-hue),    var(--application-saturation-percent), 50%);

   /* Named palette constants — convenience aliases, not outfit-derived */
   --blue: #007bff;
   --indigo: #6610f2;
   --purple: #6f42c1;
   --pink: #f36;
   --red: #dc3545;
   --orange: #fd7e14;
   --yellow: #ffc107;
   --green: #28a745;
   --teal: #20c997;
   --cyan: #02aed6;
   --white: #fff;
   --gray: #6c757d;
   --gray-dark: #343a40;

   --font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
   --body-font: Segoe UI, Roboto, Helvetica Neue, Arial;
   --heading-font: Roboto, sans-serif;
   --table-font: monospace;
   --card-font: Helvetica Neue, Arial, sans-serif;

   /* Text token aliases — compatibility shims for consumers using alternate naming conventions.
      --color-text-* is used by storefront (kingofalldata.com) component CSS.
      --text-primary / --text-secondary is used by flight-item and related components. */
   --color-text-primary: var(--text-color);
   --color-text-secondary: var(--text-dim);
   --color-text-muted: var(--text-muted);
   --text-primary: var(--text-color);
   --text-secondary: var(--text-dim);
}body, html {
	font-family: var(--body-font);
	background-color: var(--background-color);
	color: var(--text-color);
	margin: 0;
	position: relative;
  min-height: 100%;
}

h1, h2, h3, h4, h5, h6{
	color: var(--text-color);
}

pre {
	background: var(--shadow-color);
	color: var(--text-color);
	padding: 15px;
}

html {
  height: 100%;
  box-sizing: border-box;
}

small {
    font-size: 80%;
}

.background-element{
	z-index: -100;
}

input {
	background-color: var(--secondary-color);
	color: var(--fill-color);
	/*border-right-color: green;*/
	border: 1px solid var(--accent-color);
	padding: 3px;
}

.clearfix {
	overflow: auto;
}

.clear-fix {
	overflow: auto;
}

.clear {
	overflow: auto;
}

.relative{
	position: relative;
}

.absolute{
	position: absolute;
}

.no-wrap{
	white-space: nowrap;
}

.nowrap{
	white-space: nowrap;
}

/* Hyperlink reset — override browser default blue underline with theme inheritance.
   Without this, <a> renders with hardcoded browser blue on dark backgrounds. */
a {
	color: inherit;
	text-decoration: inherit;
}

a:hover {
	color: var(--highlight-color);
	text-decoration: none;
}:root{

  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1440px; /* larger screens */
  --breakpoint-xxxl: 1920px; /* full HD screens */
  --breakpoint-uhd: 3840px; /* 4K UHD screens */
  --breakpoint-4k: 4096px; /* 4K DCI screens */
  --breakpoint-5k: 5120px; /* 5K screens */
  --breakpoint-6k: 6016px; /* 6K screens */
  --breakpoint-8k: 7680px; /* 8K screens */
  --breakpoint-9k: 8640px; /* 9K screens, if needed */

}

@media (min-width: var(--breakpoint-xxl)) {
  /* Styles for screens larger than 1440px */
}

@media (min-width: var(--breakpoint-xxxl)) {
  /* Styles for screens larger than 1920px */
}

@media (min-width: var(--breakpoint-uhd)) {
  /* Styles for screens larger than 3840px (4K UHD) */
}

/* Continue as needed for larger sizes */

.opacity-100 { opacity: 1; }
.opacity-90  { opacity: 0.9; }
.opacity-80  { opacity: 0.8; }
.opacity-70  { opacity: 0.7; }
.opacity-60  { opacity: 0.6; }
.opacity-50  { opacity: 0.5; }
.opacity-40  { opacity: 0.4; }
.opacity-30  { opacity: 0.3; }
.opacity-20  { opacity: 0.2; }
.opacity-10  { opacity: 0.1; }

.alias        { cursor: alias; }
.all-scroll   { cursor: all-scroll; }
.auto         { cursor: auto; }
.cell         { cursor: cell; }
.context-menu { cursor: context-menu; }
.col-resize   { cursor: col-resize; }
.copy         { cursor: copy; }
.crosshair    { cursor: crosshair; }
.default      { cursor: default; }
.e-resize     { cursor: e-resize; }
.ew-resize    { cursor: ew-resize; }
.grab         { cursor: grab; }
.grabbing     { cursor: grabbing; }
.help         { cursor: help; }
.move         { cursor: move; }
.n-resize     { cursor: n-resize; }
.ne-resize    { cursor: ne-resize; }
.nesw-resize  { cursor: nesw-resize; }
.ns-resize    { cursor: ns-resize; }
.nw-resize    { cursor: nw-resize; }
.nwse-resize  { cursor: nwse-resize; }
.no-drop      { cursor: no-drop; }
.none         { cursor: none; }
.not-allowed  { cursor: not-allowed; }
.pointer      { cursor: pointer; }
.clickable    { cursor: pointer; }
.progress     { cursor: progress; }
.row-resize   { cursor: row-resize; }
.s-resize     { cursor: s-resize; }
.se-resize    { cursor: se-resize; }
.sw-resize    { cursor: sw-resize; }
.text         { cursor: text; }
.w-resize     { cursor: w-resize; }
.wait         { cursor: wait; }
.zoom-in      { cursor: zoom-in; }
.zoom-out     { cursor: zoom-out; }

/* Verbose form — preferred for new templates */
.cursor-pointer { cursor: pointer; }
.cursor-help    { cursor: help; }
button {
  background-color: var(--background-color);
  color: var(--text-color);
  border: none;
  cursor: pointer;
  font-family: var(--body-font);
}

/* Primary brand action button.
   Transparent fill, themed border; fills on interaction. */
.btn-brand {
  text-transform: uppercase;
  background-color: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  color: var(--text-color);
  display: inline-block;
  position: relative;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  border: solid 2px var(--highlight-color);
  transition: all 0.2s linear;
  padding: 4px 11px;
  margin: 5px;
}

.btn-brand:active,
.btn-brand:visited,
.btn-brand:focus,
.btn-brand:hover,
.btn-brand:active:hover,
.btn-brand:visited:hover,
.btn-brand:focus:hover {
  background-color: var(--shadow-color);
  color: var(--text-color);
  outline: none;
  border-radius: 0;
  padding: 6px 13px;
  margin: 4px;
}

/* Outline / ghost variant — lighter border, accent fill on hover. */
.btn-outline {
  text-transform: uppercase;
  background-color: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  color: var(--text-color);
  display: inline-block;
  position: relative;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  border: solid 1px var(--accent-color);
  transition: all 0.2s linear;
  padding: 5px 8px;
  margin: 1px;
}

.btn-outline:active,
.btn-outline:visited,
.btn-outline:focus,
.btn-outline:hover,
.btn-outline:active:hover,
.btn-outline:visited:hover,
.btn-outline:focus:hover {
  background-color: var(--accent-color);
  color: var(--text-bright);
  outline: none;
  border-radius: 0;
}

/* Status-derived action buttons — Bootstrap replacement for .btn-success etc. */
.btn-success {
  background-color: var(--success);
  color: var(--text-bright);
  border: 1px solid var(--success);
  border-radius: 4px;
  cursor: pointer;
  padding: 5px 12px;
  transition: opacity 0.2s linear;
}

.btn-success:hover { opacity: 0.85; }

.btn-warning {
  background-color: var(--warning);
  color: var(--background-color);
  border: 1px solid var(--warning);
  border-radius: 4px;
  cursor: pointer;
  padding: 5px 12px;
  transition: opacity 0.2s linear;
}

.btn-warning:hover { opacity: 0.85; }

.btn-danger {
  background-color: var(--danger);
  color: var(--text-bright);
  border: 1px solid var(--danger);
  border-radius: 4px;
  cursor: pointer;
  padding: 5px 12px;
  transition: opacity 0.2s linear;
}

.btn-danger:hover { opacity: 0.85; }

/* Inline tag pill — small badge/label button. */
.btn-tag {
  border: 1px solid var(--shadow-color);
  padding: 1px 3px;
  border-radius: 4px;
  background-color: var(--shadow-color);
  color: var(--text-color);
  cursor: pointer;
  font-size: 0.85em;
}

#iron-router-progress {
  background-color: var(--text-bright);
  box-shadow: 0 0 5px var(--text-bright);
}

#iron-router-progress.spinner:before {
  border-color: var(--text-bright);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(241, 241, 241, 0.07);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border: 2px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.33);
  border: 2px solid transparent;
}

table {
  width: 100%;
  font-family: var(--table-font);
  border-collapse: collapse;
  white-space: nowrap;
}

table tbody {
  width: 100%;
}

table thead {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--background-color);
  backdrop-filter: blur(16px);
}

thead th {
  padding-bottom: 9px;
}

thead th:first-child {
  padding-top: 4px;
}

td {
  padding-right: 0;
  padding-left: 0;
  border: 0;
  vertical-align: middle;
  display: table-cell;
}

td, th {
  padding-left: 3px;
  padding-right: 3px;
  position: relative;
}

table .embedded {
  border: 0;
  width: 100%;
  max-width: 100%;
}

tbody tr:hover {
  background-color: var(--accent-color);
  color: var(--accent-text-color);
}

/* Named header row — replaces the cryptically-named .the2adwtf from basic-bitch.
   Use .table-header-row on a <tr> or container for uppercase heading style. */
.table-header-row {
  background-color: var(--background-color);
  text-transform: uppercase;
  color: var(--text-color);
  font-family: var(--heading-font);
}
.text-max-width-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Multi-line word wrap — for user content or long unbroken strings */
.text-wrap {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
}

/* Status text with animated glow — legitimate UI signal pattern.
   Colors use rgba against transparent background for compatibility.
   Animation count is 1200 iterations (effectively indefinite for session lifetime). */
.text-danger-glow {
  color: rgba(255, 120, 120, 1);
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
  animation: theme-engine-glow-red 1s 1200 alternate;
}

.text-warning-glow {
  color: rgba(255, 195, 120, 1);
  text-shadow: 0 0 5px rgba(255, 165, 0, 0.3);
  animation: theme-engine-glow-orange 1s 1200 alternate;
}

@keyframes theme-engine-glow-red {
  from { text-shadow: 0 0 5px rgba(255, 0, 0, 0.3); }
  to   { text-shadow: 0 0 10px rgba(255, 0, 0, 1); }
}

@keyframes theme-engine-glow-orange {
  from { text-shadow: 0 0 5px rgba(255, 165, 0, 0.3); }
  to   { text-shadow: 0 0 10px rgba(255, 165, 0, 1); }
}
.site-contained {
  position: fixed;
  right: 0;
  left: 0;
  top: 18px;
  bottom: 0;
  overflow: auto;
}

/* Relative padded content area — sits inside .site-contained or standalone */
.page-contained {
  position: relative;
  padding-right: var(--side-edges);
  padding-left: var(--side-edges);
  width: fill-available;
}

/* Generic padded container — centered with edge padding */
.contained {
  padding: var(--side-edges);
  margin: auto;
}

/* Fill-available relative wrapper */
.content-contained {
  position: relative;
  width: fill-available;
}

/* Full-width panel with blur backing */
.full-width-panel {
  backdrop-filter: blur(35px);
  overflow: auto;
}

/* Fullscreen overlay — gradient fills from theme derivations */
.fullscreen {
  background-image: linear-gradient(
    var(--shadow-color),
    var(--highlight-color),
    var(--background-color),
    var(--accent-color)
  );
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1000;
}

/* Blurred background image helper — for hero/splash layouts */
.full-page-background {
  position: fixed;
  overflow: auto;
  top: 0;
  right: 0;
  left: 0;
  margin: -30%;
  z-index: -1000;
  filter: blur(5px);
}

.full-page-background img {
  width: 100%;
  opacity: 0.5;
}

/* Flex helpers — basic two-column layout primitive */
.flex-container {
  display: flex;
}

.left-column,
.right-column {
  flex: 1;
  padding: 10px;
}

.left-column  { order: 1; }
.right-column { order: 2; }

.swal2-popup {
  color: var(--text-color) !important;
  background: var(--shadow-color) !important;
  border: 1px solid var(--border-color) !important;
  backdrop-filter: blur(12px);
}

.swal2-title {
  color: var(--text-color) !important;
}

/* Note: the original .swal2-styled rule set background-color to var(--application-hue)
   which is a unitless number, not a color value — that was a bug. Omitted here. */
.theme-github-dark,
.github-dark {
  --application-hue: 215;
  --text-hue: 210;
  --application-saturation: 15;
  --text-saturation: 32;
  --application-brightness: 16;
  --text-brightness: 85;
}

/* alice — Alice product surface; teal-shifted, higher saturation */
.theme-alice,
.alice {
  --application-hue: 193;
  --text-hue: 193;
  --application-saturation: 73;
  --text-saturation: 10;
  --application-brightness: 57;
  --text-brightness: 90;
}

/* pandora — warm yellow high-saturation */
.theme-pandora,
.pandora {
  --application-hue: 69;
  --text-hue: 69;
  --application-saturation: 88;
  --text-saturation: 22;
  --application-brightness: 57;
  --text-brightness: 88;
}

/* hazes — multi-hue: indigo bg, red shadow, neutral text */
.theme-hazes,
.hazes {
  --application-hue: 242;
  --accent-hue: 10;
  --shadow-hue: 0;
  --text-hue: 0;
  --application-saturation: 52;
  --accent-saturation: 36;
  --shadow-saturation: 88;
  --text-saturation: 6;
  --application-brightness: 11;
  --accent-brightness: 100;
  --shadow-brightness: 13;
  --text-brightness: 90;
}

/* astro — teal-leaning brighter theme */
.theme-astro,
.astro {
  --application-hue: 192;
  --shadow-hue: 198;
  --text-hue: 194;
  --application-saturation: 88;
  --shadow-saturation: 65;
  --text-saturation: 6;
  --application-brightness: 29;
  --shadow-brightness: 80;
  --text-brightness: 90;
  --application-transparency: 30;
}

.theme-debug-panel {
  border: 1px solid var(--border-color);
  padding: 15px;
  margin: 4px;
}

.theme-debug-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.theme-debug-panel td {
  padding-right: 5px;
  padding-left: 5px;
}

.sovereign-profile-editor,
.sovereign-profile-card,
.sovereign-profile-full {
  --sp-bg:          #0D0D0D;
  --sp-surface:     #111111;
  --sp-raised:      #171717;
  --sp-text:        #E8E6E1;
  --sp-text-dim:    #A09E9A;
  --sp-subtle:      #555555;
  --sp-accent:      var(--entity-accent, #C9A84C);
  --sp-accent-dim:  var(--entity-accent-light, #9B7D35);
  --sp-border:      rgba(255, 255, 255, 0.07);
  /* derived from accent — color-mix gives accent at 22% opacity */
  --sp-border-acc:  color-mix(in srgb, var(--sp-accent) 22%, transparent);
  --sp-green:       #3EAF6A;
  --sp-red:         #E05252;
  --sp-blue:        #4A90D9;
  --sp-font-body:   'Inter', system-ui, -apple-system, sans-serif;
  --sp-font-mono:   'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --sp-radius:      3px;
  --sp-radius-lg:   6px;

  box-sizing: border-box;
  color: var(--sp-text);
  font-family: var(--sp-font-body);
  font-size: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* ══════════════════════════════════════════════════════════════
   PROFILE EDITOR
   ══════════════════════════════════════════════════════════════ */

.sovereign-profile-editor {
  background: var(--sp-bg);
  padding: 32px;
  max-width: 760px;
}

/* Header */
.profile-editor-heading {
  font-size: var(--font-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sp-text);
  margin: 0 0 6px;
}

.profile-editor-subhead {
  font-size: var(--font-sm);
  color: var(--sp-text-dim);
  margin: 0 0 28px;
}

/* Status messages */
.profile-editor-error {
  background: rgba(224, 82, 82, 0.1);
  border: 1px solid rgba(224, 82, 82, 0.3);
  border-radius: var(--sp-radius);
  color: #F08080;
  font-size: var(--font-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.profile-editor-success {
  background: rgba(62, 175, 106, 0.1);
  border: 1px solid rgba(62, 175, 106, 0.25);
  border-radius: var(--sp-radius);
  color: var(--sp-green);
  font-size: var(--font-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.profile-editor-success code {
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 2px;
  color: inherit;
  word-break: break-all;
}

/* Form layout */
.profile-editor-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: var(--font-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sp-text-dim);
}

.form-field input[type="text"],
.form-field input[type="url"],
.form-field textarea {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-text);
  font-family: var(--sp-font-body);
  font-size: var(--font-body);
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.15s;
  outline: none;
  resize: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--sp-accent);
}

.form-field textarea {
  min-height: 96px;
  resize: vertical;
}

/* Field hint */
.form-field-hint {
  font-size: var(--font-sm);
  color: var(--sp-subtle);
  line-height: 1.5;
}

/* Character counter */
.form-field-footer {
  display: flex;
  justify-content: flex-end;
}

.char-count {
  font-size: var(--font-mono-label);
  font-family: var(--sp-font-mono);
  color: var(--sp-subtle);
  transition: color 0.15s;
}

.char-count.char-count--warn {
  color: #E8A738;
}

.char-count.char-count--over {
  color: var(--sp-red);
}

/* Avatar field with preview */
.avatar-field-group {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.avatar-preview-circle {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: hsl(var(--entity-hue, 222), var(--entity-saturation, 22%), var(--entity-brightness, 32%));
  border: 2px solid var(--sp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 22px;
  font-weight: 700;
  color: var(--sp-text);
  letter-spacing: -0.01em;
}

.avatar-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-input-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.avatar-hint {
  font-size: var(--font-sm);
  color: var(--sp-subtle);
}

/* Sections */
.form-section {
  border-top: 1px solid var(--sp-border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-section-heading {
  font-size: var(--font-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sp-text);
  margin: 0;
}

/* Social proofs */
.social-proof-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-proof-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  font-size: var(--font-sm);
}

.proof-platform {
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-accent);
  min-width: 64px;
}

.proof-handle {
  flex: 1;
  color: var(--sp-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-url-link {
  font-size: var(--font-sm);
  color: var(--sp-text-dim);
  text-decoration: none;
  transition: color 0.15s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.proof-url-link:hover {
  color: var(--sp-text);
}

.social-proof-add {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr auto;
  gap: 8px;
  align-items: end;
}

.social-proof-add input {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-text);
  font-family: var(--sp-font-body);
  font-size: var(--font-sm);
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
}

.social-proof-add input:focus {
  border-color: var(--sp-accent);
}

/* Device key / sigchain sections */
.key-info {
  font-size: var(--font-sm);
  color: var(--sp-text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  flex-wrap: wrap;
}

.key-info code {
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  color: var(--sp-accent);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 2px;
  word-break: break-all;
}

.key-badge {
  font-family: var(--sp-font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(62, 175, 106, 0.12);
  color: var(--sp-green);
  border: 1px solid rgba(62, 175, 106, 0.2);
}

.key-warning {
  font-size: var(--font-sm);
  color: #E8A738;
  padding: 10px 14px;
  background: rgba(232, 167, 56, 0.08);
  border: 1px solid rgba(232, 167, 56, 0.2);
  border-radius: var(--sp-radius);
}

/* Sigchain status row */
.sigchain-status-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sigchain-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.sigchain-stat {
  padding: 10px 14px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sigchain-stat-label {
  font-size: 10px;
  font-family: var(--sp-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sp-subtle);
}

.sigchain-stat-value {
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  color: var(--sp-text);
  word-break: break-all;
}

.sigchain-cid-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
}

.sigchain-cid-value {
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  color: var(--sp-accent);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cid-copy-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-text-dim);
  cursor: pointer;
  font-size: var(--font-mono-label);
  padding: 3px 9px;
  font-family: var(--sp-font-mono);
  transition: border-color 0.15s, color 0.15s;
}

.cid-copy-btn:hover {
  border-color: var(--sp-accent);
  color: var(--sp-accent);
}

.cid-copy-btn.copied {
  color: var(--sp-green);
  border-color: rgba(62, 175, 106, 0.4);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-accent);
  color: #0A0A0A;
  font-family: var(--sp-font-body);
  font-size: var(--font-body);
  font-weight: 700;
  padding: 11px 24px;
  border: none;
  border-radius: var(--sp-radius);
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.85;
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-small {
  background: transparent;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-text-dim);
  cursor: pointer;
  font-size: var(--font-sm);
  font-family: var(--sp-font-body);
  padding: 3px 10px;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-small:hover {
  border-color: var(--sp-red);
  color: var(--sp-red);
}

/* Form actions row */
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

/* Live preview strip */
.profile-editor-preview {
  border-top: 1px solid var(--sp-border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-label {
  font-size: var(--font-mono-label);
  font-family: var(--sp-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sp-subtle);
}

.preview-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   PROFILE CARD
   ══════════════════════════════════════════════════════════════ */

.sovereign-profile-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  max-width: 340px;
  color: var(--sp-text);
  position: relative;
}

.sovereign-profile-card:hover {
  border-color: var(--sp-border-acc);
  background: var(--sp-raised);
}

.sovereign-profile-card.profile-verified {
  border-color: rgba(62, 175, 106, 0.2);
}

/* Avatar */
.profile-card-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--sp-border);
}

.profile-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-card-avatar-placeholder {
  background: hsl(var(--entity-hue, 222), var(--entity-saturation, 22%), var(--entity-brightness, 30%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

/* Card body */
.profile-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-card-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sp-text);
  line-height: 1.3;
}

.profile-card-handle {
  font-size: var(--font-mono-label);
  font-family: var(--sp-font-mono);
  color: var(--sp-text-dim);
}

.profile-card-bio {
  font-size: var(--font-sm);
  color: var(--sp-text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

/* Card footer row */
.profile-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.profile-bond-badge {
  font-size: var(--font-mono-label);
  font-family: var(--sp-font-mono);
  color: var(--sp-text-dim);
  background: var(--sp-raised);
  border: 1px solid var(--sp-border);
  padding: 2px 8px;
  border-radius: 20px;
}

/* Verification badges (shared) */
.profile-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-mono-label);
  font-family: var(--sp-font-mono);
  font-weight: 600;
  color: var(--sp-green);
  background: rgba(62, 175, 106, 0.1);
  border: 1px solid rgba(62, 175, 106, 0.2);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.profile-unverified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-mono-label);
  font-family: var(--sp-font-mono);
  color: var(--sp-subtle);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sp-border);
  padding: 2px 8px;
  border-radius: 2px;
}

/* Sovereign kingdom badge */
.profile-sovereign-kingdom-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-mono-label);
  font-family: var(--sp-font-mono);
  color: var(--sp-accent);
  background: var(--sp-border-acc);
  border: 1px solid var(--sp-border-acc);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════════════
   PROFILE FULL
   ══════════════════════════════════════════════════════════════ */

.sovereign-profile-full {
  max-width: 720px;
  padding: 0;
}

/* Header block */
.profile-full-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--sp-border);
  margin-bottom: 24px;
}

.profile-full-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--sp-border);
}

.profile-full-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-full-avatar-placeholder {
  background: hsl(var(--entity-hue, 222), var(--entity-saturation, 22%), var(--entity-brightness, 30%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  border: 3px solid rgba(255, 255, 255, 0.08);
}

.profile-full-identity {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-full-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sp-text);
  margin: 0;
  line-height: 1.1;
}

.profile-full-handle {
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-body);
  color: var(--sp-text-dim);
}

.profile-full-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.profile-full-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 4px 0 0;
}

.profile-stat-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.profile-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--sp-text);
  line-height: 1;
}

.profile-stat-label {
  font-size: var(--font-sm);
  color: var(--sp-text-dim);
}

/* Bio */
.profile-full-bio {
  font-size: 15px;
  line-height: 1.65;
  color: var(--sp-text-dim);
  margin-bottom: 24px;
}

.profile-full-bio p {
  margin: 0;
}

/* Sections */
.profile-full-section {
  margin-bottom: 28px;
}

.profile-full-section-heading {
  font-size: var(--font-mono-label);
  font-family: var(--sp-font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sp-subtle);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sp-border);
}

/* Custodianship section (VESTA-SPEC-112) */
.profile-custodianship-section {
  border-top: 1px solid var(--sp-border);
  padding-top: 20px;
}

.custodianship-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custodianship-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  gap: 12px;
  font-size: var(--font-sm);
}

.custodianship-label {
  font-size: var(--font-mono-label);
  font-family: var(--sp-font-mono);
  color: var(--sp-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.custodianship-value {
  color: var(--sp-text-dim);
  word-break: break-word;
}

.custodianship-scope-full     { color: var(--sp-green); }
.custodianship-scope-content-only,
.custodianship-scope-config-only { color: #E8A738; }
.custodianship-scope-none     { color: var(--sp-subtle); }

/* Social proofs list (viewer) */
.profile-social-proofs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.social-proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  font-size: var(--font-sm);
}

.social-proof-item.proof-verified {
  border-left: 2px solid var(--sp-green);
}

.social-proof-item.proof-unverified {
  border-left: 2px solid var(--sp-border);
}

.proof-verification-icon {
  font-size: var(--font-sm);
  margin-left: auto;
}

.proof-verification-icon.verified {
  color: var(--sp-green);
}

.proof-verification-icon.unverified {
  color: var(--sp-subtle);
}

/* Chain history */
.profile-chain-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chain-entry {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  font-size: var(--font-sm);
  transition: background 0.12s;
}

.chain-entry:hover {
  background: var(--sp-raised);
}

.chain-entry.entry-valid {
  border-left: 2px solid rgba(62, 175, 106, 0.4);
}

.chain-entry.entry-invalid {
  border-left: 2px solid rgba(224, 82, 82, 0.5);
}

.entry-type-badge {
  font-family: var(--sp-font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--sp-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-timestamp {
  color: var(--sp-text-dim);
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
}

.entry-cid {
  font-family: var(--sp-font-mono);
  font-size: 10px;
  color: var(--sp-subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
  text-align: right;
}

/* Chain loading */
.chain-loading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  font-size: var(--font-sm);
  color: var(--sp-text-dim);
}

.chain-loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--sp-border);
  border-top-color: var(--sp-accent);
  border-radius: 50%;
  animation: sp-spin 0.8s linear infinite;
}

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

/* Chain errors */
.profile-chain-errors {
  background: rgba(224, 82, 82, 0.06);
  border: 1px solid rgba(224, 82, 82, 0.2);
  border-radius: var(--sp-radius);
  padding: 12px 16px;
}

.profile-chain-errors .profile-full-section-heading {
  color: #F08080;
  border-bottom-color: rgba(224, 82, 82, 0.15);
}

.profile-chain-errors ul {
  margin: 0;
  padding-left: 16px;
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  color: #F08080;
  line-height: 1.8;
}

/* Verified-to-genesis indicator */
.genesis-verified-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(62, 175, 106, 0.07);
  border: 1px solid rgba(62, 175, 106, 0.2);
  border-radius: var(--sp-radius);
  font-size: var(--font-sm);
  color: var(--sp-green);
  font-weight: 500;
  margin-bottom: 8px;
}

.genesis-verified-icon {
  font-size: 16px;
  line-height: 1;
}

/* Tip CID display */
.profile-full-cid-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
}

.profile-full-cid-label {
  font-size: 10px;
  font-family: var(--sp-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sp-subtle);
  white-space: nowrap;
}

.profile-full-cid-value {
  flex: 1;
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  color: var(--sp-accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   KINGDOMS — profileFull section + kingdomsOverview template
   Namespace: .profile-kingdoms-* (section inside profileFull)
              .km-overview-*      (standalone overview template)
   ══════════════════════════════════════════════════════════════ */

/* ── Kingdoms section inside profileFull ─────────────────────────────────── */

.profile-kingdoms-section {
  border-top: 1px solid var(--sp-border);
  padding-top: 20px;
}

.kingdoms-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kingdom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  font-size: var(--font-sm);
  flex-wrap: wrap;
}

.kingdom-name {
  font-weight: 600;
  color: var(--sp-text);
  flex-shrink: 0;
}

.kingdom-domain {
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  color: var(--sp-text-dim);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sovereignty model badge — muted, structured */
.kingdom-model-badge {
  font-family: var(--sp-font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--sp-text-dim);
  border: 1px solid var(--sp-border);
  white-space: nowrap;
}

/* Relationship badge — accent-tinted per role */
.kingdom-rel-badge {
  font-family: var(--sp-font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

.kingdom-rel-sovereign {
  background: var(--sp-border-acc);
  color: var(--sp-accent);
  border: 1px solid var(--sp-border-acc);
}

.kingdom-rel-member {
  background: rgba(74, 144, 217, 0.1);
  color: var(--sp-blue);
  border: 1px solid rgba(74, 144, 217, 0.2);
}

.kingdom-rel-peer {
  background: rgba(255, 255, 255, 0.04);
  color: var(--sp-text-dim);
  border: 1px solid var(--sp-border);
}

/* ── Kingdoms overview template ──────────────────────────────────────────── */

.km-overview {
  /* Inherits --sp-* from .sovereign-profile-full scope */
}

.km-overview-header {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--sp-border);
  margin-bottom: 24px;
}

.km-overview-heading {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sp-text);
  margin: 0 0 6px;
}

.km-overview-subhead {
  font-size: var(--font-sm);
  color: var(--sp-text-dim);
  margin: 0;
  line-height: 1.6;
}

.km-overview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.km-overview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  font-size: var(--font-sm);
  transition: background 0.12s;
  flex-wrap: wrap;
}

.km-overview-item:hover {
  background: var(--sp-raised);
}

.km-overview-item-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.km-overview-name {
  font-weight: 600;
  color: var(--sp-text);
  white-space: nowrap;
}

.km-overview-domain {
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  color: var(--sp-text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.km-overview-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.km-overview-sovereign {
  font-size: var(--font-sm);
  color: var(--sp-text-dim);
}

.km-overview-model-badge {
  font-family: var(--sp-font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--sp-text-dim);
  border: 1px solid var(--sp-border);
  white-space: nowrap;
}

/* Variant: sovereign model gets accent tint */
.km-overview-model-sovereign {
  background: var(--sp-border-acc);
  color: var(--sp-accent);
  border-color: var(--sp-border-acc);
}

.km-overview-count {
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  color: var(--sp-subtle);
  white-space: nowrap;
}

@media (max-width: 540px) {
  .km-overview-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .km-overview-item-meta {
    align-self: stretch;
  }
}

/* ══════════════════════════════════════════════════════════════
   KEY MANAGEMENT SURFACE
   Shared by: keyPassphraseModal, keyManagement, keyImportForm,
              keyGenerateForm
   ══════════════════════════════════════════════════════════════ */

/* ── Extend custom property scope to key management roots ─────────────────── */

.key-management-surface,
.km-overlay {
  --sp-bg:          #0D0D0D;
  --sp-surface:     #111111;
  --sp-raised:      #171717;
  --sp-text:        #E8E6E1;
  --sp-text-dim:    #A09E9A;
  --sp-subtle:      #555555;
  --sp-accent:      var(--entity-accent, #C9A84C);
  --sp-accent-dim:  var(--entity-accent-light, #9B7D35);
  --sp-border:      rgba(255, 255, 255, 0.07);
  /* derived from accent — color-mix gives accent at 22% opacity */
  --sp-border-acc:  color-mix(in srgb, var(--sp-accent) 22%, transparent);
  --sp-green:       #3EAF6A;
  --sp-red:         #E05252;
  --sp-blue:        #4A90D9;
  --sp-orange:      #E8A738;
  --sp-font-body:   'Inter', system-ui, -apple-system, sans-serif;
  --sp-font-mono:   'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --sp-radius:      3px;
  --sp-radius-lg:   6px;

  box-sizing: border-box;
  color: var(--sp-text);
  font-family: var(--sp-font-body);
  font-size: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Modal overlay ────────────────────────────────────────────────────────── */

.km-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 20px;
}

.km-modal {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--sp-radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  position: relative;
}

.km-modal--passphrase {
  /* Modal is compact and focused — passphrase moment deserves quiet */
  max-width: 400px;
}

/* ── Modal header ─────────────────────────────────────────────────────────── */

.km-modal-header {
  margin-bottom: 24px;
}

.km-modal-heading {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sp-text);
  margin: 0 0 8px;
}

.km-modal-subhead {
  font-size: var(--font-sm);
  color: var(--sp-text-dim);
  margin: 0;
  line-height: 1.55;
}

/* ── Key hint row (inside passphrase modal) ───────────────────────────────── */

.km-key-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.km-key-hint-label {
  font-family: var(--sp-font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sp-subtle);
  white-space: nowrap;
}

.km-key-hint-id {
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  color: var(--sp-accent);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: 2px;
  word-break: break-all;
}

.km-key-hint-desc {
  font-size: var(--font-sm);
  color: var(--sp-text-dim);
}

/* ── Page header (key management full surface) ────────────────────────────── */

.km-page-header {
  margin-bottom: 32px;
}

.km-page-heading {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sp-text);
  margin: 0 0 8px;
}

.km-page-subhead {
  font-size: var(--font-sm);
  color: var(--sp-text-dim);
  margin: 0;
  line-height: 1.6;
  max-width: 520px;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.km-section {
  border-top: 1px solid var(--sp-border);
  padding-top: 24px;
  margin-bottom: 32px;
}

.km-section--warning {
  border-top-color: rgba(232, 167, 56, 0.3);
}

.km-section--danger {
  border-top-color: rgba(224, 82, 82, 0.3);
}

.km-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.km-section-heading {
  font-size: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sp-text);
  margin: 0;
}

/* ── Key list ─────────────────────────────────────────────────────────────── */

.km-key-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.km-key-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  transition: border-color 0.15s;
}

.km-key-row--active {
  border-color: rgba(62, 175, 106, 0.25);
  background: rgba(62, 175, 106, 0.04);
}

.km-key-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.km-key-row-id-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.km-key-id {
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  color: var(--sp-accent);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 2px;
  word-break: break-all;
}

.km-key-badge--locked {
  font-family: var(--sp-font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--sp-subtle);
  border: 1px solid var(--sp-border);
}

.km-key-desc {
  font-size: var(--font-sm);
  color: var(--sp-text-dim);
}

.km-key-pubkey {
  font-family: var(--sp-font-mono);
  font-size: 10px;
  color: var(--sp-subtle);
  word-break: break-all;
  line-height: 1.4;
}

.km-key-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Buttons in key management context ────────────────────────────────────── */

.km-btn-action {
  background: transparent;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-text-dim);
  cursor: pointer;
  font-size: var(--font-sm);
  font-family: var(--sp-font-body);
  padding: 4px 10px;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.km-btn-action:hover {
  border-color: var(--sp-accent);
  color: var(--sp-accent);
}

.km-btn-action--secondary {
  border-color: rgba(255, 255, 255, 0.12);
}

.km-btn-action--secondary:hover {
  border-color: var(--sp-text-dim);
  color: var(--sp-text);
}

.km-btn-action--danger:hover {
  border-color: rgba(224, 82, 82, 0.5);
  color: var(--sp-red);
}

.km-btn-lock {
  background: transparent;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-text-dim);
  cursor: pointer;
  font-size: var(--font-sm);
  font-family: var(--sp-font-body);
  padding: 4px 12px;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.km-btn-lock:hover {
  border-color: var(--sp-orange);
  color: var(--sp-orange);
}

.km-btn-cancel {
  background: transparent;
  border: none;
  color: var(--sp-text-dim);
  cursor: pointer;
  font-size: var(--font-sm);
  font-family: var(--sp-font-body);
  padding: 4px 2px;
  transition: color 0.15s;
}

.km-btn-cancel:hover {
  color: var(--sp-text);
}

.km-btn-delete {
  display: inline-flex;
  align-items: center;
  background: rgba(224, 82, 82, 0.1);
  border: 1px solid rgba(224, 82, 82, 0.35);
  border-radius: var(--sp-radius);
  color: #F08080;
  cursor: pointer;
  font-size: var(--font-sm);
  font-family: var(--sp-font-body);
  font-weight: 600;
  padding: 9px 20px;
  transition: background 0.15s, border-color 0.15s;
}

.km-btn-delete:hover {
  background: rgba(224, 82, 82, 0.16);
  border-color: rgba(224, 82, 82, 0.55);
}

/* ── Warning and danger banners ───────────────────────────────────────────── */

.km-warning-banner {
  font-size: var(--font-sm);
  color: var(--sp-orange);
  background: rgba(232, 167, 56, 0.08);
  border: 1px solid rgba(232, 167, 56, 0.2);
  border-radius: var(--sp-radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  line-height: 1.55;
}

.km-danger-banner {
  font-size: var(--font-sm);
  color: #F08080;
  background: rgba(224, 82, 82, 0.08);
  border: 1px solid rgba(224, 82, 82, 0.22);
  border-radius: var(--sp-radius);
  padding: 12px 16px;
  line-height: 1.55;
}

.km-danger-banner code {
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 2px;
}

/* ── Export block ─────────────────────────────────────────────────────────── */

.km-export-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.km-export-textarea {
  background: #0A0A0A;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-text-dim);
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  padding: 12px 14px;
  width: 100%;
  resize: none;
  outline: none;
  line-height: 1.5;
  /* No user-select-all on purpose — user clicks Copy button */
}

.km-export-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */

.km-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.km-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.km-label {
  font-size: var(--font-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sp-text-dim);
}

.km-label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--sp-subtle);
}

.km-input {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-text);
  font-family: var(--sp-font-body);
  font-size: var(--font-body);
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.15s;
  outline: none;
}

.km-input:focus {
  border-color: var(--sp-accent);
}

.km-textarea {
  resize: vertical;
  font-family: var(--sp-font-mono);
  font-size: var(--font-mono-label);
  min-height: 100px;
}

.km-field-hint {
  font-size: var(--font-sm);
  color: var(--sp-subtle);
  line-height: 1.5;
}

/* ── Form actions row ─────────────────────────────────────────────────────── */

.km-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* ── Status messages (shared) ─────────────────────────────────────────────── */

.km-error {
  background: rgba(224, 82, 82, 0.08);
  border: 1px solid rgba(224, 82, 82, 0.28);
  border-radius: var(--sp-radius);
  color: #F08080;
  font-size: var(--font-sm);
  padding: 10px 14px;
  line-height: 1.5;
}

.km-success {
  background: rgba(62, 175, 106, 0.08);
  border: 1px solid rgba(62, 175, 106, 0.22);
  border-radius: var(--sp-radius);
  color: var(--sp-green);
  font-size: var(--font-sm);
  padding: 10px 14px;
  line-height: 1.5;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */

.km-empty-state {
  font-size: var(--font-sm);
  color: var(--sp-text-dim);
  padding: 16px 0;
  margin: 0;
}

/* ── Loading row ─────────────────────────────────────────────────────────── */

.km-loading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-size: var(--font-sm);
  color: var(--sp-text-dim);
}

/* ── Responsive: key management ───────────────────────────────────────────── */

@media (max-width: 540px) {
  .km-modal {
    padding: 24px 18px;
  }

  .km-key-row {
    flex-direction: column;
    gap: 12px;
  }

  .km-key-row-actions {
    align-self: flex-start;
  }

  .km-export-actions {
    flex-direction: column;
  }

  .km-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .km-form-actions .btn-primary,
  .km-form-actions .km-btn-delete {
    text-align: center;
    justify-content: center;
  }
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 540px) {
  .sovereign-profile-editor {
    padding: 20px 16px;
  }

  .social-proof-add {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .social-proof-add input:last-of-type {
    grid-column: 1 / -1;
  }

  .chain-entry {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .entry-cid {
    grid-column: 1 / -1;
    text-align: left;
    max-width: 100%;
  }

  .profile-full-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-full-badges,
  .profile-full-stats-row {
    justify-content: center;
  }

  .sigchain-status-grid {
    grid-template-columns: 1fr;
  }

  .avatar-field-group {
    flex-direction: column;
    align-items: flex-start;
  }
}

.activity-stream {
  width: 100%;
}

.activity-stream--loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Loading state ─────────────────────────────────────────────────────────── */

.activity-stream__loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  color: var(--color-muted, #888);
  font-size: var(--font-body);
}

.activity-stream__spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: activity-stream-spin 0.6s linear infinite;
}

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

/* ── Error state ───────────────────────────────────────────────────────────── */

.activity-stream__error {
  padding: 1rem 0;
  color: var(--color-error, #c00);
  font-size: var(--font-body);
}

/* ── Empty state ───────────────────────────────────────────────────────────── */

.activity-stream__empty {
  padding: 1rem 0;
  color: var(--color-muted, #888);
  font-size: var(--font-body);
}

/* ── Entry list ────────────────────────────────────────────────────────────── */

.activity-stream__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Single entry ──────────────────────────────────────────────────────────── */

.activity-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border, #eee);
}

.activity-entry:last-child {
  border-bottom: none;
}

.activity-entry__icon {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--color-surface, #f5f5f5);
  border-radius: 50%;
  color: var(--color-accent, #333);
}

.activity-entry__body {
  flex: 1;
  min-width: 0;
}

.activity-entry__label {
  font-size: var(--font-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted, #888);
  margin-bottom: 0.2rem;
}

.activity-entry__description {
  font-size: var(--font-body);
  color: var(--color-text, #222);
  line-height: 1.4;
}

.activity-entry__description a {
  color: var(--color-link, #0066cc);
  text-decoration: none;
}

.activity-entry__description a:hover {
  text-decoration: underline;
}

.activity-entry__timestamp {
  font-size: var(--font-sm);
  color: var(--color-muted, #888);
  margin-top: 0.2rem;
  white-space: nowrap;
}

:root {
  --entity-hue: 0;
  --entity-saturation: 0%;
  --entity-font-heading: inherit;
  --entity-font-body: inherit;
  --entity-font-mono: monospace;
  --entity-easing: ease;
  --entity-duration: 200ms;

  /* Dark Passenger legacy aliases */
  --shadow-hue: var(--entity-hue);
  --shadow-saturation: var(--entity-saturation);
}

/* ---------------------------------------------------------------------------
 * Entity chip — inline name badge with entity color
 * <span class="entity-chip">Name</span>
 * (color injected via --entity-hue / --entity-saturation at :root or parent)
 * --------------------------------------------------------------------------- */
.entity-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 0.85em;
  font-weight: 500;
  background-color: hsl(var(--entity-hue), var(--entity-saturation), 45%);
  color: #fff;
  white-space: nowrap;
  transition: opacity var(--entity-duration) var(--entity-easing);
}

.entity-chip:hover {
  opacity: 0.85;
}

/* ---------------------------------------------------------------------------
 * Entity card — L2 capsule: name + color + role one-liner
 * <div class="entity-card">...</div>
 * --------------------------------------------------------------------------- */
.entity-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 6px;
  background-color: hsl(var(--entity-hue), var(--entity-saturation), 11%);
  color: #fff;
  font-family: var(--entity-font-body);
}

.entity-card__name {
  font-family: var(--entity-font-heading);
  font-weight: 700;
  font-size: 1em;
  color: #fff;
}

.entity-card__role {
  font-size: 0.8em;
  color: hsl(var(--entity-hue), var(--entity-saturation), 90%);
}

.entity-card__greeting {
  font-style: italic;
  font-size: 0.8em;
  color: hsl(var(--entity-hue), var(--entity-saturation), 90%);
  opacity: 0.85;
}

/* ---------------------------------------------------------------------------
 * Outfit swatch — color-only block for palettes/style guides
 * <div class="outfit-swatch" title="Juno h=199 s=35"></div>
 * --------------------------------------------------------------------------- */
.outfit-swatch {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: hsl(var(--entity-hue), var(--entity-saturation), 50%);
  display: inline-block;
}

/* ---------------------------------------------------------------------------
 * Entity avatar wrapper — clips to circle, consistent sizing
 * <div class="entity-avatar"><img src="...avatar.png" alt="Name"></div>
 * --------------------------------------------------------------------------- */
.entity-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid hsla(var(--entity-hue), var(--entity-saturation), 10%, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: hsla(var(--entity-hue), var(--entity-saturation), 30%, 0.25);
}

.entity-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------------------
 * Outfit transition — applies entity motion values to an element
 * <div class="outfit-transition">...</div>
 * --------------------------------------------------------------------------- */
.outfit-transition {
  transition: all var(--entity-duration) var(--entity-easing);
}.application-containment {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

/* center container - panels slide over this */
.content-containment {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: auto;
  overflow-x: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.content-containment.left-open {
  transform: translateX(var(--panel-width, 280px));
}

.content-containment.right-open {
  transform: translateX(calc(-1 * var(--panel-width, 280px)));
}

.content-containment.both-open {
  transform: translateX(calc(var(--panel-width, 280px) - var(--panel-width, 280px)));
}

/* panel containers */
.panel-containment {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--panel-width, 280px);
  min-width: var(--panel-min-width, 200px);
  max-width: var(--panel-max-width, 85vw);
  z-index: 20;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.1s ease;
  will-change: transform;
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--panel-bg, #fff);
  box-shadow: var(--panel-shadow, 2px 0 10px rgba(0,0,0,0.15));
}

.panel-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 25;
}

.panel-handle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.panel-handle:active {
  background: rgba(0, 0, 0, 0.1);
}

/* LEFT PANELS */
.panel-containment.left {
  left: 0;
  transform: translateX(-100%);
}

.panel-handle.left {
  right: 0;
}

.panel-containment.left.open {
  transform: translateX(0);
}

/* RIGHT PANELS */
.panel-containment.right {
  right: 0;
  transform: translateX(100%);
}

.panel-handle.right {
  left: 0;
}

.panel-containment.right.open {
  transform: translateX(0);
}

/* Panel header */
.panel-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: inherit;
  padding: var(--panel-padding, 16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.panel-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.panel-close:focus-visible {
  outline: 2px solid var(--focus-color, #0066cc);
  outline-offset: 2px;
}

/* History navigation */
.panel-nav {
  display: flex;
  gap: 4px;
}

.panel-nav button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
}

.panel-nav button:hover:not(:disabled) {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

.panel-nav button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* back-to-top link */
.back-to-top {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: none;
  padding: 8px 12px;
  font-size: var(--font-sm);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.back-to-top.show {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.8;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  :root {
    --panel-width: 85vw;
    --panel-min-width: 280px;
    --panel-max-width: 85vw;
  }

  .panel-handle {
    display: none;
  }

  .back-to-top {
    bottom: 24px;
    right: 24px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .content-containment,
  .panel-containment,
  .back-to-top {
    transition: none;
  }
}

/* Focus management for accessibility */
.panel-containment:focus-within {
  z-index: 22;
}

/* Print styles */
@media print {
  .panel-containment,
  .back-to-top {
    display: none !important;
  }

  .content-containment {
    transform: none !important;
  }
}


.spirit-row-model { font-size: 12px; }
.spirit-row-harness { font-size: 12px; }
.spirit-row-runtime { font-size: 12px; }

.svg-icon {
	width: 1em;
	height: 1em;
}

.svg-icon-small {
	padding: 4px;
}

.svg-icon path,
.svg-icon polygon,
.svg-icon rect {
  fill: var(--text-color);
}

.svg-icon circle {
  stroke: var(--text-color);
  stroke-width: 1;
}

.hamburger path{
  fill: var(--highlight-text-color);
}

.app-version{
	font-size: var(--font-body);
	bottom: 0;
	right: 0;
	left: 0;
	margin: 3px;
}


.full-height{
	align-items: stretch;
	flex-direction: column;
}

.font-size-tiny{
	font-size: var(--font-sm);
}
.glow-dark {
	border: 1px solid rgba(0, 0, 0, 0.2);
	-webkit-box-shadow: 0px 0px 15px 2px rgba(255,255,255,.21);
	-moz-box-shadow: 0px 0px 15px 2px rgba(255,255,255,.21);
	box-shadow: 0px 0px 15px 2px rgba(255,255,255,.2);
}

.category-divider{
	font-size: var(--font-sm);
	border: 1px solid rgba(0, 0, 0, 0.2);
	-webkit-box-shadow: 0px 0px 15px 2px rgba(255,255,255,.21);
	-moz-box-shadow: 0px 0px 15px 2px rgba(255,255,255,.21);
	box-shadow: 0px 0px 15px 2px rgba(255,255,255,.2);
}


.menu-title span {
	background-color: var(--shadow-color);
	color: var(--text-color);
	border-radius: 10px;
	height: 22px;
	line-height: 20px;
	font-size: 20px;
	padding: 4px 19px;
}

.menu-title {
	display: block;
	font-size: var(--font-sm) !important;
	line-height: 25px;
	list-style: none outside none;
	padding: 5px 10px 5px 0 !important;
	text-decoration: none;
	color: var(--text-color);
	width: 100%;
}

#accordion li {
	font-size: 20px;
	line-height: 0;
	list-style: none outside none;
	margin: 0;
	text-align: left;
	color: #33FFFF;
	/* border-top: 1px solid rgba(0,0,0,0.2); */
	 border-top: 1px solid rgba(0,0,0,0); 
	 border-bottom: 1px solid rgba(0,0,0,0); 
}
.hover-identify:hover {
	 border-top: 1px solid rgba(255,0,0,0.2); 
	 border-bottom: 1px solid rgba(255,0,0,0.2); 

}

#accordion li i {
	font-size: 18px;
	font-style: normal;
	left: -5px;
	line-height: 15px;
	position: relative;
	width: 20px;
	top: 5px;
}

#accordion ul li{
	border-left: 4px solid white;
}

ul.topnav li a {
	color: var(--text-color);
	display: block;
	font-size: var(--font-body);
	line-height: 25px;
	list-style: none outside none;
	padding: 10px 10px 10px 30px;
	text-decoration: none;
}

ul.topnav li a:hover:after {
	border-bottom: 6px solid #ffffff;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	width: 0;
	height: 0;
	position: absolute;
	top: 19px;
	left: -6px;
	content: "";
	display: block;
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	-ms-transform: rotate(90deg);
	-o-transform: rotate(90deg);
	tranform: rotate(90deg);
}

li .active {
  background-color: rgba(255,255,255,0.14);
}

ul.topnav h4 {
	float: right !important;
	margin-top: -2px;
}
ul.topnav ul {
	margin: 0;
	padding: 0;
	display: none;
}


ul {
	display: block;
	list-style-type: disc;
	margin-block-start: 1em;
	margin-block-end: 1em;
	margin-inline-start: 0px;
	margin-inline-end: 0px;
	padding-inline-start: 0px;
}

.smart-menu {
  position: relative;
	width: 100%;
}

.btn-closenav-left, .btn-pinnav-left, .btn-closenav-right, .btn-pinnav-right {
  font-size: 28px!important;
  position: relative;
  cursor: pointer;
}

.padded-10{
  margin-top: 10px;
}

.accordion-app-icon{
	margin-top:-20px;
}

/* --- Indicator drawer (merged from koad-io-style-basic-bitch) --- */

.indicator-drawer {
	margin-top: 3px;
	margin-left: 9px;
	position: fixed;
	top: 0px;
	font-size: 26px;
	z-index: 2800;
	transition: 0.1s;
}

.indicator-background {
	backdrop-filter: blur(8px);
	position: absolute;
	z-index: -200;
	height: 100%;
	width: 100%;
	border-radius: 30px;
	padding-bottom: -10px;
	margin-top: -8px;
}

.indicator-group {
	color: var(--highlight-color);
	z-index: 1900;
	position: relative;
	margin-top: -10px;
	padding-top: 10px;
	margin-bottom: 40px;
	text-align: center;
}

.indicator-brand {
	color: var(--shadow-color);
}

.indicator-brand:hover {
	color: var(--background-color);
}

.smartnav-left {
	top: 0; /* 100% Full-height */
	bottom: 0; /* 100% Full-height */
	width: 240px; /* 0 width - change this with JavaScript */
	margin-left: -240px;
	position: fixed; /* Stay in place */
	z-index: 10000; /* Stay on top */
	background-color: var(--shadow-color);
	opacity: 1;
	overflow-x: hidden; /* Disable horizontal scroll */
	transition: 0.5s; /* 0.5 second transition effect to slide in the smartnav */
	box-shadow: 0px 0px 1px #88888888 ;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.leftSideNav{
	width: 200px;
}.topBanner {
	position: fixed;
	top: 0;
	height: 38px;

	background-color: #0003;
    padding-right: 0px;
	font-size: var(--font-body);
	font-weight: 400;
	text-align: right;
	text-transform: uppercase;


    width: -moz-available;          /* For Mozzila */
    width: -webkit-fill-available;  /* For Chrome */


}




a .material-symbols-outlined {
    font-size: 18px;
    line-height: 0.6;
    opacity: 0.2;
    margin-right: -4px;
}



.toolbar{
	/*display: flex;*/
	/*align-items: center;*/
	/*justify-content: space-between;*/

	height: 88px;
	background-color: var(--shadow-color);
	position: fixed;

	top: 0;
    left: 0;
    right: 0;
}


.topnavbar-assembly{
	z-index: 12;
    /*position: fixed;*/
    width: fill-available;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: top 0.5s ease-in-out; 
}


.navPadding {
	height: 88px;
	z-index: -10px;
    width: -moz-available;          /* For Mozzila */
    width: -webkit-fill-available;  /* For Chrome */
}

.logo{
	left: 0px;
	top: 4px;
    padding: 6px;
	width: 100px;
	transition-property: all;
	transition-duration: 1s;
	transition-timing-function: ease-in-out;
	margin: auto;
	position: fixed;
}

.banner{
	left: var(--side-edges);
	top: 3px;
	height: 86px;
    padding: 6px;
	/*transition-property: all;*/
	/*transition-duration: 1s;*/
	/*transition-timing-function: ease-in-out;*/
	margin: auto;
	position: fixed;
}

.toolbar-nav {
    margin: 30px;
    font-style: normal;
    font-family: 'Lato', sans-serif;
    font-size: var(--font-body);
    font-weight: 400;
    padding-top: 8px;
}

.toolbar-nav ul {

    display: block;
}
.toolbar-nav li a {
    padding: 2px;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 1.05em;
    line-height: 1.5em;
    position: relative;
    display: block;
}


.toolbar-nav li {
    padding: 10px;
    margin-left: 4px;
    float: right;
    display: inline-block;
    position: relative;
    /*z-index: 24;*/
}
.toolbar-nav li a {
    text-decoration: none!important;
}

.toolbar-nav li::before {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background-color: rgba(237, 32, 36, 0);

	transition-property: all;
	transition-duration: 0.3s;
	transition-timing-function: ease-in-out;
    border-radius: 2px;

}

.toolbar-nav li:hover::before {
    height: 70%;
    width: 100%;

    width: -moz-available;          /* For Mozzila */
    width: -webkit-fill-available;  /* For Chrome */

    top: 15%;
    bottom: 15%;
    left: 0;
    right: 0;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.toolbar-nav li.active::before {
    height: 70%;
    width: 100%;

    width: -moz-available;          /* For Mozzila */
    width: -webkit-fill-available;  /* For Chrome */
    
    top: 15%;
    bottom: 15%;
    left: 0;
    right: 0;
    background-color: var(--accent-color);
    border-radius: 2px;
}


.toolbar li{
    display: inline-block;
}

.infobar {

	text-align: right;
    padding-top:8px;
	padding-left: var(--side-edges);
	padding-right: var(--side-edges);

    width: -moz-available;          /* For Mozzila */
    width: -webkit-fill-available;  /* For Chrome */

}

.infobar a{
	color: var(--highlight-text-color);
	cursor: pointer;
    text-decoration: none!important;
}


/* --- ecoincore quick-button infobar (conditional when ecoincore package present) --- */

.infobar-quick-buttons {
    float: right;
    display: flex;
    align-items: center;
    margin: 4px;
}

.infobar-quick-buttons a {
    float: right;
    display: flex;
    align-items: center;
    margin: 4px;
    text-decoration: none;
    border-radius: 6px;
    position: relative;
    color: var(--highlight-text-color);
    cursor: pointer;
}

.infobar-quick-buttons a:hover {
    background-color: var(--hover-overlay, rgba(255, 255, 255, 0.07));
}

.top-bar-notification-badge {
    position: absolute;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-bright);
    border-radius: 3px;
    width: 100%;
    height: 100%;
    font-size: var(--font-sm);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 0 2px;
}

.top-bar-notification-badge.green {
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
}

.top-bar-notification-badge.yellow {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    color: #212529;
}

.top-bar-notification-badge.red {
    background: var(--danger-overlay, rgba(220, 53, 69, 0.2));
    border-color: var(--danger-color, #dc3545);
}


.small-language-icon{
	height:30px;
	width:30px;
	margin:-10px; 
	margin:-10px;
}

.brand-title h2 {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 30px;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.brand h3 {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.brand-line {
    display: inline-block;
    width: 170px;
    height: 2px;
    background-color: #ed2024;
}

.menu-top-menu-container{
    width: -moz-available;          /* For Mozzila */
    width: -webkit-fill-available;  /* For Chrome */
}


    /* Define the draggable area */
    .draggable {
      -webkit-app-region: drag;
      cursor: move;
    }


/* --- Legacy top navbar (migrated from koad-io-style-basic-bitch) --- */

._topnavbar {
	position: absolute;
	padding: 8px;
	left: 0;
	right: 0;
	top: 0;
	height: 15px;
	border-bottom: 1px solid var(--shadow-color);
	color: var(--text-bright);
	font-size: var(--font-sm);
	font-weight: 400;
	text-transform: uppercase;
	background-color: hsla(var(--application-hue), var(--application-saturation-percent), 15%, 1);
	font-style: normal;
	font-family: 'Lato', sans-serif;
	z-index: 100;
}

._topnavspacer {
	height: 30px;
	width: 100%;
}


/* --- Dropdown system (migrated from koad-io-style-basic-bitch) --- */

.dropup,
.dropdown {
  position: relative;
}
.dropdown-toggle:focus {
  outline: 0;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 160px;
  padding: 5px 3px;
  margin: 2px 0 0;
  font-size: var(--font-body);
  text-align: left;
  list-style: none;
  background-color: var(--background-color);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  border: 1px solid var(--text-color) !important;
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px var(--shadow-color);
}
.dropdown-menu.pull-right {
  right: 0;
  left: auto;
}
.dropdown-menu .divider {
  height: 1px;
  margin: 9px 0;
  overflow: hidden;
  background-color: var(--border-color);
}
.dropdown-menu > li > a {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: 400;
  line-height: 1.42857143;
  color: var(--text-color);
  white-space: nowrap;
  cursor: pointer;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  color: var(--text-bright);
  text-decoration: none;
  background-color: var(--bg-surface);
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
  color: var(--text-bright);
  text-decoration: none;
  background-color: var(--accent-color);
  outline: 0;
}
.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
  color: var(--text-muted);
}
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
  text-decoration: none;
  cursor: not-allowed;
  background-color: transparent;
  background-image: none;
}
.open > .dropdown-menu {
  display: block;
}
.open > a {
  outline: 0;
}
.dropdown-menu-right {
  right: 0;
  left: auto;
}
.dropdown-menu-left {
  right: auto;
  left: 0;
}
.dropdown-header {
  display: block;
  padding: 3px 20px;
  font-size: var(--font-sm);
  line-height: 1.42857143;
  color: var(--text-muted);
  white-space: nowrap;
}
.dropdown-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 990;
}
.pull-right > .dropdown-menu {
  right: 0;
  left: auto;
}
.dropup .caret,
.navbar-fixed-bottom .dropdown .caret {
  content: "";
  border-top: 0;
  border-bottom: 4px dashed;
  border-bottom: 4px solid \9;
}
.dropup .dropdown-menu,
.navbar-fixed-bottom .dropdown .dropdown-menu {
  top: auto;
  bottom: 100%;
  margin-bottom: 2px;
}
@media (min-width: 768px) {
  .navbar-right .dropdown-menu {
    right: 0;
    left: auto;
  }
  .navbar-right .dropdown-menu-left {
    right: auto;
    left: 0;
  }
}

.announcement-surface {
  padding: 14px 24px;
  background: hsla(var(--application-hue), var(--application-saturation-percent), 11%, 1);
  border-top: 1px solid hsla(var(--application-hue), var(--application-saturation-percent), 22%, 0.7);
  position: relative;
}

.announcement-surface__title,
.announcement-surface__copy {
  display: block;
  font-size: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

.announcement-surface__copy {
  margin-top: 2px;
}

.announcement-surface__attribution {
  display: block;
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: var(--font-sm);
  font-weight: 400;
  color: hsla(var(--application-hue), var(--application-saturation-percent), 45%, 0.7);
  margin-top: 6px;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .announcement-surface {
    padding: 14px 48px;
  }
}

@media (max-width: 479px) {
  .announcement-surface__title,
  .announcement-surface__copy {
    font-size: 0.8125rem;
  }
}

/* =============================================
   Per-author variants — entity hues registered as CSS vars.
   Iris: neutral week. No deviation from base — neutral IS the baseline.
   ============================================= */

/* Iris variant — inherits base exactly */
.announcement-surface[data-authored-by="iris"] {
  /* neutral — no overrides */
}

/* Pattern for future authors:
.announcement-surface[data-authored-by="muse"] {
  border-top-color: hsla(var(--entity-hue-muse, 270), 50%, 60%, 0.3);
}
.announcement-surface[data-authored-by="muse"] .announcement-surface__attribution {
  color: hsl(var(--entity-hue-muse, 270), 50%, 60%);
  opacity: 0.85;
}
*/.brand-bond-detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.bbd-nav {
  margin-bottom: 1.5rem;
  font-size: var(--font-body);
}
.bbd-nav-back {
  color: var(--outfit-muted, #71717a);
}
.bbd-nav-back:hover { color: var(--outfit-fg, #e4e4e7); }

.bbd-shell {
  background: var(--outfit-card-bg, #18181b);
  border: 1px solid var(--outfit-border, #27272a);
  border-radius: 10px;
  overflow: hidden;
}

.bbd-header {
  padding: 1.25rem 1.75rem;
  background: linear-gradient(180deg, #1f1f23, #18181b);
  border-bottom: 1px solid var(--outfit-border, #27272a);
}
.bbd-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.bbd-filename {
  font-family: monospace;
  font-size: 1rem;
  color: var(--outfit-fg, #e4e4e7);
}
.bbd-type {
  font-size: 0.72rem;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  background: #27272a;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bbd-status {
  font-size: 0.7rem;
  padding: 0.12em 0.45em;
  border-radius: 3px;
  background: #0c2e1a1a;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bbd-status--revoked { background: #450a0a1a; color: #ef4444; }
.bbd-issued {
  font-size: var(--font-sm);
  color: var(--outfit-muted, #71717a);
  margin-top: 0.5rem;
}

.bbd-parties {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--outfit-border, #27272a);
}
.bbd-party-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.bbd-party {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.bbd-party-label {
  font-size: 0.7rem;
  color: var(--outfit-muted, #71717a);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bbd-party-name {
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
}
.bbd-party-name:hover { opacity: 0.8; }
.bbd-arrow {
  font-size: 1.5rem;
  color: var(--outfit-muted, #52525b);
  align-self: flex-end;
  padding-bottom: 0.1rem;
}

.bbd-summary {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--outfit-border, #27272a);
}
.bbd-section-title {
  font-size: var(--font-sm);
  color: var(--outfit-muted, #71717a);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin: 0 0 0.75rem 0;
}
.bbd-summary-text {
  color: var(--outfit-fg, #e4e4e7);
  font-size: var(--font-body);
  line-height: 1.6;
  border-left: 3px solid #3f3f46;
  padding-left: 1rem;
  margin: 0;
  font-style: italic;
}

.bbd-meta {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--outfit-border, #27272a);
}
.bbd-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bbd-meta-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  font-size: var(--font-body);
}
.bbd-meta-row dt {
  color: var(--outfit-muted, #71717a);
  font-size: var(--font-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bbd-meta-row dd {
  color: var(--outfit-fg, #e4e4e7);
  margin: 0;
}
.bbd-link {
  color: var(--outfit-accent, #60a5fa);
}
.bbd-link:hover { color: var(--outfit-accent-bright, #93c5fd); }

.bbd-footer {
  padding: 0.75rem 1.75rem;
  background: #0e0e10;
}
.bbd-id {
  font-family: monospace;
  font-size: var(--font-mono-label);
  color: var(--outfit-muted, #71717a);
}

.bbd-missing {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--outfit-muted, #71717a);
}
.bbd-missing a { color: var(--outfit-accent, #60a5fa); }.brand-bonds-index {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.bbi-header {
  margin-bottom: 1.75rem;
}
.bbi-title {
  font-size: var(--font-h2);
  font-weight: 500;
  color: var(--outfit-fg, #e4e4e7);
  margin: 0 0 0.4rem 0;
}
.bbi-subtitle {
  font-size: var(--font-body);
  color: var(--outfit-muted, #71717a);
  margin: 0;
}

.bbi-groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.bbi-group {
  background: var(--outfit-card-bg, #18181b);
  border: 1px solid var(--outfit-border, #27272a);
  border-radius: 8px;
  overflow: hidden;
}
.bbi-group-header {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(180deg, #1f1f23, #18181b);
  border-bottom: 1px solid var(--outfit-border, #27272a);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bbi-group-entity {
  font-weight: 500;
  font-size: 0.95rem;
}
.bbi-group-count {
  font-size: var(--font-sm);
  color: var(--outfit-muted, #71717a);
}

.bbi-bond-list {
  display: flex;
  flex-direction: column;
}
.bbi-bond-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid #27272a20;
  text-decoration: none;
  transition: background 0.1s;
  flex-wrap: wrap;
}
.bbi-bond-row:last-child { border-bottom: none; }
.bbi-bond-row:hover { background: #27272a30; }
.bbi-bond-file {
  font-family: monospace;
  font-size: var(--font-sm);
  color: var(--outfit-fg, #e4e4e7);
  flex-shrink: 0;
}
.bbi-bond-type {
  font-size: 0.7rem;
  padding: 0.12em 0.45em;
  border-radius: 3px;
  background: #27272a;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.bbi-bond-dir {
  font-size: var(--font-sm);
  color: var(--outfit-muted, #71717a);
  flex-shrink: 0;
}
.bbi-bond-summary {
  font-size: var(--font-sm);
  color: #71717a;
  font-style: italic;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bbi-empty {
  color: var(--outfit-muted, #71717a);
  font-size: var(--font-body);
  padding: 2rem 0;
}

.brand-bond-graph {
  position: relative;
  width: 100%;
  height: 420px;
  background: radial-gradient(ellipse at center, #151515 0%, #0d0d0d 100%);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 6px;
  overflow: hidden;
  user-select: none;
}

.brand-bond-graph-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.brand-bond-graph-edge {
  stroke: var(--border, #3a3a3a);
  stroke-width: 1;
  fill: none;
  transition: stroke 0.2s;
}

.brand-bond-graph-edge-arrow {
  fill: var(--border, #3a3a3a);
}

.brand-bond-graph-node {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: hsl(
    var(--application-hue, 200),
    20%,
    30%
  );
  overflow: hidden;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%);
  transition: box-shadow 0.2s;
  z-index: 2;
}

.brand-bond-graph-node:hover {
  cursor: pointer;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color, #5bd5b5) 40%, transparent),
              0 2px 8px rgba(0,0,0,0.5);
  z-index: 5;
}

.brand-bond-graph-node--dragging {
  cursor: grabbing;
  z-index: 10;
}

.brand-bond-graph-node--active {
  box-shadow: 0 0 0 3px var(--accent-color, #5bd5b5),
              0 2px 8px rgba(0,0,0,0.5);
}

.brand-bond-graph-node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-bond-graph-node-label {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-dim, #888);
  white-space: nowrap;
  pointer-events: none;
  font-weight: 500;
  text-shadow: 0 1px 2px #000;
}

.brand-bond-graph-node:hover .brand-bond-graph-node-label {
  color: var(--accent-color, #5bd5b5);
}

.brand-bond-graph-node--focal {
  width: 76px;
  height: 76px;
  box-shadow: 0 0 0 2px var(--accent-color, #5bd5b5), 0 2px 12px rgba(0,0,0,0.6);
  z-index: 3;
}

.chain-verify-line {
  display: block;
  margin-top: 0.5em;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: 0.85em;
  color: var(--text-muted, #888);
  line-height: 1.4;
}

/* pending state — even more receded; tx exists but confirmation threshold not yet met */
.chain-verify-line--pending {
  opacity: 0.65;
}

.chain-verify-line-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.chain-verify-line-link:hover {
  color: var(--accent-color, var(--accent, currentColor));
  border-bottom-style: solid;
}

.chain-verify-line-arrow {
  font-style: normal;
  opacity: 0.6;
}

.brand-bond-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.brand-bond-list-empty {
  padding: 24px 0;
}

.brand-bond-list-empty-msg {
  color: var(--text-dim, #888);
  font-size: var(--font-sm);
  margin: 0;
}

/* Entity group */

.brand-bond-list-group {
  margin-bottom: 20px;
}

.brand-bond-list-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
  margin-bottom: 6px;
}

.brand-bond-list-group-name {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--accent-color, #5bd5b5);
}

.brand-bond-list-group-count {
  font-size: var(--font-sm);
  color: var(--text-dim, #888);
}

/* Bond row */

.brand-bond-list-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
}

.brand-bond-list-row:last-child {
  border-bottom: none;
}

/* Directional layout (from → to style) */

.brand-bond-list-row-direction {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-sm);
}

.brand-bond-list-row-handle {
  color: var(--accent-color, #5bd5b5);
  text-decoration: none;
  font-weight: 500;
}

.brand-bond-list-row-handle:hover {
  text-decoration: underline;
}

.brand-bond-list-row-arrow {
  font-size: var(--font-body);
  font-weight: 700;
}

/* Base/type simple layout (no enriched handles) */

.brand-bond-list-row-base {
  color: var(--text-dim, #888);
  font-size: var(--font-sm);
  font-family: monospace;
}

.brand-bond-list-row-kind {
  font-size: 10px;
  color: var(--text-dim, #888);
}

/* Meta row: type badge + status + created */

.brand-bond-list-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.brand-bond-list-row-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent-color, #5bd5b5) 12%, var(--bg-raised, #171717));
  color: var(--accent-color, #5bd5b5);
  border: 1px solid color-mix(in srgb, var(--accent-color, #5bd5b5) 30%, var(--border, rgba(255,255,255,0.07)));
}

.brand-bond-list-row-badge--authorized-agent {
  background: color-mix(in srgb, var(--accent-color, #5bd5b5) 12%, var(--bg-raised, #171717));
  color: var(--accent-color, #5bd5b5);
  border-color: color-mix(in srgb, var(--accent-color, #5bd5b5) 30%, var(--border, rgba(255,255,255,0.07)));
}

.brand-bond-list-row-badge--authorized-builder {
  background: color-mix(in srgb, #d5a05b 12%, var(--bg-raised, #171717));
  color: #d5a05b;
  border-color: color-mix(in srgb, #d5a05b 30%, var(--border, rgba(255,255,255,0.07)));
}

.brand-bond-list-row-status {
  font-size: var(--font-sm);
  color: var(--text-dim, #888);
}

.brand-bond-list-row-created {
  font-size: var(--font-sm);
  color: var(--text-dim, #888);
  margin-left: auto;
}

.brand-bond-list-row-summary {
  font-size: var(--font-sm);
  color: var(--text-dim, #888);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

.content-card {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: 4px;
	overflow: hidden;
	width: 100%;
}

.content-card-footer {
	padding: 10px 14px;
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
}

.content-card-source-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--font-sm);
	color: var(--text-dim);
	transition: color 0.15s;
}

.content-card-source-link:hover {
	color: var(--text);
}

.content-card-source-icon {
	font-size: 10px;
	color: var(--accent);
}

.content-card-source-domain {
	font-family: var(--font-mono);
}

.content-card-source-arrow {
	font-size: var(--font-sm);
	opacity: 0.5;
}

.content-card--audio {
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.content-card-audio-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.content-card-audio-icon {
	font-size: 18px;
	color: var(--accent);
	line-height: 1;
}

.content-card-audio-filename {
	font-family: var(--font-mono);
	font-size: var(--font-sm);
	color: var(--text);
	word-break: break-all;
}

.content-card-audio {
	width: 100%;
	display: block;
}

.content-card--image {
	line-height: 0;
}

.content-card-image-link {
	display: block;
}

.content-card-image {
	width: 100%;
	max-width: 100%;
	display: block;
	object-fit: contain;
	max-height: 600px;
}

.content-card--link {
	padding: 14px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.content-card-link-body {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.content-card-link-icon {
	font-size: 16px;
	color: var(--accent);
	line-height: 1.3;
	flex-shrink: 0;
}

.content-card-link-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.content-card-link-domain {
	font-size: var(--font-sm);
	font-weight: 600;
	color: var(--text);
}

.content-card-link-url {
	font-size: var(--font-sm);
	font-family: var(--font-mono);
	color: var(--text-dim);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.content-card-link-btn {
	font-size: var(--font-sm);
	color: var(--accent);
	border: 1px solid var(--border-accent);
	border-radius: 2px;
	padding: 6px 14px;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 0.15s;
}

.content-card-link-btn:hover {
	background: var(--bg-raised);
}

.content-card--tweet {
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.content-card-tweet-header {
	display: flex;
	align-items: center;
	gap: 8px;
}

.content-card-tweet-icon {
	font-size: 16px;
	color: var(--text);
	line-height: 1;
}

.content-card-tweet-label {
	font-size: var(--font-sm);
	font-weight: 600;
	color: var(--text);
}

.content-card-tweet-url {
	font-size: var(--font-sm);
	font-family: var(--font-mono);
	color: var(--text-dim);
	word-break: break-all;
}

.content-card-tweet-btn {
	display: inline-flex;
	align-items: center;
	font-size: var(--font-sm);
	color: var(--accent);
	border: 1px solid var(--border-accent);
	border-radius: 2px;
	padding: 6px 14px;
	width: fit-content;
	transition: background 0.15s, color 0.15s;
}

.content-card-tweet-btn:hover {
	background: var(--bg-raised);
}

.content-card--video .content-card-video {
	width: 100%;
	display: block;
	background: #000;
	max-height: 480px;
}

.content-card--video .content-card-footer {
	font-size: var(--font-sm);
}

.content-card-filename {
	font-family: var(--font-mono);
	font-size: var(--font-sm);
	color: var(--text-dim);
	word-break: break-all;
}

.content-card--youtube .content-card-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}

.content-card--youtube .content-card-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.content-card--youtube .content-card-thumb-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
	transition: background 0.15s;
}

.content-card--youtube .content-card-thumb-overlay:hover {
	background: rgba(0, 0, 0, 0.5);
}

.content-card-play-btn {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.75);
	border: 2px solid rgba(255, 255, 255, 0.8);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.1s, background 0.15s;
}

.content-card-play-btn:hover {
	transform: scale(1.08);
	background: rgba(0, 0, 0, 0.9);
}

.content-card-play-icon {
	color: #fff;
	font-size: 22px;
	margin-left: 4px; /* optical center for play triangle */
	line-height: 1;
}

/* Consent bar */
.content-card-consent-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	background: var(--bg-raised);
	border-top: 1px solid var(--border);
	flex-wrap: wrap;
}

.content-card-consent-msg {
	font-size: var(--font-sm);
	color: var(--text-dim);
	flex: 1;
	min-width: 180px;
}

.content-card-consent-accept,
.content-card-consent-cancel {
	font-size: var(--font-sm);
	font-family: var(--font-body);
	padding: 5px 12px;
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.content-card-consent-accept {
	background: var(--accent);
	color: #0A0A0A;
	border: none;
	font-weight: 600;
}

.content-card-consent-accept:hover {
	background: var(--accent-dim);
}

.content-card-consent-cancel {
	background: transparent;
	color: var(--text-dim);
	border: 1px solid var(--border);
}

.content-card-consent-cancel:hover {
	color: var(--text);
	border-color: var(--slate-light);
}

/* Embed iframe */
.content-card-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.content-card-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.conversation-node {
	position: relative;
	padding: 10px 14px;
	background: var(--shadow-color);
	border-radius: 4px;
	border-left: 2px solid var(--border-color);
}

.conversation-node-header {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.conversation-node-entity {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--font-sm);
	font-weight: 600;
	text-decoration: none;
}

.conversation-node-entity:hover {
	opacity: 0.85;
}

.conversation-node-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	color: var(--fill-color);
	flex-shrink: 0;
}

.conversation-node-type {
	font-size: var(--font-sm);
	font-family: var(--font-mono, ui-monospace, monospace);
	padding: 2px 6px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--text-dim, #888);
	text-transform: lowercase;
}

/* Semantic state colors — hsl-derived to participate in the outfit system */
.conversation-node-type--open   { color: hsl(var(--success-hue, 140), var(--application-saturation-percent), 65%); }
.conversation-node-type--update { color: hsla(var(--application-hue), var(--application-saturation-percent), 75%, 0.9); }
.conversation-node-type--close  { color: hsl(var(--warning-hue, 43), var(--application-saturation-percent), 65%); }

.conversation-node-time {
	font-size: var(--font-sm);
	color: var(--text-faint, #555);
	margin-left: auto;
}

.conversation-node-flight-link {
	font-size: var(--font-sm);
	color: var(--accent, #7eb8f7);
	text-decoration: none;
}

.conversation-node-flight-link:hover {
	text-decoration: underline;
}

.conversation-node-body {
	font-size: var(--font-sm);
	color: var(--text-dim, #aaa);
	line-height: 1.5;
	margin: 0 0 6px 0;
	word-break: break-word;
}

.conversation-node-children {
	margin-top: 8px;
	padding-left: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	border-left: 1px solid var(--border-color);
	opacity: 0.7;
}

.entity-chat-main {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 400px;
}

.entity-chat-conversation {
	flex: 1;
	overflow-y: auto;
	padding: 24px 24px 100px;
}

.entity-chat-message {
	margin-bottom: 24px;
}

.entity-chat-sender {
	font-family: var(--font-mono);
	font-size: var(--font-sm);
	color: var(--entity-accent, var(--accent));
	margin-bottom: 8px;
	letter-spacing: 0.05em;
}

.entity-chat-message--human {
	text-align: right;
}

.entity-chat-message--human .entity-chat-sender {
	color: var(--text-dim);
}

.entity-chat-message--human .entity-chat-body {
	display: inline-block;
	text-align: left;
	background: rgba(255,255,255,0.04);
	padding: 10px 16px;
	border-radius: 4px;
	max-width: 85%;
}

.entity-chat-body {
	font-size: 15px;
	line-height: 1.7;
	color: var(--text);
}

.entity-chat-body p { margin: 0 0 12px; }
.entity-chat-body p:last-child { margin-bottom: 0; }
.entity-chat-body em { color: var(--entity-accent, var(--accent)); font-style: normal; font-weight: 600; }
.entity-chat-body strong { color: var(--text); font-weight: 600; }
.entity-chat-body code {
	font-family: var(--font-mono);
	font-size: var(--font-mono-body);
	color: var(--entity-accent, var(--accent));
	background: rgba(255,255,255,0.06);
	padding: 1px 6px;
	border-radius: 2px;
}

.entity-chat-input-bar {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 12px 24px;
	background: var(--bg);
	border-top: 1px solid var(--border);
	position: sticky;
	bottom: 0;
	z-index: 10;
}

.entity-chat-input {
	flex: 1;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 15px;
	padding: 10px 14px;
	border-radius: 4px;
	resize: none;
	overflow-y: auto;
	max-height: 120px;
	line-height: 1.5;
	transition: border-color 0.15s;
}

.entity-chat-input:focus {
	outline: none;
	border-color: var(--entity-accent, var(--accent));
}

.entity-chat-input::placeholder { color: var(--text-dim); }

.entity-chat-btn-send {
	background: var(--entity-accent, var(--accent));
	color: #0D0D0D;
	border: none;
	font-size: var(--font-body);
	font-weight: 700;
	width: 40px;
	height: 40px;
	border-radius: 4px;
	cursor: pointer;
	flex-shrink: 0;
	transition: opacity 0.15s;
}

.entity-chat-btn-send:hover { opacity: 0.85; }

.entity-chat-streaming {
	opacity: 0.9;
}

.entity-chat-thinking {
	color: var(--text-dim);
	animation: entity-chat-pulse 1.2s ease-in-out infinite;
}

@keyframes entity-chat-pulse {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 1; }
}

.entity-chat-btn-send:focus {
	outline: none;
	box-shadow: 0 0 0 3px hsla(var(--entity-hue, 200), var(--entity-saturation, 30%), var(--entity-brightness, 55%), 0.35);
}

.entity-chat-btn-avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

/* Empty state when no messages */
.entity-chat-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	height: 100%;
	min-height: 240px;
	color: var(--text-dim);
}

.entity-chat-empty-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 700;
	background: var(--entity-accent, var(--accent));
	color: #0D0D0D;
	overflow: hidden;
}

.entity-chat-empty-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.entity-chat-empty-prompt {
	font-size: 15px;
	color: var(--text-dim);
	text-align: center;
}

.live-sessions {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: var(--font-sm);
}

.live-session-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px;
	padding: 8px 12px;
	background: var(--shadow-color);
	border-radius: 4px;
	border-left: 2px solid hsla(var(--application-hue), var(--application-saturation-percent), 65%, 0.4);
}

.live-session-entity {
	font-weight: 600;
	color: var(--text-bright, #eee);
	min-width: 80px;
}

.live-session-harness {
	color: var(--text-muted, #888);
	font-size: var(--font-sm);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.live-session-model {
	color: hsla(var(--application-hue), var(--application-saturation-percent), 75%, 0.9);
}

.live-session-ctx {
	color: var(--text-muted, #888);
}

.live-session-cost {
	color: color-mix(in srgb, var(--success) 85%, transparent);
}

.live-session-cwd {
	color: var(--text-muted, #888);
	font-size: var(--font-sm);
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.live-session-id {
	color: var(--text-faint, #555);
	font-size: var(--font-sm);
}.thoughtful-spinner {
  display: inline-block;
  font-family: monospace;
  font-size: inherit;
  line-height: 1;
  color: inherit;
  min-width: 1em;
  text-align: center;
  vertical-align: baseline;
}

.thoughtful-spinner[data-size="sm"] {
  font-size: 0.75em;
}

.thoughtful-spinner[data-size="lg"] {
  font-size: 1.5em;
}

.thoughtful-spinner[data-size="xl"] {
  font-size: 2.5em;
}

.thoughtful-spinner[data-size="xxl"] {
  font-size: 4em;
}.brand-emission-detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.bed-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: var(--font-body);
}
.bed-nav-back {
  color: var(--outfit-muted, #71717a);
}
.bed-nav-back:hover { color: var(--outfit-fg, #e4e4e7); }
.bed-nav-entity { font-weight: 500; }

.bed-shell {
  background: var(--outfit-card-bg, #18181b);
  border: 1px solid var(--outfit-border, #27272a);
  border-radius: 10px;
  overflow: hidden;
}

.bed-header {
  padding: 1.25rem 1.75rem;
  background: linear-gradient(180deg, #1f1f23, #18181b);
  border-bottom: 1px solid var(--outfit-border, #27272a);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.bed-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bed-entity { font-weight: 500; font-size: 1.05rem; }
.bed-type {
  font-size: var(--font-sm);
  padding: 0.2em 0.55em;
  border-radius: 3px;
  background: #27272a;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bed-type--warning { background: #451a031a; color: #f97316; }
.bed-type--error   { background: #450a0a1a; color: #ef4444; }
.bed-type--notice  { background: #0c1a2e1a; color: #60a5fa; }
.bed-type--flight  { background: #0c2e1a1a; color: #34d399; }
.bed-status {
  font-size: 0.7rem;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  background: #0c2e1a1a;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bed-status--closed { background: #27272a; color: #71717a; }
.bed-time {
  font-size: var(--font-sm);
  color: var(--outfit-muted, #71717a);
  font-variant-numeric: tabular-nums;
}

.bed-body {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--outfit-border, #27272a);
}
.bed-body-text {
  color: var(--outfit-fg, #e4e4e7);
  font-size: var(--font-body);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.bed-section-title {
  font-size: var(--font-sm);
  color: var(--outfit-muted, #71717a);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin: 0 0 0.9rem 0;
}

.bed-history {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--outfit-border, #27272a);
}
.bed-history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bed-history-entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: baseline;
  font-size: var(--font-body);
  padding: 0.5rem 0;
  border-bottom: 1px solid #27272a30;
}
.bed-history-entry:last-child { border-bottom: none; }
.bed-history-at {
  color: var(--outfit-muted, #71717a);
  font-variant-numeric: tabular-nums;
  font-family: monospace;
  font-size: var(--font-sm);
}
.bed-history-body {
  color: var(--outfit-fg, #e4e4e7);
  word-break: break-word;
}

.bed-meta, .bed-lifecycle {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--outfit-border, #27272a);
}
.bed-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bed-meta-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  font-size: var(--font-body);
}
.bed-meta-row dt {
  color: var(--outfit-muted, #71717a);
  font-size: var(--font-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}
.bed-meta-row dd {
  color: var(--outfit-fg, #e4e4e7);
  word-break: break-all;
  margin: 0;
}
.bed-meta-json {
  font-family: monospace;
  font-size: var(--font-mono-label);
  white-space: pre-wrap;
  color: #a1a1aa;
}
.bed-link {
  color: var(--outfit-accent, #60a5fa);
  font-family: monospace;
  font-size: var(--font-sm);
}
.bed-link:hover { color: var(--outfit-accent-bright, #93c5fd); }

.bed-footer {
  padding: 0.75rem 1.75rem;
  background: #0e0e10;
  display: flex;
  justify-content: flex-start;
}
.bed-id {
  font-family: monospace;
  font-size: var(--font-mono-label);
  color: var(--outfit-muted, #71717a);
}

.bed-missing {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--outfit-muted, #71717a);
}
.bed-missing a { color: var(--outfit-accent, #60a5fa); }.brand-emissions-index {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.bei-header {
  margin-bottom: 1.75rem;
}
.bei-title {
  font-size: var(--font-h2);
  font-weight: 500;
  color: var(--outfit-fg, #e4e4e7);
  margin: 0 0 0.4rem 0;
}
.bei-subtitle {
  font-size: var(--font-body);
  color: var(--outfit-muted, #71717a);
  margin: 0;
}

.bei-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bei-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--outfit-card-bg, #18181b);
  border: 1px solid var(--outfit-border, #27272a);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.1s;
}
.bei-row:hover { border-color: #3f3f46; }
.bei-row-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.bei-entity {
  font-size: var(--font-body);
  font-weight: 500;
  white-space: nowrap;
}
.bei-type {
  font-size: 0.68rem;
  padding: 0.15em 0.45em;
  border-radius: 3px;
  background: #27272a;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.bei-type--warning { background: #451a031a; color: #f97316; }
.bei-type--error   { background: #450a0a1a; color: #ef4444; }
.bei-type--notice  { background: #0c1a2e1a; color: #60a5fa; }
.bei-type--flight  { background: #0c2e1a1a; color: #34d399; }
.bei-status {
  font-size: 0.65rem;
  padding: 0.12em 0.4em;
  border-radius: 3px;
  background: #0c2e1a1a;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.bei-status--closed { background: #27272a; color: #52525b; }
.bei-row-body {
  font-size: var(--font-body);
  color: var(--outfit-fg, #e4e4e7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.bei-row-right { min-width: 0; }
.bei-time {
  font-size: var(--font-sm);
  color: var(--outfit-muted, #71717a);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bei-empty {
  color: var(--outfit-muted, #71717a);
  font-size: var(--font-body);
  padding: 2rem 0;
}

/* announce — slightly elevated visual weight */
.bei-row--announce {
  background: var(--outfit-card-bg-elevated, #1c1c1f);
  border-color: #3f3f46;
}
.bei-row--announce .bei-row-body {
  font-size: var(--font-body);
  font-weight: 500;
  color: var(--outfit-fg-bright, #f4f4f5);
}
.bei-type--announce { background: #1a2e1a1a; color: #86efac; }

/* typed event type pills */
.bei-type--pin             { background: #1a1a2e1a; color: #a78bfa; }
.bei-type--message\.dropped { background: #1a2e2e1a; color: #67e8f9; }
.bei-type--tickle\.fired    { background: #2e2a1a1a; color: #fbbf24; }
.bei-type--brief\.dispatched { background: #1a2e181a; color: #6ee7b7; }

@media (max-width: 600px) {
  .bei-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .bei-row-body { white-space: normal; }
}
    .emission-item { padding: 8px 0; border-bottom: 1px solid #1a1a1a; }
    .emission-item:last-child { border-bottom: none; }
    .emission-header { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
    .emission-entity { font-size: var(--font-sm); font-weight: 600; }

    .emission-type {
      font-size: 9px; padding: 1px 5px; border-radius: 3px;
      text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
    }
    .emission-type.notice { background: #1a3a5c; color: #5b9bd5; }
    .emission-type.warning { background: #4a3a1a; color: #d4a535; }
    .emission-type.error { background: #4a1a1a; color: #d55b5b; }
    .emission-type.request { background: #3a1a4a; color: #a55bd5; }
    .emission-type.flight { background: #1a3a3a; color: #5bd5b5; }
    .emission-type.alert { background: #4a3a1a; color: #d4a535; }
    .emission-time { font-size: 10px; color: #444; margin-left: auto; }
    .emission-body { font-size: var(--font-sm); color: #888; line-height: 1.4; }
    .emission-stats { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
    .emission-stat { font-size: 10px; color: #555; }
    .emission-stat .sv { color: #777; font-weight: 600; }
    .entity-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 12px;
      margin-bottom: 4px;

    }


    .entity-grid > .entity-card {
      break-inside: avoid;
      page-break-inside: avoid;
      display: inline-block;
      width: 100%;
    }

    /* Entity card — layered gradient effect ported from passenger popup.
       Two layers: an oversized animated multi-color gradient behind a
       dotted radial pattern. The dots are semi-transparent so the
       gradient bleeds through.
         - .active-5m: uses entity's accent color (calm, on-brand)
         - :hover: purple→pink→yellow (original passenger palette, bright)
         - hover overrides active when both are true
       Each entity's gradient uses CSS vars set inline on the card. */
    .entity-card {
      position: relative;
      border-radius: 6px;
      border-left: 3px solid #444;
      cursor: pointer; user-select: none;
      overflow: hidden;
      transition: border-color 350ms ease;
    }
    /* Active-5m layer — uses entity's outfit color (set via --entity-hue on the card) */
    .entity-card::before {
      content: "";
      position: absolute; inset: 0;
      background: linear-gradient(
        130deg,
        transparent 0% 28%,
        hsla(var(--entity-hue, 180), 80%, 55%, 0.6) 55%,
        hsla(calc(var(--entity-hue, 180) + 40), 85%, 60%, 0.55) 78%,
        hsla(calc(var(--entity-hue, 180) + 80), 90%, 65%, 0.5) 100%
      );
      background-size: 400% 400%;
      background-position: 0% 0%;
      transition: background-position 700ms ease, transform 700ms ease, opacity 450ms ease;
      pointer-events: none;
      opacity: 0.11;
      z-index: 1;
    }
    /* Hover layer — bright passenger-popup palette, sits on top */
    .entity-card::after {
      content: "";
      position: absolute; inset: 0;
      background: linear-gradient(
        130deg,
        transparent 0% 30%,
        hsla(var(--entity-hue, 180), 80%, 55%, 0.6) 55%,
        hsla(calc(var(--entity-hue, 180) + 40), 85%, 60%, 0.55) 78%,
        hsla(calc(var(--entity-hue, 180) + 80), 90%, 65%, 0.5) 100%
      );
      background-size: 400% 400%;
      background-position: 0% 0%;
      transition: background-position 500ms ease, transform 500ms ease, opacity 350ms ease;
      pointer-events: none;
      opacity: 0.11;
      z-index: 2;
    }
    .entity-card-inner {
      position: relative;
      inset: 0;
      z-index: 3;
      height: 100%;
      padding: 6px 8px;
      background: #0009;
      background-image: radial-gradient(
        rgba(255, 255, 255, 0.14) 8%,
        transparent 8%
      );
      background-size: 18px 18px;
      background-position: 0% 0%;
      transition: background-position 500ms ease;
    }
    /* Active-5m: entity-color gradient reveals, slow drift */
    .entity-card.active-5m::before {
      opacity: 1;
      background-position: 100% 100%;
      transform: scale(1.12);
      animation: entityDrift 12s ease-in-out infinite;
    }
    @keyframes entityDrift {
      0%, 100% { background-position: 100% 100%; }
      50% { background-position: 30% 60%; }
    }
    .entity-card.active-5m .entity-card-inner {
      background-position: -6% 0%;
    }
    /* Hover: passenger-palette gradient overpowers, quick shift */
    .entity-card:hover::after {
      opacity: 1;
      background-position: 100% 100%;
      transform: scale(1.08);
    }
    .entity-card:hover .entity-card-inner {
      background-position: -12% 0%;
    }

    /* Selected: card is the active filter target for the activity panel */
    .entity-card.selected::after {
      opacity: 1;
      background-position: 100% 100%;
    }

    /* Clickable avatar link — stop bubbling on click handled in JS */
    a.entity-avatar { text-decoration: none; }
    a.entity-avatar:hover { cursor: pointer; }

    .entity-card-top {
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .entity-avatar {
      width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 18px; font-weight: 600; color: #fff;
      background: #333; overflow: hidden;
      position: relative;
    }
    .entity-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .status-dot {
      position: absolute; bottom: 3px; right: 2px;
      width: 7px; height: 7px; border-radius: 50%;
      border: 2px solid #1a1a1a55;
    }
    .status-dot.status-live { background: #5bd5b5; box-shadow: 0 0 4px #5bd5b5; }
    .status-dot.status-recent { background: #d4a535; }
    .status-dot.status-idle { background: #555; }
    .status-dot.status-cold { background: #2a2a2a; }

    .entity-info { flex: 1; min-width: 0; }
    .entity-title-row {
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
    }
    .entity-handle { font-size: var(--font-body); font-weight: 600; color: #e0e0e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
    .entity-last-seen {
      font-size: 10px; color: #555; flex-shrink: 0;
      font-family: monospace;
    }
    .entity-last-seen .thoughtful-spinner {
      position: absolute;
      top: 12px;
      right: 12px;
      opacity: 0.22;
    }
    .entity-last-seen.live { color: #5bd5b5; }
    .entity-last-seen.recent { color: #d4a535; }

    .entity-tagline { font-size: var(--font-sm); color: #777; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; font-style: italic; }
    .entity-meta { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; align-items: center; }
    .entity-stat { font-size: 10px; color: #666; }
    .entity-stat .stat-val { color: #999; font-weight: 600; }
    .entity-role {
      font-size: 9px; padding: 1px 6px; border-radius: 3px;
      background: #1a2a3a; color: #5b8fbd; text-transform: uppercase;
      letter-spacing: 0.5px; font-weight: 600;
    }
    .entity-kingdom {
      font-size: 9px; padding: 1px 6px; border-radius: 3px;
      background: #2a1a3a; color: #a55bd5; text-transform: uppercase;
      letter-spacing: 0.5px; font-weight: 600;
    }
    .entity-host {
      font-size: 9px; padding: 1px 6px; border-radius: 3px;
      background: #1a1a2a; color: #7b8bbf; text-transform: uppercase;
      letter-spacing: 0.5px; font-weight: 600;
    }
    .entity-purpose {
      font-size: 9px; padding: 1px 6px; border-radius: 3px;
      background: #2a2a1a; color: #bf9b5b; text-transform: uppercase;
      letter-spacing: 0.5px; font-weight: 600;
    }
    .entity-harness {
      font-size: 9px; padding: 1px 6px; border-radius: 3px;
      background: #1a2a2a; color: #5bbf8b; text-transform: uppercase;
      letter-spacing: 0.5px; font-weight: 600;
    }
    .entity-alert-dot {
      width: 6px; height: 6px; border-radius: 50%; background: #d4a535;
      flex-shrink: 0; animation: alertPulse 2s ease-in-out infinite;
    }
    @keyframes alertPulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }

    /* 24h activity row */
    .entity-24h {
      display: flex; gap: 10px; margin-top: 6px; padding-top: 6px;
      border-top: 1px solid #242424; font-size: 10px; color: #555;
    }
    .entity-24h .h24-stat { display: flex; align-items: center; gap: 3px; }
    .entity-24h .h24-val { color: #888; font-weight: 600; }
    .entity-24h .h24-label { color: #555; }
    .entity-24h .h24-muted { color: #2a2a2a; }

    /* Flight indicators on entity cards */
    .flight-indicator {
      display: flex; align-items: center; gap: 6px;
      margin-top: 6px; padding-top: 5px; border-top: 1px solid #252525;
    }
    .flight-dot {
      width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
      animation: pulse 1.6s ease-in-out infinite;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.75); }
    }
    .flight-brief { font-size: var(--font-sm); color: #5bd5b5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
    .flight-elapsed { font-size: 10px; color: #555; flex-shrink: 0; }
    .flight-model { font-size: 9px; padding: 1px 5px; border-radius: 3px; background: #1a3a3a; color: #5bd5b5; flex-shrink: 0; }
.entity-profile {
	width: 369px;
	flex-shrink: 0;
	padding: 24px;
	border-right: 1px solid var(--border);
	overflow-y: visible;
	align-self: flex-start;
	position: sticky;
	top: 0;
}

/* --- Avatar --- */
.entity-profile-avatar {
	margin-bottom: 16px;
}

.entity-avatar-circle {
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: var(--bg-surface);
	border: 2px solid var(--entity-accent, var(--accent));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 72px;
	font-weight: 700;
	color: var(--accent);
	font-family: var(--font-mono);
	overflow: hidden;
	margin: auto;
}

.entity-avatar-img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.entity-avatar-glow {
	box-shadow: 0 0 20px hsla(var(--entity-hue, 200), var(--entity-saturation, 30%), var(--entity-brightness, 55%), 0.2);
	transition: box-shadow 0.4s ease;
}

.entity-avatar-flying {
	animation: entity-avatar-pulse 2.4s ease-in-out infinite;
}

@keyframes entity-avatar-pulse {
	0%, 100% { box-shadow: 0 0 20px hsla(var(--entity-hue, 200), var(--entity-saturation, 30%), var(--entity-brightness, 55%), 0.2); }
	50%       { box-shadow: 0 0 36px hsla(var(--entity-hue, 200), var(--entity-saturation, 30%), var(--entity-brightness, 55%), 0.45); }
}

/* --- Name, handle, bio --- */
.entity-profile-name {
	font-size: 24px;
	font-weight: 700;
	color: var(--text);
	margin: 0 0 2px;
	line-height: 1.3;
}

.entity-profile-handle {
	font-size: var(--font-body);
	color: var(--text-dim);
	font-family: var(--font-mono);
	margin: 0 0 16px;
}

.entity-profile-bio {
	font-size: 15px;
	color: var(--text);
	line-height: 1.55;
	margin: 0 0 16px;
	opacity: 0.85;
}

/* --- Stats row --- */
.entity-profile-stats {
	display: flex;
	gap: 16px;
	padding: 12px 0;
	margin-bottom: 16px;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.entity-profile-stat {
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.entity-stat-value {
	font-size: 16px;
	font-weight: 700;
	color: var(--text);
}

.entity-stat-label {
	font-size: var(--font-sm);
	color: var(--text-dim);
}

/* --- Details list --- */
.entity-profile-details {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 20px;
}

.entity-profile-detail {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--font-sm);
	color: var(--text-dim);
}

.entity-detail-icon {
	width: 16px;
	text-align: center;
	flex-shrink: 0;
	color: var(--text-dim);
}

.entity-detail-link {
	color: var(--accent);
	text-decoration: none;
}
.entity-detail-link:hover {
	text-decoration: underline;
}

/* --- Live 24h activity strip --- */
.entity-live-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0;
	padding: 10px 12px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 6px;
}

.entity-live-stat {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: var(--font-sm);
}

.entity-live-stat--full {
	width: 100%;
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.entity-live-val {
	color: var(--entity-accent, var(--accent));
	font-weight: 600;
	font-size: var(--font-sm);
}

.entity-live-val--age {
	font-size: var(--font-sm);
}

.entity-live-label {
	color: var(--text-dim);
}

/* --- Flight status block in sidebar --- */
.entity-flight-status {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px 12px;
	margin-bottom: 14px;
	background: rgba(91, 213, 181, 0.07);
	border: 1px solid rgba(91, 213, 181, 0.25);
	border-radius: 6px;
	font-size: var(--font-sm);
}

.entity-flight-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #5bd5b5;
	flex-shrink: 0;
	animation: pulse-dot 1.4s ease-in-out infinite;
}

.entity-flight-status-label {
	font-family: var(--font-mono);
	font-size: var(--font-sm);
	color: #5bd5b5;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
}

.entity-flight-status-slug {
	font-family: var(--font-mono);
	font-size: var(--font-sm);
	color: var(--text-dim);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 160px;
}

.entity-flight-status-elapsed {
	font-family: var(--font-mono);
	font-size: var(--font-sm);
	color: var(--text-dim);
	margin-left: auto;
}

/* --- Bonds list in sidebar --- */
.entity-bonds-section {
	margin: 12px 0;
	border-top: 1px solid var(--border);
	padding-top: 12px;
}

.entity-bonds-heading {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--text-dim);
	margin-bottom: 8px;
	font-weight: 600;
}

.entity-bonds-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.entity-bond-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: var(--font-sm);
	color: var(--text-dim);
	padding: 2px 0;
}

.entity-bond-name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text);
}

.entity-bond-type {
	font-size: 9px;
	padding: 1px 5px;
	border-radius: 3px;
	background: rgba(91, 143, 189, 0.15);
	color: #5b8fbd;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
	margin-left: 6px;
	flex-shrink: 0;
}

/* --- Action buttons --- */
.entity-profile-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.entity-btn-message {
	display: block;
	text-align: center;
	padding: 8px 16px;
	background: var(--entity-accent, var(--accent));
	color: #0D0D0D;
	font-size: var(--font-body);
	font-weight: 700;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.15s;
}

.entity-btn-message:hover {
	background: var(--entity-accent-light, var(--accent-dim));
}

.entity-btn-message--sponsor {
	border: none;
	width: 100%;
	cursor: pointer;
	font-family: var(--font-body);
}

/* --- Responsive: single column on narrow viewports --- */
@media (max-width: 768px) {
	.entity-profile {
		width: 100%;
		position: static;
		max-height: none;
		border-right: none;
		border-bottom: 1px solid var(--border);
	}

	.entity-avatar-circle {
		width: 100px;
		height: 100px;
		font-size: 36px;
	}
}

/* --- Harness ambient --- */
.harness-ambient {
	font-size: var(--font-sm);
	color: var(--text-dim);
	font-family: var(--font-mono);
	padding: 6px 0;
	margin-bottom: 8px;
	opacity: 0.7;
}

/* --- Not-found state (when profile is null) --- */
.entity-not-found {
	padding: 32px 16px;
	text-align: center;
}

.entity-not-found-mark {
	font-size: 32px;
	color: var(--text-dim);
	margin-bottom: 12px;
}

.entity-not-found-title {
	font-size: 16px;
	color: var(--text-dim);
	font-weight: 600;
}

.ep-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid #2a2a2a;
  display: flex; align-items: center; gap: 16px;
}
.ep-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff;
  overflow: hidden; flex-shrink: 0;
}
.ep-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ep-title { font-size: 22px; font-weight: 600; color: #e0e0e0; }
.ep-tagline { font-size: var(--font-sm); color: #777; font-style: italic; margin-top: 2px; }
.ep-meta { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.ep-body { display: flex; gap: 0; height: calc(100vh - 100px); }
.ep-main { flex: 1; padding: 20px 28px; overflow-y: auto; }
.ep-sidebar { width: 360px; min-width: 280px; border-left: 1px solid #2a2a2a; padding: 20px 18px; overflow-y: auto; }
a.flight-item,
a.flight-item:visited {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.flight-item:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
}

.flight-item-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 8px;
  row-gap: 3px;
  align-items: baseline;
  margin-top: 4px;
}

.flight-item-desc {
  color: var(--text-primary, #e4e4e7);
  font-size: var(--font-sm);
  line-height: 1.4;
  min-width: 0;           /* let ellipsis work inside the grid cell */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-item-runtime {
  font-size: var(--font-sm);
  color: var(--text-muted, #888);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.flight-item-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10px;
  min-width: 0;
}
.flight-item-stats .emission-stat { color: var(--text-muted, #888); }
.flight-item-stats .emission-stat .sv {
  color: var(--text-secondary, #a1a1aa);
  font-variant-numeric: tabular-nums;
}

.flight-item-cost {
  font-size: var(--font-sm);
  color: var(--text-primary, #e4e4e7);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: right;
}
.flight-item-cost .sv { color: inherit; }
a.flight-pinned,
a.flight-pinned:visited {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.flight-pinned:hover {
  text-decoration: none;
  background: #161616;
}
.flight-pinned {
  padding: 8px 10px;
  border-left: 2px solid #5bd5b5;
  margin-bottom: 6px;
  background: #111;
}
.flight-pinned .emission-header {
  display: flex; align-items: center; gap: 6px; margin-bottom: 3px;
}
.flight-pinned .emission-entity { font-size: var(--font-sm); font-weight: 600; }
.flight-pinned .emission-body { font-size: var(--font-sm); color: #888; line-height: 1.4; }
.flight-pinned .emission-time { font-size: 10px; color: #444; margin-left: auto; }
.flight-model {
  font-size: 9px; color: #5bd5b5; padding: 1px 5px;
  border-radius: 3px; background: #1a3a3a;
  text-transform: none; letter-spacing: 0;
}
.brand-kingdom-flights-table { width: 100%; border-collapse: collapse; font-size: var(--font-sm); }
.brand-kingdom-flights-table th {
  text-align: left; padding: 6px 10px; font-size: 10px;
  text-transform: uppercase; letter-spacing: 1px; color: #555;
  border-bottom: 1px solid #2a2a2a; font-weight: 600;
}
.brand-kingdom-flights-table td {
  padding: 6px 10px; border-bottom: 1px solid #1a1a1a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 300px; color: #999;
}
.brand-kingdom-flights-table tr:hover td { background: #1a1a1a; }
.brand-kingdom-flights-table .status-flying { color: #5bd5b5; }
.brand-kingdom-flights-table .status-landed { color: #777; }
.brand-kingdom-flights-table .status-stale { color: #d4a535; }
.brand-kingdom-flights-table .status-closed { color: #777; }
.brand-kingdom-flights-table .entity-col { font-weight: 600; }
.brand-kingdom-flights-table .brief-col { color: #aaa; max-width: 360px; }
.brand-kingdom-flights-table .time-col { font-family: monospace; font-size: var(--font-sm); color: #666; }
.brand-kingdom-flights-table .model-col { font-size: 10px; }.brand-kingdom-detail {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.bkd-nav {
  margin-bottom: 1.5rem;
  font-size: var(--font-body);
}
.bkd-nav-back {
  color: var(--outfit-muted, #71717a);
}
.bkd-nav-back:hover { color: var(--outfit-fg, #e4e4e7); }

.bkd-shell {
  background: var(--outfit-card-bg, #18181b);
  border: 1px solid var(--outfit-border, #27272a);
  border-radius: 10px;
  overflow: hidden;
}

.bkd-header {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(180deg, #1f1f23, #18181b);
  border-bottom: 1px solid var(--outfit-border, #27272a);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}
.bkd-name {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--outfit-fg, #e4e4e7);
  margin: 0 0 0.3rem 0;
}
.bkd-domain {
  font-family: monospace;
  font-size: var(--font-body);
  color: var(--outfit-muted, #71717a);
}
.bkd-sovereign-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
}
.bkd-sovereign-label {
  font-size: 0.68rem;
  color: var(--outfit-muted, #71717a);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bkd-sovereign-link {
  font-size: var(--font-body);
  color: var(--outfit-accent, #60a5fa);
  font-weight: 500;
  text-decoration: none;
}
.bkd-sovereign-link:hover { opacity: 0.8; }

.bkd-section {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--outfit-border, #27272a);
}
.bkd-section-title {
  font-size: var(--font-sm);
  color: var(--outfit-muted, #71717a);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin: 0 0 0.9rem 0;
}
.bkd-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--font-body);
}
.bkd-meta-label {
  font-size: 0.72rem;
  color: var(--outfit-muted, #71717a);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 130px;
}
.bkd-meta-value {
  color: var(--outfit-fg, #e4e4e7);
}

.bkd-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.bkd-member-chip {
  padding: 0.3em 0.8em;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 4px;
  font-size: var(--font-sm);
  color: var(--outfit-fg, #e4e4e7);
  text-decoration: none;
  transition: border-color 0.1s, background 0.1s;
}
.bkd-member-chip:hover { background: #3f3f46; border-color: #52525b; }

.bkd-flight-list, .bkd-emission-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bkd-flight-row, .bkd-emission-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: #0e0e10;
  border: 1px solid #27272a20;
  border-radius: 4px;
  text-decoration: none;
  font-size: var(--font-sm);
  flex-wrap: wrap;
}
.bkd-flight-row:hover, .bkd-emission-row:hover { background: #1a1a1d; }

.bkd-flight-entity, .bkd-emission-entity {
  font-weight: 500;
  min-width: 60px;
}
.bkd-flight-status {
  font-size: 0.7rem;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  background: #27272a;
  color: #a1a1aa;
  text-transform: uppercase;
}
.bkd-flight-status--flying { background: #0c2e1a1a; color: #34d399; }
.bkd-flight-desc {
  flex: 1;
  color: var(--outfit-fg, #e4e4e7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.bkd-flight-time, .bkd-emission-time {
  color: var(--outfit-muted, #71717a);
  font-size: var(--font-sm);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.bkd-emission-type {
  font-size: 0.68rem;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  background: #27272a;
  color: #a1a1aa;
  text-transform: uppercase;
}
.bkd-emission-type--warning { color: #f97316; }
.bkd-emission-type--error   { color: #ef4444; }
.bkd-emission-type--notice  { color: #60a5fa; }
.bkd-emission-body {
  flex: 1;
  color: var(--outfit-fg, #e4e4e7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.bkd-footer {
  padding: 0.75rem 1.75rem;
  background: #0e0e10;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.bkd-id, .bkd-cid {
  font-family: monospace;
  font-size: var(--font-mono-label);
  color: var(--outfit-muted, #71717a);
  word-break: break-all;
}

.bkd-missing {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--outfit-muted, #71717a);
}
.bkd-missing a { color: var(--outfit-accent, #60a5fa); }.kingdom-health {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

/* Kingdom fuel — aggregate quota display sourced from latest harness session */
.fuel-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 1.25rem;
}
.fuel-card.fuel-band-high { border-left-color: var(--success); }
.fuel-card.fuel-band-mid  { border-left-color: var(--warning); }
.fuel-card.fuel-band-low  { border-left-color: var(--danger); }

.fuel-headline {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.fuel-label {
  font-size: var(--font-sm);
  color: var(--text-muted, var(--secondary));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fuel-pct {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text-color);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.fuel-pct em {
  font-style: normal;
  font-size: 1rem;
  color: var(--text-dim, var(--secondary));
  margin-left: 0.1rem;
}
.fuel-band-low .fuel-pct { color: color-mix(in srgb, var(--danger) 70%, var(--fill-color)); }
.fuel-status {
  color: var(--text-dim, var(--secondary));
  font-size: var(--font-body);
  margin-left: auto;
}
.fuel-band-low .fuel-status { color: color-mix(in srgb, var(--danger) 70%, var(--fill-color)); }

.fuel-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.fuel-bar-label {
  font-size: var(--font-sm);
  color: var(--text-muted, var(--secondary));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.fuel-bar-track {
  height: 10px;
  background: var(--shadow-color);
  border-radius: 2px;
  overflow: hidden;
}
.fuel-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), color-mix(in srgb, var(--success) 60%, var(--light)));
  border-radius: 2px;
  transition: width 0.5s ease;
}
.fuel-band-mid .fuel-bar-fill { background: linear-gradient(90deg, var(--warning), color-mix(in srgb, var(--warning) 60%, var(--light))); }
.fuel-band-low .fuel-bar-fill { background: linear-gradient(90deg, var(--danger), color-mix(in srgb, var(--danger) 60%, var(--fill-color))); }
.fuel-bar-readout {
  font-size: var(--font-sm);
  color: var(--text-muted, var(--secondary));
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.health-app {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.health-app.health-stale {
  border-color: color-mix(in srgb, var(--danger) 60%, transparent);
}

.health-app-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.health-app-name {
  margin: 0;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.15rem;
}
.health-app-slug {
  color: var(--text-muted, var(--secondary));
  font-family: var(--font-mono, monospace);
  font-size: var(--font-sm);
}
.health-badge-live {
  color: color-mix(in srgb, var(--success) 70%, var(--light));
  font-size: var(--font-sm);
  margin-left: auto;
}
.health-badge-stale {
  color: color-mix(in srgb, var(--danger) 60%, var(--fill-color));
  font-size: var(--font-sm);
  margin-left: auto;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}
.health-cell {
  background: var(--dark);
  border: 1px solid var(--border-color);
  border-left-width: 4px;
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.health-cell .label {
  font-size: 0.72rem;
  color: var(--text-muted, var(--secondary));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.health-cell .value {
  font-size: 1.5rem;
  color: var(--text-color);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.health-cell .value em {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--text-dim, var(--secondary));
  margin-left: 0.2rem;
}
.health-cell .sublabel {
  font-size: 0.7rem;
  color: var(--text-muted, var(--secondary));
  margin-top: 0.1rem;
}

.kingdom-health .light-green   { border-left-color: var(--success); }
.kingdom-health .light-yellow  { border-left-color: var(--warning); }
.kingdom-health .light-red     { border-left-color: var(--danger); }
.kingdom-health .light-red .value { color: color-mix(in srgb, var(--danger) 60%, var(--fill-color)); }
.kingdom-health .light-neutral { border-left-color: var(--secondary); }
.kingdom-health .light-unknown { border-left-color: var(--secondary); opacity: 0.6; }
.kingdom-health .light-unknown .value { color: var(--text-muted, var(--secondary)); opacity: 1; }.brand-kingdoms-index {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.bki-header {
  margin-bottom: 1.75rem;
}
.bki-title {
  font-size: var(--font-h2);
  font-weight: 500;
  color: var(--outfit-fg, #e4e4e7);
  margin: 0 0 0.4rem 0;
}
.bki-subtitle {
  font-size: var(--font-body);
  color: var(--outfit-muted, #71717a);
  margin: 0;
}

.bki-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.bki-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--outfit-card-bg, #18181b);
  border: 1px solid var(--outfit-border, #27272a);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.1s;
}
.bki-card:hover { border-color: #3f3f46; }
.bki-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.bki-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--outfit-fg, #e4e4e7);
}
.bki-domain {
  font-size: var(--font-sm);
  color: var(--outfit-muted, #71717a);
  font-family: monospace;
}
.bki-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bki-sovereign {
  font-size: var(--font-sm);
  color: var(--outfit-muted, #71717a);
}
.bki-members {
  font-size: var(--font-sm);
  color: var(--outfit-muted, #52525b);
}
.bki-model {
  font-size: var(--font-sm);
  color: var(--outfit-muted, #52525b);
  font-style: italic;
}

.bki-empty {
  color: var(--outfit-muted, #71717a);
  font-size: var(--font-body);
  padding: 2rem 0;
}.display-none {
  display: none;
}

/* ---- brandKingdomOverview — header & nav ---- */
.brand-kingdom-overview-header {
  padding: 10px 28px 10px;
  border-bottom: 1px solid #2a2a2a;
  display: flex; align-items: center; gap: 12px;
}
.brand-kingdom-overview-header .glyph { font-size: 28px; color: #888; cursor: pointer; }
.brand-kingdom-overview-header h1 { font-size: 18px; font-weight: 400; color: #aaa; letter-spacing: 1px; }
.brand-kingdom-overview-header h1 span { color: #e0e0e0; font-weight: 600; }

.brand-kingdom-overview-nav-tabs {
  display: flex; gap: 2px; margin-left: auto; align-items: center;
}
.brand-kingdom-overview-nav-tab {
  font-size: var(--font-sm); color: #666; display: flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 4px; cursor: pointer;
  transition: background 0.15s, color 0.15s; user-select: none;
}
.brand-kingdom-overview-nav-tab:hover { background: #1e1e1e; color: #aaa; }
.brand-kingdom-overview-nav-tab.active { background: #1a2a2a; color: #5bd5b5; }
.brand-kingdom-overview-nav-tab .val { font-weight: 600; font-size: var(--font-sm); }
.brand-kingdom-overview-nav-tab.active .val { color: #5bd5b5; }
.brand-kingdom-overview-alert-tab .val { color: #d4a535; }

/* ---- Layout ---- */
.brand-kingdom-overview-body { display: flex; gap: 0; height: calc(100vh - 58px); }
.brand-kingdom-overview-main-panel { flex: 1; padding: 20px 28px; overflow-y: auto; }
.brand-kingdom-overview-activity-panel { width: 369px; min-width: 340px; border-left: 1px solid #2a2a2a; overflow-y: auto; display: flex; flex-direction: column; }

/* ---- Search bar ---- */
.brand-kingdom-overview-search-bar {
  display: flex; gap: 8px; padding: 8px 16px 10px;
}
.brand-kingdom-overview-search-input,
.brand-kingdom-overview-kingdom-filter-input {
  background: #1a1a1a; border: 1px solid #333; border-radius: 4px;
  padding: 6px 10px; font-size: var(--font-sm); color: #aaa;
  width: 160px; outline: none;
}
.brand-kingdom-overview-search-input:focus,
.brand-kingdom-overview-kingdom-filter-input:focus {
  border-color: #5bd5b5; color: #eee;
}
.brand-kingdom-overview-search-input::placeholder,
.brand-kingdom-overview-kingdom-filter-input::placeholder {
  color: #555;
}
.brand-kingdom-overview-clear-search {
  cursor: pointer; color: #666; font-size: var(--font-sm);
  padding: 6px 4px; user-select: none;
}
.brand-kingdom-overview-clear-search:hover { color: #aaa; }

/* ---- Shared section-label (used across all sub-views) ---- */
.section-label {
  font-size: var(--font-sm); text-transform: uppercase; letter-spacing: 2px; color: #666;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.section-label .count { color: #555; font-weight: 400; }

/* ---- Kingdom banner (entities view) ---- */
.brand-kingdom-overview-kingdom-banner {
  margin-bottom: 16px; padding: 12px 16px;
  background: #161b1e; border: 1px solid #1e2a2e; border-radius: 6px;
  display: flex; gap: 24px; flex-wrap: wrap;
}
.brand-kingdom-overview-kingdom-item { font-size: var(--font-sm); color: #888; }
.brand-kingdom-overview-kingdom-item .kv { color: #aaa; font-weight: 500; }
.brand-kingdom-overview-kingdom-item .kl { color: #556; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-right: 6px; }
.brand-kingdom-overview-kingdom-activity {
  display: flex; gap: 12px; margin-left: auto;
}
.brand-kingdom-overview-ka-stat {
  font-size: var(--font-sm); color: #666; padding: 2px 8px;
  background: #1a2a2a; border-radius: 3px;
}

/* ---- Entity grid (entities view) ---- */
.brand-kingdom-overview-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(311px, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}
.brand-kingdom-overview-entity-grid > .entity-card {
  break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
}

/* ---- Bullpen ---- */
.brand-kingdom-overview-bullpen {
  display: flex; flex-wrap: wrap; gap: 18px;
  padding: 8px 4px;
}
.brand-kingdom-overview-bullpen-avatar {
  position: relative;
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; color: #fff;
  background: #333; overflow: visible;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.66;
  transition: opacity 200ms ease, transform 200ms ease;
}
.brand-kingdom-overview-bullpen-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.brand-kingdom-overview-bullpen-letter {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.brand-kingdom-overview-bullpen-label {
  position: absolute; top: 48px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: #555; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity 200ms ease;
}
.brand-kingdom-overview-bullpen-avatar:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.brand-kingdom-overview-bullpen-avatar:hover .brand-kingdom-overview-bullpen-label {
  opacity: 1;
  color: #aaa;
}
.brand-kingdom-overview-bullpen-avatar.active-5m {
  opacity: 1;
  box-shadow: 0 0 0 2px hsla(var(--entity-hue, 180), 70%, 55%, 0.6);
}

/* ---- Flight filter bar (shared, used in flights + bonds sub-views) ---- */
.flight-filter-bar {
  display: flex; gap: 8px; margin-bottom: 14px; align-items: center;
}
.flight-filter {
  font-size: 10px; padding: 3px 10px; border-radius: 3px; cursor: pointer;
  background: #1a1a1a; color: #777; border: 1px solid #2a2a2a;
  transition: background 0.15s; user-select: none;
}
.flight-filter:hover { background: #222; color: #aaa; }
.flight-filter.active { background: #1a3a3a; color: #5bd5b5; border-color: #2a4a4a; }

/* ---- Activity panel ---- */
.brand-kingdom-overview-activity-section { padding: 14px 18px; }
.brand-kingdom-overview-activity-section + .brand-kingdom-overview-activity-section { border-top: 1px solid #1e1e1e; }

/* Selected entity detail header */
.brand-kingdom-overview-activity-filter-header {
  padding: 10px 14px;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(91, 213, 181, 0.05);
}
.brand-kingdom-overview-activity-filter-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 2px solid #ffffff22;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: #fff; flex-shrink: 0;
}
.brand-kingdom-overview-activity-filter-meta { flex: 1; min-width: 0; }
.brand-kingdom-overview-activity-filter-handle { font-weight: 600; color: #eee; font-size: var(--font-sm); }
.brand-kingdom-overview-activity-filter-tagline {
  font-size: var(--font-sm); color: #888;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-kingdom-overview-deselect-entity {
  cursor: pointer; color: #888; font-size: 16px;
  padding: 4px 8px; border-radius: 3px;
  user-select: none;
}
.brand-kingdom-overview-deselect-entity:hover { color: #fff; background: #333; }

.brand-kingdom-overview-entity-detail-header {
  flex-wrap: wrap; gap: 8px;
}
.brand-kingdom-overview-entity-detail-meta {
  display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px;
}
.brand-kingdom-overview-entity-quick-stats {
  display: flex; gap: 12px; padding: 8px 14px;
  background: #161818; border-bottom: 1px solid #2a2a2a;
}
.brand-kingdom-overview-quick-stat {
  font-size: var(--font-sm); color: #666;
}
.brand-kingdom-overview-quick-stat .qs-val {
  color: #aaa; font-weight: 600; margin-right: 3px;
}
.brand-kingdom-overview-entity-detail-section {
  padding: 10px 14px; border-bottom: 1px solid #1e1e1e;
}
/* ---- Tier nudge ---- */
.brand-kingdom-overview-tier-nudge {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-top: 1px solid #1a1a1a; margin-top: 4px;
  font-size: var(--font-sm); color: #555;
}
.brand-kingdom-overview-tier-nudge-text { flex: 1; }
.brand-kingdom-overview-tier-nudge-link {
  color: #5bd5b5; text-decoration: none; font-weight: 600;
  font-size: 10px; opacity: 0.75; transition: opacity 0.15s;
}
.brand-kingdom-overview-tier-nudge-link:hover { opacity: 0.6; }

/* ---- Scrollbar styling ---- */
.brand-kingdom-overview-main-panel::-webkit-scrollbar,
.brand-kingdom-overview-activity-panel::-webkit-scrollbar { width: 6px; }
.brand-kingdom-overview-main-panel::-webkit-scrollbar-thumb,
.brand-kingdom-overview-activity-panel::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.brand-kingdom-overview-main-panel::-webkit-scrollbar-track,
.brand-kingdom-overview-activity-panel::-webkit-scrollbar-track { background: transparent; }

/* ---- Empty state (shared utility) ---- */
.empty-state { color: #444; font-size: var(--font-sm); font-style: italic; padding: 16px 0; }/* brandOverviewActiveFlights — active flights activity card.
   No component-specific layout rules needed — the section chrome
   (.brand-kingdom-overview-activity-section, .section-label) is defined in
   the parent overview styles.css and shared across all activity sections.
   Individual tile styling lives in client/flight/pinned/styles.css.
   Add rules here only for active-flights-specific overrides or future additions. */
.brand-kingdom-overview-alert-item { padding: 8px 0; border-bottom: 1px solid #1a1a1a; }/* brandOverviewEmissions — emissions activity card.
   No component-specific layout rules needed — the section chrome
   (.brand-kingdom-overview-activity-section, .section-label, .empty-state,
   .brand-kingdom-overview-tier-nudge) is defined in the parent overview styles.css.
   The display-none class is defined at the top of overview/styles.css as a
   shared utility (.display-none { display: none; }).
   Add rules here only for emissions-specific overrides or future additions. *//* brandOverviewMissions — section-level card.
   Outer wrapper uses brand-kingdom-overview-activity-section from parent
   overview styles; flight tiles + their 2×2 grid live in brandFlightItem.
   Left empty; missions-specific overrides land here if they arrive. */

.spirit-group {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--panel-border, #27272a);
  margin-bottom: 10px;
}
.spirit-group:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.spirit-group-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: var(--font-sm);
  margin-bottom: 6px;
}
.spirit-group-header .text-muted {
  color: var(--text-muted, #71717a);
  font-size: var(--font-sm);
}
.spirit-group-header .flight-model {
  color: var(--text-primary, #e4e4e7);
}
.spirit-group-count {
  font-size: var(--font-sm);
  color: var(--text-muted, #71717a);
  font-variant-numeric: tabular-nums;
}
.spirit-group-meta {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.spirit-group-cost {
  font-size: var(--font-sm);
  color: var(--text-primary, #e4e4e7);
  font-weight: 500;
}
.spirit-group-burn {
  font-size: var(--font-sm);
  color: #fbbf24;
}

.spirit-group-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spirit-group-row {
  padding: 6px 8px;
  background: var(--panel-bg-inner, #0e0e10);
  border-radius: 4px;
  border-left: 2px solid var(--panel-border, #27272a);
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: inherit;
  text-decoration: none;
  transition: border-left-color 0.15s ease;
}
.spirit-group-row:hover {
  border-left-color: var(--accent, #60a5fa);
  text-decoration: none;
}

.spirit-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: var(--font-sm);
}
.spirit-row-model {
  color: rgba(120, 200, 255, 0.9);
  font-weight: 500;
}
.spirit-row-harness {
  color: var(--text-muted, #71717a);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.spirit-row-status {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spirit-row-status--active  { background: rgba(120,220,150,0.15); color: rgb(120,220,150); }
.spirit-row-status--stale   { background: rgba(220,180,80,0.15);  color: rgb(220,180,80);  }
.spirit-row-status--killed,
.spirit-row-status--ended   { background: rgba(180,180,180,0.10); color: rgb(180,180,180); }

.spirit-row-runtime {
  margin-left: auto;
  color: #FFFFFF66;
  font-variant-numeric: tabular-nums;
}

.spirit-row-cwd {
  font-family: monospace;
  font-size: var(--font-sm);
  color: var(--text-secondary, #a1a1aa);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spirit-row-cwd.muted { color: var(--text-muted, #71717a); font-style: italic; }

.spirit-row-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: var(--font-sm);
}
.spirit-row-stats .lines-added { color: rgba(120, 220, 150, 0.85); }
.spirit-row-stats .lines-removed { color: rgba(220, 140, 140, 0.85); }

.spirit-row-cost {
  margin-left: auto;
  color: var(--text-primary, #e4e4e7);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.spirit-row-cost .sv { color: inherit; }

.spirit-group-spirit {
  font-weight: 600;
  color: rgba(220, 180, 100, 0.95);
  text-decoration: none;
}
.spirit-group-spirit:hover { text-decoration: underline; }

.spirit-row-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10px;
}
.spirit-row-stats .emission-stat {
  color: var(--text-muted, #71717a);
}
.spirit-row-stats .emission-stat .sv {
  color: var(--text-secondary, #a1a1aa);
  font-variant-numeric: tabular-nums;
}
.spirit-row-stats .emission-type.flight {
  background: rgba(96, 165, 250, 0.1);
  color: #93c5fd;
  padding: 1px 5px;
  border-radius: 2px;
}
.brand-kingdom-alerts-entity-group { margin-bottom: 16px; }
.brand-kingdom-alerts-entity-header {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #222; margin-bottom: 6px;
}
.brand-kingdom-alerts-entity-name { font-size: var(--font-body); font-weight: 600; }
.brand-kingdom-alerts-alert-row {
  display: flex; align-items: flex-start; gap: 8px; padding: 4px 12px;
  font-size: var(--font-sm);
}
.brand-kingdom-alerts-alert-source {
  font-size: 9px; padding: 1px 5px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600; flex-shrink: 0;
  margin-top: 2px;
}
.brand-kingdom-alerts-alert-source.alerts { background: #4a3a1a; color: #d4a535; }
.brand-kingdom-alerts-alert-source.notifications { background: #1a3a5c; color: #5b9bd5; }
.brand-kingdom-alerts-alert-text { color: #999; line-height: 1.4; }
.brand-kingdom-bonds-entity-group { margin-bottom: 16px; }
.brand-kingdom-bonds-entity-header {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #222; margin-bottom: 6px;
}
.brand-kingdom-bonds-entity-name { font-size: var(--font-body); font-weight: 600; }
.brand-kingdom-bonds-entity-count { font-size: var(--font-sm); color: #555; }
.brand-kingdom-bonds-bond-row {
  display: flex; align-items: center; gap: 10px; padding: 4px 12px;
  font-size: var(--font-sm); color: #888;
}
.brand-kingdom-bonds-bond-row .brand-kingdom-bonds-bond-name { flex: 1; }
.brand-kingdom-bonds-bond-row .brand-kingdom-bonds-bond-kind {
  font-size: 9px; padding: 1px 6px; border-radius: 3px;
  background: #1a2a3a; color: #5b8fbd; text-transform: uppercase;
}

/* Bond graph rendering is handled by brandBondGraph (client/components/bond-graph/styles.css). */
.brand-kingdom-ck-bonds-group { margin-bottom: 12px; }
.brand-kingdom-ck-bonds-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px;
  font-size: var(--font-sm); color: #aaa; background: #161818; border-radius: 4px;
}
.brand-kingdom-ck-bonds-from { font-weight: 600; }
.brand-kingdom-ck-bonds-arrow { color: #555; }
.brand-kingdom-ck-bonds-to { font-weight: 600; }
.brand-kingdom-ck-bonds-kingdom-from,
.brand-kingdom-ck-bonds-kingdom-to {
  font-size: 10px; padding: 1px 5px; border-radius: 3px;
  background: #2a1a3a; color: #a55bd5; text-transform: uppercase;
}
.brand-kingdom-flights-table { width: 100%; border-collapse: collapse; font-size: var(--font-sm); }
.brand-kingdom-flights-table th {
  text-align: left; padding: 6px 10px; font-size: 10px;
  text-transform: uppercase; letter-spacing: 1px; color: #555;
  border-bottom: 1px solid #2a2a2a; font-weight: 600;
}
.brand-kingdom-flights-table td {
  padding: 6px 10px; border-bottom: 1px solid #1a1a1a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 300px; color: #999;
}
.brand-kingdom-flights-table tr:hover td { background: #1a1a1a; }
.brand-kingdom-flights-table .status-flying { color: #5bd5b5; }
.brand-kingdom-flights-table .status-landed { color: #777; }
.brand-kingdom-flights-table .status-stale { color: #d4a535; }
.brand-kingdom-flights-table .status-closed { color: #777; }
.brand-kingdom-flights-table .entity-col { font-weight: 600; }
.brand-kingdom-flights-table .brief-col { color: #aaa; max-width: 360px; }
.brand-kingdom-flights-table .time-col { font-family: monospace; font-size: var(--font-sm); color: #666; }
.brand-kingdom-flights-table .model-col { font-size: 10px; }
.brand-kingdom-health-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.brand-kingdom-health-card {
  background: #161818; border: 1px solid #2a2a2a; border-radius: 6px;
  padding: 14px;
}
.brand-kingdom-health-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: #555; margin-bottom: 4px;
}
.brand-kingdom-health-value {
  font-size: 18px; font-weight: 600; color: #eee;
}
.brand-kingdom-health-status-ok { color: #5bd5b5; }
.brand-kingdom-health-indexer-list { display: flex; flex-direction: column; gap: 6px; }
.brand-kingdom-health-indexer-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  background: #161818; border-radius: 4px; font-size: var(--font-sm);
}
.brand-kingdom-health-indexer-ready { border-left: 3px solid #5bd5b5; }
.brand-kingdom-health-indexer-name { color: #aaa; font-weight: 500; }
.brand-kingdom-health-indexer-time { color: #555; margin-left: auto; }
.brand-kingdom-health-collection-stats { display: flex; flex-direction: column; gap: 4px; }
.brand-kingdom-health-collection-row {
  display: flex; align-items: center; gap: 12px; padding: 6px 0;
  font-size: var(--font-sm); border-bottom: 1px solid #1e1e1e;
}
.brand-kingdom-health-col-name { color: #888; }
.brand-kingdom-health-col-count { color: #aaa; font-weight: 600; margin-left: auto; font-family: monospace; }
.brand-kingdom-keys-entity-group { margin-bottom: 16px; }
.brand-kingdom-keys-entity-header {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #222; margin-bottom: 6px;
}
.brand-kingdom-keys-entity-name { font-size: var(--font-body); font-weight: 600; }
.brand-kingdom-keys-entity-count { font-size: var(--font-sm); color: #555; }
.brand-kingdom-keys-key-row {
  display: flex; align-items: center; gap: 10px; padding: 4px 12px;
  font-size: var(--font-sm); color: #888;
}
.brand-kingdom-keys-key-row .brand-kingdom-keys-key-name { flex: 1; font-family: monospace; font-size: var(--font-sm); }
.brand-kingdom-keys-key-row .brand-kingdom-keys-key-kind {
  font-size: 9px; padding: 1px 6px; border-radius: 3px;
  background: #2a1a3a; color: #8b7bbf; text-transform: uppercase;
}
.brand-kingdom-tickles-entity-group { margin-bottom: 16px; }
.brand-kingdom-tickles-entity-header {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #222; margin-bottom: 6px;
}
.brand-kingdom-tickles-entity-name { font-size: var(--font-body); font-weight: 600; }
.brand-kingdom-tickles-entity-count { font-size: var(--font-sm); color: #555; }
.brand-kingdom-tickles-tickle-row {
  padding: 3px 12px; font-size: var(--font-sm); color: #888;
}
.brand-kingdom-overview-bond-mini-row {
  display: flex; align-items: center; gap: 6px; padding: 3px 0;
  font-size: var(--font-sm); color: #888;
}
.brand-kingdom-overview-bond-mini-kind {
  font-size: 8px; padding: 1px 4px; border-radius: 2px;
  background: #1a2a3a; color: #5b8fbd; text-transform: uppercase;
}
.brand-kingdom-overview-key-mini-row {
  display: flex; align-items: center; gap: 6px; padding: 3px 0;
  font-size: var(--font-sm); color: #888;
}
.brand-kingdom-overview-key-mini-kind {
  font-size: 8px; padding: 1px 4px; border-radius: 2px;
  background: #1a2a3a; color: #5b8fbd; text-transform: uppercase;
}
.brand-kingdom-overview-tickle-mini-row {
  display: flex; align-items: center; gap: 6px; padding: 3px 0;
  font-size: var(--font-sm); color: #777; font-style: italic;
}.session-annotator-clock {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(20, 20, 22, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: var(--font-sm);
  color: var(--text, #ddd);
  pointer-events: none;
}

.session-annotator-clock-time {
  letter-spacing: 0.4px;
}

.session-annotator-clock-kind {
  font-size: 10px;
  color: var(--text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-annotator {
  position: fixed;
  top: 110px;
  right: 16px;
  z-index: 9997;
  width: 320px;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: var(--font-sm);
  color: var(--text, #ddd);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.session-annotator--collapsed {
  width: auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.session-annotator--collapsed .session-annotator-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(120, 220, 150, 0.85);
  color: #000;
  font-size: 20px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.session-annotator-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.session-annotator-title {
  font-size: var(--font-sm);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted, #888);
}

.session-annotator-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted, #888);
  font-size: var(--font-body);
  cursor: pointer;
  padding: 0 6px;
}

.session-annotator-toggle:hover {
  color: var(--text-bright, #eee);
}

.session-annotator-types {
  display: flex;
  gap: 4px;
  padding: 8px 12px 4px;
}

.session-annotator-type {
  flex: 1;
  padding: 5px 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: var(--text-muted, #888);
  font-family: inherit;
  font-size: var(--font-sm);
  cursor: pointer;
  text-transform: lowercase;
}

.session-annotator-type:hover {
  color: var(--text-bright, #eee);
  background: rgba(255, 255, 255, 0.07);
}

.session-annotator-type--active {
  background: rgba(120, 220, 150, 0.15);
  border-color: rgba(120, 220, 150, 0.5);
  color: rgba(120, 220, 150, 1);
}

.session-annotator-clip-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 12px 0;
}

.session-annotator-playlist {
  width: 100%;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text, #ddd);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: var(--font-sm);
}

.session-annotator-playlist:focus {
  outline: none;
  border-color: rgba(220, 120, 200, 0.5);
}

.session-annotator-range {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted, #888);
}

.session-annotator-range-label {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-annotator-range-btn {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text, #ddd);
  font-family: inherit;
  font-size: var(--font-sm);
  line-height: 1;
  cursor: pointer;
}

.session-annotator-range-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.session-annotator-range-count {
  min-width: 18px;
  text-align: center;
  color: var(--text-bright, #eee);
  font-weight: 600;
  font-size: var(--font-sm);
}

.session-annotator-range-hint {
  color: var(--text-faint, #666);
}

.session-annotator-text {
  margin: 6px 12px;
  padding: 8px;
  min-height: 80px;
  resize: vertical;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text, #ddd);
  font-family: inherit;
  font-size: var(--font-sm);
  line-height: 1.4;
}

.session-annotator-text:focus {
  outline: none;
  border-color: rgba(120, 220, 150, 0.4);
}

.session-annotator-anchor {
  display: flex;
  justify-content: space-between;
  padding: 4px 12px;
  font-size: 10px;
  color: var(--text-faint, #666);
}

.session-annotator-anchor-time {
  color: var(--text-muted, #888);
}

.session-annotator-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.session-annotator-save {
  padding: 5px 14px;
  background: rgba(120, 220, 150, 0.85);
  border: none;
  border-radius: 4px;
  color: #000;
  font-family: inherit;
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
}

.session-annotator-save:hover {
  background: rgba(120, 220, 150, 1);
}

.session-annotator-visibility {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #888);
  cursor: pointer;
  font-size: var(--font-sm);
  padding: 0;
  line-height: 1;
}

.session-annotator-visibility:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-bright, #eee);
}

.session-annotator-visibility--private {
  border-color: rgba(220, 180, 80, 0.5);
  background: rgba(220, 180, 80, 0.12);
  color: rgba(220, 180, 80, 1);
}

.session-annotator-status {
  font-size: var(--font-sm);
  color: var(--text-muted, #888);
}

.session-annotator-status--ok {
  color: rgba(120, 220, 150, 0.9);
}

.session-annotator-status--err {
  color: rgba(220, 120, 120, 0.9);
}

.session-annotator-list {
  overflow-y: auto;
  padding: 6px 12px 12px;
}

.session-annotator-list-head {
  margin: 6px 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #888);
  font-weight: 500;
}

.session-annotator-item {
  margin-top: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.session-annotator-item--note { border-left-color: rgba(150, 180, 220, 0.6); }
.session-annotator-item--pin  { border-left-color: rgba(220, 180, 80, 0.7); }
.session-annotator-item--emit { border-left-color: rgba(120, 220, 150, 0.7); }
.session-annotator-item--clip { border-left-color: rgba(220, 120, 200, 0.7); }

.session-annotator-item-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted, #888);
  margin-bottom: 4px;
}

.session-annotator-item-type {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-annotator-item-spirit {
  color: rgba(220, 180, 100, 0.95);
  text-decoration: none;
  font-weight: 600;
}

.session-annotator-item-spirit:hover {
  text-decoration: underline;
}

.session-annotator-item-anchor {
  color: var(--text-faint, #666);
  margin-left: auto;
}

.session-annotator-item-lock {
  font-size: 9px;
}

.session-annotator-item--private {
  background: rgba(220, 180, 80, 0.04);
}

.session-annotator-item-tools {
  display: inline-flex;
  gap: 2px;
}

.session-annotator-item-btn {
  background: transparent;
  border: none;
  color: var(--text-faint, #555);
  font-size: var(--font-sm);
  width: 20px;
  height: 20px;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.session-annotator-item-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-bright, #eee);
}

.session-annotator-item-edit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.session-annotator-item-edit-text,
.session-annotator-item-edit-playlist {
  width: 100%;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: var(--text, #ddd);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: var(--font-sm);
  resize: vertical;
}

.session-annotator-item-edit-text {
  min-height: 50px;
}

.session-annotator-item-edit-text:focus,
.session-annotator-item-edit-playlist:focus {
  outline: none;
  border-color: rgba(120, 220, 150, 0.4);
}

.session-annotator-item-edit-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.session-annotator-item-edit-save,
.session-annotator-item-edit-cancel {
  padding: 3px 10px;
  border: none;
  border-radius: 3px;
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
}

.session-annotator-item-edit-save {
  background: rgba(120, 220, 150, 0.85);
  color: #000;
  font-weight: 600;
}

.session-annotator-item-edit-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted, #888);
}

.session-annotator-item-playlist {
  font-size: 10px;
  color: rgba(220, 120, 200, 0.85);
  margin-top: 4px;
}

.session-annotator-item-playlist a {
  color: inherit;
  text-decoration: none;
}

.session-annotator-item-playlist a:hover {
  text-decoration: underline;
}

.session-annotator-item-text {
  font-size: var(--font-sm);
  line-height: 1.4;
  color: var(--text, #ddd);
  white-space: pre-wrap;
  word-break: break-word;
}.session-drill-stack {
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
}

.session-drill-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  pointer-events: auto;
  animation: drill-backdrop-in 0.2s ease-out;
}

@keyframes drill-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.session-drill-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60vw;
  max-width: 980px;
  min-width: 420px;
  background: rgba(15, 15, 17, 0.97);
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: drill-slide-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes drill-slide-in {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.session-drill-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-left: 4px solid;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: var(--font-sm);
  flex-shrink: 0;
}

.session-drill-head-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.session-drill-entity {
  font-weight: 700;
  font-size: var(--font-body);
  text-decoration: none;
}

.session-drill-entity:hover {
  text-decoration: underline;
}

.session-drill-date,
.session-drill-duration,
.session-drill-msgs {
  color: var(--text-muted, #888);
  font-size: var(--font-sm);
}

.session-drill-permalink {
  color: var(--text-muted, #888);
  text-decoration: none;
  margin-left: 4px;
  font-size: var(--font-sm);
}

.session-drill-permalink:hover {
  color: var(--text-bright, #fff);
}

.session-drill-close {
  background: transparent;
  border: none;
  color: var(--text-muted, #888);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.session-drill-close:hover {
  color: var(--text-bright, #fff);
}

.session-drill-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.session-drill-status {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted, #888);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  font-size: var(--font-sm);
}

.session-drill-status--err {
  color: rgba(220, 120, 120, 0.9);
}

.session-drill-live {
  position: relative;
  margin: 24px;
  padding: 24px;
  background: rgba(120, 220, 150, 0.06);
  border: 1px solid rgba(120, 220, 150, 0.25);
  border-radius: 8px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
}

.session-drill-live-pulse {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(120, 220, 150, 1);
  box-shadow: 0 0 10px rgba(120, 220, 150, 0.7);
  animation: drill-live-pulse 1.4s ease-in-out infinite;
}

@keyframes drill-live-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.session-drill-live-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.session-drill-live-tag {
  background: rgba(120, 220, 150, 0.85);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 2px 8px;
  border-radius: 3px;
}

.session-drill-live-status {
  color: rgba(120, 220, 150, 0.95);
  font-size: var(--font-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-drill-live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
  font-size: var(--font-sm);
  color: var(--text, #ddd);
}

.session-drill-live-meta label {
  color: var(--text-muted, #888);
  margin-right: 4px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.session-drill-live-msg {
  color: var(--text-muted, #888);
  font-size: var(--font-sm);
  margin: 0 0 18px;
  line-height: 1.5;
}

.session-drill-live-cta {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(120, 220, 150, 0.85);
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  font-size: var(--font-sm);
  font-weight: 600;
}

.session-drill-live-cta:hover {
  background: rgba(120, 220, 150, 1);
}

.session-drill-transcript {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dd-event {
  position: relative;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.025);
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  font-size: var(--font-sm);
  line-height: 1.5;
}

.dd-event--message      { border-left-color: rgba(180, 220, 255, 0.7); }
.dd-event--thinking     { border-left-color: rgba(180, 140, 220, 0.6); opacity: 0.85; }
.dd-event--tool_use     { border-left-color: rgba(255, 170, 90, 0.7); }
.dd-event--tool_result  { border-left-color: rgba(255, 170, 90, 0.4); opacity: 0.75; }
.dd-event--subagent     { border-left-color: rgba(120, 220, 150, 0.85); }
.dd-event--system,
.dd-event--snapshot,
.dd-event--permission_mode,
.dd-event--queue_op     { opacity: 0.5; font-size: var(--font-sm); }
.dd-event--summary      { border-left-color: rgba(220, 120, 200, 0.7); }

.dd-event-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 10px;
  color: var(--text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.dd-event-kind {
  font-weight: 600;
}

.dd-event-sub {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.dd-event-ts {
  margin-left: auto;
  color: var(--text-faint, #666);
  letter-spacing: 0.4px;
}

.dd-event-text {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text, #ddd);
  max-height: 180px;
  overflow: hidden;
  position: relative;
}

.dd-event-text::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30px;
  background: linear-gradient(to bottom, transparent, rgba(15, 15, 17, 0.97));
  pointer-events: none;
}

/* Visual cue: subagent dispatch events are clickable */
.t-subagent {
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.t-subagent:hover {
  background: rgba(120, 220, 150, 0.06);
  box-shadow: inset 0 0 0 1px rgba(120, 220, 150, 0.3);
}

.t-subagent::after {
  content: '↘ click to open';
  position: absolute;
  right: 8px;
  top: 6px;
  font-size: 10px;
  color: rgba(120, 220, 150, 0.5);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.t-subagent:hover::after {
  opacity: 1;
}.session-filters {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9997;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(20, 20, 22, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  border-radius: 0 0 12px 12px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
}

.session-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--text, #ddd);
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.session-filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
}

.session-filter-chip--off {
  opacity: 0.35;
  background: transparent;
}

.session-filter-chip--off .session-filter-dot {
  opacity: 0.3;
}

.session-filter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.session-filter-dot--message  { background: rgba(180, 220, 255, 0.85); }
.session-filter-dot--thinking { background: rgba(180, 140, 220, 0.75); }
.session-filter-dot--tool     { background: rgba(255, 170, 90, 0.85); }
.session-filter-dot--subagent { background: rgba(120, 220, 150, 0.85); }
.session-filter-dot--system   { background: rgba(180, 180, 180, 0.6); }
.session-filter-dot--snapshot { background: rgba(120, 180, 180, 0.6); }
.session-filter-dot--summary  { background: rgba(220, 120, 200, 0.75); }

.session-filter-label {
  letter-spacing: 0.3px;
}

.session-filter-count {
  color: var(--text-muted, #888);
  font-size: 9px;
}

/* Filter behavior — hide the event entirely when off */
.t-event--hidden-by-filter {
  display: none !important;
}.session-heatmap {
  --hm-empty: rgba(255, 255, 255, 0.04);
  --hm-l1: rgba(120, 220, 150, 0.20);
  --hm-l2: rgba(120, 220, 150, 0.40);
  --hm-l3: rgba(120, 220, 150, 0.65);
  --hm-l4: rgba(120, 220, 150, 0.90);
  --hm-selected: rgba(255, 255, 255, 0.9);
  --hm-gap: 2px;
  margin: 16px 0;
}

.session-heatmap-scroll {
  overflow-x: auto;
}

.session-heatmap-inner {
  min-width: 100%;
}

.session-heatmap-months {
  display: flex;
  gap: var(--hm-gap);
  margin-bottom: 4px;
}

.session-heatmap-month-label {
  font-size: 10px;
  color: var(--text-muted, #888);
  white-space: nowrap;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  flex: none;
}

.session-heatmap-grid {
  display: flex;
  gap: var(--hm-gap);
}

.session-heatmap-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--hm-gap);
}

.session-heatmap-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--hm-empty);
}

.session-heatmap-level-1 { background: var(--hm-l1); }
.session-heatmap-level-2 { background: var(--hm-l2); }
.session-heatmap-level-3 { background: var(--hm-l3); }
.session-heatmap-level-4 { background: var(--hm-l4); }

.session-heatmap-cell--future {
  background: transparent;
}

.session-heatmap-cell:not(.session-heatmap-cell--future):not(.session-heatmap-legend-swatch) {
  cursor: pointer;
}

.session-heatmap-cell:not(.session-heatmap-cell--future):not(.session-heatmap-legend-swatch):hover {
  outline: 1px solid rgba(255, 255, 255, 0.3);
  outline-offset: -1px;
}

.session-heatmap-cell--selected {
  outline: 2px solid var(--hm-selected);
  outline-offset: -1px;
}

.session-heatmap-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: var(--font-sm);
  color: var(--text-muted, #888);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
}

.session-heatmap-total {
  color: var(--text-faint, #666);
}

.session-heatmap-filter-info {
  color: var(--text-bright, #eee);
}

.session-heatmap-clear {
  cursor: pointer;
  color: var(--text-muted, #888);
  margin-left: 8px;
}

.session-heatmap-clear:hover {
  color: var(--text-bright, #eee);
}

.session-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 3px;
}

.session-heatmap-legend-label {
  margin: 0 4px;
}

.session-heatmap-legend-swatch {
  display: inline-block;
  pointer-events: none;
}
.pm-controls {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(20, 20, 22, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 50%;
  color: var(--text, #ddd);
  font-size: var(--font-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.pm-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-bright, #fff);
}

.pm-play {
  width: 38px;
  height: 38px;
  font-size: 16px;
  background: rgba(120, 220, 150, 0.85);
  color: #000;
}

.pm-play:hover {
  background: rgba(120, 220, 150, 1);
  color: #000;
}

.pm-play--on {
  background: rgba(220, 180, 80, 0.9);
}

.pm-locate {
  background: rgba(180, 220, 255, 0.85);
  color: #000;
  animation: pm-locate-pulse 1.6s ease-in-out infinite;
}

@keyframes pm-locate-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180, 220, 255, 0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(180, 220, 255, 0); }
}

.pm-pos {
  padding: 0 8px;
  font-size: var(--font-sm);
  color: var(--text-muted, #888);
  letter-spacing: 0.4px;
  min-width: 70px;
  text-align: center;
}

/* Per-event "play from here" button injected by JS into each .t-event */
.t-event {
  position: relative;
}

.t-event-play {
  position: absolute;
  top: 4px;
  left: -28px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(120, 220, 150, 0.85);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 5;
}

.t-event:hover > .t-event-play {
  opacity: 0.9;
}

.t-event-play:hover {
  opacity: 1 !important;
  transform: scale(1.15);
  background: rgba(120, 220, 150, 1);
}

/* Active playhead event — animated highlight */
.t-event--playing {
  outline: 2px solid rgba(120, 220, 150, 0.85);
  outline-offset: 2px;
  border-radius: 4px;
  background: rgba(120, 220, 150, 0.06);
  animation: pm-event-pulse 2s ease-in-out infinite;
}

@keyframes pm-event-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(120, 220, 150, 0.4);
    background: rgba(120, 220, 150, 0.06);
  }
  50% {
    box-shadow: 0 0 24px 4px rgba(120, 220, 150, 0.15);
    background: rgba(120, 220, 150, 0.10);
  }
}

.t-event--playing > .t-event-play {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(120, 220, 150, 0.6);
}.session-timeline-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 9999;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.session-timeline-bar-track {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

/* Lane layout: 4 lanes × 5px tall, 1px separators, vertically centered in 30px bar.
   Lane 0 (operator)  → top:  4px
   Lane 1 (agent)     → top: 10px
   Lane 2 (subagent)  → top: 16px
   Lane 3 (annotations) → top: 22px */
.session-timeline-dot {
  position: absolute;
  width: 3px;
  height: 5px;
  margin-left: -1px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.session-timeline-dot--lane0 { top: 4px; }
.session-timeline-dot--lane1 { top: 10px; }
.session-timeline-dot--lane2 { top: 16px; }
.session-timeline-dot--lane3 { top: 22px; }

.session-timeline-dot--msg-user      { background: rgba(220, 180, 100, 0.85); }
.session-timeline-dot--msg-assistant { background: rgba(180, 220, 255, 0.85); }
.session-timeline-dot--thinking      { background: rgba(180, 140, 220, 0.75); }
.session-timeline-dot--tool_use      { background: rgba(255, 170, 90,  0.85); }
.session-timeline-dot--tool_result   { background: rgba(255, 170, 90,  0.45); }
.session-timeline-dot--subagent      { background: rgba(120, 220, 150, 0.85); }
.session-timeline-dot--system        { background: rgba(180, 180, 180, 0.40); }
.session-timeline-dot--summary       { background: rgba(220, 120, 200, 0.75); }
.session-timeline-dot--snapshot      { background: rgba(120, 180, 180, 0.50); }
.session-timeline-dot--permission_mode,
.session-timeline-dot--queue_op,
.session-timeline-dot--attachment,
.session-timeline-dot--last_prompt   { background: rgba(150, 150, 150, 0.35); }

/* Annotations: same lane height but more saturated + clickable */
.session-timeline-dot--anno {
  width: 4px;
  height: 6px;
  margin-top: -1px;
  margin-left: -2px;
  border-radius: 1px;
  pointer-events: auto;
  cursor: pointer;
}

.session-timeline-dot--note { background: rgba(150, 180, 220, 1); }
.session-timeline-dot--pin  { background: rgba(220, 180, 80,  1); }
.session-timeline-dot--emit { background: rgba(120, 220, 150, 1); }
.session-timeline-dot--clip { background: rgba(220, 120, 200, 1); }

/* Filtered-out events stay on the bar at half opacity so the user keeps the
   full-density picture even while reading a filtered transcript below. */
.session-timeline-dot--dimmed { opacity: 0.5; }

.session-timeline-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.session-timeline-playhead {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 3px;
  margin-left: -1px;
  background: rgba(120, 220, 150, 0.95);
  box-shadow: 0 0 8px rgba(120, 220, 150, 0.7);
  pointer-events: none;
  animation: timeline-playhead-pulse 1.4s ease-in-out infinite;
}

@keyframes timeline-playhead-pulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* Live viewer cursors — other logged-in users currently on this page.
   One per viewer, hue from their outfit, transitions smoothly as they scroll. */
.session-timeline-viewer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  pointer-events: none;
  opacity: 0.7;
  transition: left 0.4s ease-out;
}
.user-avatar-circle {
	background: var(--bg-raised);
	border: 2px solid var(--border);
}

/* --- Content wall --- */
.user-content-wall {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.user-content-empty {
	padding: 32px 0;
}

.user-content-empty-msg {
	color: var(--text-dim);
	font-size: var(--font-body);
}

/* --- Markdown body — minimal dark-theme typography --- */
/* Used by: profile/identity (rendered ENTITY.md), profile/files (file preview) */
.markdown-body {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.72;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  color: rgba(255,255,255,0.92);
  margin: 1.4em 0 0.4em;
  font-weight: 600;
  line-height: 1.3;
}
.markdown-body h1 { font-size: 1.45rem; }
.markdown-body h2 { font-size: 1.2rem; }
.markdown-body h3 { font-size: 1.05rem; }
.markdown-body p  { margin: 0 0 0.9em; }
.markdown-body a  { color: var(--entity-accent, var(--accent)); text-decoration: none; }
.markdown-body a:hover { text-decoration: underline; }
.markdown-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255,255,255,0.07);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: rgba(255,255,255,0.88);
}
.markdown-body pre {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 0.8em 0 1.1em;
}
.markdown-body pre code {
  background: none;
  padding: 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.80);
}
.markdown-body blockquote {
  border-left: 3px solid var(--entity-accent, var(--accent));
  margin: 0.8em 0;
  padding: 0.2em 0 0.2em 1rem;
  color: rgba(255,255,255,0.55);
}
.markdown-body ul,
.markdown-body ol {
  padding-left: 1.5rem;
  margin: 0 0 0.9em;
}
.markdown-body li { margin-bottom: 0.25em; }
.markdown-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.8em 0 1em;
  font-size: 0.88rem;
}
.markdown-body th,
.markdown-body td {
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.4em 0.75em;
  text-align: left;
}
.markdown-body th {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}
.markdown-body hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin: 1.5em 0;
}

/* ── Avatar picker — inline form on own profile (profileAvatarPicker template) ── */

.avatar-picker-form {
  background: var(--bg-raised, #171717);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 2px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.avatar-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-picker-label {
  font-size: var(--font-sm);
  font-family: var(--font-mono, monospace);
  color: var(--text-dim, #A09E9A);
  min-width: 72px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.avatar-picker-sources {
  display: flex;
  gap: 6px;
}

.avatar-picker-source-btn {
  font-size: var(--font-sm);
  font-family: var(--font-mono, monospace);
  padding: 3px 10px;
  background: transparent;
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  color: var(--slate-light, #718096);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}

.avatar-picker-source-btn:hover,
.avatar-picker-source-btn.active {
  border-color: var(--accent, #C9A84C);
  color: var(--accent, #C9A84C);
}

.avatar-picker-input {
  flex: 1;
  background: var(--bg, #0A0A0A);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  color: var(--text, #E8E6E1);
  font-size: var(--font-body);
  font-family: var(--font-mono, monospace);
  padding: 6px 10px;
  border-radius: 2px;
  outline: none;
}

.avatar-picker-input:focus {
  border-color: var(--accent, #C9A84C);
}

.avatar-picker-error {
  font-size: var(--font-sm);
  font-family: var(--font-mono, monospace);
  color: rgba(255, 100, 100, 0.9);
}

.avatar-picker-actions {
  display: flex;
  gap: 8px;
}

.avatar-picker-save-btn {
  font-size: var(--font-sm);
  padding: 5px 14px;
  background: var(--accent, #C9A84C);
  color: var(--bg, #0A0A0A);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.12s;
}

.avatar-picker-save-btn:hover {
  background: var(--accent-dim, #9B7D35);
}

.avatar-picker-cancel-btn {
  font-size: var(--font-sm);
  padding: 5px 14px;
  background: transparent;
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  color: var(--slate-light, #718096);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.12s;
}

.avatar-picker-cancel-btn:hover {
  border-color: var(--text-dim, #A09E9A);
  color: var(--text, #E8E6E1);
}

/* Make the avatar circle show a cursor when on own profile */
.me-avatar[data-own="true"] {
  cursor: pointer;
}

/* profile-home divider */
.profile-home-divider {
  border: none;
  border-top: 1px solid var(--border, rgba(255,255,255,0.07));
  margin: 24px 0;
}
a.entity-emission-row {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: background 0.12s;
}

a.entity-emission-row:hover {
	background: color-mix(in srgb, var(--accent) 5%, transparent);
}

/* ============================================================
   ProfileActivity — session.* emission panel
   Namespace: .entity-session-emission-* (scoped)
   ============================================================ */

.entity-session-emissions {
	margin-top: 1.5rem;
}

.entity-session-emission-row {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.3rem 0;
	border-bottom: 1px solid rgba(255,255,255,0.05);
	flex-wrap: wrap;
}

.entity-session-emission-type {
	font-family: monospace;
	font-size: 0.78em;
	opacity: 0.75;
	background: rgba(255,255,255,0.05);
	padding: 0.1em 0.4em;
	border-radius: 3px;
	white-space: nowrap;
}

.entity-session-emission-body {
	flex: 1;
	font-size: 0.88em;
	word-break: break-word;
}

.entity-session-emission-time {
	font-size: 0.75em;
	opacity: 0.45;
	white-space: nowrap;
}

.entity-session-emission-link {
	font-family: monospace;
	font-size: 0.75em;
	opacity: 0.55;
	color: inherit;
	text-decoration: none;
}

.profile-bonds-split {
	display: flex;
	gap: 1.5rem;
	align-items: stretch;
}

.profile-bonds-split-graph {
	flex: 1 1 60%;
	min-width: 0;
	min-height: 500px;
}

.profile-bonds-split-list {
	flex: 1 1 40%;
	min-width: 0;
}

@media (max-width: 768px) {
	.profile-bonds-split {
		flex-direction: column;
	}

	.profile-bonds-split-graph,
	.profile-bonds-split-list {
		flex: 1 1 auto;
	}
}

/* ============================================================
   Bond detail section — issued / received breakdown with click-through
   Namespace: .profile-bonds-section-*, .profile-bonds-detail-*
   ============================================================ */

.profile-bonds-section {
	margin-top: 28px;
}

.profile-bonds-section-title {
	font-size: var(--font-sm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-dim);
	margin: 0 0 10px 0;
}

.profile-bonds-detail-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.profile-bonds-detail-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 4px;
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s;
	flex-wrap: wrap;
}

.profile-bonds-detail-row:hover {
	border-color: var(--accent);
	background: color-mix(in srgb, var(--accent) 6%, var(--bg-raised));
}

.profile-bonds-detail-direction {
	display: flex;
	align-items: center;
	gap: 5px;
	flex: 1;
	min-width: 0;
}

.profile-bonds-detail-from,
.profile-bonds-detail-to {
	font-size: var(--font-body);
	color: var(--text);
	white-space: nowrap;
}

.profile-bonds-detail-arrow {
	color: var(--accent);
	font-weight: 600;
}

.profile-bonds-detail-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.profile-bonds-detail-badge {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 2px 6px;
	border-radius: 3px;
	background: color-mix(in srgb, var(--accent) 15%, var(--bg-raised));
	color: var(--accent);
	border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
	white-space: nowrap;
}

.profile-bonds-detail-status {
	font-size: var(--font-sm);
	color: var(--text-dim);
}

.profile-bonds-detail-date {
	font-size: var(--font-sm);
	color: var(--text-dim);
	white-space: nowrap;
}

.profile-bonds-detail-cta {
	font-size: var(--font-sm);
	color: var(--accent);
	white-space: nowrap;
	flex-shrink: 0;
}

.profile-devices-section {
  margin-bottom: 24px;
}

.profile-devices-section-title {
  font-size: var(--font-sm);
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim, #A09E9A);
  margin-bottom: 12px;
}

.profile-devices-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-device-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-raised, #171717);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 2px;
}

.profile-device-row--pending {
  border-color: rgba(201, 168, 76, 0.2);
  background: rgba(201, 168, 76, 0.03);
}

.profile-device-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-device-key {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-body);
  color: var(--text, #E8E6E1);
}

.profile-device-badge {
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 2px;
}

.profile-device-badge--root {
  background: rgba(201, 168, 76, 0.1);
  color: var(--accent, #C9A84C);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.profile-device-badge--device {
  background: rgba(255,255,255,0.04);
  color: var(--slate-light, #718096);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
}

.profile-device-badge--pending {
  background: rgba(201, 168, 76, 0.08);
  color: var(--accent-dim, #9B7D35);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.profile-device-meta {
  display: flex;
  gap: 12px;
}

.profile-device-stat {
  font-size: var(--font-sm);
  font-family: var(--font-mono, monospace);
  color: var(--slate, #4A5568);
}

.profile-device-actions {
  margin-top: 6px;
  display: flex;
  gap: 8px;
}

.profile-device-link {
  font-size: var(--font-sm);
  color: var(--accent, #C9A84C);
  text-decoration: none;
}

.profile-device-link:hover {
  text-decoration: underline;
}

.profile-device-revoke-btn {
  font-size: var(--font-sm);
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  background: transparent;
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: rgba(255, 100, 100, 0.7);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.profile-device-revoke-btn:hover {
  border-color: rgba(255, 80, 80, 0.6);
  color: rgba(255, 100, 100, 1);
}

.profile-device-revoke-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.profile-devices-error {
  font-size: var(--font-body);
  color: rgba(255, 100, 100, 0.9);
  font-family: var(--font-mono, monospace);
  padding: 8px 12px;
  background: rgba(255, 80, 80, 0.05);
  border: 1px solid rgba(255, 80, 80, 0.2);
  border-radius: 2px;
  margin-top: 8px;
}

.profile-files {
  display: flex;
  flex-direction: column;
  min-height: 400px;
}
.profile-files-loading,
.profile-files-error {
  padding: 2rem 1rem;
}
.profile-files-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  gap: 0;
}

/* Tree pane */
.profile-files-tree {
  width: 220px;
  min-width: 160px;
  max-width: 280px;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 0.75rem 0;
  flex-shrink: 0;
}
.profile-tree-dir,
.profile-tree-file {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.60);
  user-select: none;
}
.profile-tree-dir-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.75rem;
  cursor: pointer;
}
.profile-tree-dir-label:hover { color: rgba(255,255,255,0.85); }
.profile-tree-children {
  padding-left: 1rem;
}
.profile-tree-file {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.75rem;
  cursor: pointer;
}
.profile-tree-file:hover { color: rgba(255,255,255,0.85); }
.profile-tree-file--selected {
  color: var(--entity-accent, var(--accent));
  background: rgba(255,255,255,0.04);
}
.profile-tree-icon {
  font-size: 0.65rem;
  opacity: 0.5;
}
.profile-tree-icon--file {
  font-size: 0.5rem;
  opacity: 0.35;
}
.profile-tree-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content pane */
.profile-files-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem 1.5rem;
  min-width: 0;
}
.profile-files-content-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.profile-files-path {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  color: rgba(255,255,255,0.45);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-files-raw-link {
  font-size: var(--font-sm);
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.1em 0.45em;
  border-radius: 3px;
  flex-shrink: 0;
}
.profile-files-raw-link:hover { color: rgba(255,255,255,0.70); border-color: rgba(255,255,255,0.25); }
.profile-files-markdown {
  padding: 0;
}
.profile-files-code {
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  white-space: pre;
  margin: 0;
  line-height: 1.6;
}
.profile-files-image-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0.5rem 0;
}
.profile-files-image {
  max-width: 100%;
  max-height: 600px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}

.profile-identity {
  padding: 1.5rem 1rem;
  max-width: 800px;
}

.profile-leaves-intro {
  font-size: var(--font-body);
  color: var(--text-dim, #A09E9A);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ── Prove section ─────────────────────────────────────────────────────────── */

.profile-leaves-prove-section {
  background: var(--bg-raised, #171717);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 2px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.profile-leaves-prove-row {
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
}

.profile-leaves-prove-row:last-child {
  border-bottom: none;
}

.profile-leaves-prove-row.leaves-panel-open {
  border-bottom: none;
}

/* ── Row header (chip + prove button) ─────────────────────────────────────── */

.profile-leaves-row-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.profile-leaves-prove-label {
  font-size: var(--font-body);
  color: var(--text, #E8E6E1);
  min-width: 90px;
  font-family: var(--font-mono, monospace);
}

/* ── Chip vocabulary (Muse §6) ─────────────────────────────────────────────── */

.me-leaf-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono, monospace);
  font-size: var(--font-sm);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: color 300ms ease, background 300ms ease, border-color 300ms ease;
}

.me-chip-dot {
  font-size: 10px;
  transition: color 300ms ease;
}

/* verified — filled green */
.me-chip-verified {
  color: var(--green, #3EAF6A);
  background: rgba(62, 175, 106, 0.08);
  border-color: rgba(62, 175, 106, 0.2);
}
.me-chip-verified .me-chip-dot { color: var(--green, #3EAF6A); }

/* pending re-check — filled amber */
.me-chip-pending {
  color: var(--accent, #C9A84C);
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.2);
}
.me-chip-pending .me-chip-dot { color: var(--accent, #C9A84C); }

/* unlinked / unproven — hollow grey */
.me-chip-unlinked {
  color: var(--slate-light, #718096);
  background: transparent;
  border-color: var(--border, rgba(255,255,255,0.07));
}
.me-chip-unlinked .me-chip-dot { color: var(--slate, #4A5568); }

/* failed — filled red */
.me-chip-failed {
  color: var(--red, #C0392B);
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.2);
}
.me-chip-failed .me-chip-dot { color: var(--red, #C0392B); }

/* revoked — filled slate (same grey as unlinked but filled dot) */
.me-chip-revoked {
  color: var(--slate-light, #718096);
  background: transparent;
  border-color: var(--border, rgba(255,255,255,0.07));
}
.me-chip-revoked .me-chip-dot { color: var(--slate, #4A5568); }

/* signing (panel open, in-progress) — animated dot */
.me-chip-signing {
  color: var(--slate-light, #718096);
  background: transparent;
  border-color: var(--border, rgba(255,255,255,0.07));
}
.me-chip-signing .me-chip-dot {
  color: var(--accent, #C9A84C);
  display: inline-block;
  animation: leaves-spin 1s linear infinite;
}

/* selected (multi-claim) — accent-dim background */
.me-chip-selected {
  color: var(--accent, #C9A84C);
  background: rgba(201, 168, 76, 0.06);
  border-color: rgba(201, 168, 76, 0.2);
  cursor: default;
}
.me-chip-selected .me-chip-dot { color: var(--accent, #C9A84C); }

/* ── Prove button ──────────────────────────────────────────────────────────── */

.profile-leaves-prove-btn {
  margin-left: auto;
  font-family: var(--font-mono, monospace);
  font-size: var(--font-sm);
  color: var(--accent, #C9A84C);
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 2px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
}
.profile-leaves-prove-btn:hover {
  background: rgba(201, 168, 76, 0.06);
  border-color: var(--accent, #C9A84C);
}

/* ── Proof panel ───────────────────────────────────────────────────────────── */

/* max-height transition per Muse §7 */
.leaves-proof-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 240ms ease-out, opacity 240ms ease-out;
}

.leaves-panel-open .leaves-proof-panel {
  max-height: 800px; /* large enough for panel content */
  opacity: 1;
}

.leaves-proof-panel {
  /* When panel IS open, apply inner styles */
  background: var(--bg-surface, #111111);
  border-left: 2px solid var(--border, rgba(255,255,255,0.07));
  padding: 20px 24px;
  margin: 0 -24px;
  margin-bottom: 0;
}

.leaves-panel-open .leaves-proof-panel {
  display: block;
}

/* Panel title + body (pre-signing) */
.leaves-panel-title {
  font-size: var(--font-body);
  font-weight: 500;
  color: var(--text, #E8E6E1);
  margin: 0 0 10px 0;
}

.leaves-panel-body {
  font-size: var(--font-body);
  color: var(--text-dim, #A09E9A);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

/* Signed header */
.leaves-panel-signed-header {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green, #3EAF6A);
  margin-bottom: 16px;
}

/* ── Artifact rows (CID, URL, clearsign text) ──────────────────────────────── */

.leaves-artifact-row {
  margin-bottom: 14px;
}

.leaves-artifact-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim, #A09E9A);
  margin-bottom: 6px;
}

.leaves-artifact-value-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg, #0A0A0A);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 2px;
  padding: 6px 10px;
}

.leaves-artifact-cid,
.leaves-artifact-url {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-body);
  color: var(--text, #E8E6E1);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

.leaves-artifact-url {
  /* truncate in middle — CSS doesn't support middle truncation directly */
  direction: ltr;
}

.leaves-artifact-url:hover {
  white-space: normal;
  overflow: visible;
  word-break: break-all;
}

/* Full text disclosure */
.leaves-fulltext-toggle {
  font-size: var(--font-sm);
  color: var(--slate-light, #718096);
  cursor: pointer;
  margin-left: 8px;
  user-select: none;
}
.leaves-fulltext-toggle:hover {
  color: var(--text-dim, #A09E9A);
}

.leaves-clearsign-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.leaves-clearsign-block {
  width: 100%;
  font-family: var(--font-mono, monospace);
  font-size: var(--font-sm);
  color: var(--slate-light, #718096);
  background: var(--bg, #0A0A0A);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  padding: 12px 14px;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
}

/* ── Copy button ────────────────────────────────────────────────────────────── */

.leaves-copy-btn {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim, #A09E9A);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.leaves-copy-btn:hover {
  color: var(--text, #E8E6E1);
}

/* ── Posting guidance ───────────────────────────────────────────────────────── */

.leaves-posting-guidance {
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.07));
}

.leaves-guidance-label {
  display: block;
  font-size: var(--font-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim, #A09E9A);
  margin-bottom: 8px;
}

.leaves-guidance-body {
  font-size: var(--font-body);
  color: var(--text-dim, #A09E9A);
  line-height: 1.6;
  margin: 0;
}

/* ── Panel actions ──────────────────────────────────────────────────────────── */

.leaves-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.profile-leaves-sign-btn,
.profile-leaves-verify-btn {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-body);
  color: #0A0A0A;
  background: var(--accent, #C9A84C);
  border: none;
  border-radius: 2px;
  padding: 7px 16px;
  cursor: pointer;
  transition: opacity 0.1s;
}

.profile-leaves-sign-btn:hover,
.profile-leaves-verify-btn:hover {
  opacity: 0.88;
}

.profile-leaves-verify-btn.leaves-verifying {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Verifying spinner animation (Muse §4) */
@keyframes leaves-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.leaves-verifying-spinner {
  display: inline-block;
  animation: leaves-spin 1s linear infinite;
}

/* ── Verify error ───────────────────────────────────────────────────────────── */

.leaves-verify-error {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-body);
  color: var(--text-dim, #A09E9A);
}

.leaves-retry-link {
  color: var(--accent, #C9A84C);
  text-decoration: none;
  font-size: var(--font-body);
  margin-left: 8px;
}
.leaves-retry-link:hover { text-decoration: underline; }

/* ── Panel close ────────────────────────────────────────────────────────────── */

.leaves-panel-close {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.07));
}

.leaves-panel-close-link {
  font-size: var(--font-sm);
  color: var(--slate-light, #718096);
  text-decoration: none;
}
.leaves-panel-close-link:hover { color: var(--text-dim, #A09E9A); }

/* ── Passphrase + handle inputs ─────────────────────────────────────────────── */

.leaves-passphrase-row,
.leaves-handle-row {
  margin-bottom: 12px;
}

.leaves-handle-label {
  display: block;
  font-size: var(--font-sm);
  color: var(--text-dim, #A09E9A);
  margin-bottom: 6px;
  font-family: var(--font-mono, monospace);
}

.leaves-passphrase-input,
.leaves-handle-input {
  width: 100%;
  background: var(--bg, #0A0A0A);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 2px;
  font-family: var(--font-mono, monospace);
  font-size: var(--font-body);
  color: var(--text, #E8E6E1);
  padding: 6px 10px;
  height: 32px;
  box-sizing: border-box;
  outline: none;
}
.leaves-passphrase-input:focus,
.leaves-handle-input:focus {
  border-color: var(--accent, #C9A84C);
}

/* ── Multi-claim chips ──────────────────────────────────────────────────────── */

.leaves-multiclaim-footer {
  margin-top: 12px;
}

.leaves-multiclaim-toggle {
  font-size: var(--font-body);
  color: var(--slate-light, #718096);
  cursor: pointer;
}
.leaves-multiclaim-toggle:hover { color: var(--text-dim, #A09E9A); }

.leaves-multiclaim-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.leaves-multiclaim-label {
  font-size: var(--font-sm);
  color: var(--text-dim, #A09E9A);
  font-family: var(--font-mono, monospace);
}

.leaves-chip-remove {
  margin-left: 4px;
  cursor: pointer;
  color: var(--slate-light, #718096);
  font-size: var(--font-sm);
}
.leaves-chip-remove:hover { color: var(--text, #E8E6E1); }

.leaves-multiclaim-available {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.leaves-chip-add {
  cursor: pointer;
}
.leaves-chip-add:hover {
  border-color: var(--accent, #C9A84C);
}

/* ── Sign mode toggle (Mode A ↔ Mode B) ────────────────────────────────────── */

.leaves-mode-toggle-row {
  margin-top: 10px;
}

.leaves-toggle-sign-mode {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-sm);
  color: var(--slate-light, #718096);
  text-decoration: none;
}
.leaves-toggle-sign-mode:hover {
  color: var(--text-dim, #A09E9A);
  text-decoration: underline;
}

/* Mode A: device sign button */
.leaves-sign-device-btn {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-body);
  color: #0A0A0A;
  background: var(--accent, #C9A84C);
  border: none;
  border-radius: 2px;
  padding: 7px 16px;
  cursor: pointer;
  transition: opacity 0.1s;
}
.leaves-sign-device-btn:hover { opacity: 0.88; }
.leaves-sign-device-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Mode A intro body */
.leaves-mode-a-body {
  margin-top: 0;
}

/* ── Leaf grid (existing, unchanged) ───────────────────────────────────────── */

.me-leaf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.disclosure-leaf-card {
  background: var(--bg-surface, #111111);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 2px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leaf-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.leaf-card-type {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-body);
  font-weight: 500;
  color: var(--text, #E8E6E1);
}

.leaf-card-status {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-sm);
  color: var(--slate, #4A5568);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.leaf-card-value {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-sm);
  color: var(--slate-light, #718096);
  word-break: break-word;
}

.leaf-card-communities {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.07));
}

.disclosure-community-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-body);
  color: var(--slate-light, #718096);
  cursor: pointer;
  user-select: none;
}

.disclosure-community-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  background: transparent;
  transition: background 0.1s, border-color 0.1s;
}

.disclosure-community-toggle input[type="checkbox"]:checked {
  background: var(--entity-accent, var(--accent, #C9A84C));
  border-color: var(--entity-accent, var(--accent, #C9A84C));
}

.disclosure-community-toggle input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -1px;
  left: 2px;
  color: #0A0A0A;
  font-size: 12px;
  font-weight: 700;
}

.disclosure-community-toggle input[type="checkbox"]:checked + span {
  color: var(--text, #E8E6E1);
}

.profile-sessions-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
}

.profile-session-row {
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 6px;
	border-left: 3px solid rgba(255, 255, 255, 0.15);
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: var(--font-body);
}

.profile-session-row--active {
	border-left-color: rgba(120, 220, 150, 0.7);
	background: rgba(120, 220, 150, 0.04);
}

.profile-session-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.profile-session-spirit {
	font-weight: 600;
	color: rgba(220, 180, 100, 0.95);
	text-decoration: none;
}

.profile-session-spirit:hover {
	text-decoration: underline;
}

.profile-session-arrow {
	color: var(--text-faint, #555);
	font-weight: normal;
}

.profile-session-entity {
	font-weight: 600;
	color: var(--text-bright, #eee);
	text-decoration: none;
}

.profile-session-entity:hover {
	text-decoration: underline;
}

.profile-session-harness {
	color: var(--text-muted, #888);
	font-size: var(--font-sm);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.profile-session-model {
	color: rgba(120, 200, 255, 0.9);
}

.profile-session-status {
	margin-left: auto;
	font-size: var(--font-sm);
	padding: 2px 8px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.profile-session-status--active {
	background: rgba(120, 220, 150, 0.15);
	color: rgba(120, 220, 150, 1);
}

.profile-session-status--stale {
	background: rgba(220, 180, 80, 0.15);
	color: rgba(220, 180, 80, 1);
}

.profile-session-status--killed,
.profile-session-status--ended {
	background: rgba(180, 180, 180, 0.1);
	color: rgba(180, 180, 180, 0.7);
}

.profile-session-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 8px;
	color: var(--text, #ccc);
}

.profile-session-stat {
	display: inline-flex;
	gap: 4px;
}

.profile-session-stat-label {
	color: var(--text-muted, #888);
}

.profile-session-tail {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 16px;
	font-size: var(--font-sm);
	color: var(--text-muted, #888);
}

.profile-session-cwd {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.profile-session-pid {
	color: var(--text-faint, #666);
}

.profile-session-id {
	color: rgba(120, 200, 255, 0.7);
	text-decoration: none;
}

.profile-session-id:hover {
	color: rgba(120, 200, 255, 1);
	text-decoration: underline;
}

/* Time row — started / ended / duration / parts */
.profile-session-times {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	font-size: 0.78rem;
	margin-top: 0.3rem;
	color: var(--text, #cfcfd5);
}
.profile-session-times .profile-session-stat {
	font-variant-numeric: tabular-nums;
}
.profile-session-stat--ongoing {
	color: rgba(120, 220, 150, 1);
}
.profile-sigchain-graph-wrap {
	margin: 0 0 24px 0;
}

.profile-sigchain-graph {
	position: relative;
	width: 100%;
	height: 280px;
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: 4px;
	overflow: hidden;
}

.profile-sigchain-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* Timeline list */
.profile-sigchain-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.profile-sigchain-entry {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}

.profile-sigchain-entry:last-child {
	border-bottom: none;
}

.profile-sigchain-badge {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 3px;
	white-space: nowrap;
	flex-shrink: 0;
	margin-top: 2px;
	background: var(--bg-raised);
	color: var(--text-dim);
	border: 1px solid var(--border);
}

.profile-sigchain-badge-genesis {
	background: color-mix(in srgb, var(--accent) 15%, var(--bg-raised));
	color: var(--accent);
	border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.profile-sigchain-badge-bond {
	background: color-mix(in srgb, #5bd5b5 12%, var(--bg-raised));
	color: #5bd5b5;
	border-color: color-mix(in srgb, #5bd5b5 30%, var(--border));
}

.profile-sigchain-badge-key {
	background: color-mix(in srgb, #d5a05b 12%, var(--bg-raised));
	color: #d5a05b;
	border-color: color-mix(in srgb, #d5a05b 30%, var(--border));
}

.profile-sigchain-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.profile-sigchain-body {
	font-size: var(--font-body);
	color: var(--text);
	word-break: break-word;
}

.profile-sigchain-meta {
	font-size: var(--font-sm);
	color: var(--text-dim);
}

.profile-sigchain-link {
	color: var(--accent);
	text-decoration: none;
}

.profile-sigchain-link:hover {
	text-decoration: underline;
}

.profile-sigchain-direction {
	color: var(--text-dim);
	font-style: italic;
}

.profile-sigchain-bondtype {
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 2px;
	padding: 0 4px;
	font-size: var(--font-sm);
	color: var(--text-dim);
	margin-left: 4px;
}

.profile-sigchain-desc {
	font-size: var(--font-sm);
	color: var(--text-dim);
	font-style: italic;
}

.profile-sigchain-fp {
	font-family: monospace;
	font-size: var(--font-sm);
	color: var(--text-dim);
	word-break: break-all;
}

.profile-sigchain-time {
	font-size: var(--font-sm);
	color: var(--text-dim);
	white-space: nowrap;
	flex-shrink: 0;
	margin-top: 3px;
}

.profile-sigchain-hint {
	max-width: 480px;
}

/* Meta strip: Keybase link + blockchain verify note */
.profile-sigchain-meta-strip {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	margin: 0 0 12px 0;
	border-bottom: 1px solid var(--border);
	font-size: var(--font-sm);
	flex-wrap: wrap;
}

.profile-sigchain-verify-link {
	color: var(--accent);
	text-decoration: none;
	white-space: nowrap;
}

.profile-sigchain-verify-link:hover {
	text-decoration: underline;
}

.profile-sigchain-verify-note {
	color: var(--text-dim);
	font-style: italic;
}

/* Right column: chain height + timestamp stacked */
.profile-sigchain-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	flex-shrink: 0;
}

.profile-sigchain-height {
	font-size: 10px;
	font-weight: 600;
	color: var(--text-dim);
	font-family: monospace;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 3px;
	padding: 1px 5px;
}

/* Bond detail link in sigchain entry */
.profile-sigchain-detail-link {
	font-size: var(--font-sm);
	color: var(--accent);
	text-decoration: none;
	margin-left: 8px;
}

.profile-sigchain-detail-link:hover {
	text-decoration: underline;
}

.profile-sigchain-arrow {
	margin: 0 4px;
	color: var(--accent);
	font-weight: 600;
}

.profile-sigchain-created {
	font-size: var(--font-sm);
	color: var(--text-dim);
	margin-left: 6px;
}

/* ============================================================
   Radial bond graph nodes + edges (sigchain/logic.js renders these)
   ============================================================ */

.bond-node {
	position: absolute;

	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--font-body);
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	user-select: none;
	transition: transform 0.15s;
	z-index: 1;
}

.bond-node:hover {
	z-index: 3;
}

.bond-node.active-now {
	box-shadow: 0 0 0 3px var(--accent), 0 0 12px rgba(0,0,0,0.3);
}

.bond-node img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.bond-node-label {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 4px;
	font-size: 10px;
	color: var(--text-dim);
	white-space: nowrap;
	pointer-events: none;
}

.bond-edge {
	stroke: var(--border);
	stroke-width: 1.5;
}

.bond-edge-arrow {
	fill: var(--border);
}

.profile-sig-detail {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* CID section — the proof artifact, prominent */
.profile-sig-cid-section {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 6px;
	border-left: 3px solid var(--entity-accent, rgba(160, 200, 255, 0.5));
}

.profile-sig-cid-label {
	font-size: var(--font-sm);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--text-muted, #888);
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	flex-shrink: 0;
}

.profile-sig-cid-value {
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: var(--font-body);
	color: var(--text-bright, #eee);
	word-break: break-all;
	flex: 1;
	min-width: 0;
}

.profile-sig-copy-btn {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--text-muted, #888);
	font-size: var(--font-sm);
	padding: 3px 10px;
	border-radius: 3px;
	cursor: pointer;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	letter-spacing: 0.5px;
	flex-shrink: 0;
	transition: border-color 0.1s, color 0.1s;
}

.profile-sig-copy-btn:hover {
	border-color: var(--entity-accent, rgba(160, 200, 255, 0.5));
	color: var(--text, #ccc);
}

/* Status badge */
.profile-sig-status {
	font-size: var(--font-sm);
	padding: 2px 8px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
}

.profile-sig-status--verified   { background: rgba(120, 220, 150, 0.15); color: rgba(120, 220, 150, 1); }
.profile-sig-status--pending    { background: rgba(220, 180, 80, 0.15);  color: rgba(220, 180, 80, 1);  }
.profile-sig-status--unverified { background: rgba(180, 180, 180, 0.1); color: rgba(180, 180, 180, 0.7); }
.profile-sig-status--failed     { background: rgba(220, 100, 80, 0.15); color: rgba(220, 100, 80, 0.9); }

/* Metadata row */
.profile-sig-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: 0 4px;
}

.profile-sig-meta-item {
	display: flex;
	gap: 6px;
	align-items: baseline;
	font-size: var(--font-sm);
}

.profile-sig-meta-label {
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: var(--font-sm);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text-muted, #888);
}

.profile-sig-meta-val {
	color: var(--text, #ccc);
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
}

/* Section headings */
.profile-sig-section-title {
	font-size: var(--font-sm);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--text-muted, #888);
	margin: 0 0 10px 0;
	font-weight: 600;
}

/* Claims section */
.profile-sig-claims {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.profile-sig-claim-row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
	padding: 10px 16px;
	border-left: 3px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.02);
	margin-bottom: 6px;
	border-radius: 4px;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: var(--font-body);
}

.profile-sig-claim-row--verified   { border-left-color: rgba(120, 220, 150, 0.5); }
.profile-sig-claim-row--pending    { border-left-color: rgba(220, 180, 80, 0.5);  }
.profile-sig-claim-row--unverified { border-left-color: rgba(180, 180, 180, 0.2); }
.profile-sig-claim-row--failed     { border-left-color: rgba(220, 100, 80, 0.4); }

.profile-sig-claim-platform {
	font-weight: 600;
	color: rgba(120, 200, 255, 0.9);
	min-width: 80px;
}

.profile-sig-claim-handle {
	color: var(--text, #ccc);
	flex: 1;
}

.profile-sig-claim-status {
	font-size: var(--font-sm);
	padding: 2px 8px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.profile-sig-claim-status--verified   { background: rgba(120, 220, 150, 0.15); color: rgba(120, 220, 150, 1); }
.profile-sig-claim-status--pending    { background: rgba(220, 180, 80, 0.15);  color: rgba(220, 180, 80, 1);  }
.profile-sig-claim-status--unverified { background: rgba(180, 180, 180, 0.1); color: rgba(180, 180, 180, 0.7); }
.profile-sig-claim-status--failed     { background: rgba(220, 100, 80, 0.15); color: rgba(220, 100, 80, 0.9); }

.profile-sig-claim-last-verified {
	font-size: var(--font-sm);
	color: var(--text-faint, #666);
	margin-left: auto;
}

/* PGP clearsign block — verbatim, DO NOT modify whitespace */
.profile-sig-pgp-section {
	display: flex;
	flex-direction: column;
}

.profile-sig-pgp-block {
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: var(--font-sm);
	line-height: 1.5;
	color: var(--text-muted, #888);
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 4px;
	padding: 16px;
	overflow-x: auto;
	white-space: pre;
	word-break: normal;
	tab-size: 4;
}

/* API links */
.profile-sig-api-links {
	display: flex;
	gap: 12px;
	padding: 0 4px;
}

.profile-sig-api-link {
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: var(--font-sm);
	color: var(--text-faint, #666);
	text-decoration: none;
	letter-spacing: 0.3px;
}

.profile-sig-api-link:hover {
	color: var(--text-muted, #888);
	text-decoration: underline;
}

.profile-signatures-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

.profile-signature-row {
	display: block;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 6px;
	border-left: 3px solid rgba(255, 255, 255, 0.15);
	text-decoration: none;
	color: inherit;
	transition: background 0.1s ease, border-left-color 0.1s ease;
}

.profile-signature-row:hover {
	background: rgba(255, 255, 255, 0.06);
	border-left-color: var(--entity-accent, rgba(160, 200, 255, 0.5));
}

.profile-signature-row-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.profile-signature-cid-short {
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: var(--font-body);
	font-weight: 600;
	color: var(--text-bright, #eee);
	letter-spacing: 0.3px;
}

.profile-signature-claims-summary {
	font-size: var(--font-body);
	color: rgba(120, 200, 255, 0.9);
}

.profile-signature-status {
	margin-left: auto;
	font-size: var(--font-sm);
	padding: 2px 8px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
}

.profile-signature-status--verified {
	background: rgba(120, 220, 150, 0.15);
	color: rgba(120, 220, 150, 1);
}

.profile-signature-status--pending {
	background: rgba(220, 180, 80, 0.15);
	color: rgba(220, 180, 80, 1);
}

.profile-signature-status--unverified {
	background: rgba(180, 180, 180, 0.1);
	color: rgba(180, 180, 180, 0.7);
}

.profile-signature-status--failed {
	background: rgba(220, 100, 80, 0.15);
	color: rgba(220, 100, 80, 0.9);
}

.profile-signature-row-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: var(--font-sm);
	color: var(--text-muted, #888);
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
}

.profile-signature-issued {
	color: var(--text-muted, #888);
}

.profile-signature-kingdom {
	color: var(--text-faint, #666);
}

.profile-signature-fingerprint {
	color: var(--text-faint, #666);
	letter-spacing: 0.5px;
}

.sessions-index-header {
	margin-bottom: 32px;
}

.sessions-index-title {
	margin: 0 0 8px 0;
}

.sessions-index-subhead {
	color: var(--text-muted, #888);
	margin: 0 0 16px 0;
}

.sessions-index-stats {
	display: flex;
	gap: 8px;
	align-items: baseline;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: var(--font-sm);
	color: var(--text, #ccc);
}

.sessions-index-stat-sep {
	color: var(--text-faint, #555);
}

.sessions-index-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sessions-index-row {
	display: block;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 6px;
	border-left: 3px solid rgba(255, 255, 255, 0.15);
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: var(--font-sm);
	text-decoration: none;
	color: inherit;
	transition: background 0.1s;
}

.sessions-index-row:hover {
	background: rgba(255, 255, 255, 0.05);
}

.sessions-index-row--active {
	border-left-color: rgba(120, 220, 150, 0.7);
	background: rgba(120, 220, 150, 0.04);
}

.sessions-index-row--active:hover {
	background: rgba(120, 220, 150, 0.08);
}

.sessions-index-row-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.sessions-index-spirit {
	font-weight: 600;
	color: rgba(220, 180, 100, 0.95);
}

.sessions-index-arrow {
	color: var(--text-faint, #555);
}

.sessions-index-entity {
	font-weight: 600;
	color: var(--text-bright, #eee);
}

.sessions-index-harness {
	color: var(--text-muted, #888);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sessions-index-model {
	color: rgba(120, 200, 255, 0.9);
}

.sessions-index-status {
	margin-left: auto;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sessions-index-status--active {
	background: rgba(120, 220, 150, 0.15);
	color: rgba(120, 220, 150, 1);
}

.sessions-index-status--stale {
	background: rgba(220, 180, 80, 0.15);
	color: rgba(220, 180, 80, 1);
}

.sessions-index-status--killed,
.sessions-index-status--ended {
	background: rgba(180, 180, 180, 0.1);
	color: rgba(180, 180, 180, 0.7);
}

.sessions-index-row-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 8px;
	color: var(--text, #ccc);
}

.sessions-index-stat-row {
	display: inline-flex;
	gap: 4px;
}

.sessions-index-stat-label {
	color: var(--text-muted, #888);
}

.sessions-index-row-tail {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 16px;
	font-size: 12px;
	color: var(--text-muted, #888);
}

.sessions-index-cwd {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sessions-index-pid,
.sessions-index-id {
	color: var(--text-faint, #666);
}

.sessions-index-empty {
	padding: 32px;
	text-align: center;
	color: var(--text-muted, #888);
}
.stl-page {
	min-height: 100vh;
	padding: 0 0 48px 0;
}

/* ---------------------------------------------------------------------------
   Header + controls
--------------------------------------------------------------------------- */
.stl-header {
	padding: 32px 24px 20px 24px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stl-header-top {
	margin-bottom: 16px;
}

.stl-title {
	margin: 0 0 6px 0;
	font-size: var(--font-h2);
	font-weight: 600;
	color: var(--text-bright, #eee);
}

.stl-subhead {
	margin: 0;
	font-size: var(--font-sm);
	color: var(--text-muted, #888);
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
}

.stl-controls {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.stl-zoom-group {
	display: flex;
	gap: 2px;
}

.stl-zoom-btn {
	padding: 5px 14px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 4px;
	color: var(--text-muted, #999);
	font-size: var(--font-sm);
	cursor: pointer;
	font-family: inherit;
	transition: background 0.12s, color 0.12s;
}

.stl-zoom-btn:hover {
	background: rgba(255,255,255,0.1);
	color: var(--text, #ccc);
}

.stl-zoom-btn--active {
	background: rgba(255,255,255,0.12);
	color: var(--text-bright, #eee);
	border-color: rgba(255,255,255,0.25);
}

.stl-pan-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.stl-pan-btn {
	padding: 5px 10px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 4px;
	color: var(--text-muted, #999);
	font-size: var(--font-sm);
	cursor: pointer;
	font-family: inherit;
	transition: background 0.1s;
}

.stl-pan-btn:hover {
	background: rgba(255,255,255,0.09);
	color: var(--text, #ccc);
}

.stl-pan-label {
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: var(--font-sm);
	color: var(--text, #ccc);
	min-width: 130px;
	text-align: center;
}

.stl-reset-btn {
	padding: 5px 12px;
	background: transparent;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 4px;
	color: var(--text-faint, #666);
	font-size: var(--font-sm);
	cursor: pointer;
	font-family: inherit;
	transition: color 0.12s, border-color 0.12s;
}

.stl-reset-btn:hover {
	color: var(--text-muted, #999);
	border-color: rgba(255,255,255,0.15);
}

/* ---------------------------------------------------------------------------
   Chart area — fixed-height entity labels column + scrollable canvas
--------------------------------------------------------------------------- */
.stl-chart-wrap {
	display: flex;
	padding: 16px 0 0 0;
}

.stl-entity-labels {
	flex-shrink: 0;
	width: 160px;
	padding-top: 28px; /* aligns with axis row height */
	border-right: 1px solid rgba(255,255,255,0.05);
}

.stl-entity-label {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 12px 0 16px;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: var(--font-mono-label);
	color: var(--text-muted, #888);
	overflow: hidden;
}

.stl-entity-dot {
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: hsl(var(--entity-hue), 60%, 65%);
}

.stl-entity-name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text, #ccc);
}

.stl-entity-count {
	color: var(--text-faint, #555);
	font-size: 10px;
}

/* ---------------------------------------------------------------------------
   Canvas outer — horizontally scrollable container
--------------------------------------------------------------------------- */
.stl-canvas-outer {
	flex: 1;
	overflow-x: auto;
	min-width: 0;
	position: relative;
}

/* ---------------------------------------------------------------------------
   Axis row
--------------------------------------------------------------------------- */
.stl-axis-row {
	position: relative;
	height: 28px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	background: rgba(255,255,255,0.02);
}

.stl-axis-tick {
	position: absolute;
	top: 0;
	height: 100%;
	display: flex;
	align-items: center;
	transform: translateX(-50%);
	pointer-events: none;
}

.stl-axis-tick::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 1px;
	height: 6px;
	background: rgba(255,255,255,0.15);
}

.stl-axis-label {
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: 10px;
	color: var(--text-faint, #666);
	white-space: nowrap;
	padding: 0 4px;
}

/* ---------------------------------------------------------------------------
   Gantt rows + bars
--------------------------------------------------------------------------- */
.stl-gantt {
	position: relative;
}

.stl-gantt-row {
	position: relative;
	height: 28px;
	border-bottom: 1px solid rgba(255,255,255,0.03);
	cursor: default;
}

.stl-gantt-row:hover {
	background: rgba(255,255,255,0.015);
}

.stl-bar {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 10px;
	border-radius: 2px;
	background-color: hsl(var(--entity-hue), 55%, 50%);
	opacity: 0.7;
	cursor: pointer;
	transition: opacity 0.1s, height 0.1s;
	min-width: 2px;
}

.stl-bar:hover {
	opacity: 1;
	height: 14px;
	z-index: 10;
}

/* ---------------------------------------------------------------------------
   Detail panel
--------------------------------------------------------------------------- */
.stl-detail {
	margin: 20px 24px 0 24px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-left: 3px solid hsl(var(--entity-hue, 220), 55%, 50%);
	border-radius: 6px;
	padding: 16px 20px;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: var(--font-sm);
}

.stl-detail-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.stl-detail-entity {
	display: flex;
	align-items: center;
	gap: 8px;
}

.stl-detail-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: hsl(var(--entity-hue, 220), 60%, 60%);
	flex-shrink: 0;
}

.stl-detail-entity-name {
	font-weight: 600;
	font-size: var(--font-body);
	color: var(--text-bright, #eee);
}

.stl-detail-legacy {
	font-size: 10px;
	padding: 2px 6px;
	background: rgba(255,200,80,0.15);
	color: rgba(255,200,80,0.9);
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.stl-detail-close {
	background: transparent;
	border: none;
	color: var(--text-faint, #666);
	font-size: 20px;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
	transition: color 0.1s;
}

.stl-detail-close:hover {
	color: var(--text-muted, #999);
}

.stl-detail-body {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 8px 24px;
}

.stl-detail-row {
	display: flex;
	gap: 8px;
	align-items: baseline;
	min-width: 0;
}

.stl-detail-label {
	flex-shrink: 0;
	width: 80px;
	color: var(--text-muted, #888);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.stl-detail-value {
	color: var(--text, #ccc);
	word-break: break-all;
}

.stl-detail-cwd {
	color: var(--text-muted, #888);
}

.stl-detail-footer {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(255,255,255,0.05);
}

.stl-transcript-link {
	font-size: var(--font-sm);
	color: rgba(100,180,255,0.8);
	text-decoration: none;
	transition: color 0.1s;
}

.stl-transcript-link:hover {
	color: rgba(100,180,255,1);
}.session-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.session-shell {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 10px;
  overflow: hidden;
}

.session-hero {
  padding: 1.75rem 2rem;
  background: linear-gradient(180deg, #1f1f23, #18181b);
  border-bottom: 1px solid #27272a;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.session-hero-line {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: var(--font-h2);
}
.session-hero-line .text-muted {
  color: #71717a;
  font-size: var(--font-body);
}
.session-hero-host {
  color: #e4e4e7;
  font-family: monospace;
  font-size: var(--font-h4);
}
.session-hero-spirit,
.session-hero-entity {
  font-weight: 500;
}
.session-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.session-hero-runtime {
  color: #a1a1aa;
  font-size: var(--font-body);
}
.session-hero-cost {
  color: #fff;
  font-size: var(--font-h2);
  font-weight: 500;
}

.session-primary {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #27272a;
}
@media (max-width: 700px) {
  .session-primary { grid-template-columns: 1fr; }
}
.session-cell .session-cell-label {
  font-size: var(--font-sm);
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.session-cell .session-cell-value {
  color: #e4e4e7;
  font-size: var(--font-body);
  word-break: break-all;
}
.session-cell .session-cell-sub {
  font-size: var(--font-sm);
  color: #71717a;
  margin-top: 0.2rem;
}
.session-cell .mono,
.session-cell-value.mono {
  font-family: monospace;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #27272a;
}
.session-metric {
  padding: 0.6rem 0.75rem;
  background: #0e0e10;
  border: 1px solid #27272a;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.session-metric-label {
  font-size: var(--font-sm);
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.session-metric-value {
  font-size: var(--font-h3);
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.session-metric-value em {
  font-style: normal;
  font-size: var(--font-sm);
  color: #a1a1aa;
  margin-left: 0.15rem;
}
.session-metric-value.mono { font-family: monospace; font-size: var(--font-mono-body); }
.session-metric-sub {
  font-size: var(--font-sm);
  color: #71717a;
  font-variant-numeric: tabular-nums;
}

.session-quotas {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #27272a;
}
.session-quotas h3 {
  margin: 0 0 0.75rem 0;
  font-size: var(--font-body);
  color: #e4e4e7;
  font-weight: 500;
}
.session-quota-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.session-quota {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  gap: 0.75rem;
  align-items: center;
}
.session-quota-label {
  font-size: var(--font-sm);
  color: #a1a1aa;
}
.session-quota-bar-wrap {
  height: 10px;
  background: #27272a;
  border-radius: 2px;
  overflow: hidden;
}
.session-quota-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.session-quota-readout {
  font-size: var(--font-sm);
  color: #a1a1aa;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.session-playback-cta {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #1e3a8a15, #7c3aed15);
  border-top: 1px solid #27272a;
  border-bottom: 1px solid #27272a;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.session-playback-cta-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  font-size: var(--font-h4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-left: 3px;
}
.session-playback-cta-body h3 {
  margin: 0 0 0.4rem 0;
  color: #fff;
  font-weight: 500;
  font-size: var(--font-h4);
}
.session-playback-cta-body p {
  color: #a1a1aa;
  font-size: var(--font-body);
  margin: 0 0 0.6rem 0;
  line-height: 1.5;
}
.session-playback-cta-link {
  color: #93c5fd;
  font-size: var(--font-body);
  font-weight: 500;
}
.session-playback-cta-link:hover {
  color: #bfdbfe;
}

.session-footer {
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: #0e0e10;
  font-size: var(--font-sm);
  color: #71717a;
}
.session-footer .session-id {
  font-family: monospace;
}
.session-footer .muted { color: #71717a; }

/* ── Context bar ── */
.session-ctx-bar-wrap {
  padding: 0.75rem 2rem;
  border-bottom: 1px solid #27272a;
}
.session-ctx-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-sm);
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.session-ctx-bar-pct {
  color: #a1a1aa;
  font-variant-numeric: tabular-nums;
}
.session-ctx-bar-track {
  height: 8px;
  background: #27272a;
  border-radius: 2px;
  overflow: hidden;
}
.session-ctx-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.session-ctx-bar--ok     { background: linear-gradient(90deg, #22c55e, #4ade80); }
.session-ctx-bar--warn   { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.session-ctx-bar--danger { background: linear-gradient(90deg, #ef4444, #f87171); }

/* ── Harness/source/provider metadata row ── */
.session-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 2rem;
  border-bottom: 1px solid #27272a;
  background: #0e0e10;
}
.session-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.session-meta-cell--wide {
  flex: 1 1 100%;
}
.session-meta-label {
  font-size: var(--font-sm);
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.session-meta-value {
  font-size: var(--font-sm);
  color: #a1a1aa;
}
.session-meta-value.mono { font-family: monospace; font-size: var(--font-mono-label); word-break: break-all; }

/* Status pill */
.session-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: var(--font-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.session-status--active  { background: rgba(120,220,150,0.15); color: rgb(120,220,150); }
.session-status--stale   { background: rgba(220,180,80,0.15);  color: rgb(220,180,80);  }
.session-status--killed,
.session-status--ended   { background: rgba(180,180,180,0.10); color: rgb(180,180,180); }

/* Spirit handle pill in hero (warm color, distinct from entity) */
.session-hero-spirit-handle {
  font-weight: 600;
  color: rgba(220, 180, 100, 0.95);
  text-decoration: none;
}
.session-hero-spirit-handle:hover { text-decoration: underline; }
.session-hero-entity { font-weight: 600; text-decoration: none; }
.session-hero-entity:hover { text-decoration: underline; }

/* ── Rate limit bar bands ── */
.session-quota-bar--ok     { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.session-quota-bar--warn   { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.session-quota-bar--danger { background: linear-gradient(90deg, #ef4444, #f87171); }

/* ── Entity nav link ── */
.session-hero-spirit { text-decoration: none; }
.session-hero-spirit:hover { opacity: 0.8; }

.session-missing {
  padding: 3rem 2rem;
  text-align: center;
}
.session-missing h2 { color: #e4e4e7; font-weight: 500; }
.session-missing .muted { color: #71717a; }

/* Archive transcript panel — appears below playback CTA on archived sessions */
.session-transcript {
	margin-top: 1.5rem;
	border-top: 1px solid var(--border, rgba(255,255,255,0.08));
	padding-top: 1.5rem;
}
.session-transcript-title {
	margin: 0 0 0.75rem 0;
	font-size: var(--font-h4);
	color: var(--text, #ddd);
}
.session-transcript-loading,
.session-transcript-error {
	color: var(--text-muted, #888);
	padding: 1rem 0;
}
.session-transcript-error { color: #f88; }
.session-transcript-review {
	background: var(--surface-2, rgba(255,255,255,0.04));
	border: 1px solid var(--border, rgba(255,255,255,0.08));
	border-radius: 6px;
	padding: 1.25rem 1.5rem;
	max-width: 640px;
}
.session-transcript-review p {
	margin: 0 0 0.6rem 0;
	font-size: var(--font-body);
	line-height: 1.55;
}
.session-transcript-review .session-transcript-tier {
	color: var(--accent, #c8a2ff);
	margin-top: 0.75rem;
}
.session-transcript-controls {
	color: var(--text-muted, #888);
	font-size: var(--font-sm);
	margin-bottom: 0.5rem;
}
.session-transcript-body {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	max-height: 80vh;
	overflow-y: auto;
	padding: 0.5rem 0;
	font-size: var(--font-body);
	line-height: 1.5;
}

/* Common event wrapper */
.t-event {
	font-family: var(--font-sans, system-ui, sans-serif);
}

/* Messages — chat bubbles */
.t-msg {
	display: grid;
	grid-template-columns: 7em 1fr;
	gap: 0.75rem;
	align-items: start;
}
.t-msg-gutter {
	text-align: right;
	font-size: var(--font-sm);
	padding-top: 0.4rem;
}
.t-msg-handle {
	font-weight: 600;
	color: var(--text, #ddd);
	text-transform: lowercase;
}
.t-msg-ts {
	color: var(--text-muted, #888);
	font-variant-numeric: tabular-nums;
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: var(--font-mono-label);
	margin-top: 2px;
}
.t-msg-bubble {
	background: var(--surface-2, rgba(255,255,255,0.04));
	border: 1px solid var(--border, rgba(255,255,255,0.08));
	border-radius: 8px;
	padding: 0.6rem 0.85rem;
	color: var(--text, #ddd);
	overflow-wrap: anywhere;
}
.t-msg-user .t-msg-handle  { color: #9fbfff; }
.t-msg-user .t-msg-bubble  { background: rgba(120, 160, 255, 0.06); border-color: rgba(120, 160, 255, 0.18); }
.t-msg-assistant .t-msg-handle { color: var(--accent, #c8a2ff); }

/* Thinking — collapsed muted block */
.t-thinking {
	margin-left: 7.75rem;
	color: var(--text-muted, #888);
	font-style: italic;
	font-size: var(--font-body);
	background: rgba(255,255,255,0.02);
	border-left: 2px solid var(--border, rgba(255,255,255,0.1));
	padding: 0.3rem 0.6rem;
	border-radius: 0 4px 4px 0;
}
.t-thinking summary {
	cursor: pointer;
	font-weight: 500;
	color: var(--text-muted, #888);
}
.t-thinking-body { margin-top: 0.3rem; }

/* Subagent dispatch — prominent banner */
.t-subagent {
	display: flex;
	gap: 0.6rem;
	background: rgba(255, 200, 100, 0.06);
	border: 1px solid rgba(255, 200, 100, 0.2);
	border-radius: 8px;
	padding: 0.7rem 0.9rem;
	margin-left: 7.75rem;
}
.t-subagent-arrow {
	font-size: var(--font-h2);
	color: rgba(255, 200, 100, 0.9);
	line-height: 1;
}
.t-subagent-headline {
	color: var(--text, #ddd);
	font-size: var(--font-body);
}
.t-subagent-headline strong {
	color: rgba(255, 200, 100, 1);
	text-transform: lowercase;
}
.t-subagent-bg {
	margin-left: 0.5rem;
	font-size: var(--font-sm);
	padding: 0.05rem 0.45rem;
	background: rgba(255, 200, 100, 0.15);
	border-radius: 10px;
	color: rgba(255, 200, 100, 0.9);
	font-weight: 500;
}
.t-subagent-desc {
	margin-top: 0.25rem;
	color: var(--text-muted, #aaa);
	font-size: var(--font-body);
}
.t-subagent-prompt {
	margin-top: 0.4rem;
	font-size: var(--font-sm);
}
.t-subagent-prompt summary { cursor: pointer; color: var(--text-muted, #888); }
.t-subagent-prompt pre {
	margin-top: 0.3rem;
	padding: 0.4rem 0.6rem;
	background: rgba(0,0,0,0.25);
	border-radius: 4px;
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: var(--font-mono-body);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	max-height: 200px;
	overflow-y: auto;
}

/* Tool use & tool result — compact cards, collapsed by default */
.t-tool, .t-result {
	margin-left: 7.75rem;
	background: rgba(0,0,0,0.2);
	border: 1px solid var(--border, rgba(255,255,255,0.08));
	border-radius: 6px;
	padding: 0.4rem 0.7rem;
	font-size: var(--font-body);
}
.t-tool summary, .t-result summary {
	cursor: pointer;
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	color: var(--text-muted, #aaa);
	list-style: none;
}
.t-tool summary::-webkit-details-marker,
.t-result summary::-webkit-details-marker { display: none; }
.t-tool summary::before,
.t-result summary::before { content: '▸ '; color: var(--text-muted, #666); }
.t-tool[open] summary::before,
.t-result[open] summary::before { content: '▾ '; }
.t-tool-name {
	font-family: var(--font-mono, ui-monospace, monospace);
	color: #9f9;
	font-weight: 500;
}
.t-tool-summary, .t-result-summary {
	color: var(--text, #ccc);
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: var(--font-mono-label);
	overflow-wrap: anywhere;
}
.t-tool-input, .t-result-content {
	margin: 0.45rem 0 0 0;
	padding: 0.5rem 0.7rem;
	background: rgba(0,0,0,0.35);
	border-radius: 4px;
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: var(--font-mono-body);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	max-height: 320px;
	overflow-y: auto;
	color: var(--text, #ccc);
}
.t-result-error summary {
	color: #f88;
}

/* System — tiny muted line */
.t-system {
	margin-left: 7.75rem;
	color: var(--text-muted, #666);
	font-size: var(--font-sm);
	font-family: var(--font-mono, ui-monospace, monospace);
	font-style: italic;
}

/* Markdown-lite output inside messages/thinking */
.t-msg-bubble .t-code,
.t-thinking-body .t-code {
	display: block;
	margin: 0.4rem 0;
	padding: 0.5rem 0.7rem;
	background: rgba(0,0,0,0.35);
	border-radius: 4px;
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: 0.85em;
	white-space: pre-wrap;
	overflow-x: auto;
}
.t-msg-bubble .t-inline,
.t-thinking-body .t-inline {
	background: rgba(255,255,255,0.06);
	padding: 0.05em 0.35em;
	border-radius: 3px;
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: 0.9em;
}

/* Aggregate stats panel */
.t-aggregate {
	background: rgba(255,255,255,0.02);
	border: 1px solid var(--border, rgba(255,255,255,0.06));
	border-radius: 6px;
	padding: 0.7rem 0.9rem;
	margin: 0.6rem 0 1rem 0;
	font-size: var(--font-sm);
}
.t-agg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 0.4rem 0.8rem;
	margin-bottom: 0.5rem;
}
.t-agg-cell {
	display: flex;
	flex-direction: column;
}
.t-agg-label {
	color: var(--text-muted, #888);
	font-size: var(--font-sm);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.t-agg-value {
	color: var(--text, #ddd);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}
.t-agg-row {
	margin-top: 0.35rem;
	font-size: var(--font-sm);
	color: var(--text, #ddd);
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: baseline;
}
.t-agg-row code {
	background: rgba(255,255,255,0.04);
	padding: 0.05rem 0.4rem;
	border-radius: 3px;
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: 0.78em;
	color: var(--text, #ddd);
}
.t-agg-tool-pill, .t-agg-kind-pill {
	background: rgba(255,255,255,0.05);
	padding: 0.05rem 0.5rem;
	border-radius: 10px;
	color: var(--text, #ddd);
	font-size: var(--font-sm);
}
.t-agg-tool-pill em, .t-agg-kind-pill em {
	color: var(--text-muted, #888);
	margin-left: 0.3rem;
	font-style: normal;
}

/* Per-message assistant stats footer */
.t-msg-stats {
	margin-top: 0.4rem;
	font-size: var(--font-mono-label);
	color: var(--text-muted, #888);
	border-top: 1px dashed rgba(255,255,255,0.06);
	padding-top: 0.3rem;
}
.t-msg-stats summary {
	cursor: pointer;
	font-family: var(--font-mono, ui-monospace, monospace);
}
.t-msg-stats-body {
	margin-top: 0.4rem;
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.2rem 0.6rem;
}
.t-stat-row { display: contents; }
.t-stat-key { color: var(--text-muted, #666); font-family: var(--font-mono, ui-monospace, monospace); }
.t-stat-val { color: var(--text, #ccc); font-family: var(--font-mono, ui-monospace, monospace); overflow-wrap: anywhere; }

/* Bottom meta strip on events */
.t-event-meta-row,
.t-event-meta {
	margin-top: 0.3rem;
	margin-left: 7.75rem;
	font-size: var(--font-sm);
	color: var(--text-muted, #666);
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.t-event-meta-row code,
.t-event-meta code {
	background: rgba(255,255,255,0.03);
	padding: 0.05rem 0.4rem;
	border-radius: 3px;
	font-family: var(--font-mono, ui-monospace, monospace);
	color: var(--text-muted, #aaa);
}

/* New event kinds — terse but visible */
.t-snapshot, .t-permission-mode, .t-queue-op, .t-attachment, .t-last-prompt,
.t-summary, .t-unknown {
	margin-left: 7.75rem;
	background: rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 6px;
	padding: 0.4rem 0.7rem;
	font-size: var(--font-sm);
	color: var(--text-muted, #aaa);
}
.t-snapshot summary, .t-queue-op summary, .t-attachment summary,
.t-last-prompt summary, .t-summary summary, .t-unknown summary,
.t-system summary {
	cursor: pointer;
	font-family: var(--font-mono, ui-monospace, monospace);
	color: var(--text, #ccc);
}
.t-snapshot pre, .t-queue-op pre, .t-attachment pre, .t-unknown pre {
	margin: 0.4rem 0 0 0;
	padding: 0.5rem 0.7rem;
	background: rgba(0,0,0,0.35);
	border-radius: 4px;
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: var(--font-mono-body);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	max-height: 320px;
	overflow-y: auto;
	color: var(--text, #ccc);
}
.t-permission-mode {
	color: var(--text, #ddd);
	background: rgba(120, 200, 255, 0.05);
	border-color: rgba(120, 200, 255, 0.15);
}
.t-permission-mode strong {
	color: rgba(120, 200, 255, 1);
}
.t-summary-compact {
	background: rgba(200, 162, 255, 0.05);
	border-color: rgba(200, 162, 255, 0.15);
}
.t-summary-compact summary {
	color: var(--accent, #c8a2ff);
}
.t-system {
	margin-left: 7.75rem;
	background: rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 6px;
	padding: 0.4rem 0.7rem;
	font-size: var(--font-sm);
	color: var(--text-muted, #888);
	font-style: normal;
}
.t-system-text {
	margin-top: 0.3rem;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* Raw JSONL toggle on every event */
.t-event-raw {
	margin-top: 0.3rem;
	margin-left: 7.75rem;
	font-size: var(--font-sm);
}
.t-event-raw summary {
	cursor: pointer;
	color: var(--text-muted, #666);
	font-family: var(--font-mono, ui-monospace, monospace);
}
.t-event-raw[open] summary { color: var(--text-muted, #aaa); }
.t-event-raw pre {
	margin: 0.3rem 0 0 0;
	padding: 0.5rem 0.7rem;
	background: rgba(0,0,0,0.4);
	border-radius: 4px;
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: var(--font-mono-label);
	line-height: 1.45;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	max-height: 400px;
	overflow-y: auto;
	color: var(--text-muted, #888);
}

.throne-panel {
	margin-top: 2rem;
	border: 1px solid var(--theme-border, rgba(255,255,255,0.1));
	border-radius: 6px;
	background: var(--theme-bg-raised, rgba(255,255,255,0.03));
	overflow: hidden;
}

.throne-panel-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--theme-border, rgba(255,255,255,0.08));
	background: var(--theme-bg-subtle, rgba(0,0,0,0.15));
}

.throne-panel-crown {
	font-size: 1rem;
	opacity: 0.8;
}

.throne-panel-title {
	font-weight: 600;
	font-size: var(--font-body);
	color: var(--theme-fg, #e2e8f0);
}

.throne-panel-hint {
	margin-left: auto;
	font-size: var(--font-sm);
	opacity: 0.45;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* Turn list */
.throne-turns {
	padding: 0.75rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-height: 480px;
	overflow-y: auto;
}

.throne-turn {
	display: grid;
	grid-template-columns: 6rem 1fr;
	gap: 0.5rem;
	align-items: start;
}

.throne-turn-label {
	font-size: var(--font-sm);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.5;
	padding-top: 0.15rem;
	text-align: right;
}

.throne-turn--user .throne-turn-label {
	color: var(--kingdom-accent, #60a5fa);
	opacity: 0.7;
}

.throne-turn--assistant .throne-turn-label {
	color: var(--theme-fg, #94a3b8);
}

.throne-turn-text {
	font-size: var(--font-body);
	line-height: 1.6;
	color: var(--theme-fg, #e2e8f0);
	word-break: break-word;
}

/* Streaming state */
.throne-turn--streaming .throne-turn-text {
	opacity: 0.85;
}

.throne-cursor {
	display: inline-block;
	animation: throne-blink 1s step-end infinite;
	margin-left: 1px;
	opacity: 0.7;
}

@keyframes throne-blink {
	0%, 100% { opacity: 0.7; }
	50%       { opacity: 0; }
}

/* Inline code and code blocks */
.throne-turn-text code,
.throne-turn-text .t-inline {
	font-family: monospace;
	font-size: 0.82em;
	background: var(--theme-code-bg, rgba(0,0,0,0.3));
	padding: 0.1em 0.3em;
	border-radius: 3px;
}

.throne-code {
	font-family: monospace;
	font-size: 0.8em;
	background: var(--theme-code-bg, rgba(0,0,0,0.35));
	padding: 0.6rem 0.8rem;
	border-radius: 4px;
	overflow-x: auto;
	white-space: pre;
	margin: 0.4rem 0;
}

/* Error */
.throne-error {
	margin: 0 1rem 0.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	font-size: var(--font-sm);
	color: var(--theme-danger, #f87171);
	background: rgba(248,113,113,0.08);
	border: 1px solid rgba(248,113,113,0.2);
}

/* Input form */
.throne-form {
	padding: 0.75rem 1rem;
	border-top: 1px solid var(--theme-border, rgba(255,255,255,0.08));
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.throne-input {
	width: 100%;
	background: var(--theme-input-bg, rgba(0,0,0,0.25));
	border: 1px solid var(--theme-border, rgba(255,255,255,0.12));
	border-radius: 4px;
	color: var(--theme-fg, #e2e8f0);
	font-size: var(--font-body);
	line-height: 1.5;
	padding: 0.6rem 0.75rem;
	resize: vertical;
	font-family: inherit;
	box-sizing: border-box;
}

.throne-input:focus {
	outline: none;
	border-color: var(--kingdom-accent, #60a5fa);
}

.throne-input:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.throne-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}

.throne-submit {
	background: var(--kingdom-accent, #3b82f6);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 0.45rem 1.1rem;
	font-size: var(--font-body);
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s;
}

.throne-submit:hover:not(:disabled) {
	opacity: 0.88;
}

.throne-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Fresh session button — secondary ghost with amber/warm accent to distinguish from Send */
.throne-fresh {
	background: transparent;
	color: var(--throne-fresh-color, #f59e0b);
	border: 1px solid var(--throne-fresh-border, rgba(245,158,11,0.35));
	border-radius: 4px;
	padding: 0.45rem 1.0rem;
	font-size: var(--font-body);
	font-weight: 500;
	cursor: pointer;
	transition: opacity 0.15s, border-color 0.15s, color 0.15s;
}

.throne-fresh:hover:not(:disabled) {
	border-color: var(--throne-fresh-color, #f59e0b);
	color: var(--throne-fresh-color, #f59e0b);
	opacity: 0.88;
}

.throne-fresh:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Cancel button — appears mid-stream, destructive-neutral tone */
.throne-cancel {
	background: transparent;
	color: var(--theme-fg-muted, #94a3b8);
	border: 1px solid var(--theme-border, rgba(255,255,255,0.15));
	border-radius: 4px;
	padding: 0.45rem 0.9rem;
	font-size: var(--font-body);
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.throne-cancel:hover {
	border-color: var(--theme-danger, #f87171);
	color: var(--theme-danger, #f87171);
}

/* Mode indicator — muted status line shown during streaming */
.throne-mode-indicator {
	font-size: var(--font-sm);
	color: var(--theme-fg-muted, #64748b);
	opacity: 0.7;
	letter-spacing: 0.02em;
	font-style: italic;
}

/* Interrupted turn tag */
.throne-interrupted-tag {
	font-size: 0.78em;
	opacity: 0.55;
	margin-left: 0.4em;
}

/* Fresh-mode result notice */
.throne-fresh-notice {
	margin: 0 1rem 0.5rem;
	padding: 0.45rem 0.75rem;
	border-radius: 4px;
	font-size: var(--font-sm);
	color: var(--theme-fg-muted, #94a3b8);
	background: rgba(96,165,250,0.06);
	border: 1px solid rgba(96,165,250,0.18);
}

.throne-fresh-link {
	color: var(--kingdom-accent, #60a5fa);
	text-decoration: underline;
	font-family: monospace;
	font-size: 0.8em;
	word-break: break-all;
}

/* Fork button — violet/branching accent */
.throne-fork-btn {
	background: transparent;
	color: var(--throne-fork-color, #a78bfa);
	border: 1px solid var(--throne-fork-border, rgba(167,139,250,0.35));
	border-radius: 4px;
	padding: 0.45rem 1.0rem;
	font-size: var(--font-body);
	font-weight: 500;
	cursor: pointer;
	transition: opacity 0.15s, border-color 0.15s, color 0.15s;
}

.throne-fork-btn:hover:not(:disabled) {
	border-color: var(--throne-fork-color, #a78bfa);
	color: var(--throne-fork-color, #a78bfa);
	opacity: 0.88;
}

.throne-fork-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Fork pick list — appears above input when fork button is clicked */
.throne-fork-picker {
	padding: 0.6rem 1rem;
	border-top: 1px solid var(--theme-border, rgba(255,255,255,0.08));
	background: var(--theme-bg-subtle, rgba(0,0,0,0.12));
}

.throne-fork-picker-label {
	font-size: var(--font-sm);
	color: var(--theme-fg-muted, #94a3b8);
	margin-bottom: 0.4rem;
	font-style: italic;
}

.throne-fork-pick-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 200px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.throne-fork-pick-item {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	padding: 0.3rem 0.5rem;
	border-radius: 3px;
	cursor: pointer;
	transition: background 0.1s;
}

.throne-fork-pick-item:hover,
.throne-fork-pick-item--selected {
	background: rgba(167,139,250,0.1);
}

.throne-fork-pick-time {
	font-size: var(--font-sm);
	font-family: monospace;
	color: var(--throne-fork-color, #a78bfa);
	opacity: 0.8;
	white-space: nowrap;
	flex-shrink: 0;
}

.throne-fork-pick-snippet {
	font-size: var(--font-sm);
	color: var(--theme-fg, #e2e8f0);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0.85;
}

/* Fork point badge — shown when a point is picked */
.throne-fork-point-badge {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.75rem;
	margin: 0 1rem 0;
	background: rgba(167,139,250,0.08);
	border: 1px solid rgba(167,139,250,0.25);
	border-radius: 4px;
	font-size: var(--font-sm);
	color: var(--theme-fg-muted, #94a3b8);
}

.throne-fork-point-time {
	font-family: monospace;
	color: var(--throne-fork-color, #a78bfa);
	font-size: var(--font-sm);
}

.throne-fork-point-snippet {
	color: var(--theme-fg, #e2e8f0);
	font-style: italic;
	opacity: 0.75;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 30ch;
}

.throne-fork-point-clear {
	margin-left: auto;
	background: none;
	border: none;
	color: var(--theme-fg-muted, #94a3b8);
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	padding: 0 0.15rem;
	opacity: 0.7;
	flex-shrink: 0;
}

.throne-fork-point-clear:hover {
	opacity: 1;
	color: var(--theme-danger, #f87171);
}

/* Fork session notice */
.throne-fork-notice {
	margin: 0 1rem 0.5rem;
	padding: 0.45rem 0.75rem;
	border-radius: 4px;
	font-size: var(--font-sm);
	color: var(--theme-fg-muted, #94a3b8);
	background: rgba(167,139,250,0.06);
	border: 1px solid rgba(167,139,250,0.18);
}

.throne-fork-link {
	color: var(--throne-fork-color, #a78bfa);
	text-decoration: underline;
	font-family: monospace;
	font-size: 0.8em;
	word-break: break-all;
}

/* ── Three-state variants ─────────────────────────────────────────────────── */

.throne-panel--ongoing,
.throne-panel--pending {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
	border-radius: 8px;
	padding: 1.1rem 1.4rem;
	margin-top: 1.5rem;
}
.throne-panel--ongoing .throne-panel-header,
.throne-panel--pending .throne-panel-header {
	margin-bottom: 0.5rem;
}
.throne-panel-body {
	margin: 0;
	font-size: var(--font-body);
	line-height: 1.55;
	color: var(--text, #cfcfd5);
	max-width: 60ch;
}
.throne-panel--ongoing .throne-panel-crown {
	color: rgba(120, 200, 255, 1);
}
.throne-panel--ongoing .throne-panel-title {
	color: rgba(120, 200, 255, 1);
}
.throne-panel--pending .throne-panel-crown {
	color: var(--text-muted, #888);
}
.throne-panel--pending .throne-panel-title {
	color: var(--text-muted, #aaa);
}

.e-explorer-address-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 0.5rem);
  padding: var(--space-md, 1rem);
  background: var(--surface-1, #fff);
  border: 1px solid var(--border-subtle, #e0e0e0);
  border-radius: var(--radius-md, 6px);
  width: 100%;
  box-sizing: border-box;
}

.e-explorer-address-card--retired {
  opacity: 0.75;
  border-color: var(--color-warning, #f59e0b);
}

.e-explorer-address-card-identity {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
}

.e-explorer-address-card-avatar {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
}

.e-explorer-address-card-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full, 50%);
  object-fit: cover;
}

.e-explorer-address-card-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-muted, #c0c0c0);
  border-radius: var(--radius-full, 50%);
}

.e-explorer-address-card-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs, 0.25rem);
}

.e-explorer-address-card-name {
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary, inherit);
}

.e-explorer-address-card-kingdom {
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--text-secondary, #666);
}

.e-explorer-address-card-badge {
  display: inline-block;
  padding: 0.1em 0.5em;
  border-radius: var(--radius-sm, 3px);
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: var(--font-weight-medium, 500);
}

.e-explorer-address-card-badge--stale {
  background: var(--color-warning-bg, #fef3c7);
  color: var(--color-warning, #b45309);
}

.e-explorer-address-card-badge--retired {
  background: var(--color-error-bg, #fee2e2);
  color: var(--color-error, #b91c1c);
}

.e-explorer-address-card-alliances {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs, 0.25rem);
}

.e-explorer-address-card-alliance-badge {
  padding: 0.1em 0.5em;
  border-radius: var(--radius-sm, 3px);
  background: var(--color-accent-bg, #eff6ff);
  color: var(--color-accent, #1d4ed8);
  font-size: var(--font-size-xs, 0.75rem);
}

.e-explorer-address-card-sigchain {
  font-size: var(--font-size-xs, 0.75rem);
}

.e-explorer-address-card-sigchain-link {
  color: var(--color-link, #2563eb);
  font-family: var(--font-mono, monospace);
}

.e-explorer-address-card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
  flex-wrap: wrap;
  padding-top: var(--space-xs, 0.25rem);
  border-top: 1px solid var(--border-subtle, #e0e0e0);
}

.e-explorer-address-card-address-copy {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-secondary, #666);
}

.e-explorer-address-card-balance {
  margin-left: auto;
  font-weight: var(--font-weight-medium, 500);
  color: var(--text-primary, inherit);
}

.e-explorer-address-card-loading,
.e-explorer-address-card-empty {
  color: var(--text-secondary, #666);
  font-size: var(--font-size-sm, 0.875rem);
  padding: var(--space-sm, 0.5rem) 0;
}

.e-explorer-address-taint-summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs, 0.25rem);
  font-size: var(--font-size-sm, 0.875rem);
  vertical-align: middle;
}

.e-explorer-address-taint-summary-avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--radius-full, 50%);
  object-fit: cover;
  flex-shrink: 0;
}

.e-explorer-address-taint-summary-name {
  font-weight: var(--font-weight-medium, 500);
  color: var(--text-primary, inherit);
}

.e-explorer-address-taint-summary-kingdom {
  color: var(--text-secondary, #666);
  font-size: var(--font-size-xs, 0.75rem);
}

.e-explorer-address-taint-summary-indicator {
  font-size: var(--font-size-xs, 0.75rem);
  padding: 0 0.25em;
  border-radius: var(--radius-sm, 3px);
  font-weight: var(--font-weight-bold, 700);
}

.e-explorer-address-taint-summary-indicator--stale {
  background: var(--color-warning-bg, #fef3c7);
  color: var(--color-warning, #b45309);
}

.e-explorer-address-taint-summary-indicator--retired {
  background: var(--color-error-bg, #fee2e2);
  color: var(--color-error, #b91c1c);
}

.e-explorer-address-taint-summary--bare {
  font-family: var(--font-mono, monospace);
  color: var(--text-secondary, #666);
}

.e-explorer-stake-lifecycle-indicator {
  display: inline-block;
  padding: 0.15em 0.65em;
  border-radius: var(--radius-sm, 3px);
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: var(--font-weight-semibold, 600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.e-explorer-stake-lifecycle-indicator--staked {
  background: var(--color-info-bg, #dbeafe);
  color: var(--color-info, #1d4ed8);
}

.e-explorer-stake-lifecycle-indicator--active {
  background: var(--color-success-bg, #d1fae5);
  color: var(--color-success, #065f46);
}

.e-explorer-stake-lifecycle-indicator--redeemable {
  background: var(--color-warning-bg, #fef3c7);
  color: var(--color-warning, #b45309);
}

.e-explorer-stake-lifecycle-indicator--redeemed {
  background: var(--surface-2, #f5f5f5);
  color: var(--text-secondary, #666);
}

.e-explorer-stake-lifecycle-indicator--restaked {
  background: var(--color-accent-bg, #eff6ff);
  color: var(--color-accent, #1d4ed8);
}

.e-explorer-stake-lifecycle-indicator--unknown {
  background: var(--surface-2, #f5f5f5);
  color: var(--text-muted, #999);
}

.e-explorer-stake-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 0.5rem);
  padding: var(--space-md, 1rem);
  background: var(--surface-1, #fff);
  border: 1px solid var(--border-subtle, #e0e0e0);
  border-radius: var(--radius-md, 6px);
  width: 100%;
  box-sizing: border-box;
}

.e-explorer-stake-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
}

.e-explorer-stake-card-chain {
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-secondary, #666);
  margin-left: auto;
}

.e-explorer-stake-card-amount {
  font-size: var(--font-size-xl, 1.25rem);
  font-weight: var(--font-weight-bold, 700);
  color: var(--text-primary, inherit);
}

.e-explorer-stake-card-amount-unit {
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--text-secondary, #666);
  margin-left: 0.25em;
}

.e-explorer-stake-card-row {
  display: flex;
  gap: var(--space-sm, 0.5rem);
  font-size: var(--font-size-sm, 0.875rem);
}

.e-explorer-stake-card-label {
  color: var(--text-secondary, #666);
  min-width: 5rem;
  flex-shrink: 0;
}

.e-explorer-stake-card-weight {
  font-weight: var(--font-weight-semibold, 600);
  color: var(--color-success, #065f46);
}

.e-explorer-stake-card-lineage {
  display: flex;
  align-items: center;
  gap: var(--space-xs, 0.25rem);
  font-size: var(--font-size-xs, 0.75rem);
  padding-top: var(--space-xs, 0.25rem);
  border-top: 1px solid var(--border-subtle, #e0e0e0);
}

.e-explorer-stake-card-lineage-link {
  font-family: var(--font-mono, monospace);
  color: var(--color-link, #2563eb);
}

.e-explorer-stake-card-lineage-status {
  color: var(--text-muted, #999);
}

.e-explorer-stake-card-staker {
  padding-top: var(--space-xs, 0.25rem);
  border-top: 1px solid var(--border-subtle, #e0e0e0);
}

.e-explorer-stake-card-loading,
.e-explorer-stake-card-empty {
  color: var(--text-secondary, #666);
  font-size: var(--font-size-sm, 0.875rem);
}

.e-explorer-stake-portfolio {
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 1rem);
  width: 100%;
}

.e-explorer-stake-portfolio-header {
  padding-bottom: var(--space-sm, 0.5rem);
  border-bottom: 1px solid var(--border-subtle, #e0e0e0);
}

.e-explorer-stake-portfolio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm, 0.875rem);
}

.e-explorer-stake-portfolio-th {
  text-align: left;
  padding: var(--space-xs, 0.25rem) var(--space-sm, 0.5rem);
  border-bottom: 2px solid var(--border-default, #ccc);
  color: var(--text-secondary, #666);
  font-weight: var(--font-weight-medium, 500);
}

.e-explorer-stake-portfolio-row td {
  padding: var(--space-xs, 0.25rem) var(--space-sm, 0.5rem);
  border-bottom: 1px solid var(--border-subtle, #e0e0e0);
  vertical-align: middle;
}

.e-explorer-stake-portfolio-row--historical td {
  color: var(--text-secondary, #666);
}

.e-explorer-stake-portfolio-total td {
  padding: var(--space-sm, 0.5rem);
  border-top: 2px solid var(--border-default, #ccc);
  background: var(--surface-2, #f9f9f9);
}

.e-explorer-stake-portfolio-weight {
  font-weight: var(--font-weight-semibold, 600);
  color: var(--color-success, #065f46);
}

.e-explorer-stake-portfolio-note {
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-muted, #999);
  padding: var(--space-xs, 0.25rem);
  border-left: 2px solid var(--border-subtle, #e0e0e0);
}

.e-explorer-stake-portfolio-history {
  font-size: var(--font-size-sm, 0.875rem);
}

.e-explorer-stake-portfolio-history-toggle {
  cursor: pointer;
  color: var(--color-link, #2563eb);
  list-style: none;
}

.e-explorer-stake-portfolio-loading,
.e-explorer-stake-portfolio-empty {
  color: var(--text-secondary, #666);
}

.e-explorer-vote-tally-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs, 0.25rem);
  width: 100%;
}

.e-explorer-vote-tally-bar-track {
  display: flex;
  height: 0.75rem;
  border-radius: var(--radius-sm, 3px);
  overflow: hidden;
  background: var(--surface-2, #f5f5f5);
}

.e-explorer-vote-tally-bar-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.e-explorer-vote-tally-bar-segment--yes {
  background: var(--color-success, #10b981);
}

.e-explorer-vote-tally-bar-segment--no {
  background: var(--color-error, #ef4444);
}

.e-explorer-vote-tally-bar-segment--abstain {
  background: var(--color-muted, #d1d5db);
}

.e-explorer-vote-tally-bar-legend {
  display: flex;
  gap: var(--space-md, 1rem);
  flex-wrap: wrap;
  font-size: var(--font-size-xs, 0.75rem);
}

.e-explorer-vote-tally-bar-legend-item {
  display: flex;
  align-items: center;
  gap: 0.25em;
}

.e-explorer-vote-tally-bar-legend-item--yes {
  color: var(--color-success, #065f46);
}

.e-explorer-vote-tally-bar-legend-item--no {
  color: var(--color-error, #b91c1c);
}

.e-explorer-vote-tally-bar-legend-item--abstain {
  color: var(--text-secondary, #666);
}

.e-explorer-vote-tally-bar-final {
  margin-left: auto;
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary, inherit);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.e-explorer-vote-tally-bar-empty {
  color: var(--text-secondary, #666);
  font-size: var(--font-size-sm, 0.875rem);
}

.e-explorer-vote-ballot-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 0.5rem);
  padding: var(--space-md, 1rem);
  background: var(--surface-1, #fff);
  border: 1px solid var(--border-subtle, #e0e0e0);
  border-radius: var(--radius-md, 6px);
  width: 100%;
  box-sizing: border-box;
}

.e-explorer-vote-ballot-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
}

.e-explorer-vote-ballot-card-choice {
  padding: 0.2em 0.75em;
  border-radius: var(--radius-sm, 3px);
  font-weight: var(--font-weight-semibold, 600);
  font-size: var(--font-size-sm, 0.875rem);
}

.e-explorer-vote-ballot-card-choice--yes {
  background: var(--color-success-bg, #d1fae5);
  color: var(--color-success, #065f46);
}

.e-explorer-vote-ballot-card-choice--no {
  background: var(--color-error-bg, #fee2e2);
  color: var(--color-error, #b91c1c);
}

.e-explorer-vote-ballot-card-choice--abstain {
  background: var(--surface-2, #f5f5f5);
  color: var(--text-secondary, #666);
}

.e-explorer-vote-ballot-card-status {
  font-size: var(--font-size-xs, 0.75rem);
  padding: 0.1em 0.5em;
  border-radius: var(--radius-sm, 3px);
}

.e-explorer-vote-ballot-card-status--valid {
  background: var(--color-success-bg, #d1fae5);
  color: var(--color-success, #065f46);
}

.e-explorer-vote-ballot-card-status--superseded {
  background: var(--surface-2, #f5f5f5);
  color: var(--text-muted, #999);
}

.e-explorer-vote-ballot-card-row {
  display: flex;
  gap: var(--space-sm, 0.5rem);
  font-size: var(--font-size-sm, 0.875rem);
}

.e-explorer-vote-ballot-card-label {
  color: var(--text-secondary, #666);
  min-width: 5rem;
  flex-shrink: 0;
}

.e-explorer-vote-ballot-card-proposal-link {
  font-family: var(--font-mono, monospace);
  color: var(--color-link, #2563eb);
}

.e-explorer-vote-ballot-card-weight {
  font-weight: var(--font-weight-semibold, 600);
  color: var(--color-success, #065f46);
}

.e-explorer-vote-ballot-card-superseded {
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-muted, #999);
  padding: var(--space-xs, 0.25rem);
  border-left: 2px solid var(--color-warning, #f59e0b);
  margin-top: var(--space-xs, 0.25rem);
}

/* vote-window-indicator */
.e-explorer-vote-window-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
  font-size: var(--font-size-xs, 0.75rem);
}

.e-explorer-vote-window-indicator-label {
  color: var(--text-secondary, #666);
}

.e-explorer-vote-window-indicator-status--valid {
  color: var(--color-success, #065f46);
}

.e-explorer-vote-window-indicator-status--late-rejected {
  color: var(--color-error, #b91c1c);
}

.e-explorer-vote-window-indicator-close {
  color: var(--text-muted, #999);
  margin-left: auto;
}

.e-explorer-vote-ballot-card-loading,
.e-explorer-vote-ballot-card-empty {
  color: var(--text-secondary, #666);
  font-size: var(--font-size-sm, 0.875rem);
}

.e-explorer-proposal-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 0.5rem);
  padding: var(--space-md, 1rem);
  background: var(--surface-1, #fff);
  border: 1px solid var(--border-subtle, #e0e0e0);
  border-radius: var(--radius-md, 6px);
  width: 100%;
  box-sizing: border-box;
}

.e-explorer-proposal-summary-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
}

.e-explorer-proposal-summary-cid {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-secondary, #666);
}

.e-explorer-proposal-summary-badge {
  padding: 0.1em 0.5em;
  border-radius: var(--radius-sm, 3px);
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: var(--font-weight-semibold, 600);
}

.e-explorer-proposal-summary-badge--live {
  background: var(--color-success-bg, #d1fae5);
  color: var(--color-success, #065f46);
}

.e-explorer-proposal-summary-badge--final {
  background: var(--surface-2, #f5f5f5);
  color: var(--text-secondary, #666);
}

.e-explorer-proposal-summary-title {
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary, inherit);
}

.e-explorer-proposal-summary-description {
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--text-secondary, #666);
  line-height: 1.5;
}

.e-explorer-proposal-summary-empty {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm, 0.5rem);
  align-items: center;
}

.e-explorer-proposal-summary-unresolved {
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-muted, #999);
}

.e-explorer-proposal-summary-loading {
  color: var(--text-secondary, #666);
  font-size: var(--font-size-sm, 0.875rem);
}

.e-explorer-proposal-tally-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 1rem);
  width: 100%;
}

.e-explorer-proposal-tally-panel-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
}

.e-explorer-proposal-tally-panel-finalized {
  font-weight: var(--font-weight-semibold, 600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--font-size-xs, 0.75rem);
}

.e-explorer-proposal-tally-panel-live {
  font-weight: var(--font-weight-semibold, 600);
  color: var(--color-success, #065f46);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--font-size-xs, 0.75rem);
}

.e-explorer-proposal-tally-panel-ballot-count {
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-secondary, #666);
  margin-left: auto;
}

.e-explorer-proposal-tally-panel-breakdown {
  font-size: var(--font-size-sm, 0.875rem);
}

.e-explorer-proposal-tally-panel-breakdown-toggle {
  cursor: pointer;
  color: var(--color-link, #2563eb);
  list-style: none;
}

.e-explorer-proposal-tally-panel-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs, 0.25rem);
  margin-top: var(--space-sm, 0.5rem);
}

.e-explorer-proposal-tally-panel-ballot-row {
  display: flex;
  gap: var(--space-sm, 0.5rem);
  align-items: center;
  padding: var(--space-xs, 0.25rem) 0;
  border-bottom: 1px solid var(--border-subtle, #e0e0e0);
}

.e-explorer-proposal-tally-panel-ballot-row--superseded {
  opacity: 0.55;
  text-decoration: line-through;
}

.e-explorer-proposal-tally-panel-ballot-choice {
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm, 3px);
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: var(--font-weight-semibold, 600);
}

.e-explorer-proposal-tally-panel-ballot-choice--yes { background: var(--color-success-bg, #d1fae5); color: var(--color-success, #065f46); }
.e-explorer-proposal-tally-panel-ballot-choice--no  { background: var(--color-error-bg, #fee2e2);   color: var(--color-error, #b91c1c);   }
.e-explorer-proposal-tally-panel-ballot-choice--abstain { background: var(--surface-2, #f5f5f5); color: var(--text-secondary, #666); }

.e-explorer-proposal-tally-panel-ballot-address {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-secondary, #666);
}

.e-explorer-proposal-tally-panel-ballot-weight {
  font-weight: var(--font-weight-semibold, 600);
  color: var(--color-success, #065f46);
}

.e-explorer-proposal-tally-panel-ballot-block {
  margin-left: auto;
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-muted, #999);
}

.e-explorer-proposal-tally-panel-superseded {
  margin-top: var(--space-sm, 0.5rem);
  font-size: var(--font-size-xs, 0.75rem);
}

.e-explorer-proposal-tally-panel-loading,
.e-explorer-proposal-tally-panel-empty {
  color: var(--text-secondary, #666);
  font-size: var(--font-size-sm, 0.875rem);
}

.e-explorer-alliance-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 0.5rem);
  padding: var(--space-md, 1rem);
  background: var(--surface-1, #fff);
  border: 1px solid var(--border-subtle, #e0e0e0);
  border-radius: var(--radius-md, 6px);
  width: 100%;
  box-sizing: border-box;
}

.e-explorer-alliance-card-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm, 0.5rem);
}

.e-explorer-alliance-card-id {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-secondary, #666);
}

.e-explorer-alliance-card-name {
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary, inherit);
}

.e-explorer-alliance-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md, 1rem);
}

.e-explorer-alliance-card-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs, 0.25rem);
}

.e-explorer-alliance-card-stat-label {
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-secondary, #666);
}

.e-explorer-alliance-card-stat-value {
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: var(--font-weight-medium, 500);
  color: var(--text-primary, inherit);
}

.e-explorer-alliance-card-weight {
  color: var(--color-success, #065f46);
}

.e-explorer-alliance-card-footer {
  padding-top: var(--space-xs, 0.25rem);
  border-top: 1px solid var(--border-subtle, #e0e0e0);
}

.e-explorer-alliance-card-link {
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--color-link, #2563eb);
}

.e-explorer-alliance-card-loading,
.e-explorer-alliance-card-empty {
  color: var(--text-secondary, #666);
  font-size: var(--font-size-sm, 0.875rem);
}

.e-explorer-alliance-two-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  border: 1px solid var(--border-subtle, #e0e0e0);
  border-radius: var(--radius-md, 6px);
  overflow: hidden;
}

.e-explorer-alliance-two-panel-sovereign {
  padding: var(--space-md, 1rem);
  background: var(--surface-1, #fff);
}

.e-explorer-alliance-two-panel-advisory {
  padding: var(--space-md, 1rem);
  background: var(--surface-2, #f9f9f9);
}

.e-explorer-alliance-two-panel-divider {
  height: 3px;
  background: var(--border-default, #ccc);
}

.e-explorer-alliance-two-panel-section-header {
  margin-bottom: var(--space-sm, 0.5rem);
}

.e-explorer-alliance-two-panel-section-label {
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: var(--font-weight-semibold, 600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15em 0.6em;
  border-radius: var(--radius-sm, 3px);
}

.e-explorer-alliance-two-panel-section-label--authoritative {
  background: var(--color-success-bg, #d1fae5);
  color: var(--color-success, #065f46);
}

.e-explorer-alliance-two-panel-section-label--advisory {
  background: var(--color-warning-bg, #fef3c7);
  color: var(--color-warning, #b45309);
}

.e-explorer-alliance-two-panel-pool-row {
  display: flex;
  gap: var(--space-lg, 1.5rem);
  flex-wrap: wrap;
}

.e-explorer-alliance-two-panel-pool-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs, 0.25rem);
}

.e-explorer-alliance-two-panel-pool-label {
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-secondary, #666);
}

.e-explorer-alliance-two-panel-pool-value {
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: var(--font-weight-medium, 500);
}

.e-explorer-alliance-two-panel-pool-weight {
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--color-success, #065f46);
}

.e-explorer-alliance-two-panel-tally-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs, 0.25rem);
}

.e-explorer-alliance-two-panel-tally-row {
  display: flex;
  gap: var(--space-md, 1rem);
  font-size: var(--font-size-sm, 0.875rem);
  align-items: center;
}

.e-explorer-alliance-two-panel-tally-kingdom {
  font-family: var(--font-mono, monospace);
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-secondary, #666);
  min-width: 8rem;
}

.e-explorer-alliance-two-panel-tally-yes    { color: var(--color-success, #065f46); }
.e-explorer-alliance-two-panel-tally-no     { color: var(--color-error, #b91c1c); }
.e-explorer-alliance-two-panel-tally-abstain { color: var(--text-secondary, #666); }

.e-explorer-alliance-two-panel-not-connected {
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--text-muted, #999);
  font-style: italic;
}

.e-explorer-alliance-two-panel-empty-section,
.e-explorer-alliance-two-panel-loading,
.e-explorer-alliance-two-panel-empty {
  color: var(--text-secondary, #666);
  font-size: var(--font-size-sm, 0.875rem);
  padding: var(--space-md, 1rem);
}

.e-explorer-membership-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 0.5rem);
  padding: var(--space-md, 1rem);
  background: var(--surface-1, #fff);
  border: 1px solid var(--border-subtle, #e0e0e0);
  border-radius: var(--radius-md, 6px);
  width: 100%;
  box-sizing: border-box;
}

.e-explorer-membership-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
}

.e-explorer-membership-card-status {
  padding: 0.15em 0.65em;
  border-radius: var(--radius-sm, 3px);
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: var(--font-weight-semibold, 600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.e-explorer-membership-card-status--active   { background: var(--color-success-bg, #d1fae5); color: var(--color-success, #065f46); }
.e-explorer-membership-card-status--expiring { background: var(--color-warning-bg, #fef3c7); color: var(--color-warning, #b45309); }
.e-explorer-membership-card-status--expired  { background: var(--surface-2, #f5f5f5); color: var(--text-secondary, #666); }
.e-explorer-membership-card-status--unknown  { background: var(--surface-2, #f5f5f5); color: var(--text-muted, #999); }

.e-explorer-membership-card-stake-ref {
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-secondary, #666);
  margin-left: auto;
}

.e-explorer-membership-card-link {
  font-family: var(--font-mono, monospace);
  color: var(--color-link, #2563eb);
}

.e-explorer-membership-card-row {
  display: flex;
  gap: var(--space-sm, 0.5rem);
  font-size: var(--font-size-sm, 0.875rem);
}

.e-explorer-membership-card-label {
  color: var(--text-secondary, #666);
  min-width: 6rem;
  flex-shrink: 0;
}

.e-explorer-membership-card-weight {
  font-weight: var(--font-weight-semibold, 600);
  color: var(--color-success, #065f46);
}

.e-explorer-membership-card-staker {
  padding-top: var(--space-xs, 0.25rem);
  border-top: 1px solid var(--border-subtle, #e0e0e0);
}

.e-explorer-membership-card-loading,
.e-explorer-membership-card-empty {
  color: var(--text-secondary, #666);
  font-size: var(--font-size-sm, 0.875rem);
}
.e-explorer-alliance-member-list { display: flex; flex-direction: column; gap: var(--space-xs, 0.25rem); width: 100%; }
.e-explorer-alliance-member-list-item { display: flex; gap: var(--space-sm, 0.5rem); align-items: center; padding: var(--space-xs, 0.25rem) 0; border-bottom: 1px solid var(--border-subtle, #e0e0e0); font-size: var(--font-size-sm, 0.875rem); }
.e-explorer-alliance-member-list-since { color: var(--text-muted, #999); font-size: var(--font-size-xs, 0.75rem); margin-left: auto; }
.e-explorer-alliance-member-list-active { color: var(--color-success, #065f46); font-size: var(--font-size-xs, 0.75rem); }
.e-explorer-alliance-member-list-inactive { color: var(--text-muted, #999); font-size: var(--font-size-xs, 0.75rem); }
.e-explorer-alliance-member-list-loading, .e-explorer-alliance-member-list-empty { color: var(--text-secondary, #666); font-size: var(--font-size-sm, 0.875rem); }
.e-explorer-predicate-tree { font-size: var(--font-size-sm, 0.875rem); width: 100%; }
.e-explorer-predicate-tree-root-result { font-size: var(--font-size-md, 1rem); font-weight: var(--font-weight-semibold, 600); margin-bottom: var(--space-sm, 0.5rem); }
.e-explorer-predicate-tree-result--pass { color: var(--color-success, #065f46); }
.e-explorer-predicate-tree-result--fail { color: var(--color-error, #b91c1c); }
.e-explorer-predicate-tree-node { display: flex; flex-wrap: wrap; gap: var(--space-xs, 0.25rem); align-items: baseline; padding: var(--space-xs, 0.25rem) 0; }
.e-explorer-predicate-tree-node--depth-1 { padding-left: 1.5rem; }
.e-explorer-predicate-tree-node--depth-2 { padding-left: 3rem; }
.e-explorer-predicate-tree-node-icon { font-weight: bold; width: 1rem; flex-shrink: 0; }
.e-explorer-predicate-tree-node-icon--pass { color: var(--color-success, #065f46); }
.e-explorer-predicate-tree-node-icon--fail { color: var(--color-error, #b91c1c); }
.e-explorer-predicate-tree-node-type { font-weight: var(--font-weight-medium, 500); font-family: var(--font-mono, monospace); }
.e-explorer-predicate-tree-node-reason { color: var(--text-secondary, #666); font-size: var(--font-size-xs, 0.75rem); }
.e-explorer-predicate-tree-children { width: 100%; }
.e-explorer-predicate-tree-empty { color: var(--text-secondary, #666); }
.e-explorer-chain-block-tail { display: flex; gap: var(--space-sm, 0.5rem); align-items: center; font-size: var(--font-size-sm, 0.875rem); }
.e-explorer-chain-block-tail-height { font-weight: var(--font-weight-semibold, 600); font-family: var(--font-mono, monospace); }
.e-explorer-chain-block-tail-stakes, .e-explorer-chain-block-tail-ballots { color: var(--text-secondary, #666); font-size: var(--font-size-xs, 0.75rem); }
.e-explorer-address-search { display: flex; gap: var(--space-sm, 0.5rem); width: 100%; }
.e-explorer-address-search-input { flex: 1; padding: var(--space-sm, 0.5rem); border: 1px solid var(--border-default, #ccc); border-radius: var(--radius-sm, 3px); font-family: var(--font-mono, monospace); font-size: var(--font-size-sm, 0.875rem); background: var(--surface-1, #fff); color: var(--text-primary, inherit); }
.e-explorer-address-search-btn { padding: var(--space-sm, 0.5rem) var(--space-md, 1rem); border: 1px solid var(--border-default, #ccc); border-radius: var(--radius-sm, 3px); cursor: pointer; background: var(--surface-2, #f5f5f5); color: var(--text-primary, inherit); font-size: var(--font-size-sm, 0.875rem); }
.e-explorer-kingdom-overview-panel { display: flex; flex-direction: column; gap: var(--space-sm, 0.5rem); padding: var(--space-md, 1rem); background: var(--surface-1, #fff); border: 1px solid var(--border-subtle, #e0e0e0); border-radius: var(--radius-md, 6px); width: 100%; box-sizing: border-box; }
.e-explorer-kingdom-overview-panel-header { display: flex; align-items: center; gap: var(--space-sm, 0.5rem); }
.e-explorer-kingdom-overview-panel-name { font-weight: var(--font-weight-semibold, 600); }
.e-explorer-kingdom-overview-panel-surface { font-size: var(--font-size-xs, 0.75rem); color: var(--text-muted, #999); margin-left: auto; }
.e-explorer-kingdom-overview-panel-pool { display: flex; gap: var(--space-md, 1rem); font-size: var(--font-size-sm, 0.875rem); align-items: center; }
.e-explorer-kingdom-overview-panel-chain { font-weight: var(--font-weight-medium, 500); min-width: 3rem; }
.e-explorer-kingdom-overview-panel-weight { color: var(--color-success, #065f46); font-weight: var(--font-weight-semibold, 600); }
.e-explorer-kingdom-overview-panel-empty { color: var(--text-secondary, #666); }
.e-explorer-alliance-pool-view-panel { display: flex; flex-direction: column; gap: var(--space-sm, 0.5rem); padding: var(--space-md, 1rem); background: var(--surface-1, #fff); border: 1px solid var(--border-subtle, #e0e0e0); border-radius: var(--radius-md, 6px); width: 100%; box-sizing: border-box; }
.e-explorer-alliance-pool-view-panel-header { font-weight: var(--font-weight-semibold, 600); }
.e-explorer-alliance-pool-view-panel-chain-row { display: flex; gap: var(--space-md, 1rem); font-size: var(--font-size-sm, 0.875rem); align-items: center; }
.e-explorer-alliance-pool-view-panel-chain { font-weight: var(--font-weight-medium, 500); min-width: 3rem; }
.e-explorer-alliance-pool-view-panel-weight { color: var(--color-success, #065f46); }
.e-explorer-alliance-pool-view-panel-kingdoms { color: var(--text-secondary, #666); margin-left: auto; font-size: var(--font-size-xs, 0.75rem); }
.e-explorer-alliance-pool-view-panel-loading, .e-explorer-alliance-pool-view-panel-empty { color: var(--text-secondary, #666); }
.e-explorer-stake-restaking-lineage { display: flex; align-items: center; gap: var(--space-xs, 0.25rem); font-size: var(--font-size-sm, 0.875rem); flex-wrap: wrap; }
.e-explorer-stake-restaking-lineage-node { font-family: var(--font-mono, monospace); }
.e-explorer-stake-restaking-lineage-node--parent, .e-explorer-stake-restaking-lineage-node--child { color: var(--color-link, #2563eb); }
.e-explorer-stake-restaking-lineage-node--current { font-weight: var(--font-weight-semibold, 600); color: var(--text-primary, inherit); }
.e-explorer-stake-restaking-lineage-arrow { color: var(--text-muted, #999); }
.e-explorer-mode-switcher { display: inline-flex; gap: 0; border: 1px solid var(--border-default, #ccc); border-radius: var(--radius-sm, 3px); overflow: hidden; }
.e-explorer-mode-switcher-btn { padding: var(--space-xs, 0.25rem) var(--space-md, 1rem); border: none; background: var(--surface-1, #fff); color: var(--text-secondary, #666); cursor: pointer; font-size: var(--font-size-sm, 0.875rem); }
.e-explorer-mode-switcher-btn + .e-explorer-mode-switcher-btn { border-left: 1px solid var(--border-default, #ccc); }
.e-explorer-mode-switcher-btn--active { background: var(--color-accent-bg, #eff6ff); color: var(--color-accent, #1d4ed8); font-weight: var(--font-weight-medium, 500); }

.access-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--bg-raised, #171717);
	border: 1px solid var(--border, rgba(255,255,255,0.07));
	border-radius: 8px;
	padding: 20px;
	margin: 12px 0;
}

.access-card-icon {
	font-size: 20px;
	color: var(--accent-dim, #9B7D35);
	flex-shrink: 0;
	margin-top: 2px;
	line-height: 1;
}

.access-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Phase 1b: community byline — Muse visual vocabulary */
.access-card-community {
	font-family: var(--font-mono, monospace);
	font-size: 11px;
	color: var(--slate, #4A5568);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 12px;
}

/* access-card-title replaces access-card-message — Muse R2 vocabulary */
.access-card-title {
	font-family: var(--font-body, 'Inter'), sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--text, #E8E6E1);
	margin: 0 0 8px;
}

/* legacy alias — kept for any template still referencing access-card-message */
.access-card-message {
	font-size: 13px;
	color: var(--text-dim, #A09E9A);
	line-height: 1.5;
	margin: 0;
}

.access-card-remediation {
	font-family: var(--font-body, 'Inter'), sans-serif;
	font-size: 14px;
	color: var(--slate-light, #718096);
	margin: 0 0 16px;
}

.access-card-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.access-card-cta {
	font-size: 12px;
	font-weight: 600;
	color: var(--accent, #C9A84C);
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: color 0.15s;
}
.access-card-cta:hover {
	color: var(--text, #E8E6E1);
}
.access-card-cta--secondary {
	color: var(--text-dim, #A09E9A);
	font-weight: 400;
}
.access-card-cta--secondary:hover {
	color: var(--text, #E8E6E1);
}

/* scorecard trigger wrapper inside the card */
.access-card-scorecard {
	font-size: 11px;
	color: var(--slate, #4A5568);
	font-family: var(--font-mono, monospace);
	display: flex;
	gap: 6px;
	align-items: center;
	margin-top: 2px;
}

.scorecard-label {
	color: var(--slate, #4A5568);
}

.scorecard-tier {
	color: var(--text-dim, #A09E9A);
	text-transform: lowercase;
}

.scorecard-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: none;
	color: var(--slate-light);
	font-family: var(--font-body, 'Inter'), sans-serif;
	font-size: 13px;
	padding: 8px 0;
	cursor: pointer;
	transition: color 0.15s;
}
.scorecard-toggle:hover { color: var(--text); }

.scorecard-toggle-chevron {
	font-size: 11px;
	color: var(--slate);
}

.scorecard-inline {
	margin-top: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.scorecard-header {
	display: flex;
	align-items: center;
}

.scorecard-community {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--slate);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.scorecard-section-label {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--slate);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
}

.scorecard-leaves {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.scorecard-leaf-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px solid var(--border);
}
.scorecard-leaf-row:last-child { border-bottom: none; }

.scorecard-leaf-type {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text);
}

.scorecard-leaf-state {
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.scorecard-leaf-row.not-held .scorecard-leaf-state    { color: var(--slate); }
.scorecard-leaf-row.undisclosed .scorecard-leaf-state { color: var(--accent-dim, var(--slate-light)); }
.scorecard-leaf-row.visible .scorecard-leaf-state     { color: var(--entity-accent, var(--accent)); }

.proximity-bar-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.proximity-bar {
	width: 100%;
	height: 3px;
	background: var(--border);
	border-radius: 2px;
	overflow: hidden;
}

.proximity-bar-fill {
	height: 100%;
	background: var(--entity-accent, var(--accent));
	transition: width 0.3s ease;
}

.proximity-bar-caption {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--slate-light);
}

.scorecard-me-link {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--entity-accent, var(--accent));
	text-decoration: none;
	align-self: flex-start;
}
.scorecard-me-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.activity-shell {
	max-width: 900px;
	margin: 0 auto;
	padding: 1.5rem 1rem;
}

.activity-view-header {
	margin-bottom: 1.5rem;
}

.activity-view-title {
	margin: 0 0 0.25rem;
}

.activity-view-note {
	margin: 0 0 0.25rem;
	opacity: 0.7;
}

.activity-view-count {
	font-size: 0.8em;
	opacity: 0.5;
}

.activity-session-stream {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.activity-session-row {
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 4px;
	padding: 0.6rem 0.8rem;
	background: rgba(255,255,255,0.03);
}

.activity-session-head {
	display: flex;
	gap: 0.75rem;
	align-items: baseline;
	flex-wrap: wrap;
	margin-bottom: 0.25rem;
}

.activity-session-entity {
	font-weight: 600;
	color: var(--entity-accent, var(--accent, inherit));
	text-decoration: none;
}

.activity-session-type {
	font-family: monospace;
	font-size: 0.8em;
	opacity: 0.8;
	background: rgba(255,255,255,0.06);
	padding: 0 0.3em;
	border-radius: 3px;
}

.activity-session-time {
	margin-left: auto;
	font-size: 0.78em;
	opacity: 0.5;
}

.activity-session-body {
	font-size: 0.9em;
	word-break: break-word;
}

.activity-session-meta {
	margin-top: 0.25rem;
	font-size: 0.78em;
	opacity: 0.6;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.activity-session-link {
	color: inherit;
	font-family: monospace;
}

.activity-session-metafields {
	margin-top: 0.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.activity-session-metafield {
	font-size: 0.75em;
	font-family: monospace;
	opacity: 0.55;
	background: rgba(255,255,255,0.04);
	padding: 0.1em 0.4em;
	border-radius: 3px;
}

.activity-session-metafield-key {
	opacity: 0.7;
}

.activity-empty {
	padding: 2rem 0;
	opacity: 0.6;
}

.activity-empty code {
	font-family: monospace;
	background: rgba(255,255,255,0.06);
	padding: 0.1em 0.4em;
	border-radius: 3px;
}

.benchmarks-aggregate-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: var(--text, #e0e0e0);
}

.benchmarks-aggregate-inner { width: 100%; }

.benchmarks-aggregate-header { margin-bottom: 1.5rem; }
.benchmarks-aggregate-header-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--slate-light, #888);
  margin-bottom: 0.3rem;
}
.benchmarks-aggregate-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.2rem 0;
}
.benchmarks-aggregate-subtitle {
  color: var(--text-dim, #c0c0c0);
  font-size: 0.95rem;
  margin: 0;
}

.benchmarks-aggregate-table-wrap {
  overflow-x: auto;
  border-radius: 0.4rem;
}

.benchmarks-aggregate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.benchmarks-aggregate-th,
.benchmarks-aggregate-td {
  padding: 0.6rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}

.benchmarks-aggregate-th {
  color: var(--slate-light, #888);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-surface, rgba(255,255,255,0.02));
}
.benchmarks-aggregate-th--num { text-align: right; }
.benchmarks-aggregate-th--dist { text-align: left; min-width: 8rem; }

.benchmarks-aggregate-row:hover {
  background: var(--bg-surface, rgba(255,255,255,0.03));
}

.benchmarks-aggregate-td--rank {
  color: var(--slate-light, #888);
  font-family: var(--font-mono);
  width: 2.5rem;
}
.benchmarks-aggregate-td--provider {
  color: var(--text-dim, #c0c0c0);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.benchmarks-aggregate-td--model {
  font-weight: 500;
}
.benchmarks-aggregate-model-link {
  color: var(--text, #e0e0e0);
  text-decoration: none;
  border-bottom: 1px dashed var(--border, rgba(255,255,255,0.15));
}
.benchmarks-aggregate-model-link:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--accent, #d49a3a);
}
.benchmarks-aggregate-td--num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.benchmarks-aggregate-td--cost { color: var(--text-dim, #c0c0c0); }
.benchmarks-aggregate-td--value { font-weight: 600; }

.benchmarks-aggregate-score-num {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--text-dim, #c0c0c0);
  font-size: 0.85rem;
}

/* Distribution bar — one segment per grade, flex-weighted by count */

.benchmarks-aggregate-td--dist { padding: 0.4rem 0.7rem; }

.benchmarks-dist-bar {
  display: flex;
  height: 1.2rem;
  border-radius: 0.2rem;
  overflow: hidden;
  background: var(--bg-surface, rgba(255,255,255,0.02));
}

.benchmarks-dist {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--bg, #0d0d0d);
  font-weight: 600;
  min-width: 1rem;
}

.benchmarks-dist--A { background: var(--green,   #2c8552); }
.benchmarks-dist--B { background: var(--accent,  #d49a3a); }
.benchmarks-dist--C { background: var(--warning, #b8862c); }
.benchmarks-dist--D { background: var(--danger,  #b8503c); }
.benchmarks-dist--F { background: var(--danger,  #b8503c); opacity: 0.6; }

.benchmarks-aggregate-legend {
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 0.4rem;
  background: var(--bg-surface, rgba(255,255,255,0.02));
  font-size: 0.85rem;
  color: var(--text-dim, #c0c0c0);
}
.benchmarks-aggregate-legend-line { margin: 0.2rem 0; }
.benchmarks-aggregate-legend code {
  background: var(--bg-dark, var(--bg, transparent));
  padding: 0.05rem 0.3rem;
  border-radius: 0.2rem;
  font-family: var(--font-mono);
}

/* Mobile — stack rank/provider/model in left column, metrics flow right */

@media (max-width: 720px) {
  .benchmarks-aggregate-table { font-size: 0.82rem; }
  .benchmarks-aggregate-th,
  .benchmarks-aggregate-td { padding: 0.4rem 0.45rem; }
  .benchmarks-aggregate-th--dist,
  .benchmarks-aggregate-td--dist { display: none; }
}

/* ── Hidden models note ───────────────────────────────────────────────── */

.benchmarks-aggregate-hidden-note {
  margin: 0.75rem 0 0.5rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-left: 3px solid var(--slate-light, #888);
  border-radius: 0 0.3rem 0.3rem 0;
  background: var(--bg-surface, rgba(255,255,255,0.02));
  font-size: 0.85rem;
  color: var(--text-dim, #c0c0c0);
  line-height: 1.5;
}
.benchmarks-aggregate-hidden-note strong { color: var(--text, #e0e0e0); }

.benchmarks-main {
  padding-top: var(--nav-height, 60px);
}

.benchmarks-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Loading / error / empty */
.benchmarks-loading,
.benchmarks-error,
.benchmarks-empty {
  padding: 3rem 0;
  color: var(--text-dim);
}

/* Header */
.benchmarks-header {
  margin-bottom: 2rem;
}
.benchmarks-header-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.benchmarks-entity-link {
  text-decoration: none;
  color: var(--text-dim);
}
.benchmarks-entity-link:hover {
  color: var(--text);
}
.benchmarks-header-sep {
  color: var(--slate);
}
.benchmarks-header-label {
  font-weight: 500;
  color: var(--text-dim);
}
.benchmarks-title {
  font-size: 1.75rem;
  margin: 0;
}

/* Task tabs */
.benchmarks-tasks {
  margin-bottom: 1.75rem;
}
.benchmarks-task-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.benchmarks-task-tab {
  padding: 0.3em 0.8em;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.875rem;
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.benchmarks-task-tab:hover {
  color: var(--text);
  border-color: var(--slate-light);
}
.benchmarks-task-tab--active {
  color: var(--text);
  border-color: var(--accent);
  font-weight: 600;
}

/* Task view */
.benchmarks-task-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.benchmarks-task-name {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}
.benchmarks-task-loading {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.benchmarks-task-error {
  color: var(--text-dim);
  padding: 1rem 0;
}

/* Prompt block */
.benchmarks-prompt {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.benchmarks-prompt-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  padding-top: 0.15em;
  min-width: 48px;
  flex-shrink: 0;
}
.benchmarks-prompt-text {
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.5;
  border-left: none;
  padding: 0;
}

/* Table wrapper */
.benchmarks-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.benchmarks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.benchmarks-thead-row {
  border-bottom: 2px solid var(--border);
}
.benchmarks-th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  white-space: nowrap;
}
.benchmarks-th--time    { width: 5.5rem; }
.benchmarks-th--status  { width: 4rem; text-align: center; }
.benchmarks-th--harness { width: 6rem; }

/* Data rows */
.benchmarks-row {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}
.benchmarks-row:hover,
.benchmarks-row:focus-visible {
  background: var(--bg-surface);
  outline: none;
}
.benchmarks-row:focus-visible {
  box-shadow: inset 2px 0 0 var(--accent);
}
.benchmarks-td {
  padding: 0.55rem 0.75rem;
  vertical-align: top;
  line-height: 1.4;
}

/* Provider — metadata weight, visually recedes */
.benchmarks-td--provider {
  color: var(--text-dim);
  white-space: nowrap;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* Model — anchor of the row */
.benchmarks-td--model {
  font-weight: 500;
  word-break: break-word;
}

/* Harness — secondary metadata */
.benchmarks-td--harness {
  color: var(--slate-light);
  white-space: nowrap;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* Time */
.benchmarks-td--time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* Response preview */
.benchmarks-td--response {
  max-width: 340px;
  font-size: 0.85rem;
}

/* Status cell — centered glyph */
.benchmarks-td--status {
  text-align: center;
}

/* Status glyph */
.benchmarks-status {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
}
.benchmarks-status--success {
  color: var(--green);
}
.benchmarks-status--timeout {
  color: var(--warning, #ffc107);
}
.benchmarks-status--error {
  color: var(--danger, #dc3545);
}
.benchmarks-status--unknown {
  color: var(--slate-light);
}

/* Short response — normal vs degraded */
.benchmarks-short-response {
  font-style: italic;
  color: var(--text-dim);
  word-break: break-word;
}
.benchmarks-short-response--degraded {
  color: var(--danger, #dc3545);
  opacity: 0.8;
}

/* Detail (expanded) row */
.benchmarks-detail-row {
  background: var(--bg-surface);
}
.benchmarks-detail-cell {
  padding: 0;
}
.benchmarks-detail {
  padding: 1rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

/* Detail meta — muted timestamp strip */
.benchmarks-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}
.benchmarks-detail-meta-item {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  font-size: 0.8rem;
}
.benchmarks-detail-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-light);
}
.benchmarks-detail-meta-value {
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* Full output block */
.benchmarks-detail-output-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-light);
  margin-bottom: 0.4rem;
}
.benchmarks-detail-output {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-dim);
  background: var(--bg-dark, var(--bg));
  margin: 0;
  padding: 0.75rem 1rem;
  max-height: 420px;
  overflow-y: auto;
  border-left: 2px solid var(--border-accent, rgba(201,168,76,0.3));
  border-radius: 0 2px 2px 0;
}

/* ── Mobile reflow ──────────────────────────────────────────────── */
/* At narrow viewports: table → card stack */
@media (max-width: 640px) {
  .benchmarks-table-wrap {
    overflow-x: visible;
  }
  .benchmarks-table,
  .benchmarks-table tbody,
  .benchmarks-table tr,
  .benchmarks-table td {
    display: block;
    width: 100%;
  }
  .benchmarks-table thead {
    display: none;
  }
  .benchmarks-row {
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
  }
  .benchmarks-td {
    padding: 0.25rem 0.75rem;
  }
  .benchmarks-td--provider {
    font-size: 0.72rem;
    padding-bottom: 0;
  }
  .benchmarks-td--model {
    font-size: 0.9rem;
    padding-top: 0.1rem;
  }
  .benchmarks-td--harness,
  .benchmarks-td--time {
    display: inline-block;
    width: auto;
    padding-right: 1.25rem;
    font-size: 0.75rem;
  }
  .benchmarks-td--status {
    display: inline-block;
    width: auto;
    text-align: left;
    padding-left: 0.75rem;
  }
  .benchmarks-td--response {
    max-width: 100%;
    font-size: 0.82rem;
  }
  .benchmarks-detail-row {
    border: none;
  }
  .benchmarks-detail-cell {
    padding: 0 0.5rem 0.5rem;
  }
}

/* ── Grade pills ───────────────────────────────────────────────────────── */

.benchmarks-th--grade,
.benchmarks-td--grade {
  text-align: center;
  width: 4rem;
}

.benchmarks-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border-radius: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.benchmarks-grade--A { background: var(--green, #2c8552);     color: var(--bg, #0d0d0d); }
.benchmarks-grade--B { background: var(--accent, #d49a3a);    color: var(--bg, #0d0d0d); }
.benchmarks-grade--C { background: var(--warning, #b8862c);   color: var(--bg, #0d0d0d); }
.benchmarks-grade--D { background: var(--danger, #b8503c);    color: var(--bg, #0d0d0d); }
.benchmarks-grade--F { background: var(--danger, #b8503c);    color: var(--bg, #0d0d0d); opacity: 0.85; }
.benchmarks-grade--none {
  color: var(--slate-light, #888);
  background: transparent;
  font-weight: 400;
}

/* Detail-row grade panel */

.benchmarks-detail-grade {
  margin: 0.75rem 0;
  padding: 0.6rem;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 0.4rem;
  background: var(--bg-surface, rgba(255,255,255,0.02));
}
.benchmarks-detail-grade-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.benchmarks-detail-grade-composite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 0.3rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
}
.benchmarks-detail-grade-summary {
  flex: 1;
  font-style: italic;
  color: var(--text-dim, #c0c0c0);
}
.benchmarks-detail-grade-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.benchmarks-detail-grade-row td {
  padding: 0.3rem 0.5rem;
  border-top: 1px solid var(--border, rgba(255,255,255,0.05));
  vertical-align: top;
}
.benchmarks-detail-grade-cell--criterion { font-family: var(--font-mono); white-space: nowrap; }
.benchmarks-detail-grade-cell--verdict   { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.75rem; }
.benchmarks-detail-grade-row--pass    .benchmarks-detail-grade-cell--verdict { color: var(--green,    #2c8552); }
.benchmarks-detail-grade-row--fail    .benchmarks-detail-grade-cell--verdict { color: var(--danger,   #b8503c); }
.benchmarks-detail-grade-row--partial .benchmarks-detail-grade-cell--verdict { color: var(--warning,  #b8862c); }
.benchmarks-detail-grade-cell--reasoning { color: var(--text-dim, #c0c0c0); }
.benchmarks-detail-grade-attribution {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--slate-light, #888);
}
.benchmarks-detail-grade-grader {
  font-family: var(--font-mono);
  background: var(--bg-dark, var(--bg, transparent));
  padding: 0.05rem 0.3rem;
  border-radius: 0.2rem;
}

/* pre-SPEC-169 badge — subtle indicator on legacy grading records */
.benchmarks-detail-legacy-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-light, #888);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 0.2rem;
  padding: 0.1rem 0.35rem;
  vertical-align: middle;
}

/* SPEC-169 aspect breakdown table */
.benchmarks-detail-aspects-table thead tr {
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
}
.benchmarks-detail-aspect-th {
  text-align: left;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-light, #888);
  white-space: nowrap;
}
.benchmarks-detail-aspect-th--grade,
.benchmarks-detail-aspect-th--score,
.benchmarks-detail-aspect-th--tests {
  text-align: center;
  width: 4rem;
}
.benchmarks-detail-aspect-cell--aspect {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
  color: var(--text, #e0e0e0);
}
.benchmarks-detail-aspect-cell--grade {
  text-align: center;
  white-space: nowrap;
}
.benchmarks-detail-aspect-cell--score,
.benchmarks-detail-aspect-cell--tests {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim, #c0c0c0);
}
.benchmarks-detail-aspect-cell--note {
  color: var(--text-dim, #c0c0c0);
  font-style: italic;
  font-size: 0.83rem;
}

/* ── Cost column ───────────────────────────────────────────────────────── */

.benchmarks-th--cost,
.benchmarks-td--cost {
  text-align: right;
  width: 5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.benchmarks-cost {
  color: var(--text-dim, #c0c0c0);
}
.benchmarks-cost--none {
  color: var(--slate-light, #888);
  font-family: inherit;
}

/* ── Detail cost breakdown ─────────────────────────────────────────────── */

.benchmarks-detail-cost {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 0.4rem;
  background: var(--bg-surface, rgba(255,255,255,0.02));
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.benchmarks-detail-cost-item {
  display: flex;
  flex-direction: column;
}
.benchmarks-detail-cost-label {
  color: var(--slate-light, #888);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.benchmarks-detail-cost-value {
  color: var(--text-dim, #c0c0c0);
}
.benchmarks-detail-cost-item--total .benchmarks-detail-cost-value {
  color: var(--text, #e0e0e0);
  font-weight: 600;
}

/* ── Hidden runs note ─────────────────────────────────────────────────── */

.benchmarks-hidden-note {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-left: 3px solid var(--slate-light, #888);
  border-radius: 0 0.3rem 0.3rem 0;
  background: var(--bg-surface, rgba(255,255,255,0.02));
  font-size: 0.85rem;
  color: var(--text-dim, #c0c0c0);
  line-height: 1.5;
}
.benchmarks-hidden-note strong { color: var(--text, #e0e0e0); }/* BondsDetailPage — wrapper only; visual lives in brand-components *//* BondsIndexPage — wrapper only; visual lives in brand-components */

.channel-index {
	min-height: calc(100vh - 73px);
}

.channel-index-inner {
	max-width: var(--max-width, 960px);
	margin: 0 auto;
	padding: 48px 32px 96px;
}

/* --- Header --- */

.channel-index-header {
	border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
	padding-bottom: 24px;
	margin-bottom: 40px;
}

.channel-index-title {
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--text, #E8E6E1);
	margin-bottom: 8px;
}

.channel-index-subtitle {
	font-size: 14px;
	color: var(--text-dim, #A09E9A);
	line-height: 1.6;
	max-width: 560px;
}

/* --- Channel list --- */

.channel-index-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* --- Channel row (each is an <a> link) --- */

.channel-index-row {
	display: flex;
	align-items: center;
	gap: 16px;
	background: rgba(255,255,255,0.02);
	border: 1px solid var(--border, rgba(255,255,255,0.07));
	border-radius: 2px;
	text-decoration: none;
	color: inherit;
	transition: background 0.12s, border-color 0.12s;
	padding: 0;
}

.channel-index-row:hover {
	background: rgba(255,255,255,0.04);
	border-color: rgba(255,255,255,0.12);
}

/* Status indicator: left border stripe keyed to data-status */
.channel-index-row[data-status="open"] {
	border-left: 3px solid var(--green, #3EAF6A);
}

.channel-index-row[data-status="closed"] {
	border-left: 3px solid var(--slate, #4A5568);
}

/* Default / unknown */
.channel-index-row:not([data-status="open"]):not([data-status="closed"]) {
	border-left: 3px solid transparent;
}

/* --- Row inner layout --- */

.channel-index-row-inner {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: baseline;
	gap: 14px;
	flex-wrap: wrap;
	padding: 14px 16px;
}

/* --- Slug — primary identifier --- */

.channel-index-slug {
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 700;
	color: var(--text, #E8E6E1);
	white-space: nowrap;
}

/* --- Topic — secondary label --- */

.channel-index-topic {
	font-size: 13px;
	color: var(--text-dim, #A09E9A);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 300px;
}

/* --- Meta: turn count + members + status --- */

.channel-index-meta {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--slate, #4A5568);
	margin-left: auto;
	white-space: nowrap;
	letter-spacing: 0.02em;
}

/* Highlight open status in meta text */
.channel-index-row[data-status="open"] .channel-index-meta {
	color: rgba(62,175,106,0.7);
}

/* --- Chevron --- */

.channel-index-chevron {
	font-size: 18px;
	color: var(--slate, #4A5568);
	padding-right: 16px;
	flex-shrink: 0;
	transition: color 0.12s;
}

.channel-index-row:hover .channel-index-chevron {
	color: var(--text-dim, #A09E9A);
}

/* --- Empty state --- */

.channel-index-empty {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--slate, #4A5568);
	padding: 32px 0;
}

/* --- Responsive --- */

@media (max-width: 640px) {
	.channel-index-inner {
		padding: 32px 16px 64px;
	}

	.channel-index-row-inner {
		padding: 12px 12px;
	}

	.channel-index-meta {
		margin-left: 0;
		width: 100%;
	}

	.channel-index-topic {
		max-width: 200px;
	}
}

.channel-topic {
	min-height: calc(100vh - 73px);
}

.channel-topic-inner {
	max-width: var(--max-width, 960px);
	margin: 0 auto;
	padding: 48px 32px 96px;
}

/* --- Channel header --- */

.channel-topic-header {
	border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
	padding-bottom: 24px;
	margin-bottom: 40px;
}

.channel-topic-back {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-dim, #A09E9A);
	text-decoration: none;
	margin-bottom: 16px;
	letter-spacing: 0.02em;
	transition: color 0.12s;
}

.channel-topic-back:hover {
	color: var(--text, #E8E6E1);
}

.channel-topic-title {
	font-family: var(--font-mono);
	font-size: clamp(20px, 3vw, 28px);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--text, #E8E6E1);
	margin-bottom: 8px;
}

.channel-topic-subtopic {
	font-size: 15px;
	color: var(--text-dim, #A09E9A);
	margin-bottom: 10px;
	line-height: 1.5;
}

.channel-topic-meta {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--slate, #4A5568);
	text-transform: lowercase;
	letter-spacing: 0.04em;
	margin-bottom: 12px;
}

/* --- Presence strip --- */

.channel-topic-presence {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-dim, #A09E9A);
	background: rgba(255,255,255,0.03);
	border: 1px solid var(--border, rgba(255,255,255,0.07));
	border-left: 3px solid rgba(62,175,106,0.6);
	padding: 6px 14px;
	border-radius: 2px;
	margin-top: 4px;
}

.channel-topic-presence strong {
	color: var(--green, #3EAF6A);
	font-weight: 600;
}

/* --- Presence legend (three-state) --- */
/* Structure only — Muse + koad pair on visual polish.
   Semantic class hooks: .channel-presence-in-room, .channel-presence-raised,
   .channel-presence-speaking, .channel-presence-absent                        */

.channel-presence-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.channel-presence-member {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: var(--font-mono);
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 2px;
	border: 1px solid var(--border, rgba(255,255,255,0.07));
}

.channel-presence-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
}

.channel-presence-name {
	letter-spacing: 0.02em;
}

/* State: in-room (present, silent) */
.channel-presence-in-room {
	color: var(--text-dim, #A09E9A);
}
.channel-presence-in-room .channel-presence-dot {
	background: var(--green, #3EAF6A);
	opacity: 0.6;
}

/* State: raised hand */
.channel-presence-raised {
	color: var(--text, #E8E6E1);
}
.channel-presence-raised .channel-presence-dot {
	background: var(--accent, #C9A84C);
}

/* State: speaking (most recent turn author) */
.channel-presence-speaking {
	color: var(--text, #E8E6E1);
}
.channel-presence-speaking .channel-presence-dot {
	background: var(--green, #3EAF6A);
}

/* State: absent */
.channel-presence-absent {
	color: var(--slate, #4A5568);
	opacity: 0.5;
}
.channel-presence-absent .channel-presence-dot {
	background: var(--slate, #4A5568);
}

/* --- Thread container --- */

.channel-topic-thread {
	display: flex;
	flex-direction: column;
	gap: 0;
	/* Scroll container: Muse will refine max-height and overflow per layout */
	overflow-y: auto;
	scroll-behavior: smooth;
}

/* --- Jump-to-bottom indicator --- */
/* .channel-turns-tail-indicator: wrapper shown when scrolled up + new turns present */
/* .channel-turns-jump: the button inside — Muse styles visual appearance        */

.channel-turns-tail-indicator {
	position: sticky;
	bottom: 24px;
	display: flex;
	justify-content: center;
	pointer-events: none;
	z-index: 10;
}

.channel-turns-jump {
	pointer-events: auto;
	font-family: var(--font-mono);
	font-size: 12px;
	padding: 6px 18px;
	border-radius: 2px;
	border: 1px solid var(--border, rgba(255,255,255,0.12));
	background: var(--bg-surface, rgba(20,20,20,0.92));
	color: var(--text-dim, #A09E9A);
	cursor: pointer;
	letter-spacing: 0.02em;
}

.channel-turns-jump:hover {
	color: var(--text, #E8E6E1);
	border-color: rgba(255,255,255,0.2);
}

/* --- Turn articles --- */

.channel-turn {
	display: grid;
	grid-template-rows: auto 1fr;
	border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
	padding: 18px 0;
	/* Per-entity accent via CSS custom property set inline or via [data-entity] rules below */
}

.channel-turn:last-child {
	border-bottom: none;
}

/* Entity accent: a thin left border drawn via the entity's hue.
   The data-entity attribute is already on .channel-turn.
   We derive colour with hsl(); saturation and lightness fixed per brand register.
   Override per entity below using [data-entity="name"] { --ct-hue: N; }             */

.channel-turn {
	--ct-hue: 0;
	--ct-accent: hsla(var(--ct-hue), 55%, 62%, 0.7);
	padding-left: 16px;
	border-left: 2px solid transparent;
}

/* Role: system — quietest. Joined/created events. No border, dim everything. */
.channel-turn-system {
	border-left-color: transparent;
	opacity: 0.5;
}

/* Role: participant — full visibility, entity accent border. */
.channel-turn-participant {
	border-left-color: var(--ct-accent);
}

/* Role: operator — koad/juno injections. Amber-tinted. Mid-weight. */
.channel-turn-operator {
	border-left-color: var(--accent-dim, #9B7D35);
}

/* --- Per-entity hue assignments (mirrors _ENTITY_HUE in client/logic.js) --- */

[data-entity="koad"]    { --ct-hue: 222; }
[data-entity="juno"]    { --ct-hue: 270; }
[data-entity="vulcan"]  { --ct-hue: 18;  }
[data-entity="vesta"]   { --ct-hue: 35;  }
[data-entity="aegis"]   { --ct-hue: 210; }
[data-entity="mercury"] { --ct-hue: 48;  }
[data-entity="veritas"] { --ct-hue: 160; }
[data-entity="muse"]    { --ct-hue: 290; }
[data-entity="sibyl"]   { --ct-hue: 200; }
[data-entity="argus"]   { --ct-hue: 180; }
[data-entity="salus"]   { --ct-hue: 355; }
[data-entity="janus"]   { --ct-hue: 240; }
[data-entity="iris"]    { --ct-hue: 315; }
[data-entity="chiron"]  { --ct-hue: 150; }
[data-entity="cacula"]  { --ct-hue: 30;  }
[data-entity="alice"]   { --ct-hue: 200; }
[data-entity="rufus"]   { --ct-hue: 0;   }
[data-entity="faber"]   { --ct-hue: 25;  }
[data-entity="livy"]    { --ct-hue: 45;  }
[data-entity="lyra"]    { --ct-hue: 260; }
[data-entity="copia"]   { --ct-hue: 75;  }
[data-entity="rooty"]   { --ct-hue: 135; }

/* --- Turn header strip --- */

.channel-turn-header {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.channel-turn-entity {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 700;
	color: hsla(var(--ct-hue), 55%, 70%, 1);
	letter-spacing: 0.01em;
}

/* system turns: dim the entity label too */
.channel-turn-system .channel-turn-entity {
	color: var(--text-dim, #A09E9A);
}

.channel-turn-role {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: lowercase;
	padding: 1px 6px;
	border-radius: 2px;
}

/* Role badge colours */
.channel-turn-participant .channel-turn-role {
	color: hsla(var(--ct-hue), 55%, 70%, 0.9);
	background: hsla(var(--ct-hue), 55%, 62%, 0.1);
}

.channel-turn-system .channel-turn-role {
	color: var(--slate, #4A5568);
	background: rgba(255,255,255,0.04);
}

.channel-turn-operator .channel-turn-role {
	color: var(--accent, #C9A84C);
	background: rgba(201,168,76,0.1);
}

.channel-turn-id {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--slate, #4A5568);
	letter-spacing: 0.02em;
}

.channel-turn-ts {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--slate, #4A5568);
	margin-left: auto;
	white-space: nowrap;
}

/* --- Turn body --- */

.channel-turn-body {
	font-size: 14px;
	line-height: 1.7;
	color: var(--text, #E8E6E1);
}

.channel-turn-system .channel-turn-body {
	font-size: 13px;
	color: var(--text-dim, #A09E9A);
	font-style: italic;
}

.channel-turn-body p {
	margin: 0 0 0.75em;
}

.channel-turn-body p:last-child {
	margin-bottom: 0;
}

.channel-turn-body strong {
	color: var(--text, #E8E6E1);
	font-weight: 600;
}

.channel-turn-body em {
	color: var(--text-dim, #A09E9A);
}

.channel-turn-body code {
	font-family: var(--font-mono);
	font-size: 12px;
	background: rgba(255,255,255,0.06);
	padding: 1px 5px;
	border-radius: 2px;
	color: var(--text, #E8E6E1);
}

/* --- Empty state --- */

.channel-topic-empty {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--slate, #4A5568);
	padding: 32px 0;
}

/* --- Responsive --- */

@media (max-width: 640px) {
	.channel-topic-inner {
		padding: 32px 16px 64px;
	}

	.channel-turn {
		padding-left: 12px;
	}

	.channel-turn-ts {
		margin-left: 0;
		width: 100%;
	}
}

.conversation-sessions {
	margin: 32px 0 0 0;
	padding: 24px 0 0 0;
	border-top: 1px solid var(--border);
}

.conversation-sessions-heading {
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 14px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.conversation-sessions-count {
	font-size: 11px;
	font-weight: 600;
	color: var(--text-dim);
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 2px 8px;
}

/* Totals strip */
.conversation-sessions-totals {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin: 0 0 16px 0;
	padding: 10px 12px;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 4px;
}

.conversation-sessions-total {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.conversation-sessions-total-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-dim);
	font-weight: 600;
}

.conversation-sessions-total-value {
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
	font-variant-numeric: tabular-nums;
}

/* Session rows */
.conversation-session-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.conversation-session-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 4px;
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s;
	flex-wrap: wrap;
}

.conversation-session-row:hover {
	border-color: var(--accent);
	background: color-mix(in srgb, var(--accent) 6%, var(--bg-raised));
}

.conversation-session-row--active {
	border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.conversation-session-row-entity {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.conversation-session-live {
	color: var(--accent);
	font-size: 9px;
	animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

.conversation-session-entity-name {
	font-size: 13px;
	color: var(--text);
	font-weight: 500;
}

.conversation-session-host {
	font-size: 11px;
	color: var(--text-dim);
	font-family: monospace;
}

.conversation-session-row-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.conversation-session-model {
	font-size: 11px;
	color: var(--text-dim);
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 3px;
	padding: 1px 5px;
	font-family: monospace;
}

.conversation-session-duration {
	font-size: 12px;
	color: var(--text-dim);
	font-variant-numeric: tabular-nums;
}

.conversation-session-cost {
	font-size: 12px;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}

.conversation-session-row-time {
	font-size: 11px;
	color: var(--text-dim);
	white-space: nowrap;
	flex-shrink: 0;
}

.conversation-session-cta {
	font-size: 11px;
	color: var(--accent);
	white-space: nowrap;
	flex-shrink: 0;
}

.daily-main {
  padding-top: var(--nav-height, 60px);
}

.daily-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Loading / error states */
.daily-loading,
.daily-error {
  padding: 2rem 0;
  opacity: 0.6;
}

/* Sponsor gate */
.daily-gate {
  padding: 3rem 0;
}
.daily-gate-heading {
  margin-bottom: 0.5rem;
}

/* Header */
.daily-header {
  margin-bottom: 2rem;
}
.daily-header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.daily-date {
  font-size: 0.875rem;
  opacity: 0.6;
}
.daily-archive-badge {
  font-size: 0.75rem;
  padding: 0.1em 0.5em;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: 0.5;
}
.daily-title {
  font-size: 1.75rem;
  margin: 0;
}

/* Temporal state banners */
.daily-state {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid currentColor;
  opacity: 0.85;
}
.daily-state-message {
  margin: 0 0 0.25rem;
  font-weight: 500;
}
.daily-state-sub {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.7;
}
.daily-state-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Conversation + summary */
.daily-conversation,
.daily-summary {
  margin-bottom: 2.5rem;
}
.daily-conversation-heading,
.daily-summary-heading,
.daily-signals-heading {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
  margin-bottom: 1rem;
}

/* Signals preview */
.daily-signals-preview {
  margin-bottom: 2rem;
}
.daily-signals-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.daily-signal-item {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(128,128,128,0.1);
  font-size: 0.9rem;
}
.daily-signal-urgency {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.55;
  min-width: 56px;
}
.daily-signal-entity {
  opacity: 0.5;
  font-size: 0.85rem;
  min-width: 60px;
}
.daily-signal-headline {
  flex: 1;
}
.daily-signals-link {
  font-size: 0.875rem;
  opacity: 0.6;
}
.daily-signals-link:hover {
  opacity: 1;
}

/* Footer nav */
.daily-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(128,128,128,0.15);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.daily-footer-link {
  font-size: 0.875rem;
  opacity: 0.55;
}
.daily-footer-link:hover {
  opacity: 1;
}

.me-anon-main {
  /* No max-width — let meBecomingPanel's .me-becoming-full handle its own 640px column */
  min-height: calc(100vh - 140px);
}/* EmissionsDetailPage — wrapper only; visual lives in brand-components *//* EmissionsIndexPage — wrapper only; visual lives in brand-components */

.explorer-address-page {
	max-width: var(--content-max-width, 900px);
	margin: 0 auto;
	padding: var(--spacing-xl, 2rem) var(--spacing-md, 1rem);
}

.explorer-address-page__card {
	margin-bottom: var(--spacing-xl, 2rem);
}

.explorer-address-page__taint {
	margin-bottom: var(--spacing-xl, 2rem);
}

.explorer-address-page__portfolio {
	margin-top: var(--spacing-xl, 2rem);
}

.explorer-alliance-page {
	max-width: var(--content-max-width, 900px);
	margin: 0 auto;
	padding: var(--spacing-xl, 2rem) var(--spacing-md, 1rem);
}

.explorer-alliance-page__card {
	margin-bottom: var(--spacing-xl, 2rem);
}

.explorer-alliance-page__members {
	margin-bottom: var(--spacing-xl, 2rem);
}

.explorer-alliance-page__pool {
	margin-top: var(--spacing-xl, 2rem);
}

.explorer-home-page {
	max-width: var(--content-max-width, 900px);
	margin: 0 auto;
	padding: var(--spacing-xl, 2rem) var(--spacing-md, 1rem);
}

.explorer-home-page__header {
	margin-bottom: var(--spacing-xl, 2rem);
}

.explorer-home-page__title {
	font-size: var(--font-size-2xl, 2rem);
	font-weight: var(--font-weight-bold, 700);
	color: var(--color-text-primary, #fff);
	margin: 0 0 var(--spacing-xs, 0.25rem);
}

.explorer-home-page__subtitle {
	font-size: var(--font-size-sm, 0.875rem);
	color: var(--color-text-muted, #888);
	margin: 0;
}

.explorer-home-page__search {
	margin-bottom: var(--spacing-xl, 2rem);
}

.explorer-home-page__tail {
	margin-top: var(--spacing-xl, 2rem);
}

.explorer-proposal-page {
	max-width: var(--content-max-width, 900px);
	margin: 0 auto;
	padding: var(--spacing-xl, 2rem) var(--spacing-md, 1rem);
}

.explorer-proposal-page__summary {
	margin-bottom: var(--spacing-xl, 2rem);
}

.explorer-proposal-page__bar {
	margin-bottom: var(--spacing-xl, 2rem);
}

.explorer-proposal-page__tally {
	margin-top: var(--spacing-xl, 2rem);
}

.explorer-stake-page {
	max-width: var(--content-max-width, 900px);
	margin: 0 auto;
	padding: var(--spacing-xl, 2rem) var(--spacing-md, 1rem);
}

.explorer-stake-page__card {
	margin-bottom: var(--spacing-xl, 2rem);
}

.explorer-stake-page__lifecycle {
	margin-bottom: var(--spacing-xl, 2rem);
}

.explorer-stake-page__lineage {
	margin-top: var(--spacing-xl, 2rem);
}

.insiders-callback-inner {
	max-width: 400px;
	margin: 0 auto;
	padding: 80px 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.insiders-callback-msg {
	font-size: 16px;
	color: var(--color-text-muted);
}

.insiders-error {
	font-size: 15px;
	color: #e05555;
	line-height: 1.5;
}.insiders-shell {
	min-height: 100vh;
	background: var(--color-bg-primary);
	color: var(--color-text-primary);
}

/* Loading */
.insiders-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
}
.insiders-loading-dot {
	color: var(--color-accent);
	font-size: 24px;
	animation: pulse 1.2s ease-in-out infinite;
}
.insiders-loading-text {
	color: var(--color-text-muted);
	font-size: 14px;
	padding: 12px 0;
}
@keyframes pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.3; }
}

.insiders-banner {
	background: var(--color-bg-secondary, #111);
	border-bottom: 1px solid var(--color-border-default);
	padding: 20px 0;
}

.insiders-banner-inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.insiders-banner-status {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
}

.insiders-check {
	color: #8ac926;
	font-size: 18px;
}

.insiders-banner-title {
	color: var(--color-text-primary);
}

.insiders-banner-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
}

.insiders-tier-badge {
	font-size: 12px;
	font-weight: 600;
	background: rgba(138, 201, 38, 0.15);
	color: #8ac926;
	border: 1px solid rgba(138, 201, 38, 0.3);
	border-radius: 4px;
	padding: 2px 8px;
	letter-spacing: 0.04em;
}

.insiders-github-login {
	font-size: 13px;
	color: var(--color-text-muted);
}

.insiders-logout-link {
	font-size: 13px;
	color: var(--color-text-muted);
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	margin-left: auto;
}

.insiders-logout-link:hover { color: var(--color-text-primary); }

.insiders-dashboard-inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 40px 24px 80px;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.insiders-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.insiders-section-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--color-text-muted);
	margin: 0 0 4px;
}

.insiders-section-sub {
	font-size: 14px;
	color: var(--color-text-muted);
	margin: -4px 0 4px;
}

.insiders-empty {
	font-size: 14px;
	color: var(--color-text-muted);
	padding: 16px 0;
}

/* Feed cards */
.insiders-feed-card {
	background: var(--color-bg-tertiary, #111);
	border: 1px solid var(--color-border-default);
	border-radius: 6px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	cursor: pointer;
	transition: border-color 0.12s;
}

.insiders-feed-card:hover {
	border-color: var(--color-border-strong, #555);
}

.insiders-feed-date {
	font-size: 12px;
	color: var(--color-text-muted);
	font-family: 'JetBrains Mono', monospace;
	margin: 0;
}

.insiders-feed-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--color-accent);
	margin: 0;
}

.insiders-feed-preview {
	font-size: 14px;
	color: var(--color-text-muted);
	line-height: 1.5;
	margin: 0;
}

.insiders-feed-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.insiders-tag {
	font-size: 12px;
	color: var(--color-text-muted);
}

/* Release cards */
.insiders-release-card {
	background: var(--color-bg-tertiary, #111);
	border: 1px solid var(--color-border-default);
	border-radius: 6px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: transform 0.12s, border-color 0.12s;
}

.insiders-release-card:hover {
	transform: translateY(-2px);
	border-color: var(--color-border-strong, #555);
}

.insiders-release-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.insiders-release-version {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-accent);
}

.insiders-release-age {
	font-size: 12px;
	color: var(--color-text-muted);
}

.insiders-release-title {
	font-size: 15px;
	font-weight: 500;
	margin: 0;
}

.insiders-release-desc {
	font-size: 14px;
	color: var(--color-text-muted);
	line-height: 1.5;
	margin: 0;
}

.insiders-release-link {
	font-size: 13px;
	color: var(--color-accent);
	text-decoration: none;
	margin-top: 4px;
}

.insiders-release-link:hover { text-decoration: underline; }

/* Tier cards */
.insiders-tier-card {
	background: var(--color-bg-tertiary, #111);
	border: 1px solid var(--color-border-default);
	border-radius: 6px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.insiders-tier-card--current {
	border-color: #8ac926;
}

.insiders-tier-card--locked {
	opacity: 0.6;
}

.insiders-tier-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.insiders-tier-name {
	font-size: 15px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.insiders-tier-lock {
	color: var(--color-text-muted);
	font-size: 13px;
}

.insiders-tier-current-badge {
	font-size: 11px;
	font-weight: 500;
	background: rgba(138, 201, 38, 0.15);
	color: #8ac926;
	border: 1px solid rgba(138, 201, 38, 0.3);
	border-radius: 3px;
	padding: 1px 6px;
}

.insiders-tier-price {
	font-size: 14px;
	font-weight: 600;
	color: var(--color-accent);
}

.insiders-tier-features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.insiders-tier-feature {
	font-size: 14px;
	color: var(--color-text-secondary, #ccc);
}

.insiders-feature--locked {
	color: var(--color-text-muted);
	opacity: 0.7;
}

.insiders-upgrade-btn {
	display: inline-block;
	font-size: 13px;
	color: var(--color-accent);
	border: 1px solid var(--color-accent);
	border-radius: 4px;
	padding: 6px 14px;
	text-decoration: none;
	align-self: flex-start;
	transition: background 0.12s, color 0.12s;
}

.insiders-upgrade-btn:hover {
	background: var(--color-accent);
	color: #000;
}

/* ── Dashboard responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.insiders-banner-inner { gap: 10px; }
	.insiders-logout-link { margin-left: 0; width: 100%; text-align: left; }
}

.insiders-join {
	min-height: 100vh;
}

.insiders-join-inner {
	max-width: 600px;
	margin: 0 auto;
	padding: 80px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}

.insiders-join-heading {
	font-size: 32px;
	font-weight: 800;
	margin: 0;
}

.insiders-join-body {
	font-size: 16px;
	color: var(--color-text-muted);
	line-height: 1.6;
	margin: 0;
}

.insiders-join-tiers {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	width: 100%;
	margin: 8px 0;
}

.insiders-join-tier {
	background: var(--color-bg-secondary, #111);
	border: 1px solid var(--color-border-default);
	border-radius: 6px;
	padding: 16px;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.insiders-join-tier--highlight {
	border-color: var(--color-accent);
}

.insiders-join-tier-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--color-accent);
	letter-spacing: 0.04em;
}

.insiders-join-tier-price {
	font-size: 18px;
	font-weight: 700;
}

.insiders-join-tier-desc {
	font-size: 13px;
	color: var(--color-text-muted);
	line-height: 1.4;
	margin: 0;
}

/* ── Join responsive ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.insiders-join-tiers  { grid-template-columns: 1fr; }
}

.insiders-notsponsor {
	min-height: 100vh;
}

.insiders-notsponsor-inner {
	max-width: 480px;
	margin: 0 auto;
	padding: 80px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.insiders-notsponsor-login {
	font-size: 13px;
	color: var(--color-text-muted);
}

.insiders-notsponsor-heading {
	font-size: 24px;
	font-weight: 700;
	margin: 0;
}

.insiders-notsponsor-body {
	font-size: 15px;
	color: var(--color-text-muted);
	line-height: 1.6;
}

.insiders-join-btn {
	display: inline-block;
	background: var(--color-accent);
	color: #000;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 24px;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.15s;
	margin-top: 8px;
}

.insiders-join-btn:hover {
	background: var(--color-accent-dark, #e8a700);
}

.insiders-signin {
	min-height: 100vh;
}

.insiders-signin-inner {
	max-width: 520px;
	margin: 0 auto;
	padding: 80px 24px 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.insiders-title {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--color-accent);
	margin: 0 0 12px;
}

.insiders-tagline {
	font-size: 16px;
	color: var(--color-text-muted);
	text-align: center;
	line-height: 1.6;
	margin: 0 0 40px;
	max-width: 420px;
}

.insiders-auth-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	width: 100%;
	margin-bottom: 32px;
	margin-top: 12px;

}

.insiders-auth-card {
	background: var(--color-bg-secondary);
	border: 1px solid var(--color-border-default);
	border-radius: 8px;
	padding: 20px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	text-align: left;
	transition: border-color 0.15s, box-shadow 0.15s;
	min-height: 120px;
	color: white;
	border: 1px solid #FFFFFF44;
}

.insiders-auth-card:hover:not(:disabled) {
	border-color: var(--color-border-strong, #555);
	box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.insiders-auth-card--soon,
.insiders-auth-card:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.insiders-auth-card-icon {
	color: var(--color-accent);
}

.insiders-auth-card-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.insiders-auth-label {
	font-size: 15px;
	font-weight: 600;
	color: var(--color-text-primary);
	display: flex;
	align-items: center;
	gap: 8px;
}

.insiders-auth-desc {
	font-size: 13px;
	color: var(--color-text-muted);
	line-height: 1.4;
}

.insiders-soon-badge {
	font-size: 11px;
	font-weight: 500;
	background: var(--color-bg-tertiary, #1a1a1a);
	border: 1px solid var(--color-border-default);
	color: var(--color-text-muted);
	border-radius: 3px;
	padding: 1px 5px;
	letter-spacing: 0.04em;
}

.insiders-signin-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.insiders-footer-link {
	font-size: 14px;
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.insiders-footer-link:hover { color: var(--color-text-primary); }

/* ── Sign-in responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.insiders-auth-grid   { grid-template-columns: 1fr; }
}/* KingdomsDetailPage — wrapper only; visual lives in brand-components *//* KingdomsIndexPage — wrapper only; visual lives in brand-components */.playlists-index-header {
	margin: 24px 0 24px;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
}

.playlists-index-title {
	font-size: 26px;
	margin: 0 0 8px;
	letter-spacing: 0.5px;
}

.playlists-index-subhead {
	color: var(--text-muted, #888);
	font-size: 13px;
	max-width: 560px;
	line-height: 1.5;
}

.playlists-mount {
	margin-top: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.playlists-mount-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: rgba(220, 120, 200, 0.1);
	border: 1px dashed rgba(220, 120, 200, 0.4);
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
	color: var(--text, #ddd);
}

.playlists-mount-label:hover {
	background: rgba(220, 120, 200, 0.18);
}

.playlists-mount-input {
	display: none;
}

.playlists-mount-error {
	color: rgba(220, 120, 120, 0.9);
	font-size: 11px;
}

.playlists-index-list {
	list-style: none;
	padding: 0;
	margin: 16px 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.playlists-index-item {
	background: rgba(255, 255, 255, 0.03);
	border-left: 3px solid rgba(220, 120, 200, 0.7);
	border-radius: 4px;
}

.playlists-index-link {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 14px;
	color: var(--text, #ddd);
	text-decoration: none;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
}

.playlists-index-link:hover {
	background: rgba(255, 255, 255, 0.05);
}

.playlists-index-slug {
	font-size: 14px;
	font-weight: 600;
}

.playlists-index-count {
	color: var(--text-muted, #888);
	font-size: 11px;
}

.playlists-index-empty {
	padding: 30px 16px;
	color: var(--text-muted, #888);
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: 13px;
}

.playlists-index-empty p {
	margin: 4px 0;
}

.playlists-index-empty .muted {
	color: var(--text-faint, #666);
}.playlist-header {
	margin: 24px 0 16px;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
}

.playlist-back {
	display: inline-block;
	color: var(--text-muted, #888);
	text-decoration: none;
	font-size: 12px;
	margin-bottom: 8px;
}

.playlist-back:hover {
	color: var(--text-bright, #fff);
}

.playlist-title {
	font-size: 24px;
	margin: 4px 0 8px;
	letter-spacing: 0.5px;
}

.playlist-meta {
	color: var(--text-muted, #888);
	font-size: 12px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.playlist-compile {
	background: rgba(220, 120, 200, 0.18);
	border: 1px solid rgba(220, 120, 200, 0.35);
	border-radius: 12px;
	color: var(--text, #ddd);
	padding: 3px 12px;
	font-family: inherit;
	font-size: 11px;
	cursor: pointer;
	letter-spacing: 0.4px;
}

.playlist-compile:hover {
	background: rgba(220, 120, 200, 0.32);
}

.playlist-compile:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.playlist-mounted-badge {
	display: inline-block;
	padding: 2px 8px;
	background: rgba(120, 220, 150, 0.18);
	border: 1px solid rgba(120, 220, 150, 0.4);
	border-radius: 10px;
	color: rgba(120, 220, 150, 1);
	font-size: 10px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-weight: 600;
}

.playlist-body {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-top: 20px;
	padding-bottom: 100px;
}

.playlist-item {
	border-radius: 6px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.playlist-item-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	background: rgba(0, 0, 0, 0.3);
	border-left: 4px solid;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: 12px;
}

.playlist-item-head-left {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.playlist-item-num {
	color: var(--text-muted, #888);
	font-size: 14px;
	font-weight: 600;
}

.playlist-item-label {
	color: var(--text-bright, #eee);
	font-style: italic;
}

.playlist-item-head-right {
	display: flex;
	align-items: baseline;
	gap: 8px;
	color: var(--text-muted, #888);
	font-size: 11px;
}

.playlist-item-spirit {
	color: rgba(220, 180, 100, 0.95);
	text-decoration: none;
	font-weight: 600;
}

.playlist-item-arrow {
	color: var(--text-faint, #555);
}

.playlist-item-entity {
	font-weight: 700;
	text-decoration: none;
}

.playlist-item-date {
	color: var(--text-faint, #666);
}

.playlist-item-permalink {
	color: var(--text-muted, #888);
	text-decoration: none;
	margin-left: 4px;
	font-size: 13px;
}

.playlist-item-permalink:hover {
	color: var(--text-bright, #fff);
}

.playlist-item-events {
	padding: 14px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
}

.playlist-item-error,
.playlist-item-empty {
	padding: 20px;
	text-align: center;
	color: var(--text-muted, #888);
	font-style: italic;
	font-size: 12px;
}

.playlist-item-error {
	color: rgba(220, 120, 120, 0.85);
}

.rituals-index-page {
  min-height: 100vh;
  background: var(--color-bg, #0d0d0d);
}
.rituals-index-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.rituals-index-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 1.5rem;
}
.rituals-index-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.rituals-index-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.rituals-loading,
.rituals-empty {
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 2rem 0;
}

.rituals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rituals-list-item {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.12s;
}
.rituals-list-item:hover {
  border-color: rgba(255,255,255,0.14);
}
.rituals-list-link {
  display: block;
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  background: rgba(255,255,255,0.02);
  transition: background 0.1s;
}
.rituals-list-link:hover {
  background: rgba(255,255,255,0.04);
}
.rituals-list-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}
.rituals-list-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.01em;
}
.rituals-list-description {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.50);
  margin: 0 0 0.6rem;
  line-height: 1.5;
}
.rituals-list-footer {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.rituals-next {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.35);
}
.rituals-authors {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.30);
}
.rituals-author-chip {
  display: inline-block;
  margin-left: 0.3em;
  color: rgba(255,255,255,0.45);
}

.ritual-page {
  min-height: 100vh;
  background: var(--color-bg, #0d0d0d);
}
.ritual-page--loading,
.ritual-page--notfound {
  display: flex;
  align-items: center;
}
.ritual-page-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}
.ritual-loading,
.ritual-notfound {
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.ritual-notfound-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.40);
  text-decoration: none;
  font-family: var(--font-mono);
}
.ritual-notfound-link:hover { color: rgba(255,255,255,0.70); }

.ritual-header {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 1.4rem;
  margin-bottom: 2.2rem;
}
.ritual-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.ritual-name {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin: 0;
  letter-spacing: -0.01em;
}
.ritual-header-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}
.ritual-next-line {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.40);
  margin: 0;
  font-family: var(--font-mono);
}
.ritual-next-line strong {
  color: rgba(255,255,255,0.60);
  font-weight: 600;
}

/* Sections */
.ritual-section {
  margin-bottom: 2.5rem;
}
.ritual-section-heading {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin: 0 0 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Surface card — this week */
.ritual-surface-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
}
.ritual-surface-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.ritual-surface-author {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  font-family: var(--font-mono);
}
.ritual-surface-date {
  font-size: 0.80rem;
  color: rgba(255,255,255,0.38);
  font-family: var(--font-mono);
}
.ritual-surface-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  margin: 0 0 0.5rem;
}
.ritual-surface-copy {
  font-size: 0.90rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0 0 0.85rem;
}
.ritual-surface-empty {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.30);
  font-family: var(--font-mono);
  padding: 1rem 0;
}
.ritual-surface-link {
  font-size: 0.80rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-family: var(--font-mono);
  display: block;
  margin-top: 0.6rem;
}
.ritual-surface-link:hover { color: rgba(255,255,255,0.65); }

/* Next week card */
.ritual-next-week-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 1rem 1.2rem;
}
.ritual-countdown {
  font-size: 1.3rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.75);
  margin: 0 0 0.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ritual-next-author {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
  font-family: var(--font-mono);
}

/* Archive strip */
.ritual-archive-strip {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ritual-archive-item {
  display: grid;
  grid-template-columns: 7rem 6rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.1s;
}
.ritual-archive-item:hover {
  background: rgba(255,255,255,0.04);
}
.ritual-archive-week {
  font-size: 0.80rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.40);
  white-space: nowrap;
}
.ritual-archive-author {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.60);
  font-weight: 600;
}
.ritual-archive-preview {
  font-size: 0.80rem;
  color: rgba(255,255,255,0.32);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Participation */
.ritual-participation-note {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin: 0;
}

/* How it works */
.ritual-how-list {
  padding-left: 1.3rem;
  margin: 0;
  color: rgba(255,255,255,0.50);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* Coming soon placeholder */
.ritual-coming-soon {
  font-size: 0.90rem;
  color: rgba(255,255,255,0.40);
  font-family: var(--font-mono);
  padding: 1.5rem 0 0.5rem;
}
.ritual-description-body {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.6;
  margin: 0.5rem 0 0;
}

.signals-main {
  padding-top: var(--nav-height, 60px);
}

.signals-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
.signals-header {
  margin-bottom: 2rem;
}
.signals-title {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}
.signals-subhead {
  opacity: 0.6;
  font-size: 0.9rem;
  margin: 0;
}

/* Loading / error / empty */
.signals-loading,
.signals-error,
.signals-empty {
  padding: 2rem 0;
  opacity: 0.6;
}

/* Sponsor notice */
.signals-sponsor-notice {
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid currentColor;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Urgency groups */
.signals-group {
  margin-bottom: 2.5rem;
}
.signals-group-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
  opacity: 0.45;
}

/* Signal list */
.signals-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.signals-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(128,128,128,0.12);
}
.signals-item:last-child {
  border-bottom: none;
}
.signals-item-meta {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  opacity: 0.5;
}
.signals-item-entity {
  font-weight: 600;
}
.signals-item-headline {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}
.signals-item-body {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Footer */
.signals-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(128,128,128,0.15);
}
.signals-footer-link {
  font-size: 0.875rem;
  opacity: 0.55;
}
.signals-footer-link:hover {
  opacity: 1;
}

.sovereign-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 2rem 1rem;
}

.sovereign-login-inner {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 12px;
  padding: 2.5rem 2rem;
}

.sovereign-login-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.sovereign-login-subtitle {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.sovereign-login-header {
  margin-bottom: 2rem;
}

.sovereign-field {
  margin-bottom: 1.5rem;
}

.sovereign-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.sovereign-optional {
  font-weight: 400;
  opacity: 0.6;
}

.sovereign-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-raised);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}

.sovereign-input:focus {
  border-color: var(--accent);
}

.sovereign-hint {
  font-size: 0.78rem;
  color: var(--slate-light);
  margin: 0.4rem 0 0;
}

.sovereign-btn {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  background: var(--accent);
  color: #0D0D0D;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.sovereign-btn:hover:not([disabled]) {
  background: var(--accent-dim);
}

.sovereign-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.sovereign-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.sovereign-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.sovereign-error {
  color: #e05555;
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
  background: rgba(224, 85, 85, 0.08);
  border: 1px solid rgba(224, 85, 85, 0.2);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
}

.sovereign-login-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sovereign-footer-note {
  font-size: 0.78rem;
  color: var(--slate-light);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.sovereign-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.85;
  margin-top: 0.5rem;
}

.sovereign-link:hover {
  opacity: 1;
}

.sovereign-login-success {
  text-align: center;
  padding: 1rem 0;
}

.sovereign-success-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.sovereign-success-msg {
  color: var(--text);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

/* ── Sovereign import section ─────────────────────────────────────────────── */

.sovereign-import-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sovereign-import-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.sovereign-import-divider::before,
.sovereign-import-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.sovereign-import-divider-label {
  font-size: 0.78rem;
  color: var(--slate-light);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sovereign-import-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
  font-size: 0.82rem;
}

.sovereign-btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(201, 168, 76, 0.4);
  margin-top: 0;
}

.sovereign-btn-secondary:hover:not([disabled]) {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--accent);
}

/* ── Sovereign sessions panel ────────────────────────────────────────────── */

.sovereign-sessions-panel {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 8px;
}

.sovereign-sessions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.sovereign-sessions-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sovereign-sessions-refresh {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.25rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.sovereign-sessions-refresh:hover { opacity: 1; }

.sovereign-sessions-loading {
  font-size: 0.82rem;
  color: var(--slate-light);
  margin: 0;
}

.sovereign-sessions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sovereign-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sovereign-session-current {
  border-color: rgba(201, 168, 76, 0.25);
  background: rgba(201, 168, 76, 0.05);
}

.sovereign-session-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
}

.sovereign-session-fp code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  letter-spacing: 0.03em;
}

.sovereign-session-badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(201, 168, 76, 0.12);
  border-radius: 3px;
  padding: 0.15em 0.45em;
}

.sovereign-session-when {
  font-size: 0.75rem;
  color: var(--slate-light);
}

.sovereign-session-revoke-btn {
  background: none;
  border: 1px solid rgba(224, 85, 85, 0.35);
  color: #e05555;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.sovereign-session-revoke-btn:hover:not([disabled]) {
  background: rgba(224, 85, 85, 0.1);
  border-color: #e05555;
}

.sovereign-session-revoke-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Link sovereign key panel ────────────────────────────────────────────── */

.sovereign-link-panel {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
}

.sovereign-link-header {
  margin-bottom: 0.75rem;
}

.sovereign-link-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Sovereign link success state ────────────────────────────────────────── */

.sovereign-link-success {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.25);
  border-radius: 6px;
}

.status-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.status-inner .status-hero h1 {
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.status-inner .status-note {
  color: #a1a1aa;
  max-width: 620px;
  line-height: 1.5;
}

.status-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #27272a;
}
.status-footer .muted {
  color: #71717a;
  font-size: 0.85rem;
}
.status-footer code {
  background: #18181b;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.85em;
}/* team/grid/styles.css — entity grid component styles
 * Grid layout and .entity-card styles live in the root styles.css.
 * This file is a placeholder for team-grid-specific overrides if needed.
 */

.blog-main {
	min-height: calc(100vh - 73px);
}

.blog-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 64px 32px 96px;
}

.blog-inner--post {
	max-width: 720px;
}

/* --- Blog index header --- */
.blog-header {
	margin-bottom: 56px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--border);
}

.blog-heading {
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--text);
	margin-bottom: 16px;
	line-height: 1.1;
}

.blog-subhead {
	font-size: 17px;
	color: var(--text-dim);
	line-height: 1.65;
	max-width: 560px;
}

/* --- Blog post list --- */
.blog-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.blog-list-item {
	border-bottom: 1px solid var(--border);
}

.blog-list-link {
	display: block;
	padding: 32px 0;
	transition: none;
}

.blog-list-link:hover .blog-list-title {
	color: var(--accent);
}

.blog-list-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.blog-list-date {
	font-size: 13px;
	font-family: var(--font-mono);
	color: var(--text-dim);
}

.blog-list-pillar,
.blog-list-series {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	background: rgba(201, 168, 76, 0.1);
	padding: 2px 8px;
	border-radius: 2px;
}

.blog-list-title {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text);
	line-height: 1.25;
	margin-bottom: 8px;
	transition: color 0.15s;
}

.blog-list-subtitle {
	font-size: 15px;
	color: var(--text-dim);
	line-height: 1.5;
	margin-bottom: 8px;
}

.blog-list-author {
	font-size: 13px;
	color: var(--slate-light);
	font-family: var(--font-mono);
}

/* --- Blog post article --- */
.blog-article-header {
	margin-bottom: 48px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--border);
}

.blog-article-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.blog-article-title {
	font-size: clamp(28px, 5vw, 44px);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--text);
	line-height: 1.1;
	margin-bottom: 16px;
}

.blog-article-subtitle {
	font-size: 18px;
	color: var(--text-dim);
	line-height: 1.55;
	margin-bottom: 16px;
}

.blog-article-author {
	font-size: 13px;
	color: var(--slate-light);
	font-family: var(--font-mono);
}

/* --- Blog prose body --- */
.blog-article-body.prose {
	font-size: 17px;
	line-height: 1.75;
	color: var(--text);
}

.blog-article-body.prose h1,
.blog-article-body.prose h2,
.blog-article-body.prose h3,
.blog-article-body.prose h4 {
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text);
	margin-top: 48px;
	margin-bottom: 16px;
	line-height: 1.2;
}

.blog-article-body.prose h1 { font-size: 28px; }
.blog-article-body.prose h2 { font-size: 22px; }
.blog-article-body.prose h3 { font-size: 18px; }

.blog-article-body.prose p {
	margin-bottom: 24px;
}

.blog-article-body.prose ul,
.blog-article-body.prose ol {
	margin-bottom: 24px;
	padding-left: 24px;
}

.blog-article-body.prose li {
	margin-bottom: 8px;
}

.blog-article-body.prose a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-color: rgba(201, 168, 76, 0.4);
}

.blog-article-body.prose a:hover {
	text-decoration-color: var(--accent);
}

.blog-article-body.prose code {
	font-family: var(--font-mono);
	font-size: 14px;
	background: var(--bg-raised);
	padding: 2px 6px;
	border-radius: 2px;
	color: var(--accent);
}

.blog-article-body.prose pre {
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 24px;
	overflow-x: auto;
	margin-bottom: 24px;
}

.blog-article-body.prose pre code {
	background: none;
	padding: 0;
	color: var(--text);
	font-size: 13px;
	line-height: 1.6;
}

.blog-article-body.prose blockquote {
	border-left: 3px solid var(--accent);
	padding: 4px 0 4px 24px;
	margin: 32px 0;
	color: var(--text-dim);
	font-style: italic;
}

.blog-article-body.prose hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 40px 0;
}

.blog-article-body.prose strong {
	font-weight: 700;
	color: var(--text);
}

.blog-article-body.prose em {
	font-style: italic;
}

/* --- Blog article footer --- */
.blog-article-footer {
	margin-top: 64px;
	padding-top: 32px;
	border-top: 1px solid var(--border);
}

.blog-back {
	font-size: 14px;
	color: var(--text-dim);
	transition: color 0.15s;
}

.blog-back:hover {
	color: var(--accent);
}

/* --- Loading / error states --- */
.blog-loading {
	color: var(--text-dim);
	font-size: 15px;
	padding: 48px 0;
}

.blog-error {
	color: var(--text-dim);
	font-size: 15px;
	padding: 48px 0;
}

.blog-error a {
	color: var(--accent);
}

.blog-empty {
	color: var(--text-dim);
	font-size: 15px;
	padding: 48px 0;
}

@media (max-width: 640px) {
	.blog-inner { padding: 40px 20px 64px; }
	.blog-header { margin-bottom: 40px; padding-bottom: 32px; }
	.blog-list-link { padding: 24px 0; }
	.blog-article-body.prose pre { padding: 16px; }
}

.me-becoming-panel {
  width: 100%;
  background: var(--bg-raised, #171717);
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
  padding: 24px 0 32px;
}

.me-becoming-panel-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.me-becoming-panel-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim, #A09E9A);
  margin-bottom: 20px;
}

/* ── Full-page anonymous mode shell ──────────────────────────────────────────── */

.me-becoming-full {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* ── Anonymous headline ──────────────────────────────────────────────────────── */

.me-anon-headline {
  margin-bottom: 32px;
}

.me-anon-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--text, #E8E6E1);
  margin-bottom: 10px;
  font-family: var(--font-mono, monospace);
  line-height: 1.3;
}

.me-anon-subhead {
  font-size: 14px;
  color: var(--slate-light, #718096);
  line-height: 1.6;
  max-width: 520px;
}

/* ── Player header ───────────────────────────────────────────────────────────── */

.me-player-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
}

.me-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--slate, #4A5568);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-surface, #111111);
  overflow: hidden;
  /* ring color is set via inline style from playerHueStyle helper */
  transition: border-color 0.4s ease;
}

.me-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Anonymous visitor — identity waiting to form */
.me-avatar-placeholder {
  border-color: var(--slate, #4A5568);
}

.me-avatar-placeholder .me-avatar-sigil {
  opacity: 0.4;
}

.me-avatar-sigil {
  font-size: 24px;
  color: var(--accent, #C9A84C);
  opacity: 0.8;
}

.me-player-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
}

.me-player-handle {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #E8E6E1);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.me-player-handle-dash {
  color: var(--slate, #4A5568);
}

.me-sovereign-indicator {
  font-size: 13px;
  color: var(--accent, #C9A84C);
}

.me-session-badge {
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  color: var(--green, #3EAF6A);
  font-weight: 400;
}

.me-player-tenure {
  font-size: 13px;
  color: var(--text-dim, #A09E9A);
}

.me-stage-dots {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}

.me-stage-dot {
  color: var(--slate, #4A5568);
}

.me-stage-dot.done {
  color: var(--accent, #C9A84C);
}

/* ── Questline stack ─────────────────────────────────────────────────────────── */

.me-questline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Stage card base ─────────────────────────────────────────────────────────── */

.me-stage-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 2px;
  padding: 16px;
  position: relative;
  /* Level-up transition — active→complete class swap drives these */
  transition:
    border-left-color  600ms ease-out,
    border-left-width  600ms ease-out,
    border-color       400ms ease-out,
    padding-left       600ms ease-out,
    padding-top        300ms ease-in-out,
    padding-bottom     300ms ease-in-out,
    background-color   400ms ease-out;
}

.me-stage-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.me-stage-check {
  font-size: 14px;
  color: var(--green, #3EAF6A);
  flex-shrink: 0;
  margin-top: 2px;
  /* Check mark appear — fires when .me-stage-check renders */
  animation: me-check-appear 200ms ease-out 300ms both;
}

@keyframes me-check-appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.me-stage-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.me-stage-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #E8E6E1);
}

/* ── Active stage card (you are here) ───────────────────────────────────────── */

.me-stage-active {
  background: var(--bg-raised, #171717);
  border-color: var(--border, rgba(255,255,255,0.07));
  border-left: 3px solid var(--accent, #C9A84C);
  padding-left: 13px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.me-stage-active .me-stage-label {
  font-size: 15px;
  color: var(--text, #E8E6E1);
}

.me-stage-active .me-stage-icon {
  color: var(--accent, #C9A84C);
}

.me-stage-body {
  font-size: 14px;
  color: var(--text-dim, #A09E9A);
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  transition:
    opacity    200ms ease-in,
    max-height 300ms ease-in-out 100ms;
}

.me-stage-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  background: var(--accent, #C9A84C);
  color: var(--bg, #0A0A0A);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  overflow: hidden;
  transition:
    background 0.15s ease,
    opacity    200ms ease-in,
    max-height 300ms ease-in-out 100ms;
}

.me-stage-cta:hover {
  background: var(--accent-dim, #9B7D35);
}

/* Body content: hidden state (completing card, or not-yet-active card) */
.me-stage-complete .me-stage-body,
.me-stage-complete .me-leaf-chips,
.me-stage-complete .me-stage-cta,
.me-stage-locked .me-stage-body,
.me-stage-locked .me-leaf-chips,
.me-stage-locked .me-stage-cta {
  opacity: 0;
  max-height: 0;
}

/* Body content: visible state (active card) */
.me-stage-active .me-stage-body,
.me-stage-active .me-leaf-chips,
.me-stage-active .me-stage-cta {
  opacity: 1;
  max-height: 200px;
}

/* ── OAuth secondary link (anonymous Stage 1 only) ───────────────────────────── */

.me-oauth-secondary {
  font-size: 13px;
  color: var(--text-dim, #A09E9A);
  margin-top: 4px;
}

.me-oauth-link {
  color: var(--text-dim, #A09E9A);
  text-decoration: none;
}

.me-oauth-link:hover {
  color: var(--text, #E8E6E1);
  text-decoration: underline;
}

/* ── Completed stage card (52px one-liner) ───────────────────────────────────── */

.me-stage-complete {
  background: var(--bg, #0A0A0A);
  border-color: var(--border, rgba(255,255,255,0.07));
  padding: 14px 16px;
  min-height: 52px;
  align-items: center;
}

.me-stage-complete .me-stage-label {
  font-size: 13px;
  color: var(--text-dim, #A09E9A);
  font-weight: 400;
}

.me-stage-done-summary {
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  color: var(--slate-light, #718096);
}

.me-pubkey-display {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: var(--slate, #4A5568);
  opacity: 0.8;
}

.me-manage-link {
  font-size: 12px;
  color: var(--slate-light, #718096);
  text-decoration: none;
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
}

.me-manage-link:hover {
  color: var(--text, #E8E6E1);
  text-decoration: underline;
}

/* ── Locked stage card ───────────────────────────────────────────────────────── */

.me-stage-locked {
  background: var(--bg, #0A0A0A);
  border-color: rgba(255, 255, 255, 0.03);
  padding-top: 16px;
  padding-bottom: 16px;
}

.me-stage-locked .me-stage-label {
  color: var(--slate, #4A5568);
  font-weight: 400;
}

.me-stage-locked .me-stage-icon {
  color: var(--slate, #4A5568);
}

.me-stage-gate {
  font-size: 12px;
  color: var(--slate, #4A5568);
}

/* ── Stage 2 social leaf chips ───────────────────────────────────────────────── */

.me-leaf-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow: hidden;
  transition:
    opacity    200ms ease-in,
    max-height 300ms ease-in-out 100ms;
}

.me-leaf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  background: var(--bg-surface, #111111);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  color: var(--slate-light, #718096);
}

.me-chip-dot {
  font-size: 8px;
}

.me-chip-verified {
  color: var(--text, #E8E6E1);
  border-color: rgba(62, 175, 106, 0.3);
}

.me-chip-verified .me-chip-dot {
  color: var(--green, #3EAF6A);
}

.me-chip-pending {
  color: var(--text-dim, #A09E9A);
  border-color: rgba(201, 168, 76, 0.2);
}

.me-chip-pending .me-chip-dot {
  color: var(--accent-dim, #9B7D35);
}

.me-chip-unlinked .me-chip-dot {
  color: var(--slate, #4A5568);
}

/* ── Stage dot fill animation ────────────────────────────────────────────────── */

.me-stage-dot.done {
  animation: me-dot-fill 300ms ease-out both;
}

@keyframes me-dot-fill {
  0%   { color: var(--slate, #4A5568); }
  60%  { color: var(--accent, #C9A84C); filter: brightness(1.4); }
  100% { color: var(--accent, #C9A84C); filter: brightness(1); }
}

/* ── Sigil pulse on level-up (JS one-shot) ───────────────────────────────────── */

@keyframes me-sigil-pulse {
  0%   { opacity: 1; }
  50%  { opacity: 0.4; }
  100% { opacity: 1; }
}

.me-avatar-sigil.me-pulse {
  animation: me-sigil-pulse 1s ease-in-out 1;
}

/* ── Stage 1 inline ceremony UI (SPEC-149 §6) ───────────────────────────────── */

.me-ceremony-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* SPEC-149 §6 step 3: non-negotiable backup warning — no celebration, prominent */
.me-ceremony-warning {
  font-size: 13px;
  color: var(--text, #E8E6E1);
  line-height: 1.6;
  border-left: 3px solid var(--accent, #C9A84C);
  padding-left: 12px;
  margin: 0;
}

.me-ceremony-status {
  font-size: 13px;
  color: var(--text-dim, #A09E9A);
  font-family: var(--font-mono, monospace);
  margin: 0;
}

.me-ceremony-hint {
  font-size: 12px;
  color: var(--slate, #4A5568);
  margin: 0;
}

.me-ceremony-error {
  font-size: 13px;
  color: #E06C75;
  margin: 0;
}

/* Mnemonic word list — numbered grid */
.me-word-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 12px;
  list-style: none;
  margin: 0;
  padding: 12px;
  background: var(--bg, #0A0A0A);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 2px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}

.me-word-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.me-word-n {
  color: var(--slate, #4A5568);
  font-size: 10px;
  min-width: 16px;
  text-align: right;
}

.me-word {
  color: var(--text, #E8E6E1);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Quiz rows */
.me-quiz-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.me-quiz-label {
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  color: var(--text-dim, #A09E9A);
  min-width: 60px;
  flex-shrink: 0;
}

.me-quiz-input {
  background: var(--bg, #0A0A0A);
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  border-radius: 2px;
  padding: 5px 10px;
  color: var(--text, #E8E6E1);
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  width: 140px;
  outline: none;
}

.me-quiz-input:focus {
  border-color: var(--accent, #C9A84C);
}

.me-ceremony-back-btn {
  display: inline-block;
  margin-top: 6px;
  margin-left: 8px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  color: var(--text-dim, #A09E9A);
  font-size: 12px;
  border-radius: 2px;
  cursor: pointer;
}

.me-ceremony-back-btn:hover {
  color: var(--text, #E8E6E1);
  border-color: var(--text-dim, #A09E9A);
}

.me-link-secondary {
  display: inline-block;
  margin-top: 8px;
  margin-right: 12px;
  font-size: 12px;
  color: var(--text-dim, #A09E9A);
  text-decoration: underline;
  cursor: pointer;
}

.me-link-secondary:hover {
  color: var(--text, #E8E6E1);
}

.me-returning-actions {
  margin-top: 10px;
}

.me-stage-recover-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-dim, #A09E9A);
}

.me-recover-words-input {
  width: 100%;
  min-height: 80px;
  background: var(--bg, #0A0A0A);
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  border-radius: 2px;
  padding: 8px 10px;
  color: var(--text, #E8E6E1);
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  outline: none;
  resize: vertical;
}

.me-recover-words-input:focus {
  border-color: var(--accent, #C9A84C);
}

/* ── Namespace row: [username] @ [kingdom] (VESTA-SPEC-152 §4.1) ──────────────
   Muse visual spec 2026-04-27.
   ─────────────────────────────────────────────────────────────────────────── */

.me-namespace-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 8px;
  width: 100%;
}

.me-namespace-input {
  flex: 1;
  min-width: 100px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  padding: 7px 12px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

.me-namespace-input:focus {
  border-color: var(--accent);
}

/* Kingdom input is slightly wider to handle domain names */
#me-namespace-kingdom {
  flex: 1.4;
  min-width: 120px;
}

.me-namespace-sep {
  padding: 0 8px;
  color: var(--text-dim);
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  flex-shrink: 0;
  user-select: none;
  transition: color 0.15s ease;
}

/* Composed address display below inputs — shown when both fields valid */
.me-namespace-address {
  font-family: var(--font-mono, monospace);
  font-size: 15px;
  color: var(--text);
  margin-top: 8px;
}

.me-namespace-address-user,
.me-namespace-address-kingdom {
  color: var(--text);
}

.me-namespace-sep-inline {
  color: var(--text-dim);
}

.me-namespace-hint {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── TXT proof panel (dotted kingdom — VESTA-SPEC-152 §4.2) ──────────────────── */

.me-proof-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 16px;
  margin-top: 12px;
  transition: border-top 0.15s ease;
}

/* Success modifier — panel border-top goes green on verified */
.me-proof-panel.me-proof-verified {
  border-top: 2px solid var(--green, #4CAF50);
}

.me-proof-separator {
  border: none;
  border-top: 1px dashed rgba(255,255,255,0.07); /* matches --border intent; dashed requires color value */
  margin: 12px 0;
}

.me-proof-panel-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.me-proof-instruction {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.me-proof-record {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 10px 12px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--text);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.me-proof-record-name {
  color: var(--text-dim);
  flex-shrink: 0;
}

.me-proof-record-value {
  flex: 1;
  word-break: break-all;
}

.me-proof-copy-btn {
  font-size: 11px;
  color: var(--slate-light, #718096);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2px 7px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.me-proof-copy-btn:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.me-proof-check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.me-proof-check-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.me-proof-check-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--text-dim);
}

.me-proof-check-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.me-proof-status {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}

.me-proof-status--checking {
  color: var(--text-dim);
}

.me-proof-status--verified {
  color: var(--green, #4CAF50);
  font-size: 13px;
}

.me-proof-status--failed {
  color: var(--error, #E53E3E);
}

.me-proof-retry-note {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 8px;
  font-family: var(--font-mono, monospace);
}

/* Mobile: stack namespace inputs vertically at < 480px */
@media (max-width: 480px) {
  .me-namespace-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  /* @ separator becomes a prefix on the kingdom row */
  .me-namespace-sep {
    display: none;
  }

  #me-namespace-kingdom::before {
    content: '@ ';
    color: var(--text-dim);
  }
}

@media (max-width: 480px) {
  .me-word-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Anonymous handle capture (pre-ceremony, anonymous mode only) ────────────── */

.me-handle-capture {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.me-handle-label {
  font-size: 12px;
  color: var(--text-dim, #A09E9A);
  font-family: var(--font-mono, monospace);
}

.me-handle-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.me-handle-input {
  background: var(--bg, #0A0A0A);
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  border-radius: 2px;
  padding: 7px 12px;
  color: var(--text, #E8E6E1);
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  width: 200px;
  outline: none;
  transition: border-color 0.15s ease;
}

.me-handle-input:focus {
  border-color: var(--accent, #C9A84C);
}

.me-handle-status {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  opacity: 0.8;
}

.me-handle-status--too-short,
.me-handle-status--invalid,
.me-handle-status--taken {
  color: #E06C75;
}

.me-handle-status--checking {
  color: var(--text-dim, #A09E9A);
}

.me-handle-status--available {
  color: var(--green, #3EAF6A);
}

.me-handle-status--error {
  color: var(--accent-dim, #9B7D35);
}

.me-handle-hint {
  font-size: 11px;
  color: var(--green, #3EAF6A);
  font-family: var(--font-mono, monospace);
}

.me-handle-hint--taken {
  color: #E06C75;
}

/* Disabled generate button (anonymous mode: button disabled until handle valid) */
.me-stage-cta:disabled,
button.me-stage-cta[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Mobile ───────────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .me-player-header {
    gap: 12px;
  }
  .me-avatar {
    width: 36px;
    height: 36px;
  }
  .me-avatar-sigil {
    font-size: 16px;
  }
  .me-player-handle {
    font-size: 15px;
  }
}
.rituals-state-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  border: 1px solid transparent;
}
.rituals-state-badge--in-progress {
  background: hsla(145, 50%, 40%, 0.18);
  border-color: hsla(145, 50%, 40%, 0.40);
  color: hsl(145, 50%, 58%);
}
.rituals-state-badge--idle {
  background: hsla(35, 60%, 50%, 0.12);
  border-color: hsla(35, 60%, 50%, 0.30);
  color: hsl(35, 60%, 65%);
}
.rituals-state-badge--overdue {
  background: hsla(10, 60%, 50%, 0.14);
  border-color: hsla(10, 60%, 50%, 0.35);
  color: hsl(10, 60%, 65%);
}

/* Cadence badge */
.rituals-cadence-badge {
  display: inline-block;
  font-size: 0.70rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 4px;
  padding: 0.15em 0.55em;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin-right: 0.4em;
}/* sovereignty-panel styles — placeholder; CSS migration deferred pending Muse decision */
:root {

	--bg:         #0D0D0D;
	--bg-surface: #111111;
	--bg-raised:  #171717;
	--bg-dark:    #0A0A0A;
	--text:       #E8E6E1;
	--text-dim:   #A09E9A;
	--accent:     hsla(222, 92%, 78%, 0.7);
	--accent-dim: #9B7D35;
	--slate:      #4A5568;
	--slate-light:#718096;
	--green:      #3EAF6A;
	--border:     rgba(255,255,255,0.07);
	--border-accent: rgba(201,168,76,0.3);

	--font-body: 'Inter', system-ui, -apple-system, sans-serif;
	--font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

	--max-width: 960px;
	--section-pad: 96px 24px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }


a { color: inherit; text-decoration: none; }

code, pre {
	font-family: var(--font-mono);
}


/* --- Hero --- */
.hero {
	padding: 80px 0px 96px;
	max-width: var(--max-width);
	margin: 0 auto;
}

.hero-headline {
	font-size: clamp(40px, 6vw, 72px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--text);
	margin-bottom: 28px;
}

.hero-subhead {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--slate-light);
	max-width: 600px;
	margin-bottom: 40px;
}

.hero-actions {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
	margin-bottom: 48px;
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	background: var(--accent);
	color: #0A0A0A;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	padding: 12px 24px;
	border-radius: 2px;
	transition: background 0.15s;
	white-space: nowrap;
}

.btn-primary:hover { background: var(--accent-dim); }

.btn-text {
	font-size: 15px;
	font-weight: 400;
	color: var(--slate-light);
	border-bottom: 1px solid var(--slate);
	padding-bottom: 1px;
	transition: color 0.15s, border-color 0.15s;
}

.btn-text:hover { color: var(--text); border-color: var(--text-dim); }

/* Terminal block */
.hero-terminal {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 20px;
}

.terminal-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	background: var(--bg-raised);
	border-bottom: 1px solid var(--border);
	position: relative;
}

.terminal-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--border);
}

.terminal-title {
	margin-left: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--slate);
}

.terminal-body {
	padding: 20px 20px;
	font-size: 13px;
	line-height: 1.7;
	overflow-x: auto;
}

/* Copy button */
.copy-button {
	background: transparent;
	border: none;
	padding: 4px 8px;
	cursor: pointer;
	font-size: 14px;
	color: var(--slate-light);
	opacity: 0.6;
	transition: opacity 0.2s, color 0.2s;
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
}

.copy-button:hover {
	opacity: 1;
	color: var(--accent);
}

.copy-button.copied {
	color: #22c55e;
}

.copy-icon {
	display: inline-block;
}

.hero-supporting {
	font-size: 14px;
	color: var(--slate);
}

.hero-supporting code {
	font-size: 13px;
	color: var(--accent);
}

/* Namespace cards in hero */
.hero-namespaces {
	margin-top: 64px;
	padding-top: 48px;
	border-top: 1px solid var(--border);
}

.namespaces-label {
	font-size: 12px;
	font-family: var(--font-mono);
	color: var(--slate);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 16px;
}

.namespace-cards {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.namespace-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 18px;
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: 2px;
	transition: border-color 0.15s;
	cursor: pointer;
	min-width: 160px;
}

.namespace-card:hover { border-color: var(--border-accent); }

.ns-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ns-name {
	font-family: var(--font-mono);
	font-size: 15px;
	font-weight: 500;
	color: var(--text);
}

.ns-type {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--slate);
}

.ns-desc {
	font-size: 12px;
	color: var(--slate-light);
}

.ns-status {
	font-family: var(--font-mono);
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 2px;
	white-space: nowrap;
}

.ns-active {
	color: var(--green);
	background: rgba(62,175,106,0.1);
}

/* --- Alice CTA Section --- */
.section-alice {
	background: linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 100%);
	border-top: 1px solid var(--border);
	padding: 80px 32px;
}

.section-alice-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 64px;
}

.alice-cta-content {
	flex: 1;
	max-width: 480px;
}

.alice-cta-heading {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--alice-accent);
	margin-bottom: 16px;
}

.alice-cta-body {
	font-size: 18px;
	color: var(--slate-light);
	line-height: 1.65;
	margin-bottom: 32px;
}

.btn-alice {
	display: inline-flex;
	align-items: center;
	background: var(--alice-accent);
	color: #0A0A0A;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 700;
	padding: 14px 28px;
	border-radius: 2px;
	transition: background 0.15s;
	white-space: nowrap;
}
.btn-alice:hover { background: var(--alice-accent-dark); }

.alice-cta-note {
	font-size: 14px;
	color: var(--slate);
	margin-top: 16px;
}

.alice-cta-visual {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.alice-avatar {
	width: 120px;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.alice-avatar-ring {
	position: absolute;
	inset: 0;
	border: 2px solid var(--alice-accent);
	border-radius: 50%;
	opacity: 0.3;
	animation: pulse-ring 2s ease-in-out infinite;
}

.alice-avatar-core {
	font-size: 48px;
	color: var(--alice-accent);
	z-index: 1;
}

.alice-cta-label {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--slate);
}

@keyframes pulse-ring {
	0%, 100% { transform: scale(1); opacity: 0.3; }
	50% { transform: scale(1.08); opacity: 0.15; }
}

@media (max-width: 640px) {
	.section-alice { padding: 56px 20px; }
	.section-alice-inner {
		flex-direction: column;
		text-align: center;
		gap: 40px;
	}
	.alice-cta-content { max-width: 100%; }
}

/* --- Sections --- */
.section {
	padding: var(--section-pad);
	border-top: 1px solid var(--border);
}

.section-dark {
	background: var(--bg-dark);
}

.section-cta {
	background: var(--bg-surface);
}

/* Live Kingdom section — homepage widget */
.section-live {
	background: var(--bg-surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.live-kingdom-header {
	display: flex; align-items: flex-start; justify-content: space-between;
	gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.live-kingdom-link {
	color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600;
	white-space: nowrap; padding-top: 8px; opacity: 0.8; transition: opacity 0.15s;
}
.live-kingdom-link:hover { opacity: 1; }

/* Avatar row — compact entity presence indicators */
.live-avatars {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	margin-bottom: 20px;
}
.live-avatar {
	position: relative;
	width: 40px; height: 40px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 15px; font-weight: 600; color: #fff;
	text-decoration: none; overflow: visible;
	transition: transform 0.15s, box-shadow 0.15s;
}
.live-avatar img.live-avatar-img {
	width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.live-avatar:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.live-avatar--flying {
	box-shadow: 0 0 0 2px hsla(var(--entity-hue, 180), 70%, 55%, 0.7),
	            0 0 12px hsla(var(--entity-hue, 180), 70%, 55%, 0.3);
	animation: liveAvatarPulse 2.5s ease-in-out infinite;
}
@keyframes liveAvatarPulse {
	0%, 100% { box-shadow: 0 0 0 2px hsla(var(--entity-hue, 180), 70%, 55%, 0.7), 0 0 12px hsla(var(--entity-hue, 180), 70%, 55%, 0.3); }
	50% { box-shadow: 0 0 0 3px hsla(var(--entity-hue, 180), 80%, 65%, 0.9), 0 0 20px hsla(var(--entity-hue, 180), 80%, 65%, 0.4); }
}
.live-avatar-dot {
	position: absolute; bottom: 0; right: 0;
	width: 10px; height: 10px; border-radius: 50%;
	background: #5bd5b5; border: 2px solid var(--bg-surface);
	animation: liveAvatarDot 1.5s ease-in-out infinite;
}
@keyframes liveAvatarDot {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}
.live-avatar-rest {
	font-size: 11px; color: var(--text-dim); padding-left: 4px;
}

/* Compact activity feed */
.live-feed {
	display: flex; flex-direction: column; gap: 6px;
}
.live-feed-row {
	display: flex; align-items: center; gap: 8px;
	padding: 6px 10px; border-radius: 4px;
	background: rgba(255,255,255,0.02);
	border: 1px solid var(--border); font-size: 12px;
}
.live-feed-entity {
	font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.live-feed-badge {
	font-size: 9px; padding: 1px 5px; border-radius: 3px;
	text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; flex-shrink: 0;
}
.live-feed-badge--flight  { background: #1a3a3a; color: #5bd5b5; }
.live-feed-badge--notice  { background: #1a3a5c; color: #5b9bd5; }
.live-feed-badge--warning { background: #4a3a1a; color: #d4a535; }
.live-feed-badge--error   { background: #4a1a1a; color: #d55b5b; }
.live-feed-badge--request { background: #3a1a4a; color: #a55bd5; }
.live-feed-badge--alert   { background: #4a3a1a; color: #d4a535; }
.live-feed-body {
	flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	color: var(--text-dim);
}
.live-feed-time {
	font-size: 10px; color: var(--slate); flex-shrink: 0; font-family: var(--font-mono);
}
.live-empty {
	color: var(--slate-light); font-size: 13px; font-style: italic; padding: 8px 0;
}

.section-inner {
	max-width: var(--max-width);
	margin: 0 auto;
}

.section-heading {
	font-size: clamp(24px, 3.5vw, 40px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--text);
	margin-bottom: 32px;
}

.section-subhead {
	font-size: 17px;
	color: var(--slate-light);
	margin-bottom: 48px;
	max-width: 600px;
	line-height: 1.65;
}

/* --- Prose --- */
.prose p {
	font-size: 17px;
	line-height: 1.7;
	color: var(--text-dim);
	margin-bottom: 20px;
}

.prose p:last-child { margin-bottom: 0; }

.prose em { color: var(--text); font-style: italic; }

.prose code {
	font-size: 14px;
	color: var(--accent);
	background: rgba(201,168,76,0.08);
	padding: 1px 6px;
	border-radius: 2px;
}

.prose pre {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 20px;
	overflow-x: auto;
	margin: 24px 0;
}

.prose pre code {
	background: none;
	padding: 0;
	font-size: 13px;
	color: var(--text-dim);
}

.prose h1, .prose h2, .prose h3, .prose h4 {
	color: var(--text);
	line-height: 1.3;
	margin-top: 40px;
	margin-bottom: 12px;
}

.prose h1 { font-size: 28px; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }
.prose h4 { font-size: 16px; }

.prose ul, .prose ol {
	margin: 0 0 20px 24px;
	color: var(--text-dim);
	font-size: 17px;
	line-height: 1.7;
}

.prose li { margin-bottom: 6px; }

.prose blockquote {
	border-left: 3px solid var(--accent);
	margin: 24px 0;
	padding: 12px 20px;
	background: rgba(201,168,76,0.04);
	color: var(--text-dim);
	font-style: italic;
}

.prose a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.prose a:hover { color: var(--text); }

.prose hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 40px 0;
}

.prose strong { color: var(--text); }

/* Directory tree diagram */
.arch-diagram {
	margin-top: 48px;
}

.dir-tree {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-left: 2px solid var(--accent);
	padding: 24px 28px;
	font-size: 13px;
	line-height: 1.8;
	border-radius: 0 2px 2px 0;
	overflow-x: auto;
	color: var(--text);
}

/* Pull quote */
.pull-quote {
	margin-top: 48px;
	font-size: 22px;
	font-weight: 700;
	color: var(--accent);
	letter-spacing: -0.01em;
}

.team-note {
	font-size: 15px;
	color: var(--slate-light);
	line-height: 1.65;
	border-top: 1px solid var(--border);
	padding-top: 32px;
}

/* --- Get Started / Code block --- */
.code-block {
	background: var(--bg);
	border: 1px solid var(--border);
	border-left: 2px solid var(--accent);
	padding: 20px 24px;
	margin-bottom: 16px;
	border-radius: 0 2px 2px 0;
	max-width: 640px;
}

.code-block pre {
	font-size: 14px;
	line-height: 1.7;
	overflow-x: auto;
}

.code-caption {
	font-size: 14px;
	color: var(--slate);
	margin-bottom: 56px;
}

.code-caption code {
	font-size: 13px;
	color: var(--accent);
}

/* --- OS Selector --- */
.os-selector {
	display: flex;
	gap: 0;
	margin-bottom: 24px;
	border-radius: 24px;
	border: 1px solid var(--border);
	overflow: hidden;
	width: fit-content;
}

.os-selector-tab {
	background: transparent;
	border: none;
	padding: 12px 20px;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--slate-light);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.os-selector-tab:hover {
	background: rgba(255, 255, 255, 0.05);
}

.os-selector-tab--active {
	background: var(--accent);
	color: #0A0A0A;
	font-weight: 600;
}

.os-selector-content {
	margin-bottom: 24px;
}

.install-phase {
	margin-top: 24px;
}

.install-tagline {
	font-size: 14px;
	color: var(--slate);
	margin-top: 12px;
	margin-bottom: 24px;
}

/* OS-specific content visibility */
.os-selector-content--linux,
.os-selector-content--macos,
.os-selector-content--windows {
	display: block;
}

.os-selector-content--macos[hidden],
.os-selector-content--windows[hidden] {
	display: none;
}

/* Windows warning */
.os-warning {
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: 2px;
	padding: 20px 24px;
	margin-bottom: 16px;
}

.os-warning-text {
	font-size: 15px;
	color: var(--text-dim);
	line-height: 1.65;
	margin-bottom: 12px;
}

.os-warning-text:last-child {
	margin-bottom: 0;
}

.os-warning-text strong {
	color: var(--text);
}

.os-warning-list {
	margin: 12px 0 16px 20px;
	color: var(--text-dim);
	font-size: 15px;
	line-height: 1.7;
}

.os-warning-list li {
	margin-bottom: 6px;
}

.os-warning-list a {
	color: var(--accent);
	text-decoration: underline;
}

/* Paths grid */
.paths-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.path-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 24px;
	border: 1px solid var(--border);
	border-radius: 2px;
}

.path-card-accent {
	border-color: var(--border-accent);
	background: rgba(201,168,76,0.04);
}

.path-heading {
	font-size: 16px;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.01em;
}

.path-body {
	font-size: 14px;
	color: var(--slate-light);
	line-height: 1.65;
	flex: 1;
}

.path-body code {
	font-size: 13px;
	color: var(--accent);
	background: rgba(201,168,76,0.08);
	padding: 1px 5px;
	border-radius: 2px;
}

.path-link {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--slate);
	transition: color 0.15s;
}

.path-link:hover { color: var(--text); }

.path-link-accent {
	display: inline-flex;
	align-items: center;
	background: var(--accent);
	color: #0A0A0A;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 700;
	padding: 10px 16px;
	border-radius: 2px;
	margin-top: 4px;
	transition: background 0.15s;
}

.path-link-accent:hover { background: var(--accent-dim); }

/* --- Terminal helpers --- */
.t-prompt { color: var(--accent); user-select: none; }
.t-dim { color: var(--slate); }

/* --- Footer --- */
.site-footer {
	padding: 64px 32px;
	border-top: 1px solid var(--border);
	text-align: center;
}

.footer-tagline {
	font-size: 14px;
	color: var(--slate-light);
	margin-bottom: 24px;
	font-style: italic;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 32px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.footer-links a {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--slate);
	transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-meta {
	font-size: 12px;
	color: var(--slate);
}

/* --- Responsive --- */
@media (max-width: 640px) {
	.site-nav { padding: 20px 20px; }
	.hero { padding: 48px 20px 64px; }
	.section { padding: 64px 20px; }
	.site-footer { padding: 48px 20px; }
	.hero-actions { gap: 20px; }
	.footer-links { gap: 20px; }
}

/* blog → src/client/blog/styles.css */

/* ============================================================
   Alice — 12-level learning journey
   Warm gold palette, conversation-first, mobile-first
   Design: Muse alice-ui-design-brief.md
   ============================================================ */

.alice-shell {
	min-height: 100vh;
	background: var(--alice-bg);
	color: var(--alice-text);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.65;
}

/* --- Nav --- */
.alice-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	border-bottom: 1px solid var(--alice-border);
	position: sticky;
	top: 0;
	background: var(--alice-bg);
	z-index: 10;
}

.alice-back {
	background: none;
	border: none;
	color: var(--alice-subtle);
	font-size: 14px;
	cursor: pointer;
	font-family: var(--font-body);
	padding: 0;
	text-decoration: none;
	transition: color 0.15s;
}
.alice-back:hover { color: var(--alice-text); }

.alice-nav-title {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--alice-subtle);
}
.alice-nav-progress {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--alice-accent);
	padding-left: 12px;
	border-left: 1px solid var(--alice-border);
	margin-left: 12px;
}
.alice-nav-foundations {
	font-size: 12px;
	color: var(--alice-subtle);
	font-family: var(--font-mono);
	letter-spacing: 0.04em;
	opacity: 0.7;
	padding-left: 12px;
	border-left: 1px solid var(--alice-border);
	margin-left: 12px;
}
@media (max-width: 400px) {
	.alice-nav-foundations { display: none; }
}

/* --- Mark --- */
.alice-mark {
	color: var(--alice-accent);
	font-size: 32px;
	text-align: center;
	margin-bottom: 24px;
}
.alice-mark--large { font-size: 56px; }

/* --- Intro --- */
.alice-intro {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 40px 24px;
}

.alice-intro-inner {
	max-width: 480px;
	width: 100%;
}

.alice-bubble {
	background: var(--alice-surface);
	border: 1px solid var(--alice-border);
	border-top: 3px solid var(--alice-accent);
	border-radius: 2px;
	padding: 28px 32px;
	margin-bottom: 32px;
}

.alice-bubble p { margin-bottom: 16px; }
.alice-bubble p:last-child { margin-bottom: 0; }

.alice-bubble--intro p { font-size: 18px; }
.alice-bubble--grad p { font-size: 17px; }

.alice-name {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--alice-accent);
	margin-bottom: 16px !important;
	letter-spacing: 0.05em;
}

.alice-intro-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

/* --- Buttons --- */
.alice-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--alice-accent);
	color: #0A0A0A;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 700;
	padding: 14px 32px;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.15s;
	width: 100%;
	max-width: 320px;
}
.alice-btn-primary:hover { background: var(--alice-accent-dark); }

.alice-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--alice-accent);
	color: var(--alice-accent);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	padding: 12px 28px;
	border-radius: 2px;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.alice-btn-secondary:hover { background: rgba(244,184,68,0.08); }

.alice-link-subtle {
	font-size: 14px;
	color: var(--alice-subtle);
	text-decoration: none;
	border-bottom: 1px solid var(--alice-border);
	padding-bottom: 1px;
	transition: color 0.15s;
}
.alice-link-subtle:hover { color: var(--alice-text); }

/* --- Journey --- */
.alice-journey { padding-bottom: 80px; }

.alice-journey-inner {
	max-width: 640px;
	margin: 0 auto;
	padding: 40px 24px;
}

.alice-journey-heading {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--alice-text);
	margin-bottom: 32px;
}

.alice-level-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 32px;
}

.alice-level-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: var(--alice-surface);
	border: 1px solid var(--alice-border);
	border-radius: 2px;
	cursor: pointer;
	transition: border-color 0.15s;
}
.alice-level-row:hover { border-color: var(--alice-accent); }

.level--locked { opacity: 0.45; cursor: default; }
.level--locked:hover { border-color: var(--alice-border); }
.level--done { opacity: 0.7; }
.level--active { border-color: rgba(244,184,68,0.3); }

.alice-level-icon {
	font-size: 18px;
	color: var(--alice-accent);
	width: 24px;
	text-align: center;
	flex-shrink: 0;
}
.level--done .alice-level-icon { color: var(--alice-success); }
.level--locked .alice-level-icon { color: var(--alice-subtle); }

.alice-level-info { flex: 1; }

.alice-level-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--alice-text);
	margin-bottom: 2px;
}

.alice-level-meta {
	font-size: 12px;
	color: var(--alice-subtle);
	font-family: var(--font-mono);
}

.alice-btn-level {
	background: none;
	border: 1px solid var(--alice-accent);
	color: var(--alice-accent);
	font-family: var(--font-body);
	font-size: 13px;
	padding: 6px 14px;
	border-radius: 2px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s;
	flex-shrink: 0;
}
.alice-btn-level:hover { background: rgba(244,184,68,0.1); }
.alice-btn-level--done { border-color: var(--alice-subtle); color: var(--alice-subtle); }

.alice-progress-note {
	font-size: 13px;
	color: var(--alice-subtle);
	font-family: var(--font-mono);
	text-align: center;
}

/* --- Two-column layout (profile + chat) --- */
.alice-layout {
	display: flex;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.alice-profile {
	width: 296px;
	flex-shrink: 0;
	padding: 24px;
	border-right: 1px solid var(--alice-border);
	overflow-y: auto;
	position: sticky;
	top: 53px;
	align-self: flex-start;
	max-height: calc(100vh - 53px);
}

.alice-profile-avatar {
	margin-bottom: 16px;
}

.alice-avatar-circle {
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: var(--alice-surface);
	border: 1px solid var(--alice-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 72px;
	color: var(--alice-accent);
}

.alice-profile-name {
	font-size: 24px;
	font-weight: 700;
	color: var(--alice-text);
	margin: 0 0 2px;
	line-height: 1.3;
}

.alice-profile-handle {
	font-size: 14px;
	color: var(--alice-subtle);
	font-family: var(--font-mono);
	margin: 0 0 16px;
}

.alice-profile-bio {
	font-size: 15px;
	color: var(--alice-text);
	line-height: 1.55;
	margin: 0 0 16px;
	opacity: 0.85;
}

.alice-profile-stats {
	display: flex;
	gap: 16px;
	padding: 12px 0;
	margin-bottom: 16px;
	border-top: 1px solid var(--alice-border);
	border-bottom: 1px solid var(--alice-border);
}

.alice-profile-stat {
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.alice-stat-value {
	font-size: 16px;
	font-weight: 700;
	color: var(--alice-text);
}

.alice-stat-label {
	font-size: 13px;
	color: var(--alice-subtle);
}

.alice-profile-details {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.alice-profile-detail {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--alice-subtle);
}

.alice-detail-icon {
	width: 16px;
	text-align: center;
	flex-shrink: 0;
	color: var(--alice-subtle);
}

.alice-detail-link {
	color: var(--alice-accent);
	text-decoration: none;
}
.alice-detail-link:hover {
	text-decoration: underline;
}

/* --- Chat main area --- */
.alice-chat-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	position: relative;
}

/* --- Lesson conversation --- */
.alice-lesson {
	display: flex;
	flex-direction: column;
	height: 100vh;
}

.alice-conversation {
	flex: 1;
	overflow-y: auto;
	padding: 32px 24px 120px;
	width: 100%;
}

.alice-message {
	margin-bottom: 28px;
}

.alice-msg-sender {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--alice-accent);
	margin-bottom: 8px;
	letter-spacing: 0.05em;
}

.alice-message--human {
	text-align: right;
}

.alice-message--human .alice-msg-sender {
	color: var(--alice-subtle);
}

.alice-message--human .alice-msg-body {
	display: inline-block;
	text-align: left;
	background: rgba(244,184,68,0.06);
	padding: 10px 16px;
	border-radius: 4px;
	max-width: 85%;
}

.alice-msg-body {
	font-size: 17px;
	line-height: 1.7;
	color: var(--alice-text);
}

.alice-msg-body p { margin: 0 0 14px; }
.alice-msg-body p:last-child { margin-bottom: 0; }
.alice-msg-body em { color: var(--alice-accent); font-style: normal; font-weight: 600; }
.alice-msg-body strong { color: var(--alice-text); font-weight: 600; }
.alice-msg-body code {
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--alice-accent);
	background: rgba(244,184,68,0.08);
	padding: 1px 6px;
	border-radius: 2px;
}
.alice-msg-body pre {
	background: rgba(0,0,0,0.3);
	border: 1px solid var(--alice-border);
	border-radius: 4px;
	padding: 14px;
	overflow-x: auto;
	margin: 12px 0;
}
.alice-msg-body pre code {
	background: none;
	padding: 0;
	color: var(--alice-text);
	font-size: 13px;
}
.alice-msg-body ul, .alice-msg-body ol {
	margin: 0 0 14px 22px;
}
.alice-msg-body li { margin-bottom: 4px; }

.alice-btn-continue {
	display: block;
	width: 100%;
	max-width: 200px;
	background: none;
	border: 1px solid var(--alice-border);
	color: var(--alice-text);
	font-family: var(--font-body);
	font-size: 14px;
	padding: 10px 20px;
	border-radius: 2px;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
	margin-top: 8px;
}
.alice-btn-continue:hover { border-color: var(--alice-accent); color: var(--alice-accent); }

/* --- Checkpoint --- */
.alice-checkpoint {
	margin-top: 8px;
	padding: 24px;
	background: var(--alice-surface);
	border: 1px solid var(--alice-border);
	border-left: 3px solid var(--alice-accent);
	border-radius: 0 2px 2px 0;
}

.alice-checkpoint-label {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--alice-accent);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.alice-checkpoint-question {
	font-size: 16px;
	color: var(--alice-text);
	line-height: 1.6;
	margin-bottom: 20px;
}

.alice-checkpoint-input {
	width: 100%;
	background: var(--alice-bg);
	border: 1px solid var(--alice-border);
	color: var(--alice-text);
	font-family: var(--font-body);
	font-size: 15px;
	padding: 12px 16px;
	border-radius: 2px;
	resize: vertical;
	min-height: 80px;
	margin-bottom: 16px;
	transition: border-color 0.15s;
}
.alice-checkpoint-input:focus {
	outline: none;
	border-color: var(--alice-accent);
}
.alice-checkpoint-input::placeholder { color: var(--alice-subtle); }

/* --- Chat input bar --- */
.alice-chat-input-bar {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 12px 24px;
	background: var(--alice-bg);
	border-top: 1px solid var(--alice-border);
	z-index: 10;
}

.alice-chat-complete-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px 24px;
	background: var(--alice-bg);
	border-top: 1px solid var(--alice-accent);
	z-index: 10;
}

.alice-complete-mark {
	color: var(--alice-accent);
	font-size: 18px;
}

.alice-complete-text {
	color: var(--alice-accent);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
}

.alice-btn-next-level {
	background: var(--alice-accent);
	color: var(--alice-bg);
	border: none;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.15s;
}

.alice-btn-next-level:hover {
	opacity: 0.85;
}

.alice-chat-input {
	flex: 1;
	background: var(--alice-surface);
	border: 1px solid var(--alice-border);
	color: var(--alice-text);
	font-family: var(--font-body);
	font-size: 15px;
	padding: 10px 14px;
	border-radius: 4px;
	resize: none;
	overflow-y: auto;
	max-height: 120px;
	line-height: 1.5;
	transition: border-color 0.15s;
}

.alice-chat-input:focus {
	outline: none;
	border-color: var(--alice-accent);
}

.alice-chat-input::placeholder { color: var(--alice-subtle); }

.alice-btn-send {
	background: var(--alice-accent);
	color: var(--alice-bg);
	border: none;
	font-size: 18px;
	width: 40px;
	height: 40px;
	border-radius: 4px;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s;
}

.alice-btn-send:hover { background: var(--alice-accent-dark); }

.alice-msg-streaming {
	opacity: 0.9;
}

.alice-msg-thinking {
	color: var(--alice-subtle);
	animation: alice-pulse 1.2s ease-in-out infinite;
}

@keyframes alice-pulse {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 1; }
}

/* --- Graduation --- */
.alice-graduation { padding-bottom: 80px; }

.alice-graduation-inner {
	max-width: 560px;
	margin: 0 auto;
	padding: 40px 24px;
}

.alice-certificate {
	background: var(--alice-surface);
	border: 1px solid var(--alice-accent);
	border-radius: 2px;
	padding: 32px;
	margin: 32px 0;
}

.alice-cert-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--alice-border);
}

.alice-cert-mark {
	color: var(--alice-accent);
	font-size: 24px;
}

.alice-cert-title {
	font-family: var(--font-mono);
	font-size: 14px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--alice-text);
}

.alice-cert-body { display: flex; flex-direction: column; gap: 20px; }

.alice-cert-line {
	font-size: 15px;
	color: var(--alice-text);
	line-height: 1.6;
}

.alice-cert-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.alice-cert-label {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--alice-subtle);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 4px;
}

.alice-cert-value {
	font-size: 14px;
	color: var(--alice-text);
}

.alice-cert-sig { padding-top: 16px; border-top: 1px solid var(--alice-border); }

.alice-cert-pgp {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--alice-subtle);
	line-height: 1.5;
	margin-top: 8px;
	word-break: break-all;
	white-space: pre-wrap;
}

.alice-grad-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.alice-grad-note {
	font-size: 14px;
	color: var(--alice-subtle);
	text-align: center;
	line-height: 1.6;
}

/* --- Alice name prompt --- */

.alice-name-prompt-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 360px;
	margin: 20px auto 8px;
}

.alice-name-input {
	background: #1a1a1a;
	border: 1px solid var(--alice-border);
	border-radius: 6px;
	color: var(--alice-text);
	font-size: 16px;
	padding: 12px 14px;
	outline: none;
	transition: border-color 0.15s;
	width: 100%;
	box-sizing: border-box;
}

.alice-name-input:focus {
	border-color: var(--alice-accent);
}

.alice-name-prompt-note {
	font-size: 13px;
	color: var(--alice-subtle);
	text-align: center;
	line-height: 1.5;
	margin-top: 4px;
}

/* --- Alice locked level affordance --- */

.alice-locked-affordance {
	background: #111;
	border: 1px solid var(--alice-border);
	border-top: none;
	padding: 14px 16px 16px;
	margin-top: -1px;
}

.alice-locked-affordance-msg {
	font-size: 14px;
	color: var(--alice-subtle);
	line-height: 1.5;
	margin: 0 0 8px;
}

.alice-locked-assess-btn {
	background: transparent;
	border: none;
	color: var(--alice-accent);
	font-size: 14px;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.alice-locked-assess-btn:hover {
	color: var(--alice-accent-dark);
}

/* --- Alice certificate UUID --- */

.alice-cert-uuid {
	font-family: 'Space Mono', monospace, monospace;
	font-size: 12px;
	word-break: break-all;
}

/* --- Alice responsive --- */
@media (max-width: 768px) {
	.alice-layout {
		flex-direction: column;
	}
	.alice-profile {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid var(--alice-border);
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px 20px;
		padding: 16px 20px;
	}
	.alice-avatar-circle {
		width: 64px;
		height: 64px;
		font-size: 24px;
	}
	.alice-profile-avatar {
		margin-bottom: 0;
	}
	.alice-profile-name {
		font-size: 18px;
		margin: 0;
	}
	.alice-profile-handle {
		margin: 0;
		width: 100%;
		flex-basis: 100%;
		display: none;
	}
	.alice-profile-bio {
		display: none;
	}
	.alice-profile-stats {
		border: none;
		margin: 0;
		padding: 0;
	}
	.alice-profile-details {
		display: none;
	}
	.alice-profile {
		position: static;
		max-height: none;
	}
	.alice-conversation {
		padding-top: 16px;
	}
}
@media (max-width: 640px) {
	.alice-bubble { padding: 20px 20px; }
	.alice-journey-inner { padding: 24px 16px; }
	.alice-conversation { padding: 24px 16px 100px; }
	.alice-graduation-inner { padding: 24px 16px; }
	.alice-cert-meta { grid-template-columns: 1fr; }
	.alice-chat-input-bar { padding: 10px 16px; }
}

/* ── Not Found (404) ───────────────────────────────────────────────────────── */
.not-found {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
}

.not-found-content {
	text-align: center;
	padding: 2rem;
}

.not-found-code {
	font-size: 8rem;
	font-weight: 800;
	color: var(--accent);
	line-height: 1;
	margin: 0 0 1rem;
	font-family: 'JetBrains Mono', monospace;
}

.not-found-message {
	font-size: 1.25rem;
	color: var(--text-dim);
	margin: 0 0 2rem;
}

.not-found-message strong {
	color: var(--text);
}

.not-found-link {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: var(--accent);
	color: var(--bg);
	font-weight: 700;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.not-found-link:hover {
	background: var(--accent-dim);
}

/* ── Namespace Page ─────────────────────────────────────────────────────────── */
.namespace-page {
	min-height: 100vh;
	background: var(--bg);
	padding: 4rem 2rem;
}

.namespace-header {
	text-align: center;
	margin-bottom: 3rem;
}

.namespace-name {
	font-size: 4rem;
	font-weight: 800;
	color: var(--accent);
	margin: 0;
	font-family: 'JetBrains Mono', monospace;
}

.namespace-domain {
	font-size: 1.25rem;
	color: var(--text-dim);
	margin: 0.5rem 0 0;
}

.namespace-content {
	max-width: 600px;
	margin: 0 auto;
}

.namespace-section {
	background: var(--bg-surface);
	border: 1px solid var(--bg-raised);
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.namespace-section h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text);
	margin: 0 0 0.75rem;
}

.namespace-section p {
	color: var(--text-dim);
	margin: 0;
}

.namespace-link {
	color: var(--accent);
	text-decoration: none;
	font-weight: 700;
}

.namespace-link:hover {
	text-decoration: underline;
}

/* ============================================================
   Entity Profile Pages — /:name
   Mirrors Alice's two-column layout, own CSS namespace.
   Design system: Muse. Implementation: Vulcan. 2026-04-15.
   ============================================================ */

.entity-shell {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	height: 100vh;
	background: var(--bg);
	color: var(--text);
}

.entity-nav {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 24px;
	border-bottom: 1px solid var(--border);
	background: var(--bg);
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom-color: color-mix(in srgb, var(--entity-accent, var(--accent)) 25%, transparent);
}

.entity-back {
	font-size: 14px;
	color: var(--text-dim);
	text-decoration: none;
	transition: color 0.15s;
}
.entity-back:hover {
	color: var(--accent);
}

.entity-nav-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
}

/* --- Two-column layout --- */
.entity-layout {
	display: flex;
	flex: 1;
	min-height: 0;
	overflow-y: auto; /* single scroll context — both columns scroll together */
	padding-top: 69px;
}

/* Left sidebar, avatar, stats, details, bonds, actions — moved to kingofalldata:brand-components client/entity/profile/medium/styles.css */

.entity-btn-conversation {
	display: block;
	width: 100%;
	padding: 8px 16px;
	background: transparent;
	color: var(--accent);
	font-size: 14px;
	font-weight: 600;
	border: 1px solid var(--border-accent);
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}
.entity-btn-conversation:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* --- Right: activity feed --- */
.entity-activity-main {
	flex: 1;
	overflow-y: visible; /* single scroll context — no independent column scroll */
	padding: 24px;
	min-width: 0;
}

/* ── Public last-5 flights block (entity profile, above insider gate) ─────── */
.entity-public-flights {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border);
}

.entity-public-flights-heading {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 12px;
}

.entity-public-flight-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255,255,255,0.04);
	text-decoration: none;
	color: var(--text);
	transition: color 0.12s;
}

.entity-public-flight-row:last-child {
	border-bottom: none;
}

.entity-public-flight-row:hover {
	color: var(--entity-accent, var(--accent));
}

.entity-public-flight-slug {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	color: var(--text-dim);
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.entity-public-flight-status {
	font-size: 10px;
	font-family: 'JetBrains Mono', monospace;
	padding: 2px 6px;
	border-radius: 2px;
	flex-shrink: 0;
}

.entity-public-flight-status--landed {
	color: var(--entity-accent, var(--accent));
	border: 1px solid var(--entity-accent, var(--accent));
	opacity: 0.7;
}

.entity-public-flight-status--flying {
	color: #5bd5b5;
	border: 1px solid rgba(91, 213, 181, 0.4);
}

.entity-public-flight-duration {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	color: var(--text-dim);
	flex-shrink: 0;
}

.entity-public-flight-time {
	font-size: 11px;
	color: var(--slate);
	flex-shrink: 0;
}

.entity-activity-header {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.entity-activity-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
}

.entity-activity-note {
	font-size: 13px;
	color: var(--text-dim);
	font-family: var(--font-mono);
}

.entity-activity-feed {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 32px;
}

.entity-activity-entry {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px;
	background: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.entity-activity-icon {
	font-size: 18px;
	color: var(--entity-accent, var(--accent));
	flex-shrink: 0;
	width: 24px;
	text-align: center;
	margin-top: 2px;
}

.entity-activity-content {
	flex: 1;
	min-width: 0;
}

.entity-activity-type {
	font-size: 11px;
	font-family: var(--font-mono);
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	display: block;
	margin-bottom: 4px;
}

.entity-activity-desc {
	font-size: 14px;
	color: var(--text);
	line-height: 1.5;
	margin: 0 0 6px;
}

.entity-activity-link {
	font-size: 13px;
	color: var(--accent);
	text-decoration: none;
	font-family: var(--font-mono);
}
.entity-activity-link:hover {
	text-decoration: underline;
}

.entity-activity-time {
	font-size: 12px;
	color: var(--text-dim);
	font-family: var(--font-mono);
	flex-shrink: 0;
	white-space: nowrap;
}

.entity-activity-stub-note {
	font-size: 13px;
	color: var(--text-dim);
	font-family: var(--font-mono);
	text-align: center;
	padding: 16px;
	border: 1px dashed var(--border);
	border-radius: 6px;
}

/* --- 404 state --- */
.entity-not-found {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 64px 24px;
	text-align: center;
}

.entity-not-found-mark {
	font-size: 48px;
	margin-bottom: 24px;
	opacity: 0.4;
}

.entity-not-found-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 12px;
}

.entity-not-found-title code {
	font-family: var(--font-mono);
	color: var(--accent);
}

.entity-not-found-body {
	font-size: 15px;
	color: var(--text-dim);
	margin-bottom: 32px;
}

.entity-not-found-link {
	font-size: 14px;
	color: var(--accent);
	text-decoration: none;
}
.entity-not-found-link:hover {
	text-decoration: underline;
}

/* Avatar glow + flight status block — moved to kingofalldata:brand-components client/entity/profile/medium/styles.css */


/* --- Responsive: collapse to single column on narrow viewports --- */
/* .entity-profile and .entity-avatar-circle responsive rules moved to
   kingofalldata:brand-components client/entity/profile/medium/styles.css */
@media (max-width: 768px) {
	.entity-layout {
		flex-direction: column;
		overflow-y: auto;
	}
	.entity-activity-main {
		padding: 24px 16px;
	}
}

/* ============================================================
   theTeam — flight awareness additions
   ============================================================ */

.entity-status.flying {
	color: #5bd5b5;
	background: rgba(91,213,181,0.1);
	position: relative;
}

.entity-status.flying::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #5bd5b5;
	margin-right: 5px;
	animation: pulse-dot 1.4s ease-in-out infinite;
	vertical-align: middle;
}

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

.entity-flight-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.entity-flight-brief {
	font-family: var(--font-mono);
	font-size: 11px;
	color: #5bd5b5;
	opacity: 0.85;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 160px;
}

.entity-flight-elapsed {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-dim);
	white-space: nowrap;
}


/* ── EntityChat component ──────────────────────────────────────────────────── */

.entity-panel-tabs {
	display: flex;
	gap: 0;
	border-bottom: 1px solid var(--border);
	margin-bottom: 0;
}

.entity-panel-tab {
	padding: 10px 20px;
	font-size: 13px;
	font-family: var(--font-body);
	color: var(--text-dim);
	cursor: pointer;
	border: none;
	background: none;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}

.entity-panel-tab--active {
	color: var(--text);
	border-bottom-color: var(--entity-accent, var(--accent));
}

.entity-panel-tab:hover:not(.entity-panel-tab--active) {
	color: var(--text);
}
/* Fade-in animation for tab content */
.entity-activity-main > *:not(.entity-panel-tabs) {
	animation: entity-tab-fade 0.15s ease-out;
}

@keyframes entity-tab-fade {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Avatar thinking pulse (while entity is responding in chat) */
.entity-avatar-thinking {
	animation: entity-avatar-pulse 1.4s ease-in-out infinite;
}

/* ============================================================
   Entity card stats — live index numbers on team grid cards
   ============================================================ */

.entity-card-stats {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.entity-card-stat {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--slate);
	opacity: 0.75;
}


/* Entity profile — emissions feed */
.entity-emissions-feed {
	margin-top: 24px;
}
.entity-section-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted, #7a8a99);
	font-family: var(--font-mono, monospace);
	margin: 0 0 10px 0;
}
.entity-emission-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid rgba(255,255,255,0.04);
	font-size: 13px;
	line-height: 1.4;
}
.entity-emission-row--error   { border-left: 2px solid rgba(213,91,91,0.4); padding-left: 6px; }
.entity-emission-row--warning { border-left: 2px solid rgba(212,165,53,0.3); padding-left: 6px; }
.entity-emission-type-badge {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 1px 5px;
	border-radius: 3px;
	flex-shrink: 0;
	font-family: var(--font-mono, monospace);
}
.entity-emission-type-badge--notice  { color: #5b9bd5; background: rgba(91,155,213,0.12); }
.entity-emission-type-badge--warning { color: #d4a535; background: rgba(212,165,53,0.12); }
.entity-emission-type-badge--error   { color: #d55b5b; background: rgba(213,91,91,0.12); }
.entity-emission-type-badge--request { color: #a55bd5; background: rgba(165,91,213,0.12); }
.entity-emission-body {
	flex: 1;
	color: var(--text, #c8d4e0);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.entity-emission-time {
	font-size: 11px;
	color: var(--text-muted, #7a8a99);
	flex-shrink: 0;
	font-family: var(--font-mono, monospace);
}

/* Quiz-result card — dedicated render for QC emissions */
.entity-quiz-card {
	padding: 10px 12px;
	margin: 6px 0;
	border-radius: 6px;
	background: rgba(255,255,255,0.03);
	border-left: 3px solid var(--text-muted, #7a8a99);
}
.entity-quiz-card--pass    { border-left-color: #6bbd6b; background: rgba(107,189,107,0.05); }
.entity-quiz-card--partial { border-left-color: #d4a535; background: rgba(212,165,53,0.05); }
.entity-quiz-card--fail    { border-left-color: #d55b5b; background: rgba(213,91,91,0.05); }
.entity-quiz-header {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 8px;
}
.entity-quiz-badge {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	padding: 1px 6px;
	border-radius: 3px;
	color: #a55bd5;
	background: rgba(165,91,213,0.12);
	font-family: var(--font-mono, monospace);
}
.entity-quiz-name {
	flex: 1;
	font-size: 13px;
	color: var(--text, #c8d4e0);
	font-weight: 500;
}
.entity-quiz-score {
	font-size: 13px;
	font-family: var(--font-mono, monospace);
	color: var(--text, #c8d4e0);
	font-weight: 600;
}
.entity-quiz-time {
	font-size: 11px;
	color: var(--text-muted, #7a8a99);
	font-family: var(--font-mono, monospace);
}
.entity-quiz-bars {
	display: flex;
	gap: 2px;
	height: 18px;
	align-items: stretch;
	font-family: var(--font-mono, monospace);
	font-size: 10px;
}
.entity-quiz-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 6px;
	border-radius: 3px;
	color: var(--text, #c8d4e0);
	font-weight: 600;
	min-width: 24px;
}
.entity-quiz-bar--pass    { background: rgba(107,189,107,0.25); }
.entity-quiz-bar--partial { background: rgba(212,165,53,0.25); }
.entity-quiz-bar--fail    { background: rgba(213,91,91,0.25); }
.entity-quiz-bar--timeout { background: rgba(122,138,153,0.25); }

/* access/card shell → src/client/access/card/styles.css */

/* Phase 1b: Muse sponsor CTA — btn-sponsor-path (cross-component: access/card + disclosure-dashboard) */
.btn-sponsor-path {
	display: inline-flex;
	align-items: center;
	background: var(--accent, #C9A84C);
	color: #0A0A0A;
	font-family: var(--font-body, 'Inter'), sans-serif;
	font-size: 14px;
	font-weight: 700;
	padding: 8px 16px;
	border-radius: 2px;
	text-decoration: none;
	transition: background 0.15s;
}

.btn-sponsor-path:hover {
	background: var(--accent-dim, #9B7D35);
}

/* access/card scorecard trigger → src/client/access/card/styles.css */
/* access/scorecard-inline → src/client/access/scorecard-inline/styles.css */

/* team grid: subtle sign-in hint when bonds/keys are gated */
.entity-card-stat-hint {
	font-size: 10px;
	color: var(--slate, #4A5568);
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: color 0.15s;
}
.entity-card-stat-hint:hover {
	color: var(--accent-dim, #9B7D35);
}

/* disclosure-dashboard → src/client/disclosure-dashboard/disclosure-dashboard/styles.css */


/* =======================================================
   Phase 5 — Integration polish
   Muse R1 §1 (XP tick), §5 (group sigils), §6 (harness ambient, live dot)
   ======================================================= */

.harness-ambient {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-light);
  padding: 8px 0;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}


.entity-card-avatar img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entity-card-avatar-wrap {
  position: relative;
  display: inline-block;
}

.entity-live-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--entity-accent, var(--accent));
  animation: live-dot-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

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

/* group-sigil, leaf-card-tick → src/client/disclosure-dashboard/disclosure-dashboard/styles.css */

/* sovereign-login → src/client/sovereign-login/shell/styles.css */

/* ── Last-landing banner ─────────────────────────────────────────────────── */

@keyframes last-landing-breathe {
  0%   { opacity: 0.85; }
  50%  { opacity: 1.0; }
  100% { opacity: 0.85; }
}

.last-landing-banner {
  width: 100%;
  background: hsla(var(--entity-hue, 0), 40%, 18%, 0.55);
  border-bottom: 1px solid hsla(var(--entity-hue, 0), 40%, 45%, 0.25);
  padding: 0.38rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: hsla(var(--entity-hue, 0), 30%, 75%, 0.9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  animation: last-landing-breathe 5s ease-in-out infinite;
}

.last-landing-glyph {
  opacity: 0.7;
  flex-shrink: 0;
}

.last-landing-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  flex-wrap: wrap;
}

.last-landing-link:hover {
  color: hsla(var(--entity-hue, 0), 60%, 85%, 1);
}

.last-landing-entity {
  color: hsla(var(--entity-hue, 0), 65%, 72%, 1);
  font-weight: 500;
}

.last-landing-sep {
  opacity: 0.45;
}

.last-landing-age {
  opacity: 0.85;
}

.last-landing-cost {
  opacity: 0.75;
}

.last-landing-sha {
  opacity: 0.45;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
}

/* ── Live stats strip ────────────────────────────────────────────────────── */

.live-stats-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim, rgba(255,255,255,0.35));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.75rem;
}

.live-stat {
  letter-spacing: 0.02em;
}

.live-stat-sep {
  opacity: 0.3;
}

/* ── Hero CTA reframe sentence — Faber Round 2 ──────────────────────────── */

.hero-cta-reframe {
  font-variant: small-caps;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  opacity: 0;
  margin-top: 1.5rem;
  animation: fadeInReframe 800ms ease forwards;
  animation-delay: 1.2s;
}

@keyframes fadeInReframe {
  from { opacity: 0; }
  to   { opacity: 0.40; }
}

/* ── /what-is-this opener ───────────────────────────────────────────────── */

.what-is-this-opener {
  padding: 80px 24px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.what-is-this-inner {
  max-width: 640px;
}

.what-is-this-text {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text);
}

.what-is-this-alice {
  padding: 0 0 64px;
}

/* ── /business page ─────────────────────────────────────────────────────── */

.biz-page {
  min-height: 100vh;
}

.biz-opener {
  padding: 120px 24px 64px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.biz-inner {
  max-width: 720px;
}

.biz-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.biz-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: var(--text-dim);
}

.biz-section {
  padding: 64px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.biz-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.biz-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
}

.biz-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.biz-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-dim);
}

.biz-terms-list {
  list-style: none;
  padding: 0;
}

.biz-terms-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.biz-terms-list li:last-child {
  border-bottom: none;
}

.biz-terms-list li strong {
  color: var(--text);
}

.biz-filter-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.biz-filter-text:last-child {
  margin-bottom: 0;
}

.biz-contact-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.biz-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  transition: color 0.2s;
}

.biz-link:hover {
  color: var(--text);
}

/* ── /flights/:id page ──────────────────────────────────────────────────── */

.flight-page {
  min-height: 100vh;
}

.flight-page-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Header */
.flight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.flight-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flight-entity-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.flight-entity-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flight-entity-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-transform: capitalize;
}

.flight-entity-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.03em;
}

.flight-status-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.flight-status-badge--flying {
  background: rgba(62, 175, 106, 0.12);
  color: #3EAF6A;
  border: 1px solid rgba(62, 175, 106, 0.25);
}

.flight-status-badge--landed {
  background: rgba(255,255,255,0.04);
  color: var(--slate-light);
  border: 1px solid var(--border);
}

/* Three glyphs above fold */
.flight-glyphs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 40px;
}

.flight-glyph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 16px;
  background: var(--bg-surface);
}

.flight-glyph-symbol {
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.7;
}

.flight-glyph-value {
  font-family: var(--font-mono);
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.flight-glyph-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Brief rows */
.flight-brief-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.flight-brief-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  flex-shrink: 0;
  width: 48px;
}

.flight-brief-text {
  color: var(--text-dim);
  line-height: 1.5;
}

/* Timeline */
.flight-timeline {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.flight-timeline-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 20px;
}

.flight-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}


.flight-timeline-empty {
  font-size: 13px;
  color: var(--slate);
  font-style: italic;
}

/* ── Stats grid (extended metrics below glyphs) ── */
.flight-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 24px;
}

.flight-stat-cell {
  background: var(--bg-surface);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flight-stat-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.flight-stat-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ── Completion summary ── */
.flight-summary-block {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.flight-summary-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}

.flight-summary-text {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Entity link in flight header ── */
.flight-entity-link {
  text-decoration: none;
}
.flight-entity-link:hover .flight-entity-avatar {
  opacity: 0.8;
}
.flight-entity-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-transform: capitalize;
  text-decoration: none;
}
.flight-entity-name:hover {
  opacity: 0.8;
}

/* ── Killed status badge ── */
.flight-status-badge--killed {
  background: rgba(239,68,68,0.10);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
}

/* ── mono in brief rows ── */
.flight-brief-text.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
}

/* Footer */
.flight-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate);
}

.flight-footer-tippers {
  opacity: 0.5;
}

.flight-footer-home {
  opacity: 0.4;
  transition: opacity 0.15s;
}

.flight-footer-home:hover {
  opacity: 0.8;
}

/* Not-found state */
.flight-page--notfound .flight-page-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 120px;
}

.flight-notfound {
  font-size: 18px;
  color: var(--slate-light);
}

.flight-notfound-link {
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 1px;
}

/* ── /flights index — kingdom newsfeed ──────────────────────────────────── */

.flights-index {
  min-height: 100vh;
  background: var(--bg);
  padding: 80px 0 60px;
}

.flights-index-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.flights-index-header {
  margin-bottom: 36px;
}

.flights-index-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.flights-index-subtitle {
  font-size: 15px;
  color: var(--slate-light);
  margin: 0;
}

.flights-index-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* .flights-index-row and sub-classes removed — rows now rendered by brandFlightItem */

.flights-index-empty {
  color: var(--slate-light);
  font-size: 15px;
  padding-top: 24px;
}

/* sovereign-link-success → src/client/sovereign-login/shell/styles.css */

/* ── Fuel gauge strip — top chrome, always visible ───────────────────────── */

.fuel-gauge-strip {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 28px;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  z-index: 101; /* above nav z-index:100 */
}

.fuel-gauge-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  transition: width 1s ease, background 1s ease;
  z-index: 0;
}

/* Color bands via band modifier */
.fuel-gauge-strip--high   .fuel-gauge-fill { background: linear-gradient(90deg, rgba(62,175,106,0.22), rgba(62,175,106,0.08)); }
.fuel-gauge-strip--mid    .fuel-gauge-fill { background: linear-gradient(90deg, rgba(201,168,76,0.28), rgba(201,168,76,0.10)); }
.fuel-gauge-strip--low    .fuel-gauge-fill { background: linear-gradient(90deg, rgba(205,90,70,0.30), rgba(205,90,70,0.10)); }
.fuel-gauge-strip--full   .fuel-gauge-fill { background: linear-gradient(90deg, rgba(62,175,106,0.18), rgba(62,175,106,0.04)); }

.fuel-gauge-label {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
}

.fuel-gauge-pct {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  min-width: 2.5rem;
}

/* Pct color overrides per band */
.fuel-gauge-strip--high   .fuel-gauge-pct { color: rgba(62,175,106,0.9); }
.fuel-gauge-strip--mid    .fuel-gauge-pct { color: rgba(201,168,76,0.9); }
.fuel-gauge-strip--low    .fuel-gauge-pct { color: rgba(220,90,70,0.9); }
.fuel-gauge-strip--full   .fuel-gauge-pct { color: rgba(62,175,106,0.7); }

.fuel-gauge-status {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.25);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

/* ── Fuel gauge strip — clickable + expanded panel ───────────────────────── */

.fuel-gauge-strip { cursor: pointer; user-select: none; }
.fuel-gauge-strip--open { border-bottom: none; }

.fuel-gauge-chevron {
  position: relative;
  z-index: 1;
  margin-left: auto;
  color: rgba(255,255,255,0.30);
  font-size: 0.55rem;
}

/* Expanded panel — drops below strip, full-width */
.fuel-gauge-panel {
  position: relative;
  width: 100%;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 100;
  animation: fgpSlideDown 0.15s ease;
}
@keyframes fgpSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.fuel-gauge-panel-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fgp-label {
  color: rgba(255,255,255,0.35);
  min-width: 7rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.fgp-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.fgp-bar {
  height: 100%;
  background: rgba(62,175,106,0.55);
  border-radius: 2px;
  transition: width 1s ease;
}

.fgp-pct {
  color: rgba(255,255,255,0.60);
  min-width: 2.5rem;
  text-align: right;
  font-size: 0.65rem;
}

.fgp-pill {
  display: inline-block;
  padding: 0.1em 0.55em;
  border-radius: 99px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}
.fgp-pill--on { background: rgba(62,175,106,0.18); color: rgba(62,175,106,0.9); }

.fgp-tip-balance {
  color: rgba(255,255,255,0.50);
  font-size: 0.72rem;
}

.fuel-gauge-panel-fuelers { flex-wrap: wrap; }
.fgp-fuelers-list { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.fgp-fueler-item {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  padding: 0.1em 0.45em;
  border-radius: 3px;
}

.fuel-gauge-panel-cta {
  padding-top: 0.25rem;
}

.fgp-fuel-btn {
  background: rgba(201,168,76,0.18);
  color: rgba(201,168,76,0.9);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35em 1em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.fgp-fuel-btn:hover {
  background: rgba(201,168,76,0.28);
  color: rgba(255,215,100,1);
}

/* ── Tip modal — full-screen backdrop, centered card ─────────────────────── */

.tip-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: tipBackdropIn 0.15s ease;
}
@keyframes tipBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.tip-modal {
  position: relative;
  background: #111;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: tipModalIn 0.15s ease;
}
@keyframes tipModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

.tip-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25em;
  line-height: 1;
}
.tip-modal-close:hover { color: rgba(255,255,255,0.7); }

.tip-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
  color: rgba(255,255,255,0.92);
}
.tip-modal-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.40);
  margin: 0 0 1.4rem;
}

.tip-amounts {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.tip-amount {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.70);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.65em 0;
  cursor: pointer;
  transition: all 0.1s;
}
.tip-amount:hover { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.90); }
.tip-amount--active {
  background: rgba(201,168,76,0.22);
  border-color: rgba(201,168,76,0.45);
  color: rgba(255,215,100,1);
}

.tip-field-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}
.tip-field-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: var(--font-mono);
}
.tip-field-optional { color: rgba(255,255,255,0.20); text-transform: none; letter-spacing: 0; }
.tip-field-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 5px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.5em 0.75em;
  width: 6rem;
}
.tip-field-input--full { width: 100%; }
.tip-field-input:focus {
  outline: none;
  border-color: rgba(201,168,76,0.45);
}

.tip-error {
  font-size: 0.78rem;
  color: rgba(220,90,70,0.9);
  margin: 0 0 0.8rem;
}

.tip-submit {
  width: 100%;
  background: rgba(201,168,76,0.22);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 6px;
  color: rgba(255,215,100,0.95);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7em 1.5em;
  cursor: pointer;
  transition: all 0.1s;
  margin-top: 0.4rem;
}
.tip-submit:hover:not(:disabled) {
  background: rgba(201,168,76,0.34);
}
.tip-submit--loading { opacity: 0.6; cursor: default; }

/* Graceful fallback (no Stripe keys) */
.tip-fallback {
  text-align: center;
  padding: 0.5rem 0;
}
.tip-fallback-msg {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin: 0 0 1.2rem;
}
.tip-fallback-btn {
  display: inline-block;
  background: rgba(62,175,106,0.18);
  border: 1px solid rgba(62,175,106,0.30);
  border-radius: 6px;
  color: rgba(62,175,106,0.9);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65em 1.5em;
  text-decoration: none;
  transition: all 0.1s;
}
.tip-fallback-btn:hover { background: rgba(62,175,106,0.28); }
.tip-fallback-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.28);
  margin: 1rem 0 0;
}

/* ── Tip receipt page ─────────────────────────────────────────────────────── */

.tip-receipt-main {
  max-width: 660px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.tip-receipt-loading,
.tip-receipt-notfound {
  text-align: center;
  color: rgba(255,255,255,0.40);
  padding: 4rem 0;
}

.tip-receipt-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 2.5rem;
}

.tip-receipt-header {
  margin-bottom: 1.5rem;
}

.tip-receipt-kingdom-day {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.30);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  display: block;
  margin-bottom: 0.6rem;
}

.tip-receipt-hero {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.88);
  margin: 0;
}

.tip-receipt-amount {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(201,168,76,0.95);
  margin: 1rem 0 1.5rem;
}

.tip-receipt-section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.tip-receipt-attribution {
  margin-bottom: 1.5rem;
}

.tip-receipt-flight {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  padding: 0.3em 0;
  border-left: 2px solid rgba(255,255,255,0.08);
  padding-left: 0.75rem;
  margin-bottom: 0.25rem;
}
.tip-receipt-flight--pending { color: rgba(255,255,255,0.25); font-style: italic; }
.tip-receipt-flight-link { color: inherit; text-decoration: none; }
.tip-receipt-flight-link:hover { color: rgba(255,255,255,0.80); }
.tip-receipt-flight-entity { color: rgba(201,168,76,0.7); margin-right: 0.4em; }
.tip-receipt-flight-slug { color: rgba(255,255,255,0.45); }

.tip-receipt-by {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.5rem;
}
.tip-receipt-msg {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.60);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.tip-receipt-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tip-receipt-share-btn {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  color: rgba(255,255,255,0.70);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.55em 1.2em;
  text-decoration: none;
  transition: all 0.1s;
}
.tip-receipt-share-btn:hover { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.90); }
.tip-receipt-share-btn--secondary {
  background: rgba(201,168,76,0.14);
  border-color: rgba(201,168,76,0.22);
  color: rgba(201,168,76,0.85);
}

/* Profile Identity + Files styles moved to canonical component files:
   client/profile/_shared.css      — .markdown-body, .user-content-*
   client/profile/identity/styles.css — .profile-identity
   client/profile/files/styles.css    — .profile-files-*, .profile-tree-* */


/* ============================================================
   Phase 1 front page — frontPagePhase1 template
   Phase 2 (live feed) + Phase 3 (branch tree) placeholders are
   invisible comment markers; no rendered chrome yet.
   ============================================================ */

.fp1-phase-marker {
	display: none; /* invisible until phases are wired */
}

.fp1-claim {
	padding: 80px 24px 96px;
	max-width: var(--max-width);
	margin: 0 auto;
}

.fp1-claim-inner {
	max-width: 720px;
}

.fp1-headline {
	font-size: clamp(36px, 5.5vw, 64px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--text);
	margin-bottom: 32px;
}

.fp1-substrate {
	font-size: 18px;
	font-weight: 400;
	color: var(--accent);
	margin-bottom: 40px;
	line-height: 1.5;
}

.fp1-body {
	margin-bottom: 48px;
}

.fp1-body p {
	font-size: 16px;
	line-height: 1.75;
	color: var(--slate-light);
	margin-bottom: 20px;
	max-width: 640px;
}

.fp1-body p:last-child {
	margin-bottom: 0;
}

.fp1-brand-anchor {
	margin-bottom: 48px;
	padding: 24px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.fp1-brand-anchor--conventional {
	font-size: 14px;
	font-family: var(--font-mono);
	color: var(--text-dim);
	line-height: 1.6;
}

.fp1-paths {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fp1-path {
	display: flex;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
}

.fp1-path-label {
	font-size: 11px;
	font-family: var(--font-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--slate);
	min-width: 60px;
}

.fp1-path-links {
	font-size: 14px;
	color: var(--text-dim);
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.fp1-link {
	color: var(--text-dim);
	border-bottom: 1px solid var(--slate);
	padding-bottom: 1px;
	transition: color 0.15s, border-color 0.15s;
}

.fp1-link:hover {
	color: var(--text);
	border-color: var(--text-dim);
}

.fp1-path-sep {
	color: var(--slate);
}

@media (max-width: 600px) {
	.fp1-claim {
		padding: 48px 20px 64px;
	}
	.fp1-path {
		flex-direction: column;
		gap: 8px;
	}
}