/* ==========================================================================
   Yoka Portfolio Stylesheet (yoka.my.id)
   Theme: Obsidian Deep Dark with Lavender Accent (#a2a7d2)
   Powered by Vue 3 & Modern CSS3 Animations
   ========================================================================== */

:root {
  /* ========================================================================
     Taste Skill 2.5 Anti-Slop Palette: Darker Professional Obsidian System
     Deep, ink-pure nocturnal obsidian void, quiet architectural hairlines,
     and surgical Precision Ice Azure (#3b82f6).
     ======================================================================== */
  --surface-base: #040507;   /* void: Deep, infinite obsidian void */
  --surface-panel: #090a0d;  /* panel: Elevated dark charcoal for sidebars */
  --surface-card: #0e1015;   /* card: Elevated slate-obsidian interactive containers */
  --border: #161920;         /* border: Quiet architectural hairline */
  --border-hover: #242935;   /* border-hover: Interactive highlight */
  --muted: #798596;          /* muted: Clean neutral slate (5.5:1 WCAG contrast) */
  --accent: #3b82f6;         /* accent: Precision Ice Azure (modern developer standard) */
  --accent-hover: #60a5fa;   /* accent-hover: Luminous step */
  --text: #e2e8f0;           /* text: Moonlit silver (16:1 WCAG contrast) */

  /* Semantic Aliases mapped to Token Palette */
  --bg-root: var(--surface-base);
  --bg-sidebar: var(--surface-panel);
  --bg-sidebar-hover: #12151c;
  --bg-sidebar-active: #161a24;
  --bg-card: var(--surface-card);
  --bg-tab-bar: #07080b;
  --bg-tab-inactive: #090b0e;
  --bg-tab-active: var(--surface-base);
  --bg-gutter: var(--surface-base);
  --bg-code: #0b0d12;
  --bg-highlight: rgba(59, 130, 246, 0.08);

  --border-dim: var(--border);
  --border-mid: #1d222c;
  --border-bright: #2d3444;
  --border-accent: var(--accent);

  --text-white: #f8fafc;
  --text-main: var(--text);
  --text-muted: var(--muted);
  --text-dim: #54627d;
  --text-gutter: #3c4860;

  --accent-lavender: var(--accent);
  --accent-glow: #60a5fa;
  --accent-light: #dbeafe;
  
  --status-online: #4ade80;
  --status-idle: #facc15;
  --status-dnd: #f87171;
  --status-offline: #71717a;

  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
  --sidebar-width: 260px;
  --header-height: 0px;
  --tab-height: 38px;
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-root);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-lavender);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* Custom Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: #28283a transparent;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-mid);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-bright);
}

/* ==========================================================================
   Intro Terminal Gate
   ========================================================================== */
.intro-overlay {
  position: fixed;
  inset: 0;
  height: 100dvh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080809;
  z-index: 9999;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.intro-overlay.fade-out {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(8px);
  pointer-events: none;
}

.intro-terminal {
  width: min(500px, 92vw);
  background: #0e0e10;
  border: 1px solid #222228;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(162, 167, 210, 0.05);
  animation: introPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes introPopIn {
  from { opacity: 0.7; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.intro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid #1c1c20;
  background: #0b0b0d;
}

.intro-label {
  font-size: 0.74rem;
  color: #60607a;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.intro-dots {
  display: flex;
  gap: 6px;
}
.intro-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #222228;
}

.intro-body {
  padding: 24px 22px 20px;
  min-height: 180px;
}

.intro-line {
  display: flex;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.95;
  color: #60607a;
  animation: lineSlideIn 0.2s ease forwards;
}

@keyframes lineSlideIn {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

.intro-prompt {
  color: #2e2e40;
  user-select: none;
  flex-shrink: 0;
}
.intro-text {
  color: #78788a;
}
.intro-line.ok .intro-text {
  color: #a2a7d2;
}
.intro-line.ok .intro-prompt {
  color: #4a4a75;
}
.intro-line.err .intro-text {
  color: #c05050;
}
.intro-line.err .intro-prompt {
  color: #5a2020;
}

.intro-cursor {
  display: inline-block;
  color: var(--accent-lavender);
  font-size: 0.85rem;
  line-height: 1.9;
  margin-left: 20px;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.intro-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid #131318;
  font-size: 0.68rem;
  color: #38384a;
  letter-spacing: 0.03em;
  background: #09090c;
}

.intro-skip-btn {
  font-size: 0.68rem;
  color: var(--accent-lavender);
  background: rgba(162, 167, 210, 0.08);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--border-mid);
  transition: all 0.15s ease;
}
.intro-skip-btn:hover {
  background: rgba(162, 167, 210, 0.2);
  color: var(--text-white);
}

/* ==========================================================================
   CRT Scanline & Phosphor Overlay (Toggleable)
   ========================================================================== */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 990;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 3px, 6px 100%;
  opacity: 0.7;
}

/* ==========================================================================
   App Shell Layout
   ========================================================================== */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-root);
  overflow: hidden;
  position: relative;
}

/* Ambient Mouse Spotlight */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(650px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(162, 167, 210, 0.04), transparent 80%);
}

/* ==========================================================================
   Header / Window Bar
   ========================================================================== */
.window-header {
  height: var(--header-height);
  background-color: #060608;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  user-select: none;
  z-index: 95;
  flex-shrink: 0;
}

.window-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
  background: none;
  position: relative;
  transition: transform 0.15s ease, filter 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.dot::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  cursor: pointer;
}
.dot:hover {
  transform: scale(1.22);
  filter: brightness(1.25);
}
.dot:active {
  transform: scale(0.9);
}
.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.window-title {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-title .separator {
  color: var(--text-dim);
}

.window-title .highlight {
  color: var(--accent-lavender);
  font-weight: 500;
}

.window-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.clock-badge {
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  padding: 3px 9px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 6px;
}

.clock-badge .clock-icon {
  color: var(--accent-lavender);
}

.header-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border-dim);
  background: var(--bg-card);
  transition: all 0.15s ease;
}
.header-action-btn:hover {
  background: var(--border-mid);
  color: var(--text-white);
  border-color: var(--border-bright);
}
.header-action-btn.active-mode {
  color: var(--accent-lavender);
  border-color: rgba(162, 167, 210, 0.4);
  background: rgba(162, 167, 210, 0.08);
}

.mobile-toggle-btn {
  display: none;
  padding: 4px 8px;
  background: var(--border-dim);
  border-radius: 4px;
  color: var(--text-white);
  font-size: 14px;
}

/* ==========================================================================
   Main Workspace Container
   ========================================================================== */
.workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  z-index: auto;
}

/* ==========================================================================
   Sidebar: Explorer & Live Telemetry
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-mid);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 0;
  user-select: none;
  z-index: 30;
  transition: margin-left 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

/* User Profile Header */
.profile-pill {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(162, 167, 210, 0.03) 0%, transparent 100%);
}

.avatar-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}


.avatar-deco-img {
  position: absolute;
  top: -14%;
  left: -14%;
  width: 128%;
  height: 128%;
  pointer-events: none;
  z-index: 2;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border-mid);
  background: var(--bg-card);
}

.status-dot-avatar {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--bg-sidebar);
  background-color: var(--status-online);
}

.profile-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-handle {
  font-size: 11px;
  color: var(--accent-lavender);
}

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

/* Section Header */
.sidebar-section {
  padding: 12px 14px 6px;
  border-bottom: 1px solid var(--border-dim);
}

.section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* File Tree View */
.file-tree {
  list-style: none;
  margin-bottom: 6px;
}

.tree-folder {
  margin-bottom: 3px;
}

.folder-title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.folder-title:hover {
  background-color: var(--bg-sidebar-hover);
  color: var(--text-white);
}

.folder-icon {
  font-size: 10px;
  color: var(--accent-lavender);
  transition: transform 0.15s ease;
  width: 12px;
  display: inline-block;
  text-align: center;
}

.tree-files {
  list-style: none;
  padding-left: 18px;
  margin-top: 2px;
}

.tree-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 2px;
  transition: all 0.12s ease;
}
.tree-file-item:hover {
  background-color: var(--bg-sidebar-hover);
  color: var(--text-white);
}
.tree-file-item.active {
  background-color: var(--bg-sidebar-active);
  color: var(--text-white);
  font-weight: 500;
}

