/* ==========================================================================
   LAD-UI CORE FRAMEWORK v2.01 (2001-2002 RETROFUTURISTIC FLASH ECOSYSTEM)
   Inspired by 2Advanced Studios (Rebirth V2.K, Coexistence) & Y2K Aesthetics
   Author: Felipe Lacerda Amado de Deus (LAD LABS)
   ========================================================================== */

:root {
  /* Slate, Titanium & Platinum Palette */
  --lad-bg-root: #cfd7e1;
  --lad-bg-surface: #dce3ec;
  --lad-bg-surface-elevated: #e9eff6;
  --lad-bg-dark: #121820;
  --lad-bg-dark-surface: #18212c;
  --lad-bg-dark-deep: #0a0e14;
  
  --lad-slate-900: #0d131a;
  --lad-slate-800: #161e28;
  --lad-slate-700: #232f3e;
  --lad-slate-600: #334457;
  --lad-slate-500: #4c627a;
  --lad-slate-400: #6f87a3;
  --lad-slate-300: #9cb1c9;
  --lad-slate-200: #cfd8e3;
  --lad-slate-100: #e6ecf2;

  /* LAD Signature Accents */
  --lad-orange: #e06020;
  --lad-orange-light: #ff7733;
  --lad-orange-dark: #b8440d;
  --lad-orange-glow: rgba(224, 96, 32, 0.45);
  --lad-cyan: #36c3d9;
  --lad-cyan-glow: rgba(54, 195, 217, 0.35);
  --lad-green: #3cd070;
  --lad-green-glow: rgba(60, 208, 112, 0.35);
  --lad-amber: #f5a623;
  --lad-red: #eb4d4b;

  /* Borders & Hairlines */
  --lad-border-dark: #0f151c;
  --lad-border-slate: #232f3e;
  --lad-border-mid: #5b7188;
  --lad-border-light: #ffffff;
  --lad-hairline-subtle: rgba(38, 51, 66, 0.25);

  /* Typography Stacks */
  --lad-font-sans: "Trebuchet MS", "Lucida Sans Unicode", "Segoe UI", system-ui, -apple-system, sans-serif;
  --lad-font-mono: "Consolas", "SF Mono", "Lucida Console", "Courier New", monospace;
  --lad-font-tech: "Trebuchet MS", "Arial", sans-serif;

  /* Elevation Shadows & Bevels */
  --lad-shadow-window: 0 20px 50px rgba(8, 14, 22, 0.55), 0 3px 10px rgba(0,0,0,0.35);
  --lad-shadow-beveled: inset 1px 1px 0 #fff, inset -1px -1px 0 #7b8ea3, 1px 1px 3px rgba(0,0,0,0.25);
  --lad-shadow-pressed: inset 1px 1px 3px rgba(0,0,0,0.65), inset -1px -1px 0 rgba(255,255,255,0.4);
  --lad-shadow-chassis: inset 1px 1px 0 rgba(255,255,255,0.7), inset -1px -1px 0 #3b4b5d, 0 6px 18px rgba(0,0,0,0.4);

  /* Animation Timings */
  --lad-anim-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --lad-anim-standard: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --lad-anim-bounce: 0.36s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Base Reset & Pixel Rendering */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body.lad-body {
  font-family: var(--lad-font-sans);
  background-color: var(--lad-bg-root);
  color: var(--lad-slate-900);
  line-height: 1.4;
  font-size: 13px;
  overflow-x: hidden;
  user-select: text;
  -webkit-font-smoothing: subpixel-antialiased;
}

::selection {
  background: var(--lad-orange);
  color: #ffffff;
}

/* ==========================================================================
   2001 FLASH KEYFRAME ANIMATIONS (WINDOW WARP, BEAM COLLAPSE, SUCTION)
   ========================================================================== */

@keyframes ladWindowOpenAnim {
  0% {
    opacity: 0;
    transform: scale3d(0.85, 0.08, 1);
    filter: brightness(2) contrast(1.5);
    box-shadow: 0 0 40px var(--lad-orange-glow);
  }
  45% {
    opacity: 1;
    transform: scale3d(1.02, 0.12, 1);
    filter: brightness(1.3);
  }
  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
    filter: brightness(1) contrast(1);
    box-shadow: var(--lad-shadow-window);
  }
}

@keyframes ladWindowCloseAnim {
  0% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
  50% {
    opacity: 0.8;
    transform: scale3d(1.02, 0.05, 1);
    filter: brightness(2.2);
    box-shadow: 0 0 30px var(--lad-cyan-glow);
  }
  100% {
    opacity: 0;
    transform: scale3d(0.2, 0.01, 1);
    filter: brightness(3);
  }
}

@keyframes ladWindowMinimizeAnim {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  60% {
    opacity: 0.85;
    transform: scale(0.65, 0.4) translateY(180px);
  }
  100% {
    opacity: 0;
    transform: scale(0.2, 0.04) translateY(320px);
    filter: blur(3px);
  }
}

@keyframes ladRadarRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ladRadarRotateReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes ladCorePulse {
  0%, 100% {
    box-shadow: 0 0 25px var(--lad-orange-glow), inset 0 0 20px rgba(224, 96, 32, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 45px var(--lad-orange), inset 0 0 30px rgba(255, 140, 50, 0.85);
    transform: scale(1.04);
  }
}

/* ==========================================================================
   GEOMETRIC UTILITIES, HONEYCOMB, LOUVERS & DOT MATRICES
   ========================================================================== */

.lad-honeycomb {
  background-color: #df6023;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 145, 60, 0.95), rgba(185, 65, 15, 0.95)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='24' viewBox='0 0 14 24'%3E%3Cpath d='M7 0l7 4.04v8.08L7 16.16 0 12.12V4.04zm0 24l7-4.04v-8.08L7 7.84 0 11.88v8.08z' fill='none' stroke='rgba(0,0,0,0.35)' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: auto, 14px 24px;
  position: relative;
  overflow: hidden;
}

.lad-honeycomb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.lad-louvers {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  user-select: none;
  font-style: italic;
  font-family: var(--lad-font-mono);
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--lad-slate-500);
  text-shadow: 1px 1px 0 rgba(255,255,255,0.6);
}

.lad-louvers-dark {
  color: var(--lad-slate-600);
  text-shadow: 0 1px 0 #000;
}

.lad-louvers-orange {
  color: var(--lad-orange);
  text-shadow: 0 0 4px var(--lad-orange-glow);
}

.lad-micro {
  font-family: var(--lad-font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lad-slate-500);
  display: inline-block;
  line-height: 1;
}

.lad-micro-orange {
  color: var(--lad-orange);
  font-weight: 700;
}

.lad-micro-light {
  color: rgba(220, 230, 245, 0.7);
}

.lad-dot-matrix-dark {
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 6px 6px;
}

.lad-chamfer {
  clip-path: polygon(
    10px 0%, 
    100% 0%, 
    100% calc(100% - 10px), 
    calc(100% - 10px) 100%, 
    0% 100%, 
    0% 10px
  );
}

.lad-hairline-h {
  width: 100%;
  height: 1px;
  background: var(--lad-slate-400);
  position: relative;
  margin: 12px 0;
  opacity: 0.55;
}

.lad-bracket-frame {
  position: relative;
  border: 1px solid rgba(80, 105, 130, 0.35);
  padding: 16px;
  background: rgba(240, 245, 252, 0.7);
}

/* ==========================================================================
   DESKTOP WORKSPACE ROOT (.lad-desktop-area)
   Spans from below the slim menubar to the screen bottom with overflow: visible
   Prevents windows from being clipped horizontally above the floating dock
   ========================================================================== */
.lad-desktop-area {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: calc(100vh - 26px);
  z-index: 10;
  overflow: visible;
}

/* ==========================================================================
   THE LAD-WINDOW COMPONENT (FLEX-SAFE TITLEBAR & ROBUST OVERFLOW)
   ========================================================================== */