.file-icon {
  font-size: 11px;
  color: var(--text-dim);
}
.tree-file-item.active .file-icon {
  color: var(--accent);
}
.tree-file-item .file-badge {
  display: none;
}

/* Lanyard Discord & Music Widget */
.presence-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.presence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.discord-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-white);
  font-weight: 500;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-online);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: pulseGreen 2.2s infinite ease-in-out;
}

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

.presence-activity {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}
.presence-activity span {
  color: var(--text-white);
}

/* Spotify Player Card */
.spotify-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #09090d;
  border: 1px solid var(--border-dim);
  border-radius: 5px;
  padding: 8px 10px;
  margin-top: 6px;
}

.vinyl-album {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #252538 35%, #101018 36%, #1c1c28 65%, #08080c 66%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-bright);
}

.vinyl-album.spinning {
  animation: spinVinyl 3.5s linear infinite;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-center {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-lavender);
}

.spotify-info {
  flex: 1;
  overflow: hidden;
}

.spotify-track {
  font-size: 11px;
  color: var(--text-white);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-artist {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  flex-shrink: 0;
}

.eq-bar {
  width: 2.5px;
  background-color: var(--accent-lavender);
  border-radius: 1px;
  animation: eqBounce 1.2s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 90%; animation-delay: 0.35s; }
.eq-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 80%; animation-delay: 0.5s; }

@keyframes eqBounce {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* Telemetry & Server Stats */
.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.telemetry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 5px;
  padding: 8px 10px;
}

.telem-label {
  font-size: 9.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.telem-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  font-variant-numeric: tabular-nums;
}

.telem-sub {
  font-size: 9px;
  color: var(--text-muted);
}

.telemetry-bar-wrap {
  width: 100%;
  height: 4px;
  background: var(--border-dim);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.telemetry-bar-fill {
  height: 100%;
  background: var(--accent-lavender);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Quick Links in Sidebar */
.sidebar-links {
  list-style: none;
  margin-bottom: 12px;
}

.sidebar-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  font-size: 11px;
  color: var(--text-muted);
  border-radius: 4px;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}
.sidebar-link-item:hover {
  background-color: var(--bg-sidebar-hover);
  color: var(--text-white);
  text-decoration: none;
}
.sidebar-link-item .link-name {
  display: flex;
  align-items: center;
  gap: 7px;
}
.sidebar-link-item .link-arrow {
  font-size: 10px;
  color: var(--text-dim);
}

/* ==========================================================================
   Main Editor & Tab View
   ========================================================================== */
.editor-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-root);
  overflow-x: visible;
  overflow-y: hidden;
  position: relative;
}

/* Tab Bar */
.tab-bar {
  height: var(--tab-height);
  background-color: var(--bg-tab-bar);
  border-bottom: 1px solid var(--border-mid);
  display: flex;
  align-items: flex-end;
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  user-select: none;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 35px;
  padding: 0 14px;
  background-color: var(--bg-tab-inactive);
  border-right: 1px solid var(--border-dim);
  border-top: 2px solid transparent;
  font-size: 11.5px;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.tab-item:hover {
  background-color: var(--bg-sidebar-hover);
  color: var(--text-muted);
}
.tab-item.active {
  background-color: var(--bg-tab-active);
  color: var(--accent-light);
  border-top: 2px solid var(--accent-lavender);
  border-bottom: 1px solid var(--bg-tab-active);
  z-index: 10;
}

.tab-icon {
  font-size: 10px;
  color: var(--accent-lavender);
}

.tab-close-btn {
  font-size: 13px;
  color: var(--text-dim);
  border-radius: 3px;
  padding: 0 2px;
  margin-left: 2px;
  line-height: 1;
  transition: all 0.15s ease;
}
.tab-close-btn:hover {
  background-color: var(--border-bright);
  color: var(--text-white);
}

/* Editor Body (Gutter + Content) */
.editor-body {
  flex: 1;
  display: flex;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-root);
  scrollbar-width: thin;
  scrollbar-color: #28283a transparent;
}

.line-numbers-gutter {
  width: 52px;
  padding: 24px 12px 60px 0;
  text-align: right;
  color: var(--text-gutter);
  user-select: none;
  font-size: 12px;
  line-height: 1.8;
  border-right: 1px solid var(--border-dim);
  background-color: var(--bg-gutter);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.content-viewport {
  flex: 1;
  padding: 28px 40px 80px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-main);
  box-sizing: border-box;
  opacity: 1;
}

pre, code, .frontmatter-block, .table-wrap, table, .status-table {
  max-width: 100%;
  overflow-x: auto;
}

@keyframes contentUnfold {
  from { opacity: 0.85; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Markdown & Code Formatting in Viewport
   ========================================================================== */
.frontmatter-block {
  display: none !important;
}
.fm-key { color: #e06c75; }
.fm-val { color: #98c379; }
.fm-sep { color: var(--text-dim); }

.md-h1 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 18px;
  margin-bottom: 12px;
  display: block;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 8px;
  word-break: break-word;
}
.md-h1 .hash {
  color: var(--accent-lavender);
  font-weight: 400;
  font-size: 1.25rem;
  margin-right: 6px;
}

.md-h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-white);
  margin-top: 26px;
  margin-bottom: 10px;
  display: block;
  word-break: break-word;
}
.md-h2 .hash {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-right: 6px;
}

.md-h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-lavender);
  margin-top: 20px;
  margin-bottom: 8px;
}

.md-p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-main);
  max-width: 100%;
  margin-bottom: 16px;
}

.md-ul {
  list-style: none;
  margin-bottom: 20px;
  padding-left: 4px;
  max-width: 100%;
}
.md-ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.md-ul li::before {
  content: "-";
  position: absolute;
  left: 4px;
  color: var(--accent);
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 18px 0 28px;
  width: 100%;
  max-width: 100%;
}
.component-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.component-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.comp-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comp-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.md-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 16px 0;
  width: 100%;
  max-width: 100%;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.md-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.badge {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #14141d;
  color: var(--accent-light);
  border: 1px solid var(--border-mid);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-accent {
  background: rgba(162, 167, 210, 0.12);
  border-color: rgba(162, 167, 210, 0.35);
  color: var(--accent-lavender);
}

/* Service Status Table inside status.md */
.status-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 12px;
}
.status-table th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-mid);
  color: var(--text-dim);
  font-size: 10.5px;
  text-transform: uppercase;
}
.status-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-dim);
}
.status-table tr:hover td {
  background-color: var(--bg-sidebar-hover);
}

.status-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 500;
}
.status-badge-pill.operational {
  background: rgba(74, 222, 128, 0.1);
  color: var(--status-online);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

/* Interactive Tools UI */
.tool-box {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  padding: 18px;
  margin: 16px 0;
}

.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-dim);
}

.tool-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tool-input {
  flex: 1;
  background: #08080c;
  border: 1px solid var(--border-mid);
  color: var(--text-white);
  padding: 7px 12px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  outline: none;
}
.tool-input:focus {
  border-color: var(--accent-lavender);
}

.tool-btn {
  background: var(--accent-lavender);
  color: #080809;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 11.5px;
  transition: opacity 0.15s ease;
}
.tool-btn:hover {
  opacity: 0.9;
}

.tool-output {
  background: #07070a;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 11.5px;
  color: var(--text-muted);
  max-height: 220px;
  overflow-y: auto;
  font-family: inherit;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Blinking Cursor */
.cursor-blink {
  display: inline-block;
  color: var(--accent-lavender);
  font-weight: bold;
  animation: blinkCursor 1.1s step-end infinite;
}
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   Command Palette Modal (Ctrl+K)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 4, 6, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-palette {
  width: min(560px, 92vw);
  background: #0d0d12;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateY(-8px);
  transition: transform 0.15s ease;
}
.modal-overlay.open .modal-palette {
  transform: translateY(0);
}

.palette-input-wrap {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  gap: 10px;
}
.palette-icon {
  color: var(--accent-lavender);
  font-size: 14px;
}
.palette-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-white);
}

.palette-results {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  list-style: none;
}

.palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.1s ease;
}
.palette-item:hover, .palette-item.selected {
  background: var(--bg-sidebar-active);
  color: var(--accent-light);
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
}
.toast {
  background: #111118;
  border: 1px solid var(--border-bright);
  color: var(--text-white);
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 11.5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  animation: slideToast 0.25s ease forwards;
  pointer-events: auto;
}
@keyframes slideToast {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Editor Bottom Bar: 88x31 Badges & Signature Note
   ========================================================================== */
.editor-bottom-bar {
  padding: 12px 85px 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #080809;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  z-index: 20;
}
.not-all-tabs {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 11.5px;
  color: #555566;
}
.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.retro-badge {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  border: 1px solid #1a1a24;
  border-radius: 2px;
  transition: transform 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}
.retro-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

/* ==========================================================================
   Cute Peeking Mascot
   ========================================================================== */
.chibi-peeker {
  position: absolute;
  bottom: 0px;
  right: -15px;
  z-index: 45;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.chibi-peeker:hover {
  transform: translateX(-4px) scale(1.02);
}
.chibi-peeker.bounce {
  animation: chibiBounce 0.4s ease;
}
@keyframes chibiBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.chibi-img {
  width: 90px;
  height: auto;
  display: block;
  filter: drop-shadow(-4px 4px 12px rgba(0, 0, 0, 0.7));
}
.chibi-bubble {
  position: absolute;
  top: -24px;
  right: 20px;
  background: #12121a;
  border: 1px solid #28283a;
  color: #c4c8ea;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}
.chibi-bubble.show, .chibi-peeker:hover .chibi-bubble {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Right Sidebar: Telemetry, Devices, Big Clock & Moe Counter
   ========================================================================== */
.right-sidebar {
  width: 220px;
  background-color: var(--surface-panel);
  border-left: 1px solid var(--border-dim);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 16px 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  z-index: 30;
  transition: margin-right 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}
.right-sidebar::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   Zen Mode / Minimized Panels (Explorer & Telemetry Hidden)
   ========================================================================== */
.workspace.panels-minimized .sidebar {
  margin-left: calc(-1 * var(--sidebar-width));
  transform: translateX(-100%);
  opacity: 0 !important;
  pointer-events: none !important;
}
.workspace.panels-minimized .right-sidebar {
  margin-right: -250px;
  transform: translateX(100%);
  opacity: 0 !important;
  pointer-events: none !important;
}

.minimized-nav-controls {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 14px;
  height: 100%;
  border-right: 1px solid var(--border-dim);
  background-color: var(--surface-panel);
  flex-shrink: 0;
}
.workspace.panels-minimized .minimized-nav-controls {
  display: flex;
}
.restore-files-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.restore-files-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border-color: var(--accent-lavender);
}
.rside-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.rside-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #55556a;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rside-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
}
.rside-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rside-links li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #88889c;
  text-decoration: none;
  font-size: 11px;
  transition: color 0.15s ease;
}
.rside-links li a:hover {
  color: var(--accent-lavender);
}
.rside-presence-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a0a0b2;
  font-size: 11px;
}
.status-dot.red-dnd {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  flex-shrink: 0;
}
.rside-activity-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6a6a80;
  font-style: italic;
  font-size: 10.5px;
}
.devices-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.device-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a0a0b8;
}
.time-big {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #c0c4e8;
  line-height: 1.2;
}
.time-day {
  font-size: 10.5px;
  color: #5a5a70;
  text-transform: lowercase;
}
.moe-counter-wrap {
  margin: 4px 0 2px;
  border-radius: 4px;
  overflow: hidden;
}
.moe-counter-img {
  width: 100%;
  max-width: 175px;
  height: auto;
  image-rendering: pixelated;
  display: block;
}
.visitor-stat-row, .server-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: #727288;
}
.v-val, .s-val {
  color: #c0c4e8;
}
.rside-footer {
  margin-top: auto;
  padding-top: 10px;
  font-size: 10px;
  color: #4a4a5e;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.commit-hash {
  color: #55556a;
}
.hash-code {
  color: #7e82b0;
}
.copyright-line a {
  color: #7e82b0;
  text-decoration: underline;
}

/* Subfolders in file tree */
.tree-folder.subfolder {
  margin-left: 12px;
  margin-top: 3px;
}
.folder-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  color: #88889c;
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
}
.folder-title:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
}
.folder-icon {
  font-size: 9px;
  transition: transform 0.15s ease;
}
.tree-folder:not(.open) > .tree-files {
  display: none;
}
.tree-folder:not(.open) > .folder-title .folder-icon {
  transform: rotate(-90deg);
}

/* Guestbook styles */
.guestbook-minimal-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 60px;
  font-family: var(--font-mono);
  box-sizing: border-box;
}

.gb-sign-header {
  margin-bottom: 34px;
}

.gb-sign-toggle-btn {
  background: var(--surface-panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.gb-sign-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-hover);
  color: var(--text-white);
  background: #141b2a;
}

.gb-sign-toggle-btn:active {
  transform: translateY(1px);
}

.btn, .btn-secondary {
  background: var(--surface-panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  transition: transform 0.12s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn:hover, .btn-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--border-hover);
  color: var(--text-white);
  background: #141b2a;
}

.btn:active, .btn-secondary:active {
  transform: translateY(1px);
}

.gb-form-wrap {
  margin-bottom: 36px;
  padding: 16px;
  background: #0a0a0e;
  border: 1px solid #1c1c28;
  border-radius: 3px;
  max-width: 500px;
}

.gb-input {
  width: 100%;
  background: #060608;
  border: 1px solid #20202e;
  color: #e2e4f0;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  outline: none;
  box-sizing: border-box;
}
.gb-input:focus {
  border-color: var(--accent-lavender);
}

.gb-textarea {
  width: 100%;
  background: #060608;
  border: 1px solid #20202e;
  color: #e2e4f0;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 3px;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}
.gb-textarea:focus {
  border-color: var(--accent-lavender);
}

.gb-submit-btn {
  background: #14141e;
  border: 1px solid #28283a;
  color: #e2e4f0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gb-submit-btn:hover {
  background: #1e1e2c;
  border-color: var(--accent-lavender);
}

.gb-cancel-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #6a6a7e;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 10px;
  cursor: pointer;
}
.gb-cancel-btn:hover {
  color: #bbb;
}

.gb-entries-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
  margin-top: 14px;
  width: 100%;
}

.gb-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gb-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.gb-entry-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.gb-author {
  font-size: 13.5px;
  color: #e2e4f0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.gb-date {
  font-size: 11px;
  color: #4a4a5e;
  letter-spacing: 0.02em;
}

.gb-entry-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gb-hearted-tag {
  font-size: 11px;
  color: #72728a;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gb-owner-btn {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #3e3e50;
  cursor: pointer;
  padding: 1px 4px;
  transition: color 0.15s ease;
}
.gb-owner-btn:hover {
  color: #b0b4d4;
}
.gb-owner-btn.heart-btn.active {
  color: #f43f5e;
}
.gb-owner-btn.del-btn:hover {
  color: #ef4444;
}

.gb-entry-msg {
  font-size: 13px;
  line-height: 1.55;
  color: #c4c6dc;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Guestbook Heart & Owner Controls */
.heart-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.heart-btn:hover {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fb7185;
  transform: scale(1.05);
}
.heart-btn.hearted {
  background: rgba(244, 63, 94, 0.18);
  border-color: #f43f5e;
  color: #fb7185;
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  color: #f87171;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.delete-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fca5a5;
  transform: scale(1.04);
}

.owner-auth-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.owner-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-white);
}
.owner-badge-tag {
  font-size: 10px;
  background: rgba(167, 139, 250, 0.2);
  color: var(--accent-lavender);
  border: 1px solid rgba(167, 139, 250, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.owner-mode-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.owner-mode-switch input[type="checkbox"] {
  accent-color: var(--accent-lavender);
  cursor: pointer;
}
.creator-loved-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Idle Status in Right Sidebar & now.md */
.status-dot.yellow-idle, .status-dot.status-idle {
  background-color: #facc15 !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.75);
  animation: idlePulse 2.5s ease-in-out infinite;
}
@keyframes idlePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.9); }
}
.presence-ring-idle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #facc15;
  border: 3px solid #0c0c12;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.8);
}
.presence-idle-text {
  color: #facc15 !important;
  font-size: 12px;
  font-weight: 600;
}