.lad-window {
  position: absolute;
  min-width: 280px;
  max-width: 95vw;
  background: linear-gradient(180deg, #d8e2eb 0%, #b8c7d6 100%);
  border: 1px solid var(--lad-slate-700);
  box-shadow: var(--lad-shadow-window);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transform-origin: center center;
  transition: box-shadow var(--lad-anim-fast), border-color var(--lad-anim-fast);
  overflow: hidden;
}

.lad-window.lad-anim-opening {
  animation: ladWindowOpenAnim var(--lad-anim-bounce) forwards;
}

.lad-window.lad-anim-closing {
  animation: ladWindowCloseAnim 0.22s ease-in forwards;
  pointer-events: none;
}

.lad-window.lad-anim-minimizing {
  animation: ladWindowMinimizeAnim 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.lad-window.lad-active-window {
  z-index: 100;
  border-color: #0b1118;
  box-shadow: 0 22px 55px rgba(5, 12, 22, 0.65), 0 0 0 1px rgba(224, 96, 32, 0.6);
}

/* Zero Latency Drag State */
.lad-window.lad-is-dragging {
  will-change: left, top;
  transition: none !important;
  user-select: none !important;
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--lad-orange) !important;
}

.lad-window.lad-is-dragging .lad-window-header {
  cursor: grabbing !important;
}

.lad-window.lad-is-dragging .lad-window-body {
  pointer-events: none !important;
}

.lad-window.lad-window-static {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100%;
  margin-bottom: 24px;
  z-index: 10;
}

/* Title Bar / Draggable Header (PROTECTED FROM OVERFLOW) */
.lad-window-header {
  height: 34px;
  background: linear-gradient(180deg, #f0f5fa 0%, #d1dde9 40%, #b3c2d1 100%);
  border-bottom: 1px solid var(--lad-slate-700);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 10px;
  cursor: grab;
  user-select: none;
  position: relative;
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
}

.lad-window-header:active {
  cursor: grabbing;
}

/* Header Left with safe ellipsis overflow */
.lad-window-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0; /* Critical for CSS text truncation */
  overflow: hidden;
}

.lad-window-title {
  font-family: var(--lad-font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lad-slate-800);
  text-shadow: 1px 1px 0 rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Clean ... when text is long! */
  min-width: 0;
  flex: 0 1 auto;
}

.lad-window-louvers {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  opacity: 0.85;
  flex-shrink: 0;
}

.lad-window-louvers span {
  width: 3px;
  height: 13px;
  background: linear-gradient(180deg, #5b6f84 0%, #303d4c 100%);
  transform: skewX(-25deg);
  box-shadow: 1px 0 0 #fff;
  display: inline-block;
}

/* Window Controls (IMMUNE TO PUSH-OUT) */
.lad-window-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0; /* Never pushed off the screen! */
  margin-left: 8px;
}

.lad-window-badge {
  background: linear-gradient(180deg, #364353 0%, #1c242e 100%);
  color: #fff;
  border: 1px solid #0f151c;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.25), 0 1px 2px rgba(0,0,0,0.3);
  font-family: var(--lad-font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: all var(--lad-anim-fast);
  flex-shrink: 0;
}

.lad-window-badge::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--lad-orange);
  box-shadow: 0 0 4px var(--lad-orange);
}

.lad-window-badge:hover {
  background: linear-gradient(180deg, #e06020 0%, #a83805 100%);
  border-color: #6d2403;
  color: #fff;
}

.lad-window-btn {
  width: 20px;
  height: 20px;
  background: linear-gradient(180deg, #f2f6fa 0%, #c4d1de 100%);
  border: 1px solid var(--lad-slate-600);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #8d9eae;
  color: var(--lad-slate-800);
  font-size: 10px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  font-family: var(--lad-font-mono);
  transition: background var(--lad-anim-fast);
  flex-shrink: 0;
}

.lad-window-btn:hover {
  background: #ffffff;
  color: #000;
}

.lad-window-btn:active {
  box-shadow: var(--lad-shadow-pressed);
  transform: translate(1px, 1px);
}

.lad-window-btn-close:hover {
  background: #eb4d4b;
  color: #fff;
  border-color: #921c1a;
}

/* Window Body & Interior Sizing */
.lad-window-body,
.lad-window-content {
  padding: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lad-tabs {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.lad-viewport-chassis {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lad-viewport-screen {
  flex: 1 1 auto;
  min-height: 0;
}

/* ==========================================================================
   2ADVANCED REBIRTH V2.K INTERIOR COMPONENTS
   ========================================================================== */

.lad-viewport-chassis {
  background: linear-gradient(180deg, #323f4f 0%, #202a35 40%, #151d26 100%);
  border: 1px solid #0d1217;
  padding: 4px;
  box-shadow: var(--lad-shadow-chassis);
  margin-bottom: 12px;
}

.lad-viewport-screen {
  background: radial-gradient(circle at 50% 30%, #1c2734 0%, #0e141c 100%);
  border: 1px solid #233040;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.8), inset 0 0 1px rgba(255,255,255,0.1);
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.lad-etched-header {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #18222d 0%, #2a3746 60%, transparent 100%);
  border-left: 3px solid var(--lad-orange);
  padding: 4px 14px 4px 8px;
  margin-bottom: 10px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}

.lad-etched-header-title {
  font-family: var(--lad-font-tech);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lad-etched-header-title span {
  color: var(--lad-orange);
}

.lad-feature-card {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
  align-items: stretch;
  background: linear-gradient(180deg, #253342 0%, #17212b 100%);
  border: 1px solid #36485c;
  padding: 10px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.15), 0 4px 12px rgba(0,0,0,0.4);
  position: relative;
}

.lad-isometric-badge-box {
  background: linear-gradient(135deg, #1c2633 0%, #0d131a 100%);
  border: 1px solid #3d5066;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.7), 0 0 10px rgba(54, 195, 217, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
}

.lad-isometric-emblem-svg {
  width: 72px;
  height: 52px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.lad-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--lad-font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(180deg, #324050 0%, #1b242e 100%);
  border: 1px solid #4a5d72;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.2), 0 2px 4px rgba(0,0,0,0.3);
  padding: 5px 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--lad-anim-fast);
}

.lad-action-link span {
  color: var(--lad-orange);
  transition: transform var(--lad-anim-fast);
}

.lad-action-link:hover {
  background: linear-gradient(180deg, #ff823a 0%, #e06020 100%);
  border-color: #8c2e04;
  color: #fff;
  box-shadow: 0 0 10px var(--lad-orange-glow);
}

.lad-action-link:hover span {
  color: #fff;
  transform: translateX(3px);
}

.lad-telemetry-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #090d12;
  border-top: 1px solid #233040;
  padding: 4px 8px;
  font-family: var(--lad-font-mono);
  font-size: 9px;
  color: #6d8299;
}

.lad-telemetry-strip b {
  color: var(--lad-cyan);
}

.lad-window-footer {
  height: 24px;
  background: linear-gradient(180deg, #ccd7e3 0%, #b2c0cf 100%);
  border-top: 1px solid var(--lad-slate-700);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-family: var(--lad-font-mono);
  font-size: 9px;
  color: var(--lad-slate-600);
  user-select: none;
  flex-shrink: 0;
  margin-top: auto;
}

.lad-window-footer .lad-status-led {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--lad-green);
  border-radius: 50%;
  margin-right: 5px;
  box-shadow: 0 0 4px var(--lad-green);
}

/* ==========================================================================
   HIGH-CONTRAST BADGES, CHIPS & TAG SYSTEM (.lad-badge, .lad-badge-group)
   Guaranteed legibility and WCAG contrast on all retro surfaces
   ========================================================================== */

.lad-badge-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin: 8px 0;
}

/* High-Contrast Base Badge (Tactical Dark with Metallic Bevel) */
.lad-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--lad-font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2b3a4c 0%, #17222d 100%);
  border: 1px solid #4f6888;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4), inset 1px 1px 0 rgba(255,255,255,0.22);
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
}

/* Primary Orange Accent Badge (High Visibility) */
.lad-badge-primary,
.lad-badge-orange {
  background: linear-gradient(180deg, #ff823a 0%, #e06020 50%, #b8430b 100%);
  border-color: #792702;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4), inset 1px 1px 0 rgba(255,255,255,0.45);
}

/* High-Tech Cyan Telemetry Badge */
.lad-badge-cyan {
  background: linear-gradient(180deg, #1c5665 0%, #0e343e 100%);
  border-color: #36c3d9;
  color: #e5faff !important;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 0 6px var(--lad-cyan-glow);
}

/* Green Status Badge */
.lad-badge-green {
  background: linear-gradient(180deg, #1d5231 0%, #0d2f1b 100%);
  border-color: #3cd070;
  color: #e8fff1 !important;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 0 6px var(--lad-green-glow);
}

/* Amber Warning Badge */
.lad-badge-amber {
  background: linear-gradient(180deg, #704a0e 0%, #442c07 100%);
  border-color: #f5a623;
  color: #fff4e0 !important;
  text-shadow: 0 1px 2px #000;
}

/* Red Critical Badge */
.lad-badge-red {
  background: linear-gradient(180deg, #701c1a 0%, #440f0e 100%);
  border-color: #eb4d4b;
  color: #ffe8e8 !important;
  text-shadow: 0 1px 2px #000;
}

/* Light Metallic Badge for Dark Backgrounds */
.lad-badge-light {
  background: linear-gradient(180deg, #ffffff 0%, #d4dfec 100%);
  border-color: #6a7f96;
  color: #0b1219 !important;
  font-weight: 900;
  text-shadow: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Retro Matrix LCD Badge */
.lad-badge-lcd {
  background: #82a03d;
  border-color: #33401c;
  color: #141f05 !important;
  font-weight: 900;
  text-shadow: 1px 0 0 rgba(145, 180, 75, 0.5);
}

/* Universal LED Indicators */
.lad-led {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lad-led-green { background: #3cd070; box-shadow: 0 0 5px #3cd070; }
.lad-led-orange { background: #e06020; box-shadow: 0 0 5px #e06020; }
.lad-led-cyan { background: #36c3d9; box-shadow: 0 0 5px #36c3d9; }
.lad-led-red { background: #eb4d4b; box-shadow: 0 0 5px #eb4d4b; }

/* Universal Contrast Text Helpers */
.lad-text-high {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85);
}

.lad-text-subtle {
  color: #b8cde3 !important;
}

.lad-text-muted {
  color: #7990a8 !important;
}

.lad-text-orange {
  color: var(--lad-orange) !important;
  font-weight: 700;
}

.lad-text-cyan {
  color: var(--lad-cyan) !important;
  font-weight: 700;
}

.lad-window-resize-grip {
  width: 10px;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--lad-slate-600),
    var(--lad-slate-600) 1px,
    transparent 1px,
    transparent 3px
  );
  cursor: se-resize;
}

/* ==========================================================================
   WINAMP 2.X EQUALIZER SLIDER & MULTI-LED DIGITAL VU METER
   ========================================================================== */

.lad-winamp-eq-group {
  background: #0d131a;
  border: 1px solid #263547;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.lad-winamp-eq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--lad-font-tech);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9cb1c7;
}

.lad-winamp-eq-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Winamp Track */
.lad-winamp-slider-track {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  touch-action: none;
  padding: 6px 0;
  cursor: pointer;
}

.lad-winamp-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  outline: none;
  position: relative;
  cursor: ew-resize;
  touch-action: none;
  margin: 0;
  padding: 0;
}

/* Styled Runnable Track */
.lad-winamp-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  background: #080c10;
  border: 1px solid #233040;
  box-shadow: inset 0 2px 4px #000, 0 1px 0 rgba(255,255,255,0.1);
  cursor: ew-resize;
}

.lad-winamp-slider::-moz-range-track {
  width: 100%;
  height: 10px;
  background: #080c10;
  border: 1px solid #233040;
  box-shadow: inset 0 2px 4px #000, 0 1px 0 rgba(255,255,255,0.1);
  cursor: ew-resize;
}

/* Winamp 2.x Metallic Slider Thumb */
.lad-winamp-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 18px;
  margin-top: -4.5px;
  background: linear-gradient(180deg, #ecf2f8 0%, #b8c7d6 45%, #7e91a6 100%);
  border: 1px solid #263342;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #4a5c6e, 0 2px 5px rgba(0,0,0,0.6);
  cursor: ew-resize;
  position: relative;
  /* Center groove */
  background-image: linear-gradient(90deg, transparent 10px, #d84e1b 10px, #d84e1b 13px, transparent 13px);
}

.lad-winamp-slider::-webkit-slider-thumb:hover {
  background-color: #fff;
  border-color: var(--lad-orange);
  box-shadow: inset 1px 1px 0 #fff, 0 0 8px var(--lad-orange-glow);
}

.lad-winamp-slider::-moz-range-thumb {
  width: 24px;
  height: 18px;
  background: linear-gradient(180deg, #ecf2f8 0%, #b8c7d6 45%, #7e91a6 100%);
  border: 1px solid #263342;
  border-radius: 0;
  cursor: ew-resize;
}

/* Multi-Segment Digital LED VU Bargraph */
.lad-digital-vu {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #05080c;
  border: 1px solid #1a2533;
  padding: 3px 5px;
  box-shadow: inset 0 2px 4px #000;
}

.lad-vu-bar {
  display: flex;
  gap: 2px;
  height: 12px;
}

.lad-vu-led {
  width: 5px;
  height: 12px;
  border-radius: 1px;
  background: #111a14;
  border: 1px solid #080d0a;
  transition: all 0.05s ease;
}

/* Green Zone (Low/Mid) */
.lad-vu-led.active-green {
  background: #3cd070;
  box-shadow: 0 0 6px #3cd070;
  border-color: #a4f7c1;
}

/* Amber Zone (High) */
.lad-vu-led.active-amber {
  background: #f5a623;
  box-shadow: 0 0 6px #f5a623;
  border-color: #ffe099;
}

/* Red Peak Zone */
.lad-vu-led.active-red {
  background: #eb4d4b;
  box-shadow: 0 0 8px #eb4d4b;
  border-color: #ff9d9b;
}

.lad-vu-readout {
  font-family: var(--lad-font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--lad-orange);
  min-width: 52px;
  text-align: right;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   BUTTONS & FORM CONTROLS
   ========================================================================== */

.lad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--lad-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lad-slate-800);
  background: linear-gradient(180deg, #f2f6fa 0%, #d4dfec 45%, #b5c4d4 100%);
  border: 1px solid #4a5c6f;
  box-shadow: var(--lad-shadow-beveled);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  position: relative;
  transition: all var(--lad-anim-fast);
}

.lad-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e2ebf5 45%, #c5d4e4 100%);
  border-color: #263342;
  color: #000;
}

.lad-btn:active,
.lad-btn.lad-btn-active {
  background: linear-gradient(180deg, #b5c4d4 0%, #c8d5e3 55%, #e6eff7 100%);
  box-shadow: var(--lad-shadow-pressed);
  transform: translate(1px, 1px);
}

.lad-btn-primary {
  background: linear-gradient(180deg, #ff823a 0%, #e06020 50%, #b8430b 100%);
  border-color: #792702;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.4), inset -1px -1px 0 #792702, 1px 1px 3px rgba(0,0,0,0.3);
}

.lad-btn-primary:hover {
  background: linear-gradient(180deg, #ffa05f 0%, #f06a27 50%, #c94b0e 100%);
  color: #ffffff;
}

.lad-btn-dark {
  background: linear-gradient(180deg, #364455 0%, #202b37 50%, #131a22 100%);
  border-color: #0c1117;
  color: #c9d8e8;
  text-shadow: 0 1px 0 #000;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.18), inset -1px -1px 0 #0c1117, 1px 1px 3px rgba(0,0,0,0.4);
}

.lad-btn-chamfer {
  clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
}

.lad-btn-sm {
  padding: 3px 8px;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.lad-form-group {
  margin-bottom: 14px;
}

.lad-form-label-dark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--lad-font-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9cb1c7;
  margin-bottom: 5px;
}

.lad-input-dark {
  width: 100%;
  font-family: var(--lad-font-mono);
  font-size: 12px;
  background-color: #0e141b;
  color: #e2ecf7;
  border: 1px solid #233040;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.7);
  padding: 6px 10px;
  outline: none;
}

.lad-input-dark:focus {
  border-color: var(--lad-orange);
  background-color: #121922;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8), 0 0 6px var(--lad-orange-glow);
}

/* ==========================================================================
   RETRO GREEN MATRIX LCD DISPLAYS & FORMS (.lad-input-lcd, .lad-lcd-screen)
   Inspired by classic Roland/Yamaha/Korg Synthesizers & Industrial PLC Displays
   ========================================================================== */

/* Outer Molded Bezel for LCD Screens */
.lad-lcd-bezel {
  background: linear-gradient(180deg, #2b333c 0%, #1c2229 50%, #13181d 100%);
  border: 1px solid #090c0f;
  border-radius: 3px;
  padding: 8px 10px 10px 10px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.2), inset -1px -1px 0 #000, 0 4px 14px rgba(0,0,0,0.5);
  margin-bottom: 12px;
  position: relative;
}

.lad-lcd-bezel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-family: var(--lad-font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7b8e9f;
  text-shadow: 0 1px 1px #000;
}

.lad-lcd-bezel-header span:first-child::before {
  content: "■ ";
  color: #8fae49;
  text-shadow: 0 0 4px #8fae49;
}

/* Base Green LCD Screen Surface with Pixel Scanline Substrate */
.lad-lcd-screen,
.lad-input-lcd,
.lad-textarea-lcd,
.lad-select-lcd {
  width: 100%;
  font-family: "Consolas", "Courier New", "SF Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #141f05;
  background-color: #82a03d;
  background-image: 
    repeating-linear-gradient(
      0deg, 
      rgba(0,0,0,0.06) 0px, 
      rgba(0,0,0,0.06) 1px, 
      transparent 1px, 
      transparent 2px
    ),
    linear-gradient(180deg, #92b04c 0%, #819f3c 50%, #739031 100%);
  border: 2px solid #33401c;
  box-shadow: 
    inset 2px 2px 6px rgba(15, 24, 6, 0.8), 
    inset -1px -1px 2px rgba(255, 255, 255, 0.4), 
    0 2px 5px rgba(0, 0, 0, 0.35);
  padding: 8px 12px;
  outline: none;
  caret-color: #141f05;
  text-shadow: 1px 0 0 rgba(145, 180, 75, 0.5);
  transition: all var(--lad-anim-fast);
}

.lad-lcd-screen {
  display: block;
  min-height: 52px;
  white-space: pre-wrap;
  line-height: 1.45;
}

/* Interactive Focus State with Backlight Boost */
.lad-input-lcd:focus,
.lad-textarea-lcd:focus,
.lad-select-lcd:focus {
  border-color: #263311;
  background-image: 
    repeating-linear-gradient(
      0deg, 
      rgba(0,0,0,0.05) 0px, 
      rgba(0,0,0,0.05) 1px, 
      transparent 1px, 
      transparent 2px
    ),
    linear-gradient(180deg, #a0c056 0%, #8fb144 50%, #7e9e35 100%);
  box-shadow: 
    inset 2px 2px 6px rgba(10, 18, 5, 0.9), 
    0 0 14px rgba(146, 192, 60, 0.65);
  filter: brightness(1.04);
}

.lad-input-lcd::placeholder,
.lad-textarea-lcd::placeholder {
  color: rgba(20, 31, 5, 0.45);
}

.lad-input-lcd::selection,
.lad-textarea-lcd::selection,
.lad-lcd-screen::selection {
  background: #141f05;
  color: #8fae49;
}

.lad-textarea-lcd {
  min-height: 90px;
  resize: vertical;
}

.lad-select-lcd {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpolygon points='0,0 10,0 5,6' fill='%23141f05'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 1px, transparent 1px, transparent 2px),
    linear-gradient(180deg, #92b04c 0%, #819f3c 50%, #739031 100%);
  background-repeat: no-repeat, repeat, repeat;
  background-position: right 12px center, 0 0, 0 0;
  padding-right: 32px;
}

.lad-select-lcd option {
  background: #7e9c39;
  color: #141f05;
  font-weight: 700;
}

.lad-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.lad-toggle-input {
  display: none;
}

.lad-toggle-track {
  width: 44px;
  height: 22px;
  background: linear-gradient(180deg, #1c242f 0%, #0d1218 100%);
  border: 1px solid #364455;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
  position: relative;
  padding: 2px;
}

.lad-toggle-thumb {
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, #f2f6fa 0%, #ccd8e4 100%);
  border: 1px solid #4a5c6f;
  box-shadow: var(--lad-shadow-beveled);
  position: absolute;
  left: 2px;
  top: 2px;
  transition: transform var(--lad-anim-fast);
}

.lad-toggle-input:checked + .lad-toggle-track .lad-toggle-thumb {
  transform: translateX(22px);
  background: linear-gradient(180deg, #ff823a 0%, #e06020 100%);
  border-color: #792702;
  box-shadow: 0 0 6px var(--lad-orange-glow);
}

/* ==========================================================================
   UNIVERSAL HIGH-TECH ORBITAL RADIAL MODAL (.lad-orbital-modal)
   ========================================================================== */

.lad-orbital-modal {
  position: fixed;
  inset: 0;
  z-index: 999999 !important;
  background: radial-gradient(circle at 50% 50%, rgba(18, 25, 35, 0.97) 0%, rgba(5, 8, 12, 0.99) 100%);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.lad-orbital-modal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.lad-orbital-hud-wrapper {
  position: relative;
  width: min(88vw, 560px);
  height: min(88vw, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lad-orbital-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.lad-orbital-ring-outer {
  width: 96%;
  height: 96%;
  border: 1px dashed rgba(80, 130, 180, 0.4);
  animation: ladRadarRotate 60s linear infinite;
}

.lad-orbital-ring-outer::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--lad-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--lad-orange);
}

.lad-orbital-ring-mid {
  width: 78%;
  height: 78%;
  border: 1px solid rgba(80, 150, 220, 0.3);
  border-top-color: var(--lad-orange);
  border-bottom-color: var(--lad-cyan);
  animation: ladRadarRotateReverse 35s linear infinite;
}

.lad-orbital-ring-inner {
  width: 52%;
  height: 52%;
  border: 1px dotted rgba(255, 255, 255, 0.25);
}

.lad-orbital-core {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #202b3a 0%, #0d131c 100%);
  border: 2px solid var(--lad-orange);
  animation: ladCorePulse 3s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  z-index: 10;
  position: relative;
  cursor: pointer;
  box-shadow: 0 0 30px var(--lad-orange-glow);
}

.lad-orbital-core-logo {
  height: 30px;
  width: auto;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 6px var(--lad-orange));
}

.lad-orbital-core-title {
  font-family: var(--lad-font-tech);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.lad-orbital-core-sub {
  font-family: var(--lad-font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--lad-cyan);
  margin-top: 2px;
}

.lad-orbital-nodes-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ORBITAL NODE (100% VISIBLE WITH RELIABLE PERCENTAGE PLACEMENT) */
.lad-orbital-node {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 25;
  outline: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.lad-orbital-node-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b394a 0%, #151e28 100%);
  border: 1px solid var(--lad-cyan);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.4), 0 4px 14px rgba(0,0,0,0.7), 0 0 8px rgba(54, 195, 217, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  transition: all var(--lad-anim-fast);
  position: relative;
}

.lad-orbital-node-btn::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(224, 96, 32, 0.6);
  opacity: 0;
  transition: opacity var(--lad-anim-fast);
}

.lad-orbital-node-label {
  margin-top: 6px;
  font-family: var(--lad-font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d2e1f0;
  background: rgba(12, 17, 24, 0.92);
  padding: 3px 8px;
  border: 1px solid #36485c;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.lad-orbital-node:hover .lad-orbital-node-btn,
.lad-orbital-node:focus .lad-orbital-node-btn,
.lad-orbital-node.lad-orbital-node-focused .lad-orbital-node-btn {
  background: linear-gradient(135deg, #ff823a 0%, #e06020 100%);
  border-color: #fff;
  transform: scale(1.22);
  box-shadow: 0 0 25px var(--lad-orange), inset 0 0 8px #ffffff;
}

.lad-orbital-node:hover .lad-orbital-node-btn::after,
.lad-orbital-node:focus .lad-orbital-node-btn::after,
.lad-orbital-node.lad-orbital-node-focused .lad-orbital-node-btn::after {
  opacity: 1;
  animation: ladRadarRotate 3s linear infinite;
}

.lad-orbital-node:hover .lad-orbital-node-label,
.lad-orbital-node:focus .lad-orbital-node-label,
.lad-orbital-node.lad-orbital-node-focused .lad-orbital-node-label {
  color: var(--lad-orange);
  border-color: var(--lad-orange);
  box-shadow: 0 0 14px var(--lad-orange-glow);
  background: rgba(8, 12, 18, 0.98);
}

.lad-orbital-nav-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--lad-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7d96b0;
  background: rgba(12, 18, 25, 0.88);
  border: 1px solid #233446;
  padding: 6px 16px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  animation: ladHintPulse 3.5s ease-in-out infinite;
  z-index: 50;
}

@keyframes ladHintPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; color: var(--lad-cyan); border-color: var(--lad-cyan); }
}

.lad-hint-mobile { display: none; }
.lad-hint-desktop { display: inline; }

@media (max-width: 820px) {
  .lad-orbital-nav-hint {
    bottom: 16px;
    font-size: 8px;
    padding: 4px 10px;
    letter-spacing: 0.1em;
  }
  .lad-hint-mobile { display: inline; }
  .lad-hint-desktop { display: none; }
}

.lad-orbital-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(22, 30, 42, 0.88);
  border: 1px solid var(--lad-slate-500);
  color: #fff;
  padding: 8px 16px;
  font-family: var(--lad-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--lad-anim-fast);
}

.lad-orbital-close-btn:hover {
  background: #eb4d4b;
  border-color: #fff;
}

/* ==========================================================================
   NAVIGATION, TABS & DOCK (.lad-dock)
   ========================================================================== */

.lad-tabs-nav {
  position: relative;
  display: flex;
  border-bottom: 2px solid #0f1621;
  gap: 2px;
  row-gap: 4px;
  list-style: none;
  user-select: none;
  flex-wrap: wrap; /* QUEBRA DE LINHA NATIVA NO DESKTOP QUANDO NÃO COUBER */
  overflow-x: visible;
  overflow-y: visible;
  background: rgba(12, 17, 24, 0.6);
  padding: 2px 2px 2px 2px;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

/* Modifier opcional para forçar linha única sem quebra no desktop se desejado */
.lad-tabs-nav.lad-tabs-nowrap,
.lad-tabs-nowrap .lad-tabs-nav {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
}

/* No mobile e telas touch: trilho horizontal deslizante fluido */
@media screen and (max-width: 820px) {
  .lad-tabs-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }
}

.lad-tabs-nav::-webkit-scrollbar {
  display: none;
}

/* Mechanical Gliders: Dark Active Chassis & Orange Hover Laser (Suporte Completo 2D & Scroll) */
.lad-tab-glider-active {
  position: absolute;
  top: 0;
  left: 0;
  background: #1f2834;
  border: 1px solid #0f1621;
  border-bottom: 2px solid #1f2834;
  box-shadow: inset 0 2px 0 var(--lad-orange), 0 -2px 10px rgba(0,0,0,0.5);
  z-index: 1;
  pointer-events: none;
  transition: left 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.15), top 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.15), width 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.15), height 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.15);
  transform: translateZ(0);
}

.lad-tab-glider-hover {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--lad-orange);
  box-shadow: 0 0 12px var(--lad-orange), 0 0 4px #ffffff;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: left 0.18s cubic-bezier(0.2, 0.8, 0.25, 1), top 0.18s cubic-bezier(0.2, 0.8, 0.25, 1), width 0.18s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.18s ease;
  transform: translateZ(0);
}

.lad-tab-btn {
  position: relative;
  z-index: 2;
  padding: 6px 11px;
  font-family: var(--lad-font-tech);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #d3dee8 0%, #b2c2d2 100%);
  border: 1px solid var(--lad-slate-600);
  border-bottom: none;
  color: var(--lad-slate-700);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lad-tab-btn:hover {
  color: var(--lad-slate-900);
  background: linear-gradient(180deg, #e5eff8 0%, #c5d4e4 100%);
}

.lad-tab-btn.active {
  background: transparent !important;
  border-color: transparent !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.lad-tab-pane {
  display: none;
  padding: 14px 0;
}

.lad-tab-pane.active {
  display: block;
  animation: ladPaneCyberEntrance 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ladPaneCyberEntrance {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scanline laser sweep across etched header */
.lad-tab-pane.active .lad-etched-header {
  position: relative;
  overflow: hidden;
  animation: ladHeaderSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lad-tab-pane.active .lad-etched-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(224, 96, 32, 0.45) 45%, #ffffff 80%, transparent 100%);
  animation: ladLaserSweep 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes ladLaserSweep {
  0% { transform: translateX(-100%); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

@keyframes ladHeaderSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-12px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Action link slide-up */
.lad-tab-pane.active .lad-action-link {
  animation: ladActionSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

@keyframes ladActionSlideUp {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Terminal Typewriter & Blinking Block Cursor */
.lad-typing {
  position: relative;
  cursor: pointer;
}

.lad-terminal-cursor {
  display: inline-block;
  color: var(--lad-orange);
  font-weight: 900;
  margin-left: 2px;
  animation: ladTerminalBlink 0.5s step-end infinite;
  text-shadow: 0 0 8px var(--lad-orange-glow);
  vertical-align: baseline;
  user-select: none;
}

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

/* Bottom Desktop Dock / Taskbar */
.lad-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: linear-gradient(180deg, #ccd8e4 0%, #aebecf 100%);
  border-top: 1px solid var(--lad-slate-700);
  box-shadow: 0 -3px 12px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  user-select: none;
}

.lad-dock-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}

.lad-dock-tasks {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 2px 4px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.lad-dock-tasks::-webkit-scrollbar {
  display: none;
}

.lad-dock-task-btn {
  height: 28px;
  padding: 0 12px;
  font-family: var(--lad-font-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #eef4fa 0%, #c4d2e0 100%);
  border: 1px solid var(--lad-slate-600);
  box-shadow: var(--lad-shadow-beveled);
  color: var(--lad-slate-800);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lad-dock-task-btn.active {
  background: #1a232e;
  color: #fff;
  border-color: #0d1217;
  box-shadow: inset 1px 1px 2px #000;
  border-top: 2px solid var(--lad-orange);
}

.lad-dock-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--lad-font-mono);
  font-size: 10px;
  color: var(--lad-slate-700);
  flex-shrink: 0;
}

/* ==========================================================================
   DESKTOP ICONS & STANDBY HUD LAYER (Y2K / 2ADVANCED RETRO OS)
   ========================================================================== */

.lad-desktop-icons {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-height: calc(100vh - 120px);
  gap: 12px;
  pointer-events: auto;
  user-select: none;
}

.lad-desktop-icon {
  width: 90px;
  min-height: 80px;
  background: linear-gradient(180deg, rgba(26, 36, 48, 0.72) 0%, rgba(14, 20, 28, 0.88) 100%);
  border: 1px solid rgba(80, 110, 140, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 1px 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  padding: 8px 6px 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  outline: none;
}

/* Y2K Hairline Tech Corner Markers */
.lad-desktop-icon::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--lad-orange);
  border-left: 1px solid var(--lad-orange);
  pointer-events: none;
}

.lad-desktop-icon::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 5px;
  height: 5px;
  border-bottom: 1px solid var(--lad-cyan);
  border-right: 1px solid var(--lad-cyan);
  pointer-events: none;
}

.lad-desktop-icon:hover,
.lad-desktop-icon:focus-visible {
  background: linear-gradient(180deg, rgba(38, 52, 70, 0.9) 0%, rgba(20, 28, 38, 0.95) 100%);
  border-color: var(--lad-orange);
  box-shadow: 0 0 14px var(--lad-orange-glow), 0 6px 18px rgba(0, 0, 0, 0.55);
  transform: translateY(-2px);
}

.lad-desktop-icon:active {
  transform: translateY(0);
  filter: brightness(1.2);
}

body.lad-all-windows-closed .lad-desktop-icon {
  animation: ladIconGlowPulse 2.5s ease-in-out infinite alternate;
}

@keyframes ladIconGlowPulse {
  0% { border-color: rgba(80, 110, 140, 0.45); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
  100% { border-color: rgba(224, 96, 32, 0.6); box-shadow: 0 0 12px rgba(224, 96, 32, 0.35); }
}

.lad-desktop-icon-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  font-family: var(--lad-font-mono);
  font-size: 7px;
  font-weight: 800;
  color: #7b93ab;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #233140;
  padding: 0 3px;
  border-radius: 1px;
  line-height: 1.2;
}

.lad-desktop-icon-symbol {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lad-cyan);
  filter: drop-shadow(0 0 3px rgba(54, 195, 217, 0.4));
  transition: transform 0.2s ease, color 0.2s ease;
  margin-bottom: 4px;
}

.lad-desktop-icon:hover .lad-desktop-icon-symbol {
  color: var(--lad-orange-light);
  filter: drop-shadow(0 0 6px var(--lad-orange));
  transform: scale(1.08);
}

.lad-desktop-icon-symbol svg {
  width: 24px;
  height: 24px;
}

.lad-desktop-icon-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.lad-desktop-icon-title {
  font-family: var(--lad-font-mono);
  font-size: 8px;
  font-weight: 800;
  color: #dbe7f3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px #000;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.lad-desktop-icon-sub {
  font-family: var(--lad-font-mono);
  font-size: 6.5px;
  font-weight: 700;
  color: #748c9e;
  letter-spacing: 0.05em;
  margin-top: 1px;
  line-height: 1;
}

/* ==========================================================================
   DESKTOP STANDBY HUD (ATIVADO QUANDO TODAS AS JANELAS SÃO FECHADAS)
   ========================================================================== */

.lad-desktop-standby {
  position: absolute;
  top: 48%;
  left: 54%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(15, 22, 30, 0.82);
  border: 1px solid rgba(70, 95, 125, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(54, 195, 217, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 22px 28px;
  border-radius: 4px;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  max-width: 580px;
}

body.lad-all-windows-closed .lad-desktop-standby {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  animation: ladStandbyEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ladStandbyEntrance {
  0% { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.lad-standby-reticle {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lad-standby-radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(54, 195, 217, 0.5);
  box-shadow: 0 0 12px rgba(54, 195, 217, 0.2);
}

.lad-standby-radar-ring::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid rgba(224, 96, 32, 0.4);
}

.lad-standby-radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(54, 195, 217, 0.3) 0deg, transparent 60deg, transparent 360deg);
  animation: ladRadarRotate 4s linear infinite;
}

@keyframes ladRadarRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.lad-standby-crosshair {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lad-standby-crosshair::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(80, 110, 140, 0.4);
}

.lad-standby-crosshair::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(80, 110, 140, 0.4);
}

.lad-standby-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lad-standby-code {
  font-family: var(--lad-font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--lad-orange);
  text-shadow: 0 0 6px var(--lad-orange-glow);
}

.lad-standby-title {
  font-family: var(--lad-font-sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
}

.lad-standby-desc {
  font-family: var(--lad-font-mono);
  font-size: 10px;
  color: #8da4bb;
  line-height: 1.4;
  margin-bottom: 6px;
}

.lad-standby-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lad-standby-telemetry {
  display: flex;
  gap: 12px;
  font-family: var(--lad-font-mono);
  font-size: 7.5px;
  color: #5d758d;
  margin-top: 6px;
  border-top: 1px solid rgba(80, 110, 140, 0.2);
  padding-top: 6px;
}

/* ==========================================================================
   MOBILE ACCORDION WINDOW ARCHITECTURE & TOUCH DOCK
   ========================================================================== */

@media (max-width: 820px) {
  body.lad-body {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  .lad-banner-header {
    height: 50px;
  }

  .lad-banner-content {
    padding: 0 8px;
  }

  .lad-brand-name {
    font-size: 12px;
  }

  .lad-banner-nav-item span {
    display: none;
  }

  /* Desktop Area becomes a vertical stack */
  .lad-desktop-area {
    position: absolute;
    top: 50px;
    bottom: 46px;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 4px;
    gap: 4px;
    overflow-y: hidden;
  }

  /* Mobile Window Rules */
  .lad-window {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    border-radius: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    transform: none !important;
  }

  /* Hide decorative louvers on mobile so title has full space */
  .lad-window-louvers {
    display: none !important;
  }

  /* Collapsed Mobile Window */
  .lad-window.lad-mobile-collapsed .lad-window-body,
  .lad-window.lad-mobile-collapsed .lad-window-footer {
    display: none !important;
  }

  .lad-window.lad-mobile-collapsed {
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  /* Expanded Mobile Window */
  .lad-window.lad-mobile-expanded {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column;
    box-shadow: 0 0 0 1px var(--lad-orange), 0 8px 24px rgba(0,0,0,0.5);
    z-index: 10;
  }

  .lad-window.lad-mobile-expanded .lad-window-body {
    display: block !important;
    flex: 1 1 auto;
    max-height: none !important;
    overflow-y: auto;
  }

  .lad-window.lad-mobile-expanded .lad-window-footer {
    display: flex !important;
  }

  .lad-window-header {
    height: 38px;
    cursor: pointer;
  }

  /* CRITICAL MOBILE FIX: HIDE .lad-dock-right SO TASKS HAVE FULL DOCK WIDTH */
  .lad-dock-right {
    display: none !important;
  }

  .lad-dock-left {
    width: 100% !important;
    flex: 1 1 auto !important;
    mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  }

  .lad-dock {
    height: 46px;
    padding: 0 6px;
  }

  .lad-dock-task-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 11px;
  }

  .lad-feature-card {
    grid-template-columns: 1fr;
  }

  .lad-isometric-badge-box {
    display: none;
  }

  .lad-orbital-hud-wrapper {
    width: min(78vw, 300px);
    height: min(78vw, 300px);
  }

  .lad-orbital-core {
    width: 88px;
    height: 88px;
    padding: 3px;
  }

  .lad-orbital-core-logo {
    height: 18px;
    margin-bottom: 2px;
  }

  .lad-orbital-core-title {
    font-size: 7.5px;
    letter-spacing: 0.1em;
  }

  .lad-orbital-core-sub {
    font-size: 6.5px;
  }

  .lad-orbital-node-btn {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .lad-orbital-node-label {
    font-size: 6.5px;
    padding: 2px 4px;
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  .lad-orbital-close-btn {
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  /* Mobile Desktop Icons Launcher & Clean Non-Overlapping Layout */
  body:not(.lad-all-windows-closed) .lad-desktop-drives,
  body:not(.lad-all-windows-closed) .lad-desktop-icons,
  body:not(.lad-all-windows-closed) .lad-desktop-standby {
    display: none !important;
  }

  body.lad-all-windows-closed .lad-desktop-area {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px 110px 12px !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
  }

  body.lad-all-windows-closed .lad-desktop-drives {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    width: 100% !important;
    z-index: 6;
    margin: 4px 0 6px 0 !important;
    order: 1;
  }

  body.lad-all-windows-closed .lad-desktop-icons {
    position: relative;
    top: 0;
    left: 0;
    order: 2;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    z-index: 5;
  }

  .lad-desktop-icon {
    width: 100%;
    min-height: 60px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    text-align: left;
  }

  .lad-desktop-icon-symbol {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .lad-desktop-icon-symbol svg {
    width: 20px;
    height: 20px;
  }

  .lad-desktop-icon-label {
    align-items: flex-start;
    text-align: left;
    overflow: hidden;
  }

  .lad-desktop-icon-title {
    font-size: 8.5px;
  }

  .lad-desktop-icon-sub {
    font-size: 6.5px;
  }

  body.lad-all-windows-closed .lad-desktop-standby {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: ladMobileStandbyEntrance 0.3s ease !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    gap: 12px;
    max-width: 100%;
    margin: 10px 0 24px 0 !important;
    order: 3;
  }

  @keyframes ladMobileStandbyEntrance {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: none; }
  }

  .lad-standby-info {
    align-items: center;
  }

  .lad-standby-actions {
    justify-content: center;
    width: 100%;
  }

  .lad-standby-telemetry {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
  }
}

/* ==========================================================================
   IOS SAFARI / TOUCH AUTO-ZOOM PREVENTION FOR FORMS & LCD INPUTS
   iOS Safari automatically zooms into inputs with font-size < 16px and fails
   to restore the viewport zoom on blur. Enforcing 16px font-size on mobile
   and touch screens permanently prevents iOS auto-zoom from triggering.
   ========================================================================== */
@media screen and (max-width: 820px), screen and (hover: none) and (pointer: coarse) {
  input[type="text"],
  input[type="number"],
  input[type="password"],
  input[type="email"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  select,
  textarea,
  .lad-input,
  .lad-input-dark,
  .lad-input-lcd,
  .lad-textarea-lcd,
  .lad-select-lcd,
  .lad-form-control {
    font-size: 16px !important;
    touch-action: manipulation;
  }

  .lad-input-lcd,
  .lad-textarea-lcd,
  .lad-select-lcd {
    letter-spacing: 0.05em;
    padding: 7px 10px;
  }
}

/* ==========================================================================
   RETROFUTURISTIC MAC OS 2001 DESKTOP & DOCK ECOSYSTEM (AQUA / TITANIUM ERA)
   Inspired by Mac OS X 10.0/10.1, QuickTime 4/5 Brushed Steel & 2Advanced V2
   ========================================================================== */

/* 1. SLIM TOP PINSTRIPE / BRUSHED TITANIUM MENU BAR (~26px) */
.lad-mac-menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  background: 
    repeating-linear-gradient(180deg, rgba(255,255,255,0.18) 0px, rgba(255,255,255,0.18) 1px, transparent 1px, transparent 2px),
    linear-gradient(180deg, #f8fafc 0%, #dbe5ee 45%, #b6c8d7 100%);
  border-bottom: 1px solid #63768a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22), inset 0 1px 0 #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 1000;
  user-select: none;
  font-family: var(--lad-font-tech);
  font-size: 11px;
}

.lad-mac-menubar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lad-mac-brand-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--lad-slate-900);
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding-right: 6px;
  border-right: 1px solid rgba(100, 120, 140, 0.35);
}

.lad-mac-brand-badge img {
  height: 15px;
  width: auto;
  filter: drop-shadow(0 1px 0 #ffffff);
}

.lad-mac-menus {
  display: none;
  align-items: center;
  gap: 2px;
}

.lad-mac-menus.active {
  display: flex;
}

.lad-mac-menu-item {
  position: relative;
}

.lad-mac-menu-btn {
  background: none;
  border: none;
  padding: 2px 8px;
  font-family: var(--lad-font-tech);
  font-size: 11px;
  font-weight: 600;
  color: var(--lad-slate-800);
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.1s, color 0.1s;
}

.lad-mac-menu-btn:hover,
.lad-mac-menu-item.open .lad-mac-menu-btn {
  background: var(--lad-slate-800);
  color: #ffffff;
}

.lad-mac-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: rgba(246, 250, 254, 0.98);
  border: 1px solid var(--lad-slate-600);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 1px 1px 0 #ffffff;
  padding: 4px 0;
  display: none;
  z-index: 1002;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lad-mac-menu-item.open .lad-mac-dropdown {
  display: block;
}

.lad-mac-dropdown-item {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lad-slate-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.08s, color 0.08s;
}

.lad-mac-dropdown-item:hover {
  background: var(--lad-slate-800);
  color: #ffffff;
}

.lad-mac-dropdown-item .shortcut {
  font-family: var(--lad-font-mono);
  font-size: 9px;
  opacity: 0.65;
  margin-left: 12px;
}

.lad-mac-dropdown-sep {
  height: 1px;
  background: #cbd6e2;
  margin: 3px 0;
}

.lad-mac-menubar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lad-mac-status-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--lad-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--lad-slate-700);
}

.lad-mac-sound-btn {
  background: linear-gradient(180deg, #ffffff 0%, #d8e3ed 100%);
  border: 1px solid var(--lad-slate-500);
  border-radius: 2px;
  font-family: var(--lad-font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  cursor: pointer;
  color: var(--lad-slate-900);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), inset 0 1px 0 #ffffff;
}

.lad-mac-sound-btn:active {
  background: #cbd6e2;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.25);
}

/* 2. TOP-RIGHT DESKTOP DRIVES & STORAGE VOLUMES (IMAGE 3 - MAC OS X 10.0 DESKTOP) */
.lad-desktop-drives {
  position: absolute;
  top: 36px;
  right: 20px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 18px;
  user-select: none;
  pointer-events: auto;
}

.lad-drive-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
  outline: none;
}

.lad-drive-item:hover,
.lad-drive-item:focus-visible {
  transform: translateY(-2px);
}

.lad-drive-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
  transition: filter 0.18s ease, transform 0.18s ease;
}

.lad-drive-item:hover .lad-drive-icon {
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.45)) drop-shadow(0 0 8px var(--lad-cyan-glow));
  transform: scale(1.05);
}

.lad-drive-label {
  margin-top: 5px;
  padding: 2px 5px;
  border-radius: 2px;
  background: rgba(14, 20, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--lad-font-mono);
  font-size: 8px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px #000000;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lad-drive-item:hover .lad-drive-label,
.lad-drive-item:focus-visible .lad-drive-label {
  background: var(--lad-slate-900);
  border-color: var(--lad-orange);
  color: #ffffff;
  box-shadow: 0 0 8px var(--lad-orange-glow);
}

/* 3. CENTRAL FLOATING DOCK (IMAGE 3 - MAC OS X AQUA/PLATINUM HORIZONTAL DOCK) */
.lad-mac-dock-container {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 96vw;
  user-select: none;
  pointer-events: auto;
}

.lad-mac-dock-tray {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 10px 14px;
  background: linear-gradient(180deg, rgba(242, 248, 253, 0.78) 0%, rgba(200, 214, 228, 0.88) 70%, rgba(168, 185, 201, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #72879a;
  border-radius: 14px;
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.42),
    0 4px 12px rgba(0, 0, 0, 0.22),
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.lad-mac-dock-tray::-webkit-scrollbar {
  display: none;
}

.lad-mac-dock-tray::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6) 20%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.6) 80%, transparent);
  pointer-events: none;
}

/* 4. BRUSHED STEEL / TITANIUM METAL PLATE ICONS (IMAGE 2 - 4 CORNER RIVETS & 3D CHROME) */
.lad-metal-icon {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background: 
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0px, rgba(255, 255, 255, 0.07) 1px, transparent 1px, transparent 3px),
    linear-gradient(135deg, #f7fafc 0%, #d8e3ed 30%, #a4b7c8 70%, #768a9b 100%);
  border: 1px solid #ffffff;
  box-shadow: 
    inset 1px 1px 0 rgba(255, 255, 255, 0.95),
    inset -1px -1px 1px rgba(18, 28, 42, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
  user-select: none;
  outline: none;
}

/* Authentic corner screw rivets (Image 2 - ⊖ rivets in all 4 corners) */
.lad-screw {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #a4b5c6 55%, #465565 100%);
  box-shadow: inset 0 0.5px 0.5px rgba(255, 255, 255, 0.85), 0 1px 1px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 2;
}

.lad-screw::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.5px;
  height: 0.8px;
  background: #253342;
  transform: translate(-50%, -50%) rotate(45deg);
}

.lad-screw.tl { top: 3px; left: 3px; }
.lad-screw.tr { top: 3px; right: 3px; }
.lad-screw.bl { bottom: 3px; left: 3px; }
.lad-screw.br { bottom: 3px; right: 3px; }

.lad-metal-icon:hover,
.lad-metal-icon:focus-visible {
  transform: translateY(-8px) scale(1.09);
  box-shadow: 
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 1px rgba(18, 28, 42, 0.3),
    0 12px 22px rgba(0, 0, 0, 0.45),
    0 0 14px var(--lad-cyan-glow);
  filter: brightness(1.06);
}

.lad-metal-icon:active {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(0.95);
}

/* 3D embossed chrome symbol inside plate */
.lad-metal-symbol {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2b394a;
  filter: drop-shadow(0 1px 0 #ffffff) drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.65));
  transition: color 0.18s ease, filter 0.18s ease;
  z-index: 1;
}

.lad-metal-icon:hover .lad-metal-symbol {
  color: var(--lad-orange);
  filter: drop-shadow(0 1px 0 #ffffff) drop-shadow(0 0 8px var(--lad-orange-glow));
}

.lad-metal-symbol svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* Running App Indicator LED underneath each icon */
.lad-dock-led {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5a6e82;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
  pointer-events: none;
}

.lad-dock-led.running,
.lad-metal-icon.running .lad-dock-led {
  background: var(--lad-cyan);
  box-shadow: 0 0 6px var(--lad-cyan), 0 0 10px rgba(54, 195, 217, 0.7);
}

.lad-dock-led.active,
.lad-metal-icon.active .lad-dock-led {
  background: var(--lad-orange);
  box-shadow: 0 0 8px var(--lad-orange), 0 0 12px var(--lad-orange-glow);
  transform: translateX(-50%) scale(1.25);
}

/* Floating Tooltip */
.lad-dock-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  background: rgba(14, 20, 28, 0.94);
  border: 1px solid var(--lad-slate-500);
  border-radius: 3px;
  color: #ffffff;
  font-family: var(--lad-font-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.lad-dock-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: rgba(14, 20, 28, 0.94) transparent transparent transparent;
}

.lad-metal-icon:hover .lad-dock-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dock separator */
.lad-dock-separator {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent 0%, rgba(120, 140, 160, 0.6) 20%, rgba(255, 255, 255, 0.9) 50%, rgba(120, 140, 160, 0.6) 80%, transparent 100%);
  margin: 0 4px;
  align-self: center;
  flex-shrink: 0;
}

/* 5. TEXT EDITOR WINDOW STYLES (#win-editor & .lad-editor-*) */
#win-editor {
  left: 140px;
  top: 50px;
  width: 760px;
  max-width: calc(100vw - 30px);
  min-height: 280px;
}

#win-editor .lad-window-body {
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  height: 100% !important;
}

.lad-editor-container {
  display: flex;
  flex-direction: column;
  background: #fbfdff;
  border: 1px solid var(--lad-slate-600);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.lad-editor-toolbar {
  flex-shrink: 0;
  background: 
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0px, rgba(255, 255, 255, 0.2) 1px, transparent 1px, transparent 2px),
    linear-gradient(180deg, #f8fafc 0%, #dbe5ee 50%, #baccdb 100%);
  border-bottom: 1px solid #7d92a4;
  padding: 4px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  user-select: none;
}

.lad-editor-group {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.45);
  padding: 2px;
  border: 1px solid rgba(120, 140, 160, 0.4);
  border-radius: 3px;
}

.lad-editor-btn {
  min-width: 25px;
  height: 24px;
  padding: 0 6px;
  background: linear-gradient(180deg, #ffffff 0%, #e2ebf3 100%);
  border: 1px solid #9ab0c2;
  border-radius: 2px;
  font-family: var(--lad-font-tech);
  font-size: 11px;
  font-weight: 700;
  color: var(--lad-slate-800);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 1px 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.1s ease;
}

.lad-editor-btn:hover {
  background: #ffffff;
  border-color: var(--lad-orange);
  color: var(--lad-orange);
}

.lad-editor-btn:active,
.lad-editor-btn.active {
  background: #232f3e;
  color: #ffffff;
  border-color: #0f151c;
  box-shadow: inset 1px 1px 2px #000000;
}

.lad-editor-select {
  height: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #e2ebf3 100%);
  border: 1px solid #9ab0c2;
  border-radius: 2px;
  font-family: var(--lad-font-tech);
  font-size: 10px;
  font-weight: 700;
  color: var(--lad-slate-800);
  padding: 0 4px;
  cursor: pointer;
}

.lad-editor-paper-container {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 28px;
  background: #ffffff;
  transition: background 0.3s ease, color 0.3s ease;
  scroll-behavior: smooth;
}

.lad-editor-canvas {
  outline: none;
  min-height: 100%;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: #1f2937;
  user-select: text;
}

/* Article Styling inside LAD TextEdit */
.lad-article-meta-header {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 12px;
  margin-bottom: 18px;
  font-family: var(--lad-font-sans);
}

.lad-article-tag {
  display: inline-block;
  background: #1a232e;
  color: #36c3d9;
  font-family: var(--lad-font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lad-article-title {
  font-family: var(--lad-font-tech);
  font-size: 23px;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.lad-article-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--lad-font-mono);
  font-size: 10px;
  color: #6b7280;
  margin-top: 8px;
}

.lad-article-quote {
  border-left: 3px solid var(--lad-orange);
  background: #fdf8f4;
  padding: 12px 18px;
  margin: 18px 0;
  font-style: italic;
  font-size: 14.5px;
  color: #374151;
  border-radius: 0 4px 4px 0;
}

.lad-article-sig {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px dashed #d1d5db;
  font-family: var(--lad-font-mono);
  font-size: 9.5px;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Themes for TextEdit: Paper, Matrix Green, Amber CRT */
.lad-editor-theme-paper {
  background: #ffffff !important;
  color: #1f2937 !important;
}

.lad-editor-theme-matrix {
  background: #080f09 !important;
  color: #3cd070 !important;
}

.lad-editor-theme-matrix .lad-editor-canvas {
  font-family: var(--lad-font-mono) !important;
  color: #3cd070 !important;
  text-shadow: 0 0 6px rgba(60, 208, 112, 0.4);
}

.lad-editor-theme-matrix .lad-article-title {
  color: #55f38e !important;
  text-shadow: 0 0 8px rgba(60, 208, 112, 0.6);
}

.lad-editor-theme-matrix .lad-article-tag {
  background: #0d2915 !important;
  color: #55f38e !important;
  border: 1px solid #1a4f29;
}

.lad-editor-theme-matrix .lad-article-quote {
  background: #0d1e11 !important;
  border-left-color: #3cd070 !important;
  color: #8bf8b0 !important;
}

.lad-editor-theme-amber {
  background: #140d04 !important;
  color: #f5a623 !important;
}

.lad-editor-theme-amber .lad-editor-canvas {
  font-family: var(--lad-font-mono) !important;
  color: #f5a623 !important;
  text-shadow: 0 0 6px rgba(245, 166, 35, 0.4);
}

.lad-editor-theme-amber .lad-article-title {
  color: #ffbb4d !important;
  text-shadow: 0 0 8px rgba(245, 166, 35, 0.6);
}

.lad-editor-theme-amber .lad-article-tag {
  background: #2b1c09 !important;
  color: #ffbb4d !important;
  border: 1px solid #5a3a12;
}

.lad-editor-theme-amber .lad-article-quote {
  background: #201506 !important;
  border-left-color: #f5a623 !important;
  color: #ffd080 !important;
}

/* Editor Statusbar */
.lad-editor-statusbar {
  flex-shrink: 0;
  background: #e6ecf2;
  border-top: 1px solid #cbd6e2;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--lad-font-mono);
  font-size: 9.5px;
  color: var(--lad-slate-700);
  user-select: none;
}

.lad-editor-stat-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Responsive adjustments for Mac Menubar & Dock */
@media screen and (max-width: 820px) {
  .lad-mac-menubar-left .lad-mac-menus {
    display: none;
  }
  .lad-mac-dock-container {
    bottom: 6px;
    width: 98vw;
  }
  .lad-mac-dock-tray {
    gap: 6px;
    padding: 6px 8px 8px 8px;
  }
  .lad-metal-icon {
    width: 42px;
    height: 42px;
  }
  .lad-metal-symbol svg {
    width: 20px;
    height: 20px;
  }
  .lad-desktop-drives {
    gap: 10px;
  }
  .lad-drive-item {
    width: 60px;
  }
  .lad-drive-icon {
    width: 38px;
    height: 38px;
  }
  #win-editor,
  #win-reader {
    left: 10px !important;
    top: 35px !important;
    width: calc(100vw - 20px) !important;
  }
  .lad-editor-paper-container {
    padding: 14px 16px;
    flex: 1 1 auto;
    min-height: 240px;
    height: 100%;
  }
}

/* ==========================================================================
   11. LAD ARTICLE READER COMPONENT (#win-reader) - RETROFUTURISTIC EDITORIAL
   Fluid Typography, Blueprint Midnight Canvas Backdrop & Reading Telemetry
   ========================================================================== */
#win-reader {
  min-width: 340px;
  min-height: 280px;
}

.lad-reader-progress-track {
  height: 3px;
  background: rgba(14, 20, 30, 0.9);
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.lad-reader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lad-orange) 0%, var(--lad-cyan) 100%);
  box-shadow: 0 0 8px rgba(54, 195, 217, 0.7);
  transition: width 0.08s ease-out;
}

.lad-reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(180deg, #24303e 0%, #17212c 100%);
  border-bottom: 1px solid var(--lad-border-dark);
  font-family: var(--lad-font-mono);
  font-size: 10px;
  z-index: 5;
  flex-shrink: 0;
}

.lad-reader-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(10, 16, 24, 0.6);
  padding: 2px 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.lad-reader-btn {
  background: transparent;
  border: none;
  color: #a6bdd4;
  font-family: var(--lad-font-mono);
  font-size: 9.5px;
  padding: 3px 8px;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 1px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lad-reader-btn:hover {
  color: #ffffff;
  background: rgba(54, 195, 217, 0.25);
}

.lad-reader-btn.active {
  background: var(--lad-cyan);
  color: #0c141f;
  font-weight: 800;
  box-shadow: 0 0 6px rgba(54, 195, 217, 0.4);
}

.lad-reader-scroll-container {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  height: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Wallpaper Theme: Midnight Blueprint Vector (Default) */
.lad-reader-theme-blueprint {
  background-color: #0f1622;
  background-image: 
    linear-gradient(to right, rgba(54, 195, 217, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(54, 195, 217, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 85% 15%, rgba(54, 195, 217, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(224, 96, 32, 0.08) 0%, transparent 60%);
  background-size: 30px 30px, 30px 30px, 100% 100%, 100% 100%;
  color: #d8e5f2;
}

/* Wallpaper Theme: Titanium Paper Alternative */
.lad-reader-theme-paper {
  background: #e7eef5;
  color: #1a2533;
}
.lad-reader-theme-paper .lad-reader-title {
  color: #0e1722;
  text-shadow: none;
}
.lad-reader-theme-paper .lad-reader-quote {
  background: rgba(220, 230, 240, 0.85);
  border-left-color: var(--lad-orange);
  color: #1e2d3d;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.lad-reader-theme-paper .lad-reader-sig {
  background: #d8e3ed;
  border-color: #b5c7d8;
  color: #2b3d52;
}

/* Editorial Content Layout */
.lad-reader-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 28px 70px 28px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.76;
  letter-spacing: 0.005em;
  transition: font-size 0.2s ease;
}

.lad-reader-article.font-sm { font-size: 13.5px; }
.lad-reader-article.font-md { font-size: 15px; }
.lad-reader-article.font-lg { font-size: 17px; }

.lad-reader-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.lad-reader-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.lad-reader-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--lad-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lad-orange);
  text-transform: uppercase;
  background: rgba(224, 96, 32, 0.12);
  border: 1px solid rgba(224, 96, 32, 0.3);
  padding: 2px 7px;
  border-radius: 2px;
}

.lad-reader-telemetry-badge {
  font-family: var(--lad-font-mono);
  font-size: 8.5px;
  color: var(--lad-cyan);
  background: rgba(54, 195, 217, 0.1);
  border: 1px solid rgba(54, 195, 217, 0.25);
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.08em;
}

.lad-reader-title {
  font-size: 28px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 10px 0 14px 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.lad-reader-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--lad-font-mono);
  font-size: 9.5px;
  color: #8da4be;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lad-reader-meta-row b {
  color: #c4d7ec;
}

.lad-reader-dropcap {
  float: left;
  font-size: 54px;
  line-height: 0.8;
  font-weight: 900;
  padding: 4px 10px 0 0;
  color: var(--lad-orange);
  font-family: var(--lad-font-mono);
  text-shadow: 0 0 14px rgba(224, 96, 32, 0.45);
}

.lad-reader-article p {
  margin: 0 0 1.5em 0;
  text-align: justify;
  text-justify: inter-word;
}

.lad-reader-quote {
  margin: 28px 0;
  padding: 20px 24px;
  background: rgba(18, 28, 42, 0.75);
  border-left: 3px solid var(--lad-cyan);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  font-style: italic;
  font-size: 1.05em;
  line-height: 1.65;
  color: #e2effd;
  position: relative;
}

.lad-reader-quote::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: 8px;
  font-size: 40px;
  font-family: Georgia, serif;
  color: rgba(54, 195, 217, 0.25);
  line-height: 1;
}

.lad-reader-sig {
  margin-top: 36px;
  padding: 16px 20px;
  background: rgba(13, 20, 30, 0.85);
  border: 1px solid rgba(54, 195, 217, 0.25);
  border-radius: 3px;
  font-family: var(--lad-font-mono);
  font-size: 9px;
  line-height: 1.65;
  color: #8faec9;
}

.lad-reader-sig a {
  color: var(--lad-cyan);
  text-decoration: none;
  font-weight: 700;
}
.lad-reader-sig a:hover {
  text-decoration: underline;
  color: #fff;
}

.lad-reader-footer-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--lad-font-mono);
  font-size: 9px;
  color: #8da4be;
}