/* Skill Meters */
.skill-meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0 24px;
}
.skill-meter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skill-meter-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Neo-Obsidian Cyberpunk IDE Enhancements
   ========================================================================== */
.workspace-modes {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(14, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 4px;
  border-radius: 6px;
}
.mode-pill {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #88889c;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mode-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.mode-pill.active {
  color: var(--accent-lavender);
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.theme-accent-picker {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(14, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 6px;
  border-radius: 4px;
}
.accent-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.accent-dot:hover {
  transform: scale(1.3);
}
.accent-dot.violet { background: #a78bfa; }
.accent-dot.cyan { background: #06b6d4; }
.accent-dot.emerald { background: #10b981; }
.accent-dot.rose { background: #f43f5e; }
.accent-dot.active {
  box-shadow: 0 0 6px currentColor;
  transform: scale(1.2);
}

/* Discord Friends Grid */
.discord-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}
.discord-card {
  background: #0d0d14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.discord-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.3);
}
.discord-banner {
  height: 52px;
  position: relative;
}
.discord-avatar-wrap {
  position: absolute;
  bottom: -20px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #0d0d14;
  background: #181822;
  overflow: visible;
}
.discord-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
.discord-status-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #0d0d14;
}
.status-online { background-color: #23a55a; }
.status-idle { background-color: #f0b232; }
.status-dnd { background-color: #f23f43; }
.status-offline { background-color: #80848e; }
.discord-body {
  padding: 24px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.discord-name-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.discord-dispname {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
}
.discord-handle {
  font-size: 11px;
  color: #72767d;
  font-family: var(--font-mono);
}
.discord-custom-status {
  font-size: 10.5px;
  color: #b5bac1;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin: 2px 0 4px;
}
.discord-bio {
  font-size: 11.5px;
  color: #949ba4;
  line-height: 1.5;
}
.discord-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.discord-role-tag {
  font-size: 9.5px;
  color: var(--accent-lavender);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ==========================================================================
   Discord Presence Popout & Real-Time Telemetry (now.md)
   Bespoke, Handcrafted Non-AI Layout
   ========================================================================== */

.now-viewport-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 14px;
  width: 100%;
}
@media (max-width: 960px) {
  .now-viewport-grid {
    grid-template-columns: 1fr;
  }
}

/* Discord Popout Card (Pixel-perfect Discord Native Client Aesthetic) */
.discord-popout-card {
  width: 100%;
  max-width: 340px;
  background: #111214;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  font-family: 'gg sans', 'Whitney', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
}

.discord-popout-banner {
  width: 100%;
  height: 115px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #23272a;
}

.discord-popout-avatar-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  margin-top: -46px;
  margin-left: 16px;
  margin-bottom: 6px;
  z-index: 2;
}
.discord-popout-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 6px solid #111214;
  object-fit: cover;
  background: #1e1f22;
  display: block;
}
.discord-popout-deco {
  position: absolute;
  top: -14%;
  left: -14%;
  width: 128%;
  height: 128%;
  pointer-events: none;
  z-index: 3;
}
.discord-popout-status {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid #111214;
  z-index: 4;
}
.discord-popout-status.online { background: #23a55a; }
.discord-popout-status.idle { background: #facc15; animation: idlePulse 2.5s infinite; }
.discord-popout-status.dnd { background: #f23f43; }
.discord-popout-status.offline { background: #80848e; }

.discord-popout-badges {
  position: absolute;
  top: 125px;
  right: 14px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.discord-badge-chip {
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  color: #dbdee1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.discord-badge-chip.clan {
  color: #c4b5fd;
  border-color: rgba(196, 181, 253, 0.35);
  background: rgba(147, 51, 234, 0.15);
}

.discord-popout-body {
  padding: 6px 16px 16px;
  background: #111214;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discord-names {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.discord-display-name {
  font-size: 20px;
  font-weight: 800;
  color: #f2f3f5;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.discord-username {
  font-size: 12.5px;
  color: #949ba4;
}
.discord-pronouns {
  font-size: 11px;
  color: #dbdee1;
  margin-top: 1px;
}

/* Custom Status Speech Bubble */
.discord-custom-bubble {
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #dbdee1;
  width: fit-content;
  max-width: 100%;
}
.discord-custom-bubble img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.discord-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 2px 0;
}

.discord-sec-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #b5bac1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.discord-bio-text {
  font-size: 12px;
  color: #dbdee1;
  line-height: 1.5;
  white-space: pre-line;
}

/* Discord Rich Presence Activities */
.discord-act-box {
  background: #1e1f22;
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.discord-act-icon {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: #2b2d31;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  color: #f2f3f5;
}
.discord-act-info {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.discord-act-head {
  font-weight: 700;
  color: #f2f3f5;
  font-size: 12.5px;
}
.discord-act-detail {
  color: #dbdee1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discord-act-state {
  color: #949ba4;
  font-size: 11px;
}
.discord-act-time {
  color: #949ba4;
  font-size: 10.5px;
  margin-top: 2px;
}

/* Discord Activity Rich Presence Thumbnail & Assets */
.discord-act-art-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.discord-act-thumb {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}
.discord-act-small-icon {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #111214;
  object-fit: cover;
  background: #1e1f22;
}
.discord-act-tag {
  font-size: 9.5px;
  color: var(--accent);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Audio Playback Stream Live Progress & Synced Lyrics */
.audio-progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}
.audio-progress-fill {
  height: 100%;
  background: #1db954;
  border-radius: 2px;
  transition: width 0.35s linear;
}
.audio-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.synced-lyrics-card {
  margin-top: 12px;
  background: rgba(8, 8, 12, 0.7);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.synced-lyrics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-white);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.synced-lyrics-badge {
  font-size: 9.5px;
  color: var(--accent);
  background: rgba(162, 167, 210, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(162, 167, 210, 0.2);
}
.synced-lyrics-scroll-box {
  position: relative;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px;
  scroll-behavior: smooth;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}
.lyric-line {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.6;
  transition: all 0.2s ease;
  cursor: default;
  padding: 2px 6px;
  border-radius: 4px;
}
.lyric-line.active {
  color: var(--text-white);
  font-weight: 700;
  font-size: 14.5px;
  text-shadow: 0 0 12px rgba(162, 167, 210, 0.5);
  background: rgba(162, 167, 210, 0.08);
  transform: translateX(4px);
}
.lyric-line.passed {
  color: #4b4b60;
}

.friend-status-toggle {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
}
.friend-status-toggle:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
}

.discord-popout-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #80848e;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.discord-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #23a55a;
  font-weight: 600;
}
.discord-live-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #23a55a;
  box-shadow: 0 0 6px rgba(35, 165, 90, 0.6);
}

/* Right Column: Workstation & Live Telemetry */
.telemetry-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.telem-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 14, 20, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 8px 14px;
}
.telem-top-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-pill-group {
  display: flex;
  gap: 5px;
  align-items: center;
}
.status-pill-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 10.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.status-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
}
.status-pill-btn.active {
  border-color: var(--accent-lavender);
  background: rgba(167, 139, 250, 0.18);
  color: var(--accent-lavender);
  font-weight: 600;
}

.telem-card {
  background: rgba(12, 12, 18, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.telem-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
}
.telem-card-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-lavender);
  display: flex;
  align-items: center;
  gap: 6px;
}
.telem-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.telem-metric-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.telem-m-label {
  font-size: 9.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.telem-m-val {
  font-size: 11.5px;
  color: var(--text-white);
  font-weight: 500;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.presence-hero-titles h2 {
  font-size: 15px;
  color: var(--text-white);
  margin: 0;
}
.presence-hero-titles .handle {
  font-size: 11.5px;
  color: var(--accent-lavender);
  font-family: var(--font-mono);
}
.presence-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.activity-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.activity-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #14141e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.activity-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
}
.activity-title {
  font-weight: 600;
  color: var(--text-white);
  font-size: 12px;
}
.activity-sub {
  color: #949ba4;
}
.activity-time {
  color: var(--accent-lavender);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* Dual-Boot OS Setup (setup.md) */
.os-dualboot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}
.os-card {
  background: #0d0d14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.os-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}
.os-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pinned Comments in Guestbook */
.pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: var(--accent-lavender);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
}
.guestbook-item.pinned {
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.04);
  box-shadow: 0 4px 18px rgba(167, 139, 250, 0.06);
}
.pin-toggle-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #7e82b0;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pin-toggle-btn:hover {
  background: rgba(167, 139, 250, 0.15);
  color: #fff;
}
.comment-filter-input {
  background: #08080c;
  border: 1px solid #1e1e2c;
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  width: 100%;
  margin-bottom: 12px;
}
.comment-filter-input:focus {
  outline: none;
  border-color: var(--accent-lavender);
}

/* Mobile Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 92;
}
.sidebar-backdrop.active {
  display: block;
}

/* Mobile Nav Bar Controls */
.mobile-nav-toggle-btn {
  display: none;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 14px;
  background: var(--surface-card);
  border: none;
  border-right: 1px solid var(--border-mid);
  color: var(--text-heading);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}
.mobile-nav-toggle-btn:hover,
.mobile-nav-toggle-btn:active {
  background: var(--surface-card-hover);
  color: var(--accent-light);
}
.mobile-nav-icon {
  font-size: 14px;
  color: var(--accent);
}

.tabs-scroll-area {
  display: flex;
  align-items: flex-end;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs-scroll-area::-webkit-scrollbar {
  display: none;
}

.mobile-tab-actions {
  display: none;
  align-items: center;
  height: 100%;
  border-left: 1px solid var(--border-mid);
  background: var(--bg-tab-bar);
  flex-shrink: 0;
}
.mobile-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 100%;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border-dim);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}
.mobile-tab-btn:hover,
.mobile-tab-btn:active {
  background: var(--surface-card-hover);
  color: var(--text-heading);
}

.drawer-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}
.drawer-close-btn:hover,
.drawer-close-btn:active {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.sidebar-header-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* Terminal Quick Command Chips */
.terminal-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-dim);
}
.term-chip {
  background: var(--surface-card);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}
.term-chip:hover,
.term-chip:active {
  background: var(--accent-lavender);
  color: #0b0f19;
  border-color: var(--accent-glow);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1180px) {
  .right-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    background-color: #09090c;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    z-index: 95;
  }
  .right-sidebar.mobile-open,
  .right-sidebar.open {
    transform: translateX(0);
  }
  .drawer-close-btn {
    display: inline-flex;
  }
}

@media (max-width: 820px) {
  .mobile-nav-toggle-btn {
    display: inline-flex;
  }
  .mobile-tab-actions {
    display: flex;
  }
  .drawer-close-btn {
    display: inline-flex;
  }
  .window-dots {
    display: flex;
  }
  
  .tab-bar {
    height: 42px;
  }
  .tabs-scroll-area .tab-item {
    height: 42px;
    padding: 0 12px;
    font-size: 11px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    background-color: #0c0c0e;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
    z-index: 95;
  }
  .sidebar.mobile-open,
  .sidebar.open {
    transform: translateX(0);
  }

  .content-viewport {
    padding: 16px 14px 60px;
    overflow-x: hidden;
  }

  .line-numbers-gutter {
    width: 30px;
    padding: 16px 4px 60px 0;
    font-size: 11px;
  }

  /* Zero horizontal scroll leak across all grid layouts */
  .friends-list {
    grid-template-columns: 1fr !important;
  }
  .gb-entries-list {
    grid-template-columns: 1fr !important;
  }
  .now-viewport-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .discord-popout-card {
    max-width: 100% !important;
  }
  .telemetry-dashboard {
    width: 100% !important;
    min-width: 0 !important;
  }
  .telem-top-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .telem-metric-grid {
    grid-template-columns: 1fr !important;
  }
  .connect-hub-grid {
    grid-template-columns: 1fr !important;
  }
  .connect-console,
  .connect-station {
    width: 100% !important;
    min-width: 0 !important;
  }
  .gb-owner-btn {
    opacity: 0.8 !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 540px) {
  .clock-badge {
    display: none;
  }
  .window-title {
    font-size: 11px;
  }
  .window-title .highlight, .window-title .separator:last-of-type, #header-active-file {
    display: none;
  }
  .header-action-btn .btn-text {
    display: none;
  }
  .tab-item {
    padding: 0 10px;
    font-size: 11px;
  }
  .friend-status-label {
    display: none;
  }
  .palette-input {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  }
  .chibi-peeker {
    bottom: 24px;
    right: 4px;
    opacity: 0.85;
    pointer-events: none;
  }
  .chibi-img {
    width: 50px;
  }
  .line-numbers-gutter {
    width: 24px;
    padding: 14px 2px 60px 0;
    font-size: 10px;
  }
  .content-viewport {
    padding: 14px 10px 60px;
  }
}

/* Terminal Container & Interactive Shell Styling */
.terminal-container {
  background: #08080d;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
  margin-top: 14px;
}
.terminal-banner {
  color: var(--text-muted);
  font-size: 11.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}
.terminal-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 480px;
  overflow-y: auto;
}
.term-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.term-prompt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: nowrap;
}
.term-input-line input.tool-input {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 2px 4px;
  box-shadow: none;
}
.term-input-line input.tool-input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}



.friend-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a2a7d2;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.friend-profile-link:hover {
  background: rgba(162, 167, 210, 0.1);
  border-color: #a2a7d2;
  color: #fff;
}


/* ==========================================================================
   Bespoke Overhaul Styles (Friends, Discord Card, Audio & Modes)
   ========================================================================== */

/* Clean Monospace Workspace Mode Tabs */
.workspace-modes {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mode-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mode-pill:hover {
  color: var(--text-white);
  border-color: var(--border-hover);
  background: #151b2a;
}
.mode-pill.active {
  color: var(--text-white);
  background: rgba(94, 141, 247, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(94, 141, 247, 0.15);
}

/* Bottom Bar Music Control */
.bottom-music-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: #0d0d12;
  border: 1px solid #1c1c28;
  border-radius: 3px !important;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.15s ease;
}
.bottom-music-control:hover {
  background: #14141c;
  border-color: #2c2c3e;
}
.bottom-music-btn {
  font-size: 11px;
  color: var(--accent-lavender);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}
.bottom-music-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8383a0;
  user-select: none;
}

/* ==========================================================================
   Authentic Friends View (`friends.md`)
   Matching uploaded_media_1795399952447.png
   ========================================================================== */
.friends-page-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 32px;
  box-sizing: border-box;
}
.friends-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 8px;
}
.friends-title {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #e2e4f0;
  letter-spacing: -0.2px;
}
.friends-copy-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9a9ab0;
  background: #0d0d12;
  border: 1px solid #222232;
  border-radius: 3px !important;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.friends-copy-btn:hover {
  background: #181824;
  color: #ffffff;
  border-color: #38384c;
}
.friends-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
  width: 100%;
}
.friend-row {
  display: flex;
  align-items: center;
  background: #0d0d12;
  border: 1px solid #1a1a24;
  border-radius: 4px !important;
  padding: 8px 16px;
  min-height: 58px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.friend-row:hover {
  background: #111118;
  border-color: #282838;
}
.friend-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  margin-right: 14px;
}
.friend-avatar {
  width: 42px;
  height: 42px;
  border-radius: 4px !important;
  object-fit: cover;
  display: block;
}
.friend-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50% !important;
  border: 2px solid #0d0d12;
}
.friend-status-dot.idle { background: var(--status-idle); }
.friend-status-dot.online { background: var(--status-online); }
.friend-status-dot.dnd { background: var(--status-dnd); }
.friend-status-dot.offline { background: var(--status-offline); }

.friend-info {
  flex: 1;
  min-width: 0;
}
.friend-name {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e4f0;
  line-height: 1.2;
}
.friend-handle {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #707084;
  margin-top: 2px;
}
.friend-status-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #707084;
  margin-right: 28px;
  flex-shrink: 0;
}
.friend-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.friend-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #707084;
}
.friend-badge-wrap {
  width: 88px;
  height: 31px;
}
.friend-badge-img {
  width: 88px;
  height: 31px;
  border-radius: 3px !important;
  object-fit: cover;
  display: block;
}
.friend-del-btn {
  background: none;
  border: none;
  color: #884444;
  margin-left: 10px;
  cursor: pointer;
  font-size: 11px;
  padding: 4px;
}
.friend-del-btn:hover {
  color: #f87171;
}

.friends-add-section {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #161622;
}
.friends-add-summary {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #787890;
  cursor: pointer;
  user-select: none;
}
.friends-add-summary:hover {
  color: var(--accent-lavender);
}
.friends-add-form {
  margin-top: 12px;
  background: #0d0d12;
  border: 1px solid #1a1a24;
  border-radius: 4px !important;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.friends-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}
.friends-submit-btn {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #ffffff;
  background: #181824;
  border: 1px solid #2c2c3e;
  border-radius: 3px !important;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.friends-submit-btn:hover {
  background: #222234;
  border-color: var(--accent-lavender);
}

/* ==========================================================================
   Bespoke Discord Client Card in `now.md`
   ========================================================================== */
.now-page-container {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 32px;
}
.discord-native-card {
  background: #111217;
  border: 1px solid #1e1f28;
  border-radius: 4px !important;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}
.discord-card-banner {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.discord-badges-corner {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}
.discord-chip-clan {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(30, 27, 75, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  border-radius: 3px !important;
}
.discord-chip-badge {
  font-size: 13px;
  background: rgba(17, 18, 23, 0.7);
  padding: 2px 5px;
  border-radius: 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.discord-avatar-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin-top: -40px;
  margin-left: 18px;
  margin-bottom: 8px;
}
.discord-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50% !important;
  border: 5px solid #111217;
  object-fit: cover;
  display: block;
}
.discord-avatar-deco {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 104px;
  height: 104px;
  pointer-events: none;
}
.discord-avatar-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50% !important;
  border: 3px solid #111217;
}
.discord-avatar-status.idle { background: var(--status-idle); }
.discord-avatar-status.online { background: var(--status-online); }
.discord-avatar-status.dnd { background: var(--status-dnd); }
.discord-avatar-status.offline { background: var(--status-offline); }

.discord-card-content {
  background: #111217;
  padding: 0 18px 18px;
}
.discord-primary-name {
  font-size: 18px;
  font-weight: 700;
  color: #f2f3f5;
  line-height: 1.2;
}
.discord-sub-handle {
  font-size: 12px;
  color: #949ba4;
  margin-top: 3px;
}
.discord-sub-handle .sep {
  margin: 0 4px;
  opacity: 0.5;
}
.discord-status-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e1f26;
  border: 1px solid #282a34;
  border-radius: 3px !important;
  padding: 4px 10px;
  margin-top: 10px;
  font-size: 12px;
  color: #dbdee1;
}
.status-bubble-emoji {
  width: 15px;
  height: 15px;
  vertical-align: middle;
}
.discord-line {
  height: 1px;
  background: #1e1f26;
  margin: 14px 0;
}
.discord-section {
  margin-bottom: 12px;
}
.discord-sec-heading {
  font-size: 10.5px;
  font-weight: 700;
  color: #b5bac1;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.discord-bio-body {
  font-size: 12.5px;
  color: #dbdee1;
  line-height: 1.5;
}
.discord-activities-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.discord-activity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1e1f26;
  border: 1px solid #282a34;
  border-radius: 4px !important;
  padding: 10px 14px;
}
.act-icon-box {
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2b2d38;
  border-radius: 4px !important;
  flex-shrink: 0;
}
.act-details-box {
  flex: 1;
  min-width: 0;
}
.act-name {
  font-size: 13px;
  font-weight: 700;
  color: #f2f3f5;
}
.act-desc {
  font-size: 12px;
  color: #dbdee1;
}
.act-sub {
  font-size: 11px;
  color: #949ba4;
  margin-top: 2px;
}
.discord-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #1e1f26;
  font-size: 11px;
  color: #949ba4;
  flex-wrap: wrap;
  gap: 8px;
}
.discord-status-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}
.switcher-label {
  font-size: 10.5px;
  color: #787890;
  margin-right: 2px;
}
.switcher-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 8px;
  background: #181920;
  border: 1px solid #282a36;
  border-radius: 3px !important;
  color: #8b929e;
  cursor: pointer;
  transition: all 0.15s ease;
}
.switcher-btn:hover {
  color: #ffffff;
  border-color: #383a48;
}
.switcher-btn.active {
  color: #f2f3f5;
  border-color: var(--accent-lavender);
  background: #222430;
}
.now-prose-section {
  background: #0d0d12;
  border: 1px solid #1a1a24;
  border-radius: 4px !important;
  padding: 18px 22px;
  margin-top: 16px;
}

/* Subtle scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-root);
  border-radius: 3px !important;
}
::-webkit-scrollbar-thumb {
  background: #28283a;
  border-radius: 3px !important;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-lavender);
}

/* ==========================================================================
   Discord Presence Hero Card (Pixel-Perfect to User Reference Image 1 & 2)
   ========================================================================== */

.discord-hero-container {
  width: 100%;
  max-width: 860px;
  background: #0f1015;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
  font-family: 'gg sans', 'Whitney', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
}

.discord-hero-banner {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1b24;
  position: relative;
}

.discord-hero-body {
  padding: 0 20px 20px 20px;
  background: #0f1015;
  position: relative;
}

.discord-hero-header-row {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  margin-top: -38px;
  position: relative;
}

.discord-hero-avatar-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

.discord-hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50% !important;
  border: 4px solid #0f1015;
  background: #111214;
  object-fit: cover;
  display: block;
}

.discord-hero-deco {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 108px;
  height: 108px;
  pointer-events: none;
  z-index: 2;
}

.discord-hero-speech-badge {
  position: absolute;
  bottom: 0px;
  left: -4px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  color: #111214;
  border-radius: 50% !important;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.6);
  z-index: 3;
}

.discord-hero-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50% !important;
  border: 3px solid #0f1015;
  z-index: 3;
}
.discord-hero-status-dot.online { background: #23a55a; }
.discord-hero-status-dot.idle { background: #f0b232; }
.discord-hero-status-dot.dnd { background: #f23f43; }
.discord-hero-status-dot.offline { background: #80848e; }

.discord-hero-titles {
  flex: 1;
  min-width: 280px;
  padding-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.discord-hero-name-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.discord-hero-display-name {
  font-size: 19px;
  font-weight: 700;
  color: #f2f3f5;
  line-height: 1.2;
}

.discord-hero-simulate-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.simulate-label {
  font-size: 11px;
  color: #949ba4;
  font-family: var(--font-mono);
}

.discord-hero-handle-line {
  font-size: 12.5px;
  color: #949ba4;
  font-family: var(--font-mono);
}

.discord-hero-custom-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #181920;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px !important;
  padding: 4px 10px;
  font-size: 12px;
  color: #dbdee1;
  width: fit-content;
  margin-top: 2px;
}
.discord-hero-custom-status .status-emoji {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.discord-hero-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.discord-hero-badges-row .discord-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #181920;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px !important;
  padding: 2px 8px;
  font-size: 11px;
  color: #dbdee1;
  font-family: var(--font-mono);
}
.discord-hero-badges-row .discord-badge-chip .badge-icon {
  font-size: 12px;
}

.discord-hero-bio-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: #b5bac1;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.discord-hero-bio {
  white-space: pre-wrap;
}
.discord-hero-devices {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #949ba4;
  font-family: var(--font-mono);
}

.discord-hero-activities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.discord-hero-act-card {
  background: #14151c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px !important;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.act-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.act-type-title {
  font-size: 12px;
  font-weight: 600;
  color: #f2f3f5;
}
.act-tag-pill {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 3px !important;
  background: rgba(255, 255, 255, 0.06);
  color: #949ba4;
  font-family: var(--font-mono);
}
.act-game-desc {
  font-size: 12px;
  color: #dbdee1;
  margin-top: 2px;
}
.act-game-time, .act-game-sub {
  font-size: 11px;
  color: var(--accent-lavender);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.discord-gateway-card {
  width: 100%;
  max-width: 860px;
  background: #0f1015;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
}
.gateway-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.gateway-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e4f0;
}
.gateway-status-badge {
  font-size: 11px;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 2px 8px;
  border-radius: 3px !important;
}
.gateway-conn-info {
  font-size: 11.5px;
  color: #949ba4;
}
.gateway-conn-info code {
  color: var(--accent-lavender);
}
.gateway-conn-sub {
  font-size: 11px;
  color: #626575;
  line-height: 1.5;
}

/* Guestbook clean styling */
.gb-owner-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.gb-entry:hover .gb-owner-btn {
  opacity: 0.6;
  pointer-events: auto;
}
.gb-entry:hover .gb-owner-btn:hover {
  opacity: 1;
}

/* ==========================================================================
   Minimal Guestbook
   ========================================================================== */

.guestbook-minimal-container {
  width: 100%;
  max-width: 100%;
  font-family: var(--font-mono);
  user-select: text;
  box-sizing: border-box;
}

.gb-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}
.gb-file-tag {
  color: #c4c6dc;
}
.gb-site-tag {
  color: #707084;
}

.gb-main-heading {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  padding: 16px 0 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: -0.01em;
  font-family: var(--font-mono);
}

.gb-sub-prompt {
  font-size: 13px;
  color: #8a8ea0;
  margin-top: 18px;
  margin-bottom: 20px;
}

.gb-form-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 440px;
  width: 100%;
  margin-bottom: 36px;
}

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

.gb-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gb-label {
  font-size: 12px;
  color: #707084;
}

.gb-char-count {
  font-size: 12px;
  color: #707084;
  font-family: var(--font-mono);
}

.gb-input-text {
  width: 100%;
  height: 36px;
  background: #09090d;
  border: 1px solid #1c1d26;
  border-radius: 4px !important;
  padding: 0 12px;
  color: #e2e4f0;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}
.gb-input-text:focus {
  border-color: #3b3d52;
}
.gb-input-text::placeholder {
  color: #4a4c5e;
}

.gb-textarea {
  width: 100%;
  height: 105px;
  background: #09090d;
  border: 1px solid #1c1d26;
  border-radius: 4px !important;
  padding: 10px 12px;
  color: #e2e4f0;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color 0.15s ease;
  line-height: 1.5;
}
.gb-textarea:focus {
  border-color: #3b3d52;
}
.gb-textarea::placeholder {
  color: #4a4c5e;
}

/* Cloudflare Turnstile Box Replica */
.gb-turnstile-box {
  width: 260px;
  height: 60px;
  background: #222222;
  border: 1px solid #383838;
  border-radius: 4px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  margin-top: 2px;
  margin-bottom: 2px;
  transition: border-color 0.15s ease;
}
.gb-turnstile-box:hover {
  border-color: #555;
}

.turnstile-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.turnstile-check-icon {
  width: 22px;
  height: 22px;
  background: #16a34a;
  border-radius: 50% !important;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.turnstile-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50% !important;
  animation: turnstile-spin 0.8s linear infinite;
}

.turnstile-success-text {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.turnstile-verifying-text {
  font-size: 12.5px;
  color: #cccccc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.turnstile-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.turnstile-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.turnstile-brand-name {
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.turnstile-brand-links {
  font-size: 8px;
  color: #888888;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Submit Action Button */
.gb-submit-action-btn {
  background: transparent;
  border: 1px solid #2a2a38;
  border-radius: 3px !important;
  padding: 6px 14px;
  color: #c4c6dc;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: fit-content;
  outline: none;
}
.gb-submit-action-btn:hover {
  background: #161622;
  border-color: #4a4a64;
  color: #ffffff;
}

/* Entries List */
.gb-entries-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
  margin-top: 14px;
  width: 100%;
}

.gb-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gb-entry-header {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
}

.gb-entry-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.gb-author {
  font-size: 13.5px;
  font-weight: 600;
  color: #e6e8f4;
}

.gb-date {
  font-size: 11.5px;
  color: #606076;
}

.gb-hearted-tag {
  font-size: 11.5px;
  color: #72728a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.gb-entry-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.gb-entry-msg {
  font-size: 13.5px;
  line-height: 1.5;
  color: #c4c6dc;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ==========================================================================
   Colophon Page (Exact 1:1 match with uploaded colophon.md screenshot)
   ========================================================================== */
.colophon-container {
  width: 100%;
  max-width: 100%;
  padding: 0 0 60px 0;
  box-sizing: border-box;
}
.colophon-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 24px;
}
.colophon-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.colophon-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 32px;
}
.colophon-section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 14px;
}
.colophon-identity-grid {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.colophon-logo-card {
  background: rgba(9, 10, 13, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.colophon-logo-card.main-card {
  flex: 2;
  max-width: 380px;
}
.colophon-logo-card.small-card {
  flex: 1;
  max-width: 140px;
}
.colophon-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  min-height: 120px;
  background: transparent;
}
.colophon-logo-preview img {
  max-width: 100%;
  max-height: 75px;
  object-fit: contain;
}
.colophon-logo-caption {
  border-top: 1px solid var(--border);
  background: var(--surface-panel);
  padding: 8px 12px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}
.colophon-logo-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}
.colophon-monogram-svg {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}
.colophon-logo-wordmark {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1;
  display: flex;
  align-items: baseline;
  user-select: none;
}
.colophon-logo-wordmark .wordmark-name {
  color: #ffffff;
}
.colophon-logo-wordmark .wordmark-tld {
  color: var(--accent-hover);
  margin-left: 3px;
}
.colophon-desc-text {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 28px;
}
.colophon-stack-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}
.colophon-stack-list li {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.8;
}
.colophon-stack-list li strong {
  color: var(--text);
}
.colophon-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 12px;
  width: 100%;
}
@media (max-width: 600px) {
  .colophon-palette-grid {
    grid-template-columns: 1fr;
  }
  .colophon-identity-grid {
    flex-direction: column;
  }
}
.palette-swatch-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
}
.palette-swatch-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: #151c2c;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.palette-swatch-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.palette-color-box {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.palette-role-name {
  font-size: 12px;
  color: var(--text);
}
.palette-var-token {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Taste Skill Bento Showcase & Asymmetrical Workstation Specimens
   ========================================================================== */
.bento-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 18px 0 32px;
  width: 100%;
  max-width: 100%;
}
.bento-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .bento-row {
    flex-direction: column;
  }
}
.bento-col-main {
  flex: 62;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bento-col-side {
  flex: 38;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bento-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.bento-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bento-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* Specimen 1: Interactive Neovim IDE Frame */
.specimen-ide {
  background: #080b12;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  height: 100%;
}
.ide-chrome {
  background: #0b0f19;
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  gap: 10px;
}
.ide-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.ide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.ide-dot.red { background: #ef4444; }
.ide-dot.yellow { background: #f59e0b; }
.ide-dot.green { background: #10b981; }
.ide-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ide-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ide-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.ide-tab-btn.active {
  background: #141b2b;
  border-color: var(--border);
  color: var(--accent);
  font-weight: 600;
}
.ide-badge {
  font-size: 10px;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 2px 7px;
  border-radius: 10px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.ide-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  animation: pulseGreen 2s ease infinite;
}
@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.ide-code-area {
  display: flex;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  overflow: hidden;
  background: var(--surface-base);
  flex: 1;
  min-height: 230px;
}
.specimen-ide pre.ide-code {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.specimen-ide pre.ide-code::-webkit-scrollbar {
  display: none;
}
.ide-gutter {
  width: 40px;
  text-align: right;
  padding-right: 12px;
  color: #3b4861;
  user-select: none;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.ide-code {
  padding-left: 14px;
  padding-right: 16px;
  flex: 1;
  margin: 0;
  white-space: pre;
  color: var(--text);
}
.ide-statusline {
  background: var(--surface-panel);
  border-top: 1px solid var(--border);
  padding: 5px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  user-select: none;
}
.ide-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ide-status-mode {
  background: var(--accent);
  color: #040507;
  padding: 1px 7px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.ide-copy-btn {
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ide-copy-btn:hover {
  background: #171d29;
  border-color: var(--accent);
  color: var(--accent-light);
}
.ide-kw { color: var(--accent); font-weight: 600; }
.ide-str { color: #34d399; }
.ide-fn { color: #38bdf8; }
.ide-tp { color: #a78bfa; }
.ide-cm { color: #64748b; font-style: italic; }
.ide-num { color: #f59e0b; }

/* Specimen 2: Cluster Topology */
.cluster-node-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  flex: 1;
}
.cluster-node-item {
  background: var(--surface-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cluster-node-item:hover {
  border-color: var(--border-hover);
  background: #11141c;
}
.cluster-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.cluster-node-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-heading);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cluster-status-pill {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
}
.cluster-status-pill.green {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.cluster-status-pill.blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.cluster-status-pill.cyan {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.cluster-node-desc {
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.cluster-meter-track {
  height: 4px;
  background: #141a29;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.cluster-meter-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #38bdf8, var(--accent));
}

/* Specimen 3: Yorushika Acoustic Studio & Audio Moment */
.specimen-yorushika {
  background: linear-gradient(135deg, #07080c 0%, #0c0e14 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}
.specimen-yorushika:hover {
  border-color: var(--border-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.4);
}
@media (max-width: 768px) {
  .specimen-yorushika {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
.vinyl-disc {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #0e111a 24%, #06070a 25%, #141724 48%, var(--surface-base) 50%, #10131e 72%, #040507 100%);
  border: 2px solid #1a1e2b;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(0, 0, 0, 0.8);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  animation: vinylSpin 14s linear infinite;
}
.vinyl-disc:hover {
  animation-duration: 4s;
}
@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.vinyl-center-label {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7.5px;
  font-weight: 800;
  color: #040507;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vinyl-hole {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--surface-base);
}
.audio-visualizer-container {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
  padding: 0 16px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .audio-visualizer-container {
    border-left: none;
    border-right: none;
    padding: 0;
  }
}
.audio-freq-bar {
  width: 3px;
  background: linear-gradient(to top, var(--accent), #38bdf8);
  border-radius: 2px;
  animation: freqPulse 1.2s ease-in-out infinite alternate;
}
@keyframes freqPulse {
  0% { height: 18%; opacity: 0.5; }
  50% { height: 90%; opacity: 1; }
  100% { height: 35%; opacity: 0.7; }
}
.yorushika-meta {
  flex: 1;
  min-width: 0;
}
.yorushika-tagline {
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 3px;
}
.yorushika-track-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.yorushika-quote {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  font-style: italic;
}

/* Specimen 4: Specialized Engineering Dock */
.specimen-dock {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.dock-layer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #0a0d16;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dock-layer-row:hover {
  border-color: var(--border-hover);
  background: #0e1320;
}
@media (max-width: 768px) {
  .dock-layer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
.dock-layer-label {
  width: 130px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.dock-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.dock-chip {
  background: #121826;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.dock-chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: #172033;
  color: var(--accent-light);
  box-shadow: 0 4px 12px rgba(94, 141, 247, 0.15);
}
.dock-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Taste Skill Connect Hub & Telemetry Overhauls */
.connect-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0 24px;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
}
@media (max-width: 820px) {
  .connect-hub-grid {
    grid-template-columns: 1fr;
  }
}
.connect-console {
  flex: 58;
  background: #080b12;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.connect-station {
  flex: 42;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.protocol-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #0d121e;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  transition: all 0.15s ease;
}
.protocol-link-row:hover {
  border-color: var(--accent);
  background: #141b2b;
  color: var(--accent-light);
}

/* Telemetry Dashboard Overhaul */
.telemetry-hero-card {
  background: linear-gradient(135deg, #0b0f19 0%, #101626 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 26px;
  margin: 18px 0 16px;
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 640px) {
  .telemetry-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
.telemetry-tri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  max-width: 960px;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .telemetry-tri-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Developer Tool Studio Design System (.tool-studio)
   ========================================================================== */
.tool-studio-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 18px 0 28px;
  width: 100%;
  max-width: 100%;
}
.tool-studio-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.tool-studio-header {
  background: #090a0e;
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.tool-studio-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-studio-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 2px 7px;
  border-radius: 3px;
  font-family: var(--font-mono);
}
.tool-studio-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}
.tool-preset-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tool-preset-chip {
  background: #11141c;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10.5px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tool-preset-chip:hover {
  background: #161b26;
  border-color: var(--accent);
  color: var(--text);
}
.tool-split-workbench {
  display: flex;
  min-height: 260px;
}
@media (max-width: 820px) {
  .tool-split-workbench {
    flex-direction: column;
  }
}
.tool-workbench-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tool-workbench-col:first-child {
  border-right: 1px solid var(--border);
}
@media (max-width: 820px) {
  .tool-workbench-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
.tool-pane-header {
  background: #0b0d12;
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
}
.tool-pane-title {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tool-status-tag {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
}
.tool-status-tag.green {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.tool-status-tag.blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.tool-studio-textarea {
  flex: 1;
  background: #06070a;
  border: none;
  outline: none;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  resize: none;
  width: 100%;
}
.tool-studio-textarea:focus {
  background: #07090d;
}
.tool-studio-input {
  background: #06070a;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 12px;
  outline: none;
  width: 100%;
}
.tool-studio-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.tool-studio-result {
  flex: 1;
  background: #06070a;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.tool-action-footer {
  background: #090a0e;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   Project Architecture Case Study System (.project-study)
   ========================================================================== */
.project-study-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 18px 0 32px;
  width: 100%;
  max-width: 100%;
}
.project-hero-block {
  background: linear-gradient(135deg, #090b10 0%, #0e121a 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.project-headline {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
}
.project-role-badge {
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
}
.project-desc-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}
.project-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}
@media (max-width: 820px) {
  .project-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.project-spec-item {
  background: #0a0c12;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-spec-k {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-family: var(--font-mono);
}
.project-spec-v {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-white);
  font-family: var(--font-mono);
}
.project-diagram-card {
  background: #07080c;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-diagram-header {
  background: #0a0c12;
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
}
.project-diagram-body {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #040508;
  overflow-x: auto;
}
.project-diagram-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Interactive Hardware Simulator Card */
.project-sim-card {
  background: #090b10;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project-sim-screen {
  background: #050608;
  border: 2px solid #1a202c;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
}
.project-sim-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.project-sim-btn {
  background: #11141c;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.project-sim-btn:hover {
  background: #171d29;
  border-color: var(--accent);
  color: var(--accent-light);
}


/* Sidebar Top Header & Traffic Lights */
.sidebar-header {
  height: var(--tab-height, 38px);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-mid);
  background-color: var(--surface-panel);
  flex-shrink: 0;
}

.rside-header {
  height: var(--tab-height, 38px);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-dim);
  background-color: var(--surface-panel);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
.rside-header-title {
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.rside-header-indicator {
  color: #34d399;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.bottom-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 110px;
}

.bottom-utility-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-btn {
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.status-btn:hover {
  background: var(--surface-card-hover);
  border-color: var(--border-hover);
  color: var(--text-white);
}

/* Full-width Dotfiles Workbench in About */
.workbench-ide-full {
  width: 100%;
  margin-top: 14px;
}


/* ==========================================================================
   Taste Skill 2.5: Creative Layout Enhancements & Micro-Interactions
   ========================================================================== */

/* Manifesto Grid (About.md) */
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0 28px;
}
@media (max-width: 900px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
  }
}
.manifesto-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.15s ease, box-shadow 0.2s ease;
}
.manifesto-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--surface-card-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.manifesto-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.manifesto-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.manifesto-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
}
.manifesto-metric {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #34d399;
  font-weight: 600;
}

/* Skills Metrics Ribbon */
.skills-metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 24px;
}
@media (max-width: 820px) {
  .skills-metrics-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
}
.ribbon-metric-item {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ribbon-metric-item:hover {
  border-color: var(--border-hover);
  background: var(--surface-card-hover);
  transform: translateY(-2px);
}
.ribbon-metric-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-heading);
}
.ribbon-metric-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

/* Colophon Performance Grid */
.colophon-perf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0 26px;
}
@media (max-width: 768px) {
  .colophon-perf-grid {
    grid-template-columns: 1fr;
  }
}
.colophon-perf-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.colophon-perf-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--surface-card-hover);
}
.colophon-perf-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: #34d399;
}
.colophon-perf-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-heading);
}
.colophon-perf-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
