    :root {
      --win-bg: #c0c0c0;
      --win-blue: #000080;
      --win-blue-light: #1084d0;
      --win-border-light: #ffffff;
      --win-border-dark: #808080;
      --win-border-black: #000000;
      --sys-green: #00ff66;
      --sys-amber: #ffb703;
      --sys-red: #d90429;
    }

    body {
      background-color: #008080; /* Classic Windows 2000 Teal Desktop */
      font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      padding: 0;
      overflow: hidden;
      height: 100vh;
      user-select: none;
      transition: background-color 0.5s ease;
      display: flex;
      flex-direction: column;
    }

    body.era-2-theme {
      background-color: #1e293b; /* Sleek Slate Blue for Era 2 County Jail */
    }

    body.era-3-theme {
      background-color: #0f172a; /* Deep Charcoal / Tactical Obsidian for Era 3 State Penitentiary */
    }

    /* Windows 98 / 2000 Bevel Classes */
    .win-box {
      background-color: var(--win-bg);
      border-top: 2px solid var(--win-border-light);
      border-left: 2px solid var(--win-border-light);
      border-right: 2px solid var(--win-border-black);
      border-bottom: 2px solid var(--win-border-black);
      box-shadow: inset -1px -1px 0px var(--win-border-dark), inset 1px 1px 0px var(--win-border-light);
    }

    .win-sunken {
      background-color: #ffffff;
      border-top: 2px solid var(--win-border-black);
      border-left: 2px solid var(--win-border-black);
      border-right: 2px solid var(--win-border-light);
      border-bottom: 2px solid var(--win-border-light);
      box-shadow: inset 1px 1px 0px var(--win-border-dark), inset -1px -1px 0px #dfdfdf;
    }

    .win-sunken-dark {
      background-color: #111111;
      color: var(--sys-green);
      font-family: 'Share Tech Mono', monospace;
      border-top: 2px solid var(--win-border-black);
      border-left: 2px solid var(--win-border-black);
      border-right: 2px solid var(--win-border-light);
      border-bottom: 2px solid var(--win-border-light);
      box-shadow: inset 1px 1px 0px var(--win-border-dark);
    }

    .win-btn {
      background-color: var(--win-bg);
      border-top: 2px solid var(--win-border-light);
      border-left: 2px solid var(--win-border-light);
      border-right: 2px solid var(--win-border-black);
      border-bottom: 2px solid var(--win-border-black);
      box-shadow: inset -1px -1px 0px var(--win-border-dark), inset 1px 1px 0px var(--win-border-light);
      padding: 4px 8px;
      font-weight: 600;
      font-size: 0.85rem;
      cursor: pointer;
      color: #000;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }

    .win-btn:active, .win-btn.active {
      border-top: 2px solid var(--win-border-black);
      border-left: 2px solid var(--win-border-black);
      border-right: 2px solid var(--win-border-light);
      border-bottom: 2px solid var(--win-border-light);
      box-shadow: inset 1px 1px 0px var(--win-border-dark);
      padding: 5px 7px 3px 9px;
    }

    .win-btn:disabled {
      color: #777777;
      text-shadow: 1px 1px 0px #ffffff;
      cursor: not-allowed;
      border-top: 2px solid var(--win-border-light);
      border-left: 2px solid var(--win-border-light);
      border-right: 2px solid var(--win-border-dark);
      border-bottom: 2px solid var(--win-border-dark);
      box-shadow: none;
    }

    .win-titlebar {
      background: linear-gradient(90deg, var(--win-blue), var(--win-blue-light));
      color: #ffffff;
      padding: 3px 6px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-weight: bold;
      font-size: 0.85rem;
      cursor: move;
    }

    .win-titlebar-inactive {
      background: linear-gradient(90deg, #808080, #b0b0b0);
    }

    .win-titlebar-btn {
      width: 16px;
      height: 14px;
      font-size: 9px;
      line-height: 10px;
      padding: 0;
      margin-left: 2px;
      font-family: monospace;
      font-weight: bold;
    }

    #desktop-hud {
      position: sticky;
      top: 0;
      z-index: 1000;
      background-color: var(--win-bg);
      border-bottom: 2px solid var(--win-border-black);
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .hud-metric-panel {
      padding: 3px 6px;
      min-width: 140px;
      background: var(--win-bg);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-sizing: border-box;
      overflow: hidden;
    }

    .hud-panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1px;
    }

    .hud-panel-title {
      font-size: 0.74rem;
      font-weight: 800;
      color: #111;
      letter-spacing: -0.2px;
      white-space: nowrap;
    }

    .hud-panel-badge {
      font-size: 0.65rem;
      padding: 1px 5px;
      border-radius: 8px;
      font-weight: bold;
    }

    .hud-panel-subline {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 6px;
      font-size: 0.70rem;
      color: #444;
      margin-bottom: 3px;
      white-space: nowrap;
    }

    .hud-progress-sunken {
      height: 13px;
      background: #ffffff;
      border: 2px solid;
      border-color: #808080 #dfdfdf #dfdfdf #808080;
      padding: 1px;
      overflow: hidden;
    }

    .hud-progress-fill {
      height: 100%;
      width: 0%;
      transition: width 0.15s ease-out;
      background: repeating-linear-gradient(
        90deg,
        var(--bar-color, #000080) 0px,
        var(--bar-color, #000080) 6px,
        #ffffff 6px,
        #ffffff 8px
      );
    }

    .draggable-window {
      position: absolute;
      min-width: 320px;
      max-width: 850px;
      min-height: 180px;
      max-height: calc(100vh - 165px);
      z-index: 10;
      transition: box-shadow 0.15s ease;
      display: block;
      resize: both;
      overflow: hidden;
    }

    .draggable-window > div:not(.win-titlebar) {
      max-height: calc(100% - 26px);
      height: calc(100% - 26px);
      overflow-y: auto;
    }

    .draggable-window.focused {
      box-shadow: 4px 4px 15px rgba(0,0,0,0.4);
    }

    .btn-intake-big {
      background: linear-gradient(180deg, #fffae6 0%, #ffd166 100%);
      font-size: 1.10rem;
      padding: 12px 16px;
      border: 3px solid #000;
      font-weight: 800;
      text-transform: uppercase;
      box-shadow: 3px 3px 0px #000;
      cursor: pointer;
      width: 100%;
      transition: transform 0.05s ease;
    }

    .btn-intake-big:active {
      transform: translate(2px, 2px);
      box-shadow: 1px 1px 0px #000;
    }

    .win-progress-outer {
      height: 22px;
      background-color: #fff;
      padding: 2px;
    }

    .win-progress-inner {
      height: 100%;
      background: repeating-linear-gradient(
        90deg,
        #000080,
        #000080 10px,
        #fff 10px,
        #fff 12px
      );
      width: 0%;
      transition: width 0.1s linear;
    }

    /* Authentic Retro CRT CCTV Surveillance Styling */
    .cctv-screen {
      background-color: #041407;
      color: #00ff66;
      font-family: "Courier New", Courier, monospace;
      border: 3px solid;
      border-color: #404040 #dfdfdf #dfdfdf #404040;
      position: relative;
      overflow: hidden;
      box-shadow: inset 0 0 12px rgba(0,255,100,0.25);
    }
    .cctv-screen::after {
      content: " ";
      display: block;
      position: absolute;
      top: 0; left: 0; bottom: 0; right: 0;
      background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05));
      background-size: 100% 3px, 3px 100%;
      pointer-events: none;
    }
    .cctv-rec-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      background-color: #ff3333;
      border-radius: 50%;
      animation: cctvBlink 1s infinite alternate;
    }
    @keyframes cctvBlink {
      0% { opacity: 0.2; }
      100% { opacity: 1.0; }
    }
    .unrest-bar-fill {
      background: repeating-linear-gradient(
        90deg,
        #d83b01 0px,
        #d83b01 6px,
        #ffffff 6px,
        #ffffff 8px
      );
    }

    #toast-container {
      position: fixed;
      bottom: 125px; /* Positioned cleanly above Jingly's avatar so notifications never obscure him */
      right: 20px;
      z-index: 10001;
      display: flex;
      flex-direction: column;
      gap: 8px;
      pointer-events: none;
    }
    .balloon-toast {
      pointer-events: auto;
    }

    .balloon-toast {
      background-color: #ffffe1;
      border: 1px solid #000;
      padding: 8px 14px;
      border-radius: 4px;
      box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
      font-size: 0.85rem;
      max-width: 340px;
      animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
      from { transform: translateX(100%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }

    /* Windows 98 Themed Event Badge & Interactive Tooltip System */
    #events-tray {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
      min-height: 26px;
      position: relative;
    }

    /* 90s Authentic Hyperlink Marquee Items */
    .win98-event-badge {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 1px 4px;
      font-size: 0.77rem;
      font-family: 'Courier New', Courier, monospace;
      font-weight: 700;
      cursor: pointer;
      user-select: none;
      white-space: nowrap;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      text-decoration: underline dashed 1px;
      text-underline-offset: 3px;
      transition: filter 0.1s ease, color 0.1s ease;
    }
    .win98-event-badge:hover {
      filter: brightness(1.35) drop-shadow(0 0 3px currentColor);
      text-decoration: underline solid 1px;
    }
    .win98-event-badge:active {
      transform: translateY(1px);
    }

    .win98-event-badge.pos-badge {
      color: #00ff66 !important;
    }
    .win98-event-badge.neg-badge {
      color: #ff4d4d !important;
    }
    .win98-event-badge.neu-badge {
      color: #00d2d3 !important;
    }

    .win98-event-badge .badge-sec-timer {
      font-size: 0.72rem;
      font-family: 'Courier New', Courier, monospace;
      opacity: 0.85;
      font-weight: normal;
      background: transparent !important;
      padding: 0 !important;
      color: inherit !important;
    }

    #win98-global-tooltip {
      display: none;
      position: fixed;
      z-index: 999999;
      background-color: #ffffe1;
      color: #000000;
      border: 1px solid #000000;
      box-shadow: 3px 3px 8px rgba(0,0,0,0.5);
      padding: 10px 14px;
      font-family: "Segoe UI", Tahoma, "MS Sans Serif", Geneva, sans-serif;
      font-size: 0.78rem;
      min-width: 320px;
      max-width: 520px;
      pointer-events: none;
    }

    #desktop-taskbar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 32px;
      background-color: var(--win-bg);
      border-top: 2px solid var(--win-border-light);
      z-index: 1000;
      display: flex;
      align-items: center;
      padding: 2px 4px;
      gap: 4px;
    }

    .start-btn {
      font-weight: 800;
      font-size: 0.85rem;
      padding: 2px 10px;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .start-menu-popup {
      display: none;
      position: fixed;
      bottom: 32px;
      left: 2px;
      width: 240px;
      background: var(--win-bg);
      border-top: 2px solid var(--win-border-light);
      border-left: 2px solid var(--win-border-light);
      border-right: 2px solid var(--win-border-black);
      border-bottom: 2px solid var(--win-border-black);
      box-shadow: 3px 3px 12px rgba(0,0,0,0.5);
      z-index: 100000;
      font-family: Tahoma, Arial, sans-serif;
      font-size: 0.82rem;
    }
    .start-menu-banner {
      background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
      color: #fff;
      font-weight: 900;
      padding: 6px;
      font-size: 0.90rem;
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      letter-spacing: 2px;
      text-align: center;
      width: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      user-select: none;
    }
    .start-menu-item {
      padding: 6px 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      color: #000;
      user-select: none;
    }
    .start-menu-item:hover {
      background-color: #000080;
      color: #fff;
    }

    .taskbar-clock {
      margin-left: auto;
      padding: 2px 10px;
      font-family: 'Share Tech Mono', monospace;
      font-size: 0.85rem;
      cursor: pointer;
      transition: background 0.1s;
    }

    .taskbar-clock:hover {
      background-color: #dfdfdf;
    }

    .taskbar-clock:active {
      background-color: #999999;
    }

    .syslog-box {
      height: 180px;
      overflow-y: auto;
      font-size: 0.82rem;
      padding: 6px;
      line-height: 1.35;
    }

    .log-line {
      margin-bottom: 3px;
      word-break: break-all;
    }

    .log-INFO { color: #80ff80; }
    .log-ALERT { color: #ff5555; font-weight: bold; }
    .log-WARN { color: #ffcc00; }
    .log-MILESTONE { color: #00ffff; font-weight: bold; }
    .log-AUDIT { color: #ff99ff; }

    /* Period Appropriate Loading Screen */
    #boot-screen-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #008080;
      z-index: 99999;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .boot-dialog {
      width: 480px;
    }

    .retro-bar-segment {
      background: repeating-linear-gradient(
        90deg,
        #000080,
        #000080 8px,
        #c0c0c0 8px,
        #c0c0c0 10px
      );
    }

    .facility-deficit-alert {
      border: 1px solid #d90429;
      background: #ffe6e6;
      color: #900;
      font-size: 0.72rem;
      padding: 4px 6px;
      border-radius: 2px;
      font-weight: bold;
    }

    .dev-badge {
      background-color: #ff007f;
      color: #fff;
      font-size: 0.65rem;
      padding: 1px 4px;
      border-radius: 2px;
      font-weight: bold;
      text-transform: uppercase;
    }

    .btn-prestige-glow {
      background: linear-gradient(90deg, #ffd700, #ff8c00);
      color: #000;
      font-weight: 800;
      border: 2px solid #b8860b;
      box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
      animation: pulseGlow 1.5s infinite alternate;
    }

    @keyframes pulseGlow {
      from { box-shadow: 0 0 6px rgba(255, 215, 0, 0.4); }
      to { box-shadow: 0 0 16px rgba(255, 215, 0, 0.9); }
    }

    #btn-prestige-hud {
      cursor: pointer;
      white-space: nowrap;
      user-select: none;
      transition: transform 0.1s ease, filter 0.1s ease;
    }
    #btn-prestige-hud:hover {
      filter: brightness(1.12);
      transform: translateY(-1px);
    }
    #btn-prestige-hud:active {
      transform: translateY(1px);
    }

    /* CAD98 Blueprint Grid Styling */
    .cad-grid-cell {
      aspect-ratio: 1 / 1;
      background: #002244;
      border: 1px dashed #0055aa;
      border-radius: 3px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      user-select: none;
      transition: all 0.15s ease;
      color: #88ccff;
      font-size: 0.65rem;
      text-align: center;
      padding: 2px;
    }
    .cad-grid-cell:hover {
      border-color: #00ffff;
      background: #003366;
      box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
    }
    .cad-grid-cell.active-zone-cell {
      background: #003870;
      border: 2px solid #00aaff;
      color: #ffffff;
      font-weight: bold;
    }
    .cad-zone-btn {
      text-align: left;
      font-size: 0.75rem;
      padding: 5px 8px;
    }
    .cad-zone-btn.selected-tool {
      background: #000080 !important;
      color: #ffffff !important;
      font-weight: bold;
      border-color: #ffffff !important;
    }

    /* PAROLE32 Manila Dossier & Papers Please Styling */
    .parole-manila-folder {
      background-color: #f7f1df;
      background-image: radial-gradient(#ece3cb 15%, transparent 16%), radial-gradient(#ece3cb 15%, transparent 16%);
      background-size: 60px 60px;
      background-position: 0 0, 30px 30px;
      border: 2px solid #b8a686;
      border-radius: 4px;
      box-shadow: inset 1px 1px 0 #fff, 2px 2px 8px rgba(0,0,0,0.18);
      position: relative;
    }

    .parole-tab-bar {
      display: flex;
      gap: 3px;
      padding: 4px 6px 0 6px;
      border-bottom: 2px solid #b8a686;
      background: #e9dec4;
      flex-wrap: wrap;
    }

    .parole-doc-tab {
      background: #dfd2b5;
      border: 1px solid #b8a686;
      border-bottom: none;
      border-radius: 4px 4px 0 0;
      padding: 5px 11px;
      font-size: 0.72rem;
      font-weight: bold;
      color: #554433;
      cursor: pointer;
      user-select: none;
      transition: all 0.1s;
      position: relative;
      top: 1px;
    }

    .parole-doc-tab:hover {
      background: #eedec0;
      color: #111;
    }

    .parole-doc-tab.active {
      background: #fbf7ea;
      color: #111;
      border-top: 2px solid #8b0000;
      border-bottom: 2px solid #fbf7ea;
      font-weight: 800;
      z-index: 2;
    }

    .parole-doc-sheet {
      background: #fbf7ea;
      min-height: 220px;
      max-height: 380px;
      overflow-y: auto;
      padding: 12px 14px;
      font-family: 'Courier New', Courier, monospace;
      color: #1c1c1c;
      box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
      position: relative;
      border-bottom: 1px solid #dcd1ba;
    }

    .parole-doc-header {
      border-bottom: 2px dashed #998877;
      padding-bottom: 6px;
      margin-bottom: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .parole-doc-watermark {
      position: absolute;
      right: 15px;
      bottom: 15px;
      font-size: 2.2rem;
      font-weight: 900;
      color: rgba(180, 160, 140, 0.12);
      letter-spacing: 4px;
      pointer-events: none;
      user-select: none;
      text-transform: uppercase;
    }

    .parole-typewriter-text {
      font-family: 'Courier New', Courier, monospace;
      font-size: 0.80rem;
      line-height: 1.5;
      color: #222;
    }

    .parole-paperclip {
      position: absolute;
      top: -8px;
      right: 25px;
      width: 14px;
      height: 32px;
      border: 3px solid #888;
      border-radius: 8px;
      border-bottom: none;
      z-index: 10;
      box-shadow: 1px 1px 2px rgba(0,0,0,0.4);
      pointer-events: none;
    }

    .parole-dossier-stamp {
      position: absolute;
      right: 25px;
      top: 35px;
      font-size: 1.4rem;
      font-weight: 900;
      text-transform: uppercase;
      padding: 6px 14px;
      border: 4px solid;
      border-radius: 4px;
      transform: rotate(-10deg);
      opacity: 0.92;
      pointer-events: none;
      user-select: none;
      z-index: 20;
      animation: stampSlam 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    @keyframes stampSlam {
      0% { transform: scale(2.2) rotate(-20deg); opacity: 0; }
      100% { transform: scale(1) rotate(-10deg); opacity: 0.92; }
    }
    .parole-dossier-stamp.stamp-granted {
      color: #1e7e34;
      border-color: #1e7e34;
    }
    .parole-dossier-stamp.stamp-denied {
      color: #bd2130;
      border-color: #bd2130;
    }
    .parole-dossier-stamp.stamp-supermax {
      color: #d39e00;
      border-color: #d39e00;
    }

    /* PAROLE32 Responsive Layout: Desktop = Side-by-Side (Menu on Left, Folder on Right); Mobile = Stacked (Menu on Top, Folder Below) */
    @media (min-width: 769px) {
      .parole-main-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
      }
      .parole-docket-col {
        width: 300px !important;
        min-width: 275px !important;
        max-width: 320px !important;
        flex: 0 0 300px !important;
      }
      .parole-dossier-col {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
      }
    }
    @media (max-width: 768px) {
      .parole-main-row {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
      }
      .parole-docket-col {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: 0 0 auto !important;
        margin-bottom: 8px !important;
      }
      .parole-docket-col .win-sunken {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
      }
      .parole-dossier-col {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: 0 0 auto !important;
      }
      .parole-tab-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
      }
      .parole-doc-tab {
        flex-shrink: 0;
      }
      .parole-inmate-item {
        width: 100% !important;
        box-sizing: border-box !important;
      }
      .parole-inmate-name {
        max-width: calc(100vw - 120px) !important;
        flex-grow: 1;
      }
      .parole-quota-title {
        max-width: calc(100vw - 110px) !important;
        flex-grow: 1;
      }
    }

    /* Parole DOC Form 204 Condition Buttons Grid */
    .parole-terms-btn-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 4px;
    }

    /* Windows 98 Vertical Slider Styling for SNDVOL32 */
    .win-vslider {
      -webkit-appearance: slider-vertical;
      writing-mode: bt-lr;
      width: 20px;
      height: 110px;
      cursor: pointer;
    }

    /* Windows 98 Property Sheet Tabs & App Suite Workspace */
    .app-suite-container {
      width: 960px;
      max-width: 96vw;
      min-height: 600px;
      position: absolute;
      top: 15px;
      left: 15px;
      z-index: 15;
      resize: both;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .app-suite-container.maximized {
      top: 0px !important;
      left: 0px !important;
      width: 100vw !important;
      height: calc(100vh - 32px) !important;
      max-width: 100vw !important;
      resize: none !important;
      border-radius: 0 !important;
    }

    .app-menubar {
      background: var(--win-bg);
      border-bottom: 1px solid var(--win-border-dark);
      padding: 1px 4px;
      font-size: 0.80rem;
      display: flex;
      gap: 2px;
      user-select: none;
      font-family: Tahoma, Arial, sans-serif;
      position: relative;
    }

    .app-menubar-item {
      position: relative;
      cursor: pointer;
      padding: 2px 8px;
    }

    .app-menubar-item:hover, .app-menubar-item.open {
      background-color: #000080;
      color: #fff;
    }

    .app-dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      min-width: 250px;
      background-color: var(--win-bg);
      border-top: 2px solid var(--win-border-light);
      border-left: 2px solid var(--win-border-light);
      border-right: 2px solid var(--win-border-black);
      border-bottom: 2px solid var(--win-border-black);
      box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
      z-index: 99999;
      padding: 2px 0;
      color: #000;
      font-family: Tahoma, Arial, sans-serif;
      font-size: 0.80rem;
    }

    .app-dropdown-menu.show {
      display: block;
    }

    .app-dropdown-item {
      padding: 4px 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      white-space: nowrap;
      font-weight: 500;
    }

    .app-dropdown-item:hover {
      background-color: #000080;
      color: #fff;
    }

    .app-dropdown-item.disabled {
      color: #888;
      cursor: not-allowed;
    }
    .app-dropdown-item.disabled:hover {
      background-color: transparent;
      color: #888;
    }

    .app-dropdown-item .shortcut-key {
      color: #666;
      font-size: 0.72rem;
      margin-left: 14px;
    }
    .app-dropdown-item:hover .shortcut-key {
      color: #dfdfdf;
    }

    .app-dropdown-divider {
      height: 1px;
      background-color: var(--win-border-dark);
      border-bottom: 1px solid var(--win-border-light);
      margin: 3px 2px;
    }

    .app-toolbar {
      background: var(--win-bg);
      border-bottom: 2px solid var(--win-border-dark);
      padding: 4px 8px;
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      align-items: center;
    }

    .app-category-nav {
      width: 210px;
      background: #ece9d8;
      border-right: 2px solid #999;
      padding: 6px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex-shrink: 0;
    }

    .app-category-btn {
      text-align: left;
      font-weight: 700;
      font-size: 0.80rem;
      padding: 5px 6px;
      border: 2px outset #fff;
      background: #dfdfdf;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 4px;
      width: 100%;
      font-family: Tahoma, Arial, sans-serif;
      user-select: none;
    }

    
    .app-category-btn-megaproject {
      border: 2px outset #ffd54f !important;
      background: linear-gradient(180deg, #fff9c4 0%, #ffe082 100%) !important;
      color: #8d4f00 !important;
      font-weight: 800 !important;
      box-shadow: 0 0 5px rgba(255, 193, 7, 0.45);
      transition: all 0.2s ease;
      margin: 2px 0;
    }

    .app-category-btn-megaproject:hover:not(.active) {
      background: linear-gradient(180deg, #fffde7 0%, #ffecb3 100%) !important;
      box-shadow: 0 0 8px rgba(255, 193, 7, 0.75);
    }

    .app-category-btn-megaproject.active {
      background: linear-gradient(180deg, #b26a00 0%, #e65100 100%) !important;
      color: #fff !important;
      border: 2px inset #ffb300 !important;
      box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
    }

    .megaproject-status-indicator {
      font-size: 0.65rem;
      padding: 1px 4px;
      border-radius: 3px;
      background: #e65100;
      color: #fff;
      font-weight: bold;
      animation: pulse-glow 2s infinite ease-in-out;
    }

    @keyframes pulse-glow {
      0%, 100% { opacity: 0.85; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.05); }
    }

    .app-category-btn:hover:not(.active) {
      background: #e9e9e9;
    }

    .app-category-btn.active {
      background: #000080;
      color: #fff;
      border: 2px inset #808080;
    }

    .app-category-pop-btn {
      background: #c0c0c0;
      color: #000;
      border: 1px outset #fff;
      padding: 0 4px;
      font-size: 0.68rem;
      font-weight: bold;
      cursor: pointer;
      line-height: 1.2;
      border-radius: 2px;
      flex-shrink: 0;
    }
    .app-category-pop-btn:hover {
      background: #ffffff;
      color: #000080;
    }
    .app-category-pop-btn:active {
      border-style: inset;
    }

    .page-popped-notice {
      background: #fff8db;
      border: 1px solid #c99700;
      padding: 10px 14px;
      margin: 10px 0;
      border-radius: 2px;
      font-size: 0.78rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
    }

    .property-tabs-header {
      display: flex;
      gap: 2px;
      border-bottom: 2px solid #ffffff;
      padding-left: 6px;
      margin-bottom: 0;
      user-select: none;
      position: relative;
      z-index: 5;
    }

    .property-tab-btn {
      background: #c0c0c0;
      border: 2px solid;
      border-color: #ffffff #808080 #808080 #ffffff;
      border-bottom: none;
      border-radius: 4px 4px 0 0;
      padding: 4px 12px;
      font-size: 0.80rem;
      font-weight: 600;
      cursor: pointer;
      color: #222;
      position: relative;
      margin-bottom: -2px;
      font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    }

    .property-tab-btn.active {
      background: var(--win-bg);
      font-weight: 800;
      padding-top: 6px;
      padding-bottom: 6px;
      margin-bottom: -2px;
      border-color: #ffffff #808080 var(--win-bg) #ffffff;
      border-bottom: 2px solid var(--win-bg) !important;
      z-index: 10;
    }

    .property-tab-body {
      background: var(--win-bg);
      border: 2px solid;
      border-color: #ffffff #808080 #808080 #ffffff;
      border-top: none;
      padding: 10px 18px 10px 10px;
      flex-grow: 1;
      height: 100%;
      overflow-y: auto;
      box-sizing: border-box;
      position: relative;
      z-index: 1;
    }

    .popout-btn {
      font-size: 0.70rem;
      padding: 1px 6px;
      font-weight: bold;
    }

    .dock-btn {
      font-size: 0.70rem;
      padding: 1px 4px;
      line-height: 1;
    }

    .badge-synergy {
      font-size: 0.68rem;
      padding: 2px 6px;
      border-radius: 3px;
      font-weight: 700;
    }

    /* ==========================================================================
       DESKTOP SHORTCUTS: PC / DESKTOP ONLY (COMPLETELY HIDDEN ON MOBILE & TOUCH)
       ========================================================================== */
    @media (max-width: 991px), (max-height: 550px) and (max-width: 1024px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
      #desktop-shortcuts-container,
      .desktop-shortcuts-grid,
      .desktop-icon {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        z-index: -100 !important;
      }
    }

    /* ==========================================================================
       MOBILE & SMALL SCREEN RESPONSIVE ARCHITECTURE (<= 768px)
       ========================================================================== */
    @media (max-width: 768px) {
      body,
      body.era-2-theme,
      body.era-3-theme,
      body[data-theme] {
        height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background-color: var(--win-bg) !important;
        background: var(--win-bg) !important;
      }

      /* Completely hide desktop shortcuts on mobile */
      #desktop-shortcuts-container,
      .desktop-shortcuts-grid,
      .desktop-icon {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
      }

      /* Compact Mobile Top HUD */
      #desktop-hud {
        position: relative;
        padding: 4px 6px !important;
        flex-shrink: 0;
        z-index: 1000;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
      }
      #desktop-hud .container-fluid {
        padding: 0 !important;
        margin: 0 !important;
        gap: 4px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: wrap !important;
      }
      #hud-header-left {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        gap: 6px !important;
      }
      #hud-era-icon {
        font-size: 1.15rem !important;
      }
      #era-title-display {
        font-size: 0.82rem !important;
        font-weight: bold !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 250px;
      }
      #hud-sub-title {
        display: none !important;
      }

      /* 2x2 Grid of Status Panels */
      #hud-status-panels-container,
      #desktop-hud .hud-status-container,
      #desktop-hud .d-flex.flex-wrap.gap-2.justify-content-end,
      #desktop-hud .d-flex.flex-nowrap.gap-2.justify-content-end {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 4px !important;
        width: 100% !important;
        margin: 0 !important;
        flex-wrap: wrap !important;
      }
      .hud-metric-panel {
        min-width: 0 !important;
        padding: 2px 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
      }
      .hud-panel-title {
        font-size: 0.68rem !important;
      }
      .hud-panel-badge {
        font-size: 0.60rem !important;
        padding: 0 4px !important;
      }
      .hud-panel-subline {
        font-size: 0.64rem !important;
        margin-bottom: 1px !important;
      }
      .hud-progress-sunken {
        height: 10px !important;
      }

      /* Regional Megaproject / Project Red Sky Header Link on Mobile (Full Width Edge-to-Edge directly above Marquee) */
      #btn-prestige-hud {
        grid-column: 1 / -1 !important;
        order: 10 !important;
        width: calc(100% + 12px) !important;
        margin: 4px -6px -4px -6px !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        padding: 7px 12px !important;
        font-size: 0.78rem !important;
        text-align: center !important;
        box-sizing: border-box !important;
      }

      /* Mobile 90s Events Marquee Ribbon */
      #hud-events-marquee-bar {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin: 0 !important;
      }

      /* Mobile Main Canvas with Native Touch Scrolling (Edge-to-Edge Flush) */
      #desktop-canvas {
        flex: 1 1 auto;
        height: auto !important;
        position: relative !important;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        padding: 0 0 58px 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        background-color: var(--win-bg) !important;
        background: var(--win-bg) !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        overscroll-behavior-y: contain !important;
        z-index: auto !important; /* Allow fixed modal windows to sit above top HUD */
      }

      /* Master Suite Container as Full-Width Native Mobile View (Maximized Native App Look) */
      #win-app-suite,
      .app-suite-container {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        transform: none !important;
        z-index: 10 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        resize: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        box-sizing: border-box !important;
      }

      /* Elevate suite container when a menubar dropdown is open so it renders above the HUD and marquee */
      .app-suite-container.menu-open,
      .app-suite-container:has(.app-dropdown-menu.show) {
        z-index: 1000050 !important;
      }

      .app-suite-container .win-titlebar {
        display: none !important; /* Hide window titlebar on mobile for true maximized native feel */
      }
      .app-suite-container .win-titlebar-btn {
        display: none !important;
      }

      /* Menubar on Mobile */
      .app-menubar {
        overflow: visible !important;
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 3px 4px !important;
        font-size: 0.78rem !important;
        position: relative !important;
        z-index: 10000 !important;
      }

      .app-menubar-item {
        padding: 4px 8px !important;
        font-size: 0.78rem !important;
        touch-action: manipulation;
      }

      /* Menubar Dropdown Menus Positioned Safely Below Menubar with Downward Scrolling on Mobile */
      .app-dropdown-menu {
        position: fixed !important;
        top: var(--mobile-menu-top, 270px);
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 92vw !important;
        max-width: 380px !important;
        min-width: 280px !important;
        max-height: calc(100dvh - var(--mobile-menu-top, 270px) - 48px);
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 1000060 !important;
        box-shadow: 0 12px 48px rgba(0,0,0,0.85) !important;
        border-top: 2px solid var(--win-border-light) !important;
        border-left: 2px solid var(--win-border-light) !important;
        border-right: 2px solid var(--win-border-black) !important;
        border-bottom: 2px solid var(--win-border-black) !important;
      }

      #dropdown-tools,
      #dropdown-help,
      #dropdown-modules,
      #dropdown-file,
      #dropdown-view {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
      }

      .app-dropdown-item {
        padding: 8px 12px !important;
        font-size: 0.80rem !important;
        touch-action: manipulation;
      }

      /* Sleek non-intrusive mobile toast banner above taskbar */
      #toast-container {
        position: fixed !important;
        bottom: 46px !important;
        left: 6px !important;
        right: 6px !important;
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        z-index: 1000020 !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 4px !important;
        pointer-events: none !important;
      }

      .balloon-toast {
        background-color: #ffffe1 !important;
        border: 1px solid #000 !important;
        padding: 4px 8px !important;
        border-radius: 2px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
        font-size: 0.74rem !important;
        max-width: 100% !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        pointer-events: auto !important;
        box-sizing: border-box !important;
        min-height: 32px !important;
      }

      /* Hide floating Jingly speech bubble on mobile so it doesn't obstruct screen */
      #jingly-bubble {
        display: none !important;
      }

      /* Parole DOC Form 204 Modal on mobile */
      #modal-parole-terms {
        z-index: 1000060 !important;
        width: 100vw !important;
        height: 100dvh !important;
        padding: 0 !important;
        align-items: stretch !important;
      }
      #modal-parole-terms .win-box {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border: none !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: none !important;
      }
      #modal-parole-terms-body {
        flex: 1 1 auto !important;
        max-height: calc(100dvh - 75px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px !important;
      }
      .parole-terms-btn-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
      }
      .parole-terms-btn-grid .win-btn {
        width: 100% !important;
        min-height: 42px !important;
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
      }

      /* Workspace body layout on Mobile: stacked Category Nav + Content */
      .app-suite-container .d-flex[style*="height: calc(100% - 32px)"],
      .app-suite-container .d-flex[style*="overflow: hidden"] {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
      }

      /* Category Nav: Horizontal Scrollable Bar on Mobile */
      .app-category-nav {
        width: 100% !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        padding: 4px 2px !important;
        gap: 4px !important;
        border-right: none !important;
        border-bottom: 2px solid #999 !important;
        flex-shrink: 0;
        background: #dfdfdf;
        position: relative !important;
        z-index: 20 !important;
      }
      .app-category-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 6px 11px !important;
        font-size: 0.78rem !important;
        min-height: 36px !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
        user-select: none !important;
      }
      .app-category-pop-btn {
        display: none !important; /* Hide category window pop buttons on small mobile */
      }

      /* Property Tabs Header: Horizontal Scrolling */
      .property-tabs-header {
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        padding: 4px 2px 0 2px !important;
        gap: 3px !important;
        position: relative !important;
        z-index: 20 !important;
      }
      .property-tab-btn {
        padding: 6px 11px !important;
        font-size: 0.78rem !important;
        min-height: 34px !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
        user-select: none !important;
      }

      /* Full Width Module Tab Contents & Cards with Native Scrolling */
      .property-tab-body {
        padding: 4px !important;
        overflow: visible !important;
        height: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
      }
      .category-pane {
        height: auto !important;
        overflow: visible !important;
      }
      .module-tab-content {
        height: auto !important;
        overflow: visible !important;
      }

      /* Full-Height Modal Floating Windows on Mobile (Visible titlebar, accessible close button) */
      .draggable-window,
      .win-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 42px !important; /* Keep Windows 98 taskbar accessible at bottom */
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: calc(100dvh - 42px) !important;
        transform: none !important;
        z-index: 1000050 !important; /* Display above top HUD (z-index 1000) and marquee (z-index 999) */
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.75) !important;
        border: 2px solid var(--win-border-light) !important;
        border-radius: 0 !important;
      }
      .draggable-window[style*="display: none"],
      .draggable-window[style*="display:none"],
      .win-window[style*="display: none"],
      .win-window[style*="display:none"] {
        display: none !important;
      }
      .draggable-window[style*="display: block"],
      .draggable-window[style*="display:block"],
      .draggable-window[style*="display: flex"],
      .draggable-window[style*="display:flex"],
      .win-window[style*="display: block"],
      .win-window[style*="display:block"],
      .win-window[style*="display: flex"],
      .win-window[style*="display:flex"] {
        display: flex !important;
      }
      .draggable-window .win-titlebar,
      .win-window .win-titlebar {
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        flex-shrink: 0 !important;
        min-height: 36px !important;
        padding: 4px 8px !important;
      }
      .draggable-window .win-titlebar-btn,
      .win-window .win-titlebar-btn {
        min-width: 32px !important;
        min-height: 30px !important;
        height: 30px !important;
        font-size: 1rem !important;
        line-height: 28px !important;
        padding: 0 8px !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
      }
      .draggable-window .win-content,
      .draggable-window .property-tab-body,
      .draggable-window > .p-2,
      .draggable-window > .p-3,
      .draggable-window [id$="-body"] {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        max-height: calc(100dvh - 78px) !important;
      }

      /* Taskbar Mobile Sticky Positioning */
      #desktop-taskbar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 999999 !important;
        height: 42px !important;
        padding: 2px 4px !important;
        background: #d4d0c8;
        border-top: 2px solid #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      /* Start Menu on Mobile */
      .start-menu-popup {
        bottom: 42px !important;
        z-index: 1000000 !important;
        max-height: 75vh !important;
        overflow-y: auto !important;
        width: 260px !important;
      }
      .start-menu-item {
        padding: 9px 12px !important;
        font-size: 0.82rem !important;
        touch-action: manipulation !important;
      }

      /* Touch-Friendly Action Controls */
      .btn-intake-big {
        padding: 14px 10px !important;
        font-size: 1.05rem !important;
        margin-bottom: 8px !important;
        touch-action: manipulation;
      }

      .win-btn {
        min-height: 32px;
        font-size: 0.78rem;
        touch-action: manipulation;
      }
      .popout-btn {
        display: none !important; /* Hide individual tab pop buttons on small mobile */
      }

      /* Tier and Officer Cards */
      .tier-header-bar {
        padding: 6px 8px !important;
        font-size: 0.78rem !important;
        cursor: pointer;
      }

      /* Mobile Bottom Navigation Taskbar */
      .start-btn {
        padding: 3px 8px !important;
        font-size: 0.78rem !important;
      }
      #taskbar-buttons-container {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        flex-grow: 1;
        margin: 0 4px;
        gap: 2px !important;
      }
      .taskbar-window-btn {
        font-size: 0.72rem !important;
        padding: 2px 6px !important;
        white-space: nowrap;
      }
      .taskbar-clock {
        font-size: 0.72rem !important;
        padding: 2px 4px !important;
      }

      /* Modals on Mobile */
      #notepad-modal-overlay > div,
      #about-modal-overlay > div,
      #import-save-modal-overlay > div {
        width: 95vw !important;
        max-width: 95vw !important;
        margin: 10px auto;
      }
      #notepad-body-content {
        height: 220px !important;
      }
    }


    /* =============================================================
       ALTERNATE OS & VISUAL THEMES ENGINE (COMPREHENSIVE)
       ============================================================= */

    /* CRT Scanline Screen Overlay */
    .crt-overlay {
      position: fixed;
      top: 0; left: 0; width: 100vw; height: 100vh;
      pointer-events: none;
      z-index: 99999;
      background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.28) 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;
      transition: opacity 0.3s ease;
    }
    body.crt-enabled .crt-overlay {
      opacity: 1;
    }

    /* Death Row Dark & Grim Visual Atmosphere & Voltage Sag Effect */
    .execution-voltage-surge {
      animation: crtVoltageSag 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    }
    @keyframes crtVoltageSag {
      0% { filter: brightness(1.0); }
      8% { filter: brightness(0.12) contrast(1.8) drop-shadow(0 0 15px #dc2626); }
      18% { filter: brightness(0.75) contrast(1.3); }
      28% { filter: brightness(0.08) contrast(2.0); }
      45% { filter: brightness(0.40) contrast(1.4); }
      60% { filter: brightness(0.18); }
      75% { filter: brightness(0.65); }
      90% { filter: brightness(0.85); }
      100% { filter: brightness(1.0); }
    }

    .dr-cell-card {
      position: relative;
      background: #18181b;
      color: #f4f4f5;
      border: 2px solid #3f3f46;
      box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.4);
      border-radius: 2px;
      overflow: hidden;
    }
    .dr-cell-card.warrant-active {
      border-color: #dc2626 !important;
      box-shadow: 0 0 12px rgba(220, 38, 38, 0.5), inset 0 0 15px rgba(220, 38, 38, 0.25) !important;
    }
    .dr-cell-bars-overlay {
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      pointer-events: none;
      background: repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(30, 41, 59, 0.45) 18px, rgba(15, 23, 42, 0.85) 22px, rgba(71, 85, 105, 0.3) 23px);
      z-index: 2;
    }
    .dr-facility-box {
      background: #27272a;
      border: 2px outset #52525b;
      color: #e4e4e7;
    }
    .btn-execute-giant {
      background: repeating-linear-gradient(45deg, #b91c1c, #b91c1c 16px, #7f1d1d 16px, #7f1d1d 32px) !important;
      border: 3px outset #ef4444 !important;
      color: #ffffff !important;
      font-size: 1.15rem !important;
      font-weight: 900 !important;
      letter-spacing: 2px !important;
      text-transform: uppercase !important;
      text-shadow: 0 0 8px #ff0000, 0 2px 4px #000000 !important;
      box-shadow: 0 0 25px rgba(239, 68, 68, 0.6) !important;
      transition: transform 0.1s ease, box-shadow 0.2s ease !important;
    }
    .btn-execute-giant:hover {
      transform: scale(1.02);
      box-shadow: 0 0 35px rgba(239, 68, 68, 0.85) !important;
    }
    .btn-execute-giant:active {
      transform: scale(0.98);
      border-style: inset !important;
    }

    /* -------------------------------------------------------------
       THEME 1: MS-DOS / CRT TERMINAL (theme-dos)
       ------------------------------------------------------------- */
    body[data-theme="dos"],
    body[data-theme="dos"] #desktop-canvas,
    body[data-theme="dos"] #desktop-hud,
    body[data-theme="dos"] #desktop-taskbar,
    body[data-theme="dos"] .app-menubar {
      background: #050805 !important;
      font-family: 'Courier New', 'VT323', 'Lucida Console', monospace !important;
      color: #33ff33 !important;
    }
    body[data-theme="dos"] .win-box,
    body[data-theme="dos"] .win-panel,
    body[data-theme="dos"] .property-sheet,
    body[data-theme="dos"] .draggable-window,
    body[data-theme="dos"] .category-page-window,
    body[data-theme="dos"] .modal-content,
    body[data-theme="dos"] .app-dropdown-menu,
    body[data-theme="dos"] #start-menu {
      background: #080f08 !important;
      color: #33ff33 !important;
      border: 2px solid #33ff33 !important;
      box-shadow: 0 0 10px rgba(51, 255, 51, 0.35) !important;
    }
    body[data-theme="dos"] .win-titlebar,
    body[data-theme="dos"] .category-page-titlebar,
    body[data-theme="dos"] .window-titlebar {
      background: #33ff33 !important;
      color: #000000 !important;
      font-weight: bold !important;
      border-bottom: 2px solid #33ff33 !important;
      font-family: 'Courier New', monospace !important;
    }
    body[data-theme="dos"] .win-titlebar span,
    body[data-theme="dos"] .category-page-titlebar span,
    body[data-theme="dos"] .window-titlebar span {
      color: #000000 !important;
      font-weight: 800 !important;
    }
    body[data-theme="dos"] .win-btn,
    body[data-theme="dos"] .btn,
    body[data-theme="dos"] .property-tab-btn,
    body[data-theme="dos"] .category-tab-btn,
    body[data-theme="dos"] .taskbar-start-btn,
    body[data-theme="dos"] .taskbar-window-btn,
    body[data-theme="dos"] .app-menubar-item {
      background: #050805 !important;
      color: #33ff33 !important;
      border: 1px solid #33ff33 !important;
      font-family: 'Courier New', monospace !important;
      text-shadow: 0 0 3px #33ff33;
    }
    body[data-theme="dos"] .win-btn:hover,
    body[data-theme="dos"] .btn:hover,
    body[data-theme="dos"] .property-tab-btn:hover,
    body[data-theme="dos"] .property-tab-btn.active,
    body[data-theme="dos"] .category-tab-btn.active,
    body[data-theme="dos"] .app-menubar-item:hover {
      background: #33ff33 !important;
      color: #000000 !important;
      text-shadow: none;
    }
    body[data-theme="dos"] .win-sunken,
    body[data-theme="dos"] .form-control,
    body[data-theme="dos"] .form-select,
    body[data-theme="dos"] .bg-light,
    body[data-theme="dos"] .bg-white,
    body[data-theme="dos"] .hud-progress-sunken,
    body[data-theme="dos"] .card {
      background: #020402 !important;
      color: #33ff33 !important;
      border: 1px solid #1b5e20 !important;
    }
    body[data-theme="dos"] .hud-metric-panel {
      background: #080f08 !important;
      border: 1px solid #33ff33 !important;
    }
    body[data-theme="dos"] .hud-panel-title,
    body[data-theme="dos"] .text-dark,
    body[data-theme="dos"] .text-secondary,
    body[data-theme="dos"] .text-muted,
    body[data-theme="dos"] .text-primary,
    body[data-theme="dos"] .text-danger,
    body[data-theme="dos"] .text-success {
      color: #33ff33 !important;
    }
    body[data-theme="dos"] .badge {
      background: #050805 !important;
      color: #33ff33 !important;
      border: 1px solid #33ff33 !important;
    }

    /* -------------------------------------------------------------
       THEME 2: SECURICORE CYBERPUNK 2099 (theme-cyberpunk)
       ------------------------------------------------------------- */
    body[data-theme="cyberpunk"],
    body[data-theme="cyberpunk"] #desktop-canvas {
      background: #070a12 radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%) !important;
      color: #e2e8f0 !important;
    }
    body[data-theme="cyberpunk"] #desktop-hud,
    body[data-theme="cyberpunk"] #desktop-taskbar,
    body[data-theme="cyberpunk"] .app-menubar {
      background: rgba(10, 15, 26, 0.95) !important;
      border-bottom: 1px solid #00f0ff !important;
      color: #00f0ff !important;
    }
    body[data-theme="cyberpunk"] .win-box,
    body[data-theme="cyberpunk"] .win-panel,
    body[data-theme="cyberpunk"] .property-sheet,
    body[data-theme="cyberpunk"] .draggable-window,
    body[data-theme="cyberpunk"] .category-page-window,
    body[data-theme="cyberpunk"] .modal-content,
    body[data-theme="cyberpunk"] .app-dropdown-menu,
    body[data-theme="cyberpunk"] #start-menu {
      background: rgba(13, 17, 23, 0.94) !important;
      color: #e2e8f0 !important;
      border: 1px solid #00f0ff !important;
      box-shadow: 0 0 15px rgba(0, 240, 255, 0.25), inset 0 0 15px rgba(0, 240, 255, 0.04) !important;
      backdrop-filter: blur(8px);
    }
    body[data-theme="cyberpunk"] .win-titlebar,
    body[data-theme="cyberpunk"] .category-page-titlebar,
    body[data-theme="cyberpunk"] .window-titlebar {
      background: linear-gradient(90deg, #00f0ff, #ff0055) !important;
      color: #000000 !important;
      font-weight: 800 !important;
      letter-spacing: 0.5px;
    }
    body[data-theme="cyberpunk"] .win-titlebar span,
    body[data-theme="cyberpunk"] .category-page-titlebar span,
    body[data-theme="cyberpunk"] .window-titlebar span {
      color: #000000 !important;
      font-weight: 900 !important;
    }
    body[data-theme="cyberpunk"] .win-btn,
    body[data-theme="cyberpunk"] .btn,
    body[data-theme="cyberpunk"] .property-tab-btn,
    body[data-theme="cyberpunk"] .category-tab-btn {
      background: rgba(0, 240, 255, 0.08) !important;
      color: #00f0ff !important;
      border: 1px solid #00f0ff !important;
      font-weight: bold;
    }
    body[data-theme="cyberpunk"] .win-btn:hover,
    body[data-theme="cyberpunk"] .btn:hover,
    body[data-theme="cyberpunk"] .property-tab-btn.active,
    body[data-theme="cyberpunk"] .category-tab-btn.active {
      background: #00f0ff !important;
      color: #000000 !important;
      box-shadow: 0 0 10px #00f0ff !important;
    }
    body[data-theme="cyberpunk"] .win-sunken,
    body[data-theme="cyberpunk"] .form-control,
    body[data-theme="cyberpunk"] .form-select,
    body[data-theme="cyberpunk"] .bg-light,
    body[data-theme="cyberpunk"] .bg-white,
    body[data-theme="cyberpunk"] .hud-progress-sunken,
    body[data-theme="cyberpunk"] .card {
      background: rgba(15, 23, 42, 0.90) !important;
      color: #e2e8f0 !important;
      border: 1px solid rgba(0, 240, 255, 0.3) !important;
    }
    body[data-theme="cyberpunk"] .taskbar-start-btn {
      background: linear-gradient(90deg, #ff0055, #00f0ff) !important;
      color: #ffffff !important;
      font-weight: 900 !important;
      border: none !important;
    }
    body[data-theme="cyberpunk"] .hud-metric-panel {
      background: rgba(15, 23, 42, 0.85) !important;
      border: 1px solid rgba(0, 240, 255, 0.4) !important;
      box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    }
    body[data-theme="cyberpunk"] .text-dark {
      color: #f1f5f9 !important;
    }
    body[data-theme="cyberpunk"] .text-muted {
      color: #94a3b8 !important;
    }

    /* -------------------------------------------------------------
       THEME 3: SYSTEM 7 CLASSIC MAC (theme-mac)
       ------------------------------------------------------------- */
    body[data-theme="mac"],
    body[data-theme="mac"] #desktop-canvas {
      background: repeating-conic-gradient(#666666 0% 25%, #888888 0% 50%) 50% / 4px 4px !important;
      color: #000000 !important;
    }
    body[data-theme="mac"] #desktop-hud,
    body[data-theme="mac"] #desktop-taskbar,
    body[data-theme="mac"] .app-menubar {
      background: #ffffff !important;
      border-bottom: 1px solid #000000 !important;
      border-top: 1px solid #000000 !important;
      color: #000000 !important;
    }
    body[data-theme="mac"] .win-box,
    body[data-theme="mac"] .win-panel,
    body[data-theme="mac"] .property-sheet,
    body[data-theme="mac"] .draggable-window,
    body[data-theme="mac"] .category-page-window,
    body[data-theme="mac"] .modal-content,
    body[data-theme="mac"] .app-dropdown-menu,
    body[data-theme="mac"] #start-menu {
      background: #ffffff !important;
      color: #000000 !important;
      border: 1px solid #000000 !important;
      box-shadow: 2px 2px 0px #000000 !important;
      border-radius: 4px !important;
    }
    body[data-theme="mac"] .win-titlebar,
    body[data-theme="mac"] .category-page-titlebar,
    body[data-theme="mac"] .window-titlebar {
      background: repeating-linear-gradient(180deg, #ffffff 0px, #ffffff 1px, #000000 1px, #000000 2px) !important;
      color: #000000 !important;
      border-bottom: 1px solid #000000 !important;
      padding: 3px 6px !important;
    }
    body[data-theme="mac"] .win-titlebar span,
    body[data-theme="mac"] .category-page-titlebar span,
    body[data-theme="mac"] .window-titlebar span {
      background: #ffffff !important;
      padding: 0 6px !important;
      color: #000000 !important;
      font-weight: bold !important;
    }
    body[data-theme="mac"] .win-btn,
    body[data-theme="mac"] .btn,
    body[data-theme="mac"] .property-tab-btn,
    body[data-theme="mac"] .category-tab-btn {
      background: #ffffff !important;
      color: #000000 !important;
      border: 1px solid #000000 !important;
      border-radius: 4px !important;
      box-shadow: 1px 1px 0px #000000;
    }
    body[data-theme="mac"] .win-btn:hover,
    body[data-theme="mac"] .btn:hover,
    body[data-theme="mac"] .property-tab-btn.active,
    body[data-theme="mac"] .category-tab-btn.active {
      background: #000000 !important;
      color: #ffffff !important;
    }

    /* -------------------------------------------------------------
       THEME 4: WINDOWS 11 MODERN FLUENT (theme-win11)
       ------------------------------------------------------------- */
    body[data-theme="win11"],
    body[data-theme="win11"] #desktop-canvas {
      background: linear-gradient(135deg, #0f172a, #1e1b4b) !important;
      color: #f8fafc !important;
      font-family: 'Segoe UI', system-ui, sans-serif !important;
    }
    body[data-theme="win11"] #desktop-hud,
    body[data-theme="win11"] #desktop-taskbar,
    body[data-theme="win11"] .app-menubar {
      background: rgba(15, 23, 42, 0.92) !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
      border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
      backdrop-filter: blur(12px);
    }
    body[data-theme="win11"] .win-box,
    body[data-theme="win11"] .win-panel,
    body[data-theme="win11"] .property-sheet,
    body[data-theme="win11"] .draggable-window,
    body[data-theme="win11"] .category-page-window,
    body[data-theme="win11"] .modal-content,
    body[data-theme="win11"] .app-dropdown-menu,
    body[data-theme="win11"] #start-menu {
      background: rgba(30, 41, 59, 0.94) !important;
      color: #f8fafc !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      border-radius: 8px !important;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45) !important;
      backdrop-filter: blur(12px);
    }
    body[data-theme="win11"] .win-titlebar,
    body[data-theme="win11"] .category-page-titlebar,
    body[data-theme="win11"] .window-titlebar {
      background: rgba(15, 23, 42, 0.85) !important;
      color: #ffffff !important;
      border-top-left-radius: 7px !important;
      border-top-right-radius: 7px !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    body[data-theme="win11"] .win-btn,
    body[data-theme="win11"] .btn,
    body[data-theme="win11"] .property-tab-btn,
    body[data-theme="win11"] .category-tab-btn {
      background: #2563eb !important;
      color: #ffffff !important;
      border: none !important;
      border-radius: 6px !important;
      font-weight: 500;
    }
    body[data-theme="win11"] .win-btn:hover,
    body[data-theme="win11"] .btn:hover,
    body[data-theme="win11"] .property-tab-btn.active,
    body[data-theme="win11"] .category-tab-btn.active {
      background: #1d4ed8 !important;
    }
    body[data-theme="win11"] .win-sunken,
    body[data-theme="win11"] .form-control,
    body[data-theme="win11"] .form-select,
    body[data-theme="win11"] .bg-light,
    body[data-theme="win11"] .bg-white,
    body[data-theme="win11"] .hud-progress-sunken,
    body[data-theme="win11"] .card {
      background: rgba(15, 23, 42, 0.8) !important;
      color: #f8fafc !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      border-radius: 6px;
    }
    body[data-theme="win11"] .text-dark {
      color: #f8fafc !important;
    }
    body[data-theme="win11"] .text-muted {
      color: #94a3b8 !important;
    }


    /* CRT Scanline Screen Overlay */
    .crt-overlay {
      position: fixed;
      top: 0; left: 0; width: 100vw; height: 100vh;
      pointer-events: none;
      z-index: 99999;
      background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.28) 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;
      transition: opacity 0.3s ease;
    }
    body.crt-enabled .crt-overlay {
      opacity: 1;
    }

    /* -------------------------------------------------------------
       THEME 1: MS-DOS / CRT TERMINAL (theme-dos)
       ------------------------------------------------------------- */
    body[data-theme="dos"] {
      background: #050805 !important;
      font-family: 'Courier New', 'VT323', 'Lucida Console', monospace !important;
      color: #33ff33 !important;
    }
    body[data-theme="dos"] .desktop-container {
      background: #050805 !important;
    }
    body[data-theme="dos"] .win-box,
    body[data-theme="dos"] .window {
      background: #0c120c !important;
      color: #33ff33 !important;
      border: 2px solid #33ff33 !important;
      box-shadow: 0 0 10px rgba(51, 255, 51, 0.35) !important;
    }
    body[data-theme="dos"] .window-titlebar {
      background: #33ff33 !important;
      color: #000000 !important;
      font-weight: bold !important;
      border-bottom: 2px solid #33ff33 !important;
      font-family: 'Courier New', monospace !important;
    }
    body[data-theme="dos"] .window-titlebar span {
      color: #000000 !important;
      font-weight: 800 !important;
    }
    body[data-theme="dos"] .win-btn,
    body[data-theme="dos"] .btn {
      background: #050805 !important;
      color: #33ff33 !important;
      border: 1px solid #33ff33 !important;
      font-family: 'Courier New', monospace !important;
      text-shadow: 0 0 3px #33ff33;
    }
    body[data-theme="dos"] .win-btn:hover,
    body[data-theme="dos"] .btn:hover {
      background: #33ff33 !important;
      color: #000000 !important;
      text-shadow: none;
    }
    body[data-theme="dos"] .win-sunken,
    body[data-theme="dos"] .form-control,
    body[data-theme="dos"] .bg-light,
    body[data-theme="dos"] .bg-white {
      background: #020402 !important;
      color: #33ff33 !important;
      border: 1px solid #1b5e20 !important;
    }
    body[data-theme="dos"] .desktop-taskbar {
      background: #050805 !important;
      border-top: 2px solid #33ff33 !important;
      color: #33ff33 !important;
    }
    body[data-theme="dos"] .taskbar-start-btn {
      background: #33ff33 !important;
      color: #000000 !important;
      font-weight: bold !important;
    }
    body[data-theme="dos"] .hud-metric-panel {
      background: #080f08 !important;
      border: 1px solid #33ff33 !important;
    }
    body[data-theme="dos"] .hud-panel-title,
    body[data-theme="dos"] .text-dark,
    body[data-theme="dos"] .text-secondary,
    body[data-theme="dos"] .text-muted {
      color: #33ff33 !important;
    }
    body[data-theme="dos"] .badge {
      background: #050805 !important;
      color: #33ff33 !important;
      border: 1px solid #33ff33 !important;
    }

    /* -------------------------------------------------------------
       THEME 2: SECURICORE CYBERPUNK 2099 (theme-cyberpunk)
       ------------------------------------------------------------- */
    body[data-theme="cyberpunk"] {
      background: #070a12 radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%) !important;
      color: #e2e8f0 !important;
    }
    body[data-theme="cyberpunk"] .desktop-container {
      background: #070a12 radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%) !important;
    }
    body[data-theme="cyberpunk"] .win-box,
    body[data-theme="cyberpunk"] .window {
      background: rgba(13, 17, 23, 0.94) !important;
      color: #e2e8f0 !important;
      border: 1px solid #00f0ff !important;
      box-shadow: 0 0 15px rgba(0, 240, 255, 0.25), inset 0 0 15px rgba(0, 240, 255, 0.04) !important;
      backdrop-filter: blur(8px);
    }
    body[data-theme="cyberpunk"] .window-titlebar {
      background: linear-gradient(90deg, #00f0ff, #ff0055) !important;
      color: #000000 !important;
      font-weight: 800 !important;
      letter-spacing: 0.5px;
    }
    body[data-theme="cyberpunk"] .window-titlebar span {
      color: #000000 !important;
      font-weight: 900 !important;
    }
    body[data-theme="cyberpunk"] .win-btn,
    body[data-theme="cyberpunk"] .btn {
      background: rgba(0, 240, 255, 0.08) !important;
      color: #00f0ff !important;
      border: 1px solid #00f0ff !important;
      font-weight: bold;
    }
    body[data-theme="cyberpunk"] .win-btn:hover,
    body[data-theme="cyberpunk"] .btn:hover {
      background: #00f0ff !important;
      color: #000000 !important;
      box-shadow: 0 0 10px #00f0ff !important;
    }
    body[data-theme="cyberpunk"] .win-sunken,
    body[data-theme="cyberpunk"] .form-control,
    body[data-theme="cyberpunk"] .bg-light,
    body[data-theme="cyberpunk"] .bg-white {
      background: rgba(15, 23, 42, 0.90) !important;
      color: #e2e8f0 !important;
      border: 1px solid rgba(0, 240, 255, 0.3) !important;
    }
    body[data-theme="cyberpunk"] .desktop-taskbar {
      background: rgba(10, 15, 26, 0.95) !important;
      border-top: 1px solid #00f0ff !important;
    }
    body[data-theme="cyberpunk"] .taskbar-start-btn {
      background: linear-gradient(90deg, #ff0055, #00f0ff) !important;
      color: #ffffff !important;
      font-weight: 900 !important;
      border: none !important;
    }
    body[data-theme="cyberpunk"] .hud-metric-panel {
      background: rgba(15, 23, 42, 0.85) !important;
      border: 1px solid rgba(0, 240, 255, 0.4) !important;
      box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    }
    body[data-theme="cyberpunk"] .text-dark {
      color: #f1f5f9 !important;
    }
    body[data-theme="cyberpunk"] .text-muted {
      color: #94a3b8 !important;
    }

    /* -------------------------------------------------------------
       THEME 3: SYSTEM 7 CLASSIC MAC (theme-mac)
       ------------------------------------------------------------- */
    body[data-theme="mac"] {
      background: repeating-conic-gradient(#666666 0% 25%, #888888 0% 50%) 50% / 4px 4px !important;
      color: #000000 !important;
    }
    body[data-theme="mac"] .desktop-container {
      background: repeating-conic-gradient(#666666 0% 25%, #888888 0% 50%) 50% / 4px 4px !important;
    }
    body[data-theme="mac"] .win-box,
    body[data-theme="mac"] .window {
      background: #ffffff !important;
      color: #000000 !important;
      border: 1px solid #000000 !important;
      box-shadow: 2px 2px 0px #000000 !important;
      border-radius: 4px !important;
    }
    body[data-theme="mac"] .window-titlebar {
      background: repeating-linear-gradient(180deg, #ffffff 0px, #ffffff 1px, #000000 1px, #000000 2px) !important;
      color: #000000 !important;
      border-bottom: 1px solid #000000 !important;
      padding: 3px 6px !important;
    }
    body[data-theme="mac"] .window-titlebar span {
      background: #ffffff !important;
      padding: 0 6px !important;
      color: #000000 !important;
      font-weight: bold !important;
    }
    body[data-theme="mac"] .win-btn,
    body[data-theme="mac"] .btn {
      background: #ffffff !important;
      color: #000000 !important;
      border: 1px solid #000000 !important;
      border-radius: 4px !important;
      box-shadow: 1px 1px 0px #000000;
    }
    body[data-theme="mac"] .win-btn:hover,
    body[data-theme="mac"] .btn:hover {
      background: #000000 !important;
      color: #ffffff !important;
    }
    body[data-theme="mac"] .desktop-taskbar {
      background: #ffffff !important;
      border-top: 1px solid #000000 !important;
      color: #000000 !important;
    }
    body[data-theme="mac"] .taskbar-start-btn {
      background: #ffffff !important;
      color: #000000 !important;
      border: 1px solid #000000 !important;
    }

    /* -------------------------------------------------------------
       THEME 4: WINDOWS 11 MODERN FLUENT (theme-win11)
       ------------------------------------------------------------- */
    body[data-theme="win11"] {
      background: linear-gradient(135deg, #0f172a, #1e1b4b) !important;
      color: #f8fafc !important;
      font-family: 'Segoe UI', system-ui, sans-serif !important;
    }
    body[data-theme="win11"] .desktop-container {
      background: linear-gradient(135deg, #0f172a, #1e1b4b) !important;
    }
    body[data-theme="win11"] .win-box,
    body[data-theme="win11"] .window {
      background: rgba(30, 41, 59, 0.94) !important;
      color: #f8fafc !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      border-radius: 8px !important;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45) !important;
      backdrop-filter: blur(12px);
    }
    body[data-theme="win11"] .window-titlebar {
      background: rgba(15, 23, 42, 0.85) !important;
      color: #ffffff !important;
      border-top-left-radius: 7px !important;
      border-top-right-radius: 7px !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    body[data-theme="win11"] .win-btn,
    body[data-theme="win11"] .btn {
      background: #2563eb !important;
      color: #ffffff !important;
      border: none !important;
      border-radius: 6px !important;
      font-weight: 500;
    }
    body[data-theme="win11"] .win-btn:hover,
    body[data-theme="win11"] .btn:hover {
      background: #1d4ed8 !important;
    }
    body[data-theme="win11"] .win-sunken,
    body[data-theme="win11"] .form-control,
    body[data-theme="win11"] .bg-light,
    body[data-theme="win11"] .bg-white {
      background: rgba(15, 23, 42, 0.8) !important;
      color: #f8fafc !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      border-radius: 6px;
    }
    body[data-theme="win11"] .desktop-taskbar {
      background: rgba(15, 23, 42, 0.92) !important;
      border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
      backdrop-filter: blur(12px);
    }
    body[data-theme="win11"] .text-dark {
      color: #f8fafc !important;
    }
    body[data-theme="win11"] .text-muted {
      color: #94a3b8 !important;
    }

    /* Desktop Context Menu */
    #desktop-context-menu {
      position: absolute;
      width: 190px;
      z-index: 100000;
      display: none;
      box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    }


    /* =============================================================
       CATEGORY SIDEBAR & PROPERTY TAB THEME OVERRIDES
       ============================================================= */

    /* DOS Theme Navigation & Tabs */
    body[data-theme="dos"] .app-category-nav {
      background: #030603 !important;
      border-right: 2px solid #33ff33 !important;
    }
    body[data-theme="dos"] .app-category-btn {
      background: #050805 !important;
      color: #33ff33 !important;
      border: 1px solid #33ff33 !important;
      font-family: 'Courier New', monospace !important;
    }
    body[data-theme="dos"] .app-category-btn:hover:not(.active) {
      background: #0f2b0f !important;
    }
    body[data-theme="dos"] .app-category-btn.active {
      background: #33ff33 !important;
      color: #000000 !important;
      font-weight: bold !important;
      border: 1px solid #33ff33 !important;
      text-shadow: none !important;
    }
    body[data-theme="dos"] .app-category-btn.active span {
      color: #000000 !important;
    }
    body[data-theme="dos"] .app-category-pop-btn {
      background: #050805 !important;
      color: #33ff33 !important;
      border: 1px solid #33ff33 !important;
    }
    body[data-theme="dos"] .property-tabs-header {
      border-bottom: 2px solid #33ff33 !important;
    }
    body[data-theme="dos"] .property-tab-btn {
      background: #050805 !important;
      color: #33ff33 !important;
      border: 1px solid #33ff33 !important;
      border-bottom: none !important;
      font-family: 'Courier New', monospace !important;
    }
    body[data-theme="dos"] .property-tab-btn.active {
      background: #33ff33 !important;
      color: #000000 !important;
      font-weight: bold !important;
      border: 1px solid #33ff33 !important;
      border-bottom: 2px solid #33ff33 !important;
      text-shadow: none !important;
    }
    body[data-theme="dos"] .property-tab-body,
    body[data-theme="dos"] .category-pane,
    body[data-theme="dos"] .module-tab-content,
    body[data-theme="dos"] .flex-grow-1.p-2.bg-light {
      background: #080f08 !important;
      color: #33ff33 !important;
      border-color: #33ff33 !important;
    }

    /* Cyberpunk Theme Navigation & Tabs */
    body[data-theme="cyberpunk"] .app-category-nav {
      background: #070c18 !important;
      border-right: 1px solid rgba(0, 240, 255, 0.4) !important;
    }
    body[data-theme="cyberpunk"] .app-category-btn {
      background: rgba(15, 23, 42, 0.9) !important;
      color: #94a3b8 !important;
      border: 1px solid rgba(0, 240, 255, 0.25) !important;
      transition: all 0.2s ease;
    }
    body[data-theme="cyberpunk"] .app-category-btn span {
      color: #cbd5e1;
    }
    body[data-theme="cyberpunk"] .app-category-btn:hover:not(.active) {
      background: rgba(0, 240, 255, 0.12) !important;
      border-color: #00f0ff !important;
      color: #00f0ff !important;
    }
    body[data-theme="cyberpunk"] .app-category-btn:hover:not(.active) span {
      color: #00f0ff !important;
    }
    body[data-theme="cyberpunk"] .app-category-btn.active {
      background: linear-gradient(90deg, #00f0ff, #0284c7) !important;
      color: #000000 !important;
      font-weight: 900 !important;
      border: 1px solid #00f0ff !important;
      box-shadow: 0 0 12px rgba(0, 240, 255, 0.4) !important;
    }
    body[data-theme="cyberpunk"] .app-category-btn.active span {
      color: #000000 !important;
      font-weight: 900 !important;
    }
    body[data-theme="cyberpunk"] .app-category-pop-btn {
      background: rgba(0, 240, 255, 0.15) !important;
      color: #00f0ff !important;
      border: 1px solid #00f0ff !important;
    }
    body[data-theme="cyberpunk"] .property-tabs-header {
      border-bottom: 2px solid #00f0ff !important;
    }
    body[data-theme="cyberpunk"] .property-tab-btn {
      background: rgba(15, 23, 42, 0.85) !important;
      color: #94a3b8 !important;
      border: 1px solid rgba(0, 240, 255, 0.3) !important;
      border-bottom: none !important;
    }
    body[data-theme="cyberpunk"] .property-tab-btn:hover:not(.active) {
      background: rgba(0, 240, 255, 0.15) !important;
      color: #00f0ff !important;
    }
    body[data-theme="cyberpunk"] .property-tab-btn.active {
      background: #00f0ff !important;
      color: #000000 !important;
      font-weight: 900 !important;
      border: 1px solid #00f0ff !important;
      border-bottom: 2px solid #00f0ff !important;
      box-shadow: 0 0 12px rgba(0, 240, 255, 0.5) !important;
    }
    body[data-theme="cyberpunk"] .property-tab-body,
    body[data-theme="cyberpunk"] .category-pane,
    body[data-theme="cyberpunk"] .module-tab-content,
    body[data-theme="cyberpunk"] .flex-grow-1.p-2.bg-light {
      background: #090e1b !important;
      color: #e2e8f0 !important;
      border-color: rgba(0, 240, 255, 0.4) !important;
    }

    /* System 7 Mac Navigation & Tabs */
    body[data-theme="mac"] .app-category-nav {
      background: #ffffff !important;
      border-right: 1px solid #000000 !important;
    }
    body[data-theme="mac"] .app-category-btn {
      background: #ffffff !important;
      color: #000000 !important;
      border: 1px solid #000000 !important;
      border-radius: 3px !important;
    }
    body[data-theme="mac"] .app-category-btn.active {
      background: #000000 !important;
      color: #ffffff !important;
      font-weight: bold !important;
    }
    body[data-theme="mac"] .app-category-btn.active span {
      color: #ffffff !important;
    }
    body[data-theme="mac"] .property-tabs-header {
      border-bottom: 1px solid #000000 !important;
    }
    body[data-theme="mac"] .property-tab-btn {
      background: #ffffff !important;
      color: #000000 !important;
      border: 1px solid #000000 !important;
      border-bottom: none !important;
      border-radius: 4px 4px 0 0 !important;
    }
    body[data-theme="mac"] .property-tab-btn.active {
      background: #000000 !important;
      color: #ffffff !important;
      border-bottom: 1px solid #000000 !important;
    }
    body[data-theme="mac"] .property-tab-body,
    body[data-theme="mac"] .flex-grow-1.p-2.bg-light {
      background: #ffffff !important;
      color: #000000 !important;
      border-color: #000000 !important;
    }

    /* Windows 11 Modern Fluent Navigation & Tabs */
    body[data-theme="win11"] .app-category-nav {
      background: rgba(15, 23, 42, 0.95) !important;
      border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    body[data-theme="win11"] .app-category-btn {
      background: rgba(30, 41, 59, 0.7) !important;
      color: #94a3b8 !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      border-radius: 6px !important;
    }
    body[data-theme="win11"] .app-category-btn.active {
      background: #2563eb !important;
      color: #ffffff !important;
      font-weight: bold !important;
      border: none !important;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
    }
    body[data-theme="win11"] .app-category-btn.active span {
      color: #ffffff !important;
    }
    body[data-theme="win11"] .property-tabs-header {
      border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    body[data-theme="win11"] .property-tab-btn {
      background: rgba(30, 41, 59, 0.7) !important;
      color: #94a3b8 !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      border-bottom: none !important;
      border-radius: 6px 6px 0 0 !important;
    }
    body[data-theme="win11"] .property-tab-btn.active {
      background: #2563eb !important;
      color: #ffffff !important;
      border-bottom: 1px solid #2563eb !important;
    }
    body[data-theme="win11"] .property-tab-body,
    body[data-theme="win11"] .flex-grow-1.p-2.bg-light {
      background: rgba(15, 23, 42, 0.90) !important;
      color: #f8fafc !important;
      border-color: rgba(255, 255, 255, 0.1) !important;
    }

  
    /* Jingly Desktop Keyring Mascot Assistant */
    #jingly-container {
      position: fixed;
      bottom: 42px;
      right: 28px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      pointer-events: none;
      user-select: none;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }
    #jingly-bubble {
      pointer-events: auto;
      background-color: #ffffe1;
      border: 1px solid #000000;
      border-radius: 4px;
      padding: 8px 10px;
      max-width: 290px;
      box-shadow: 2px 3px 8px rgba(0,0,0,0.35);
      color: #000000;
      font-size: 0.76rem;
      line-height: 1.35;
      margin-bottom: 8px;
      position: relative;
      display: none;
      animation: jingly-pop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    #jingly-bubble::after {
      content: '';
      position: absolute;
      bottom: -7px;
      right: 30px;
      border-width: 7px 7px 0 7px;
      border-style: solid;
      border-color: #ffffe1 transparent transparent transparent;
      display: block;
      width: 0;
    }
    :root {
      --jingly-size: 74px;
    }
    #jingly-avatar {
      pointer-events: auto;
      width: var(--jingly-size, 74px);
      height: var(--jingly-size, 74px);
      cursor: pointer;
      filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.4));
      transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease;
    }
    #jingly-avatar:hover {
      transform: scale(1.10) rotate(-4deg);
    }
    #jingly-avatar:active {
      transform: scale(0.90) rotate(6deg);
    }
    @keyframes jingly-pop {
      0% { opacity: 0; transform: translateY(10px) scale(0.85); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes jingly-jingle {
      0% { transform: rotate(0deg); }
      25% { transform: rotate(-12deg) scale(1.1); }
      50% { transform: rotate(12deg) scale(1.1); }
      75% { transform: rotate(-6deg); }
      100% { transform: rotate(0deg); }
    }
    .jingle-anim {
      animation: jingly-jingle 0.45s ease-in-out;
    }


    /* Hardware Control Console & Industrial Matrix Styling */
    .command-console-bg {
      background: #2b2b2b;
      border: 3px solid #1a1a1a;
      box-shadow: inset 2px 2px 6px rgba(0,0,0,0.8), 2px 2px 0 #ffffff;
      color: #e0e0e0;
      font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    }
    .crt-screen-container {
      background: #081408;
      border: 2px solid #1c3b1c;
      border-radius: 4px;
      box-shadow: inset 0 0 10px rgba(0,255,65,0.25);
      color: #00ff41;
      font-family: "Courier New", Courier, monospace;
      padding: 8px;
    }
    .crt-screen-title {
      color: #a3ffb0;
      font-size: 0.75rem;
      letter-spacing: 1px;
      border-bottom: 1px dashed #1c521c;
      padding-bottom: 3px;
      margin-bottom: 6px;
      font-weight: bold;
    }
    .console-switch-bay {
      background: #383838;
      border: 2px solid #222;
      border-radius: 4px;
      padding: 6px 10px;
    }
    .led-indicator {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      display: inline-block;
      border: 1px solid #111;
    }
    .led-green {
      background: #00ff41;
      box-shadow: 0 0 6px #00ff41;
    }
    .led-red {
      background: #ff3333;
      box-shadow: 0 0 6px #ff3333;
    }
    .led-yellow {
      background: #ffcc00;
      box-shadow: 0 0 6px #ffcc00;
    }
    .led-off {
      background: #444444;
      box-shadow: none;
    }
    .tactical-action-btn {
      background: linear-gradient(180deg, #dfdfdf 0%, #bcbcbc 100%);
      border: 2px solid;
      border-color: #ffffff #555555 #555555 #ffffff;
      color: #111;
      font-weight: bold;
      padding: 6px 10px;
      border-radius: 3px;
      transition: all 0.1s ease;
      cursor: pointer;
    }
    .tactical-action-btn:hover:not(:disabled) {
      background: linear-gradient(180deg, #ffffff 0%, #cccccc 100%);
    }
    .tactical-action-btn:active:not(:disabled) {
      border-color: #555555 #ffffff #ffffff #555555;
      padding-top: 7px;
      padding-bottom: 5px;
    }
    .tactical-action-btn:disabled {
      background: #666;
      color: #999;
      border-color: #777 #444 #444 #777;
    }

    #win-parole {
      width: 1224px;
      max-width: 96vw;
      height: 650px;
      max-height: calc(100vh - 110px);
      min-height: 480px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    #win-parole-body {
      flex: 1 1 auto;
      min-height: 0;
      height: calc(100% - 30px);
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch;
    }

    /* ================= WINDOWS 98 DESKTOP SHORTCUTS ================= */
    .desktop-shortcuts-grid {
      position: absolute;
      top: 15px;
      left: 15px;
      display: flex;
      flex-direction: column;
      flex-wrap: wrap;
      align-content: flex-start;
      gap: 14px;
      height: calc(100% - 30px);
      z-index: 2; /* Layered behind draggable windows (z-index 1000+) */
      pointer-events: auto;
      user-select: none;
    }
    .desktop-icon {
      width: 76px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      cursor: pointer;
      padding: 4px 2px;
      border: 1px dotted transparent;
      border-radius: 2px;
      transition: background 0.1s ease;
    }
    .desktop-icon:hover {
      background: rgba(255, 255, 255, 0.15);
    }
    .desktop-icon.selected {
      border: 1px dotted #ffffff;
      background: rgba(0, 0, 128, 0.35);
    }
    .desktop-icon-img {
      font-size: 32px;
      line-height: 1;
      margin-bottom: 3px;
      filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.7));
    }
    .desktop-icon-label {
      font-family: 'Segoe UI', 'MS Sans Serif', Tahoma, sans-serif;
      font-size: 11px;
      color: #ffffff;
      text-shadow: 1px 1px 2px #000, 0 0 4px #000;
      word-break: break-word;
      line-height: 1.15;
      padding: 1px 3px;
    }
    .desktop-icon.selected .desktop-icon-label {
      background: #000080;
      color: #ffffff;
      text-shadow: none;
    }

    /* ================= RETRO WIN98 SCREENSAVER & AFK REPORT ================= */
    #screensaver-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: #000000;
      z-index: 999999;
      display: none;
      cursor: none;
    }
    /* ================= PANOPTIC98.EXE & DILEMMA STYLES ================= */
    .panopticon-terminal-screen {
      background: #020c04;
      border: 2px solid #00ff41;
      box-shadow: inset 0 0 15px rgba(0, 255, 65, 0.4), 0 0 10px rgba(0, 255, 65, 0.2);
      position: relative;
      overflow: hidden;
    }
    .panopticon-scanlines {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      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%;
      pointer-events: none;
      z-index: 5;
    }
    @keyframes siren-blink {
      0%, 100% { background-color: #800000; color: #ffffff; }
      50% { background-color: #ff0000; color: #ffff00; }
    }
    .siren-titlebar {
      animation: siren-blink 1.2s infinite;
    }
    .dilemma-card {
      border: 1px solid #c0c0c0;
      background: #ffffff;
      padding: 10px;
      border-radius: 3px;
      transition: transform 0.12s ease, box-shadow 0.12s ease;
    }
    .dilemma-card:hover {
      box-shadow: 2px 2px 8px rgba(0,0,0,0.25);
    }

    #screensaver-canvas {
      width: 100%;
      height: 100%;
      display: block;
    }
    .screensaver-wake-hint {
      position: absolute;
      bottom: 15px;
      right: 20px;
      color: rgba(255, 255, 255, 0.4);
      font-family: 'Courier New', monospace;
      font-size: 12px;
      pointer-events: none;
      text-shadow: 0 0 5px #00ff00;
    }

    /* ================= UNIFIED STATUS ALERT BANNER (INJUNCTIONS, RIOTS, BUFFS/DEBUFFS) ================= */
    .global-injunction-banner,
    .status-alert-banner {
      width: 100%;
      min-height: 28px;
      max-height: 38px;
      background: linear-gradient(90deg, #450a0a, #7f1d1d, #450a0a);
      border-top: 1px solid #ef4444;
      border-bottom: 2px solid #b91c1c;
      box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4), inset 0 0 8px rgba(0, 0, 0, 0.8);
      color: #ffffff;
      display: flex;
      align-items: center;
      position: relative;
      z-index: 1000;
      user-select: none;
      overflow: hidden;
      flex-shrink: 0;
      animation: injunctionGlow 2.5s infinite alternate ease-in-out;
    }
    @keyframes injunctionGlow {
      0% { box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3); }
      100% { box-shadow: 0 3px 12px rgba(239, 68, 68, 0.6); }
    }

    /* Buff / Debuff System Outlines & Glows (Item 5 Architecture) */
    .status-alert-banner.buff-alert {
      border-top: 2px solid #22c55e !important;
      border-bottom: 2px solid #16a34a !important;
      box-shadow: 0 4px 15px rgba(34, 197, 94, 0.45), inset 0 0 10px rgba(0, 0, 0, 0.8) !important;
    }
    .status-alert-banner.buff-alert .injunction-hazard-stripe {
      background: repeating-linear-gradient(-45deg, #16a34a, #16a34a 8px, #064e3b 8px, #064e3b 16px) !important;
    }
    .status-alert-banner.buff-alert .injunction-type-badge {
      background: #065f46 !important;
      color: #bbf7d0 !important;
      border-color: #22c55e !important;
      box-shadow: 0 0 6px rgba(34, 197, 94, 0.5) !important;
    }
    .status-alert-banner.buff-alert .injunction-timer-box {
      border-color: #22c55e !important;
    }
    .status-alert-banner.buff-alert .injunction-timer-label {
      color: #86efac !important;
    }
    .status-alert-banner.buff-alert .injunction-timer-val {
      color: #bbf7d0 !important;
      text-shadow: 0 0 8px #22c55e !important;
    }
    .status-alert-banner.buff-alert .injunction-stamp {
      border-color: #22c55e !important;
      color: #86efac !important;
      background: rgba(22, 163, 74, 0.35) !important;
      text-shadow: 0 0 6px rgba(34, 197, 94, 0.6) !important;
    }
    .status-alert-banner.buff-alert .injunction-subtext {
      color: #bbf7d0 !important;
    }

    .status-alert-banner.debuff-alert {
      border-top: 2px solid #ef4444 !important;
      border-bottom: 2px solid #b91c1c !important;
      box-shadow: 0 4px 15px rgba(239, 68, 68, 0.45), inset 0 0 10px rgba(0, 0, 0, 0.8) !important;
    }
    .status-alert-banner.debuff-alert .injunction-hazard-stripe {
      background: repeating-linear-gradient(-45deg, #dc2626, #dc2626 8px, #7f1d1d 8px, #7f1d1d 16px) !important;
    }
    .status-alert-banner.debuff-alert .injunction-type-badge {
      background: #b91c1c !important;
      color: #fef08a !important;
      border-color: #f87171 !important;
      box-shadow: 0 0 6px rgba(239, 68, 68, 0.5) !important;
    }
    .status-alert-banner.debuff-alert .injunction-timer-box {
      border-color: #ef4444 !important;
    }
    .status-alert-banner.debuff-alert .injunction-timer-label {
      color: #fca5a5 !important;
    }
    .status-alert-banner.debuff-alert .injunction-timer-val {
      color: #fef08a !important;
      text-shadow: 0 0 8px #f59e0b !important;
    }
    .status-alert-banner.debuff-alert .injunction-stamp {
      border-color: #f87171 !important;
      color: #fecaca !important;
      background: rgba(185, 28, 28, 0.35) !important;
      text-shadow: 0 0 6px rgba(248, 113, 113, 0.6) !important;
    }
    .status-alert-banner.debuff-alert .injunction-subtext {
      color: #fca5a5 !important;
    }

    /* Type Theme Gradients */
    .status-alert-banner.theme-emerald {
      background: linear-gradient(90deg, #022c22, #065f46, #022c22) !important;
    }
    .status-alert-banner.theme-cyan {
      background: linear-gradient(90deg, #082f49, #0369a1, #082f49) !important;
    }
    .status-alert-banner.theme-gold {
      background: linear-gradient(90deg, #451a03, #854d0e, #451a03) !important;
    }
    .status-alert-banner.theme-violet {
      background: linear-gradient(90deg, #1e1b4b, #3730a3, #1e1b4b) !important;
    }
    .status-alert-banner.theme-amber {
      background: linear-gradient(90deg, #431407, #9a3412, #431407) !important;
    }
    .status-alert-banner.theme-steel {
      background: linear-gradient(90deg, #1e293b, #334155, #1e293b) !important;
    }
    .status-alert-banner.theme-crimson {
      background: linear-gradient(90deg, #450a0a, #7f1d1d, #450a0a) !important;
    }

    /* Hazard stripes */
    .injunction-hazard-stripe {
      width: 24px;
      align-self: stretch;
      background: repeating-linear-gradient(
        -45deg,
        #dc2626,
        #dc2626 8px,
        #7f1d1d 8px,
        #7f1d1d 16px
      );
      flex-shrink: 0;
    }

    /* Banner Content Flex Layout */
    .injunction-content {
      flex: 1 1 auto;
      min-width: 0;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      padding: 2px 8px;
      gap: 8px;
    }

    .banner-top-bar {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      flex-shrink: 1;
    }
    .banner-badge-box {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      flex-shrink: 1;
    }
    .banner-action-box {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }
    .banner-info-bar {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      flex-grow: 1;
      overflow: hidden;
    }

    .injunction-gavel-icon {
      font-size: 1.05rem;
      line-height: 1;
      filter: drop-shadow(0 0 4px #ef4444);
      animation: gavelBounce 1.5s infinite ease-in-out;
      flex-shrink: 0;
    }
    @keyframes gavelBounce {
      0%, 100% { transform: rotate(0deg); }
      50% { transform: rotate(-15deg); }
    }
    .injunction-type-badge {
      background: #b91c1c;
      color: #fef08a;
      border: 1px solid #f87171;
      font-family: 'VT323', 'Courier New', monospace;
      font-size: 0.85rem;
      padding: 1px 5px;
      letter-spacing: 0.5px;
      font-weight: bold;
      text-transform: uppercase;
      box-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }
    .injunction-title {
      font-size: 0.76rem;
      font-weight: bold;
      color: #ffffff;
      letter-spacing: 0.5px;
      text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
      line-height: 1.2;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }
    .injunction-subtext {
      font-size: 0.70rem;
      color: #fca5a5;
      line-height: 1.2;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }
    .injunction-stat-pill {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 1px 5px;
      margin: 0 1px;
      border-radius: 2px;
      background: rgba(0, 0, 0, 0.65);
      border: 1px solid rgba(255, 255, 255, 0.18);
      font-family: 'Share Tech Mono', monospace;
      font-size: 0.70rem;
      white-space: nowrap;
    }
    .riot-freeze-notice {
      display: inline-block;
      margin-right: 4px;
      font-weight: 600;
    }
    .riot-stat-pills-wrap {
      display: inline-flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 2px;
    }

    .injunction-timer-box {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: rgba(0, 0, 0, 0.65);
      border: 1px solid #ef4444;
      padding: 1px 6px;
      border-radius: 2px;
    }
    .injunction-timer-label {
      font-size: 0.58rem;
      color: #fca5a5;
      font-weight: bold;
      letter-spacing: 0.5px;
      white-space: nowrap;
    }
    .injunction-timer-val {
      font-size: 0.88rem;
      color: #fef08a;
      font-weight: bold;
      letter-spacing: 0.5px;
      text-shadow: 0 0 6px #f59e0b;
      line-height: 1;
    }
    .injunction-stamp {
      border: 1px dashed #f87171;
      color: #fecaca;
      font-family: 'Share Tech Mono', monospace;
      font-size: 0.68rem;
      font-weight: bold;
      padding: 1px 5px;
      letter-spacing: 1px;
      transform: rotate(-2deg);
      text-shadow: 0 0 6px rgba(248, 113, 113, 0.6);
      background: rgba(185, 28, 28, 0.35);
      white-space: nowrap;
    }

    /* Dynamic Active Buff & Debuff Status Capsule Stack */
    #status-banners-dynamic-stack {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 5px;
      padding: 2px 8px;
      background: #0f172a;
      border-bottom: 1px solid #334155;
      max-height: 64px;
      overflow-y: auto;
      z-index: 999;
      flex-shrink: 0;
    }
    #status-banners-dynamic-stack:empty {
      display: none !important;
      padding: 0 !important;
      border-bottom: none !important;
    }

    .status-alert-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 1px 7px;
      height: 23px;
      font-size: 0.72rem;
      border-radius: 3px;
      color: #ffffff;
      background: #1e293b;
      border: 1px solid #475569;
      box-shadow: 0 1px 3px rgba(0,0,0,0.5);
      user-select: none;
      flex-shrink: 0;
      line-height: 1.2;
      transition: transform 0.1s ease;
    }
    .status-alert-chip:hover {
      transform: translateY(-1px);
    }
    .status-alert-chip.buff-chip {
      background: linear-gradient(90deg, #064e3b, #065f46);
      border-color: #22c55e;
      color: #bbf7d0;
      box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
    }
    .status-alert-chip.debuff-chip {
      background: linear-gradient(90deg, #7f1d1d, #991b1b);
      border-color: #ef4444;
      color: #fecaca;
      box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
    }
    .status-alert-chip.theme-emerald {
      background: linear-gradient(90deg, #022c22, #065f46) !important;
      border-color: #10b981 !important;
    }
    .status-alert-chip.theme-cyan {
      background: linear-gradient(90deg, #082f49, #0369a1) !important;
      border-color: #06b6d4 !important;
    }
    .status-alert-chip.theme-gold {
      background: linear-gradient(90deg, #451a03, #854d0e) !important;
      border-color: #eab308 !important;
    }
    .status-alert-chip.theme-violet {
      background: linear-gradient(90deg, #1e1b4b, #3730a3) !important;
      border-color: #8b5cf6 !important;
    }
    .status-alert-chip.theme-amber {
      background: linear-gradient(90deg, #431407, #9a3412) !important;
      border-color: #f97316 !important;
    }
    .status-alert-chip.theme-steel {
      background: linear-gradient(90deg, #1e293b, #334155) !important;
      border-color: #94a3b8 !important;
    }
    .status-alert-chip.theme-crimson {
      background: linear-gradient(90deg, #450a0a, #7f1d1d) !important;
      border-color: #f43f5e !important;
    }
    .status-chip-icon {
      font-size: 0.80rem;
    }
    .status-chip-badge {
      font-weight: bold;
      font-family: 'Share Tech Mono', monospace;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-size: 0.68rem;
    }
    .status-chip-title {
      font-weight: 600;
      max-width: 200px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .status-chip-timer {
      background: rgba(0, 0, 0, 0.45);
      padding: 0 4px;
      border-radius: 2px;
      font-weight: bold;
      font-size: 0.68rem;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .status-chip-close {
      background: none;
      border: none;
      color: inherit;
      opacity: 0.7;
      cursor: pointer;
      padding: 0 2px;
      font-size: 0.80rem;
      line-height: 1;
    }
    .status-chip-close:hover {
      opacity: 1;
      font-weight: bold;
    }

    /* Variant Themes */
    .global-injunction-banner.injunction-theme-ethics {
      background: linear-gradient(90deg, #451a03, #78350f, #451a03);
      border-top-color: #f59e0b;
      border-bottom-color: #d97706;
      box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    }
    .global-injunction-banner.injunction-theme-ethics .injunction-hazard-stripe {
      background: repeating-linear-gradient(-45deg, #f59e0b, #f59e0b 8px, #78350f 8px, #78350f 16px);
    }
    .global-injunction-banner.injunction-theme-ethics .injunction-type-badge {
      background: #78350f;
      color: #fef08a;
      border-color: #fbbf24;
    }
    .global-injunction-banner.injunction-theme-ethics .injunction-subtext {
      color: #fde68a;
    }
    .global-injunction-banner.injunction-theme-ethics .injunction-stamp {
      border-color: #fbbf24;
      color: #fef3c7;
      background: rgba(180, 83, 9, 0.35);
    }

    /* Riot Crisis Banner Theme */
    .riot-emergency-banner {
      background: linear-gradient(90deg, #420000, #800000, #420000) !important;
      border-top: 2px solid #ff3333 !important;
      border-bottom: 2px solid #ff0000 !important;
      animation: riotAlertPulse 1.2s infinite alternate ease-in-out !important;
    }
    .riot-emergency-banner .injunction-hazard-stripe {
      background: repeating-linear-gradient(45deg, #8b0000, #8b0000 10px, #ffcc00 10px, #ffcc00 20px) !important;
    }
    @keyframes riotAlertPulse {
      0% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.4); }
      100% { box-shadow: 0 0 25px rgba(255, 50, 50, 0.85); }
    }

    /* Responsive Design for Tablets & Mobile (<= 768px) */
    @media (max-width: 768px) {
      .global-injunction-banner,
      .status-alert-banner {
        min-height: 52px;
      }
      .injunction-hazard-stripe {
        width: 8px !important;
      }
      .injunction-content {
        padding: 4px 8px !important;
        gap: 2px !important;
      }
      .banner-top-bar {
        gap: 6px !important;
      }
      .injunction-type-badge {
        font-size: 0.85rem !important;
        letter-spacing: 0.5px !important;
        padding: 1px 4px !important;
      }
      .injunction-timer-box {
        padding: 1px 6px !important;
      }
      .injunction-timer-val {
        font-size: 1.10rem !important;
      }
      .injunction-stamp {
        font-size: 0.65rem !important;
        padding: 1px 5px !important;
        letter-spacing: 1px !important;
      }
      .injunction-title {
        font-size: 0.78rem !important;
      }
      .injunction-subtext {
        font-size: 0.70rem !important;
      }
      .injunction-stat-pill {
        font-size: 0.68rem !important;
        padding: 1px 4px !important;
      }
    }

    /* Ultra Compact Mobile (<= 480px) */
    @media (max-width: 480px) {
      .injunction-hazard-stripe {
        width: 5px !important;
      }
      .injunction-content {
        padding: 3px 5px !important;
      }
      .injunction-gavel-icon {
        font-size: 1.15rem !important;
      }
      .injunction-type-badge {
        font-size: 0.78rem !important;
        max-width: 140px !important;
      }
      .injunction-timer-label {
        display: none !important; /* Save space so timer val is huge */
      }
      .injunction-timer-val {
        font-size: 1.15rem !important;
      }
      .injunction-stamp {
        font-size: 0.60rem !important;
        padding: 1px 3px !important;
      }
      .injunction-title {
        font-size: 0.74rem !important;
      }
      .injunction-subtext {
        font-size: 0.68rem !important;
      }
      .riot-freeze-notice {
        display: block !important;
        margin-bottom: 2px !important;
      }
    }

    /* ================= MANUAL INMATE PROCESSING STATION ALERT PULSE ================= */
    @keyframes pulseAmber {
      0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
        border-color: #d97706;
      }
      50% {
        box-shadow: 0 0 10px 3px rgba(245, 158, 11, 0.85);
        border-color: #f59e0b;
        background-color: #fef3c7;
      }
      100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
        border-color: #d97706;
      }
    }

    .pulse-amber {
      animation: pulseAmber 1.8s infinite ease-in-out !important;
      font-weight: bold;
    }

    @keyframes tutorialBeaconGlow {
      0% {
        box-shadow: 0 0 0 0 rgba(255, 170, 0, 0.85), inset 0 0 4px rgba(255, 200, 0, 0.6);
        outline: 2px solid #ffaa00;
        outline-offset: 1px;
      }
      50% {
        box-shadow: 0 0 14px 4px rgba(255, 170, 0, 0.95), inset 0 0 8px rgba(255, 220, 50, 0.9);
        outline: 3px solid #ffd700;
        outline-offset: 3px;
      }
      100% {
        box-shadow: 0 0 0 0 rgba(255, 170, 0, 0);
        outline: 2px solid #ffaa00;
        outline-offset: 1px;
      }
    }

    .tutorial-beacon-pulse {
      animation: tutorialBeaconGlow 1.2s infinite ease-in-out !important;
      position: relative;
      z-index: 99 !important;
    }

    /* =========================================================================
       UNIVERSAL RETRO OS-THEMED DYNAMIC TOOLTIP STYLES
       ========================================================================= */
    .retro-os-tooltip {
      background-color: #ffffe1;
      color: #000000;
      border: 1px solid #000000;
      box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.55);
      font-family: Tahoma, "MS Sans Serif", "Segoe UI", Arial, sans-serif;
      font-size: 11px;
      line-height: 1.35;
      padding: 5px 8px;
      max-width: 340px;
      pointer-events: none;
      user-select: none;
      white-space: normal;
      word-wrap: break-word;
      transition: none !important;
    }
    .retro-os-tooltip hr {
      margin: 4px 0;
      border: 0;
      border-top: 1px solid #a0a0a0;
    }
    .retro-os-tooltip .tooltip-header {
      font-weight: bold;
      margin-bottom: 2px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .retro-os-tooltip .tooltip-metric {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      font-family: inherit;
    }

    /* MS-DOS CRT Phosphor Green Theme */
    body[data-theme="dos"] .retro-os-tooltip {
      background-color: #001100 !important;
      color: #00ff66 !important;
      border: 1px solid #00ff66 !important;
      box-shadow: 0 0 10px rgba(0, 255, 102, 0.45) !important;
      font-family: "Courier New", Courier, monospace !important;
      font-size: 11px !important;
    }
    body[data-theme="dos"] .retro-os-tooltip hr {
      border-top: 1px dashed #00aa44 !important;
    }

    /* Cyberpunk Synthwave Neon Theme */
    body[data-theme="cyberpunk"] .retro-os-tooltip {
      background-color: #0d0221 !important;
      color: #00f0ff !important;
      border: 1px solid #00f0ff !important;
      box-shadow: 0 0 12px rgba(255, 0, 127, 0.6) !important;
      font-family: "Courier New", Courier, monospace !important;
      font-size: 11px !important;
      text-shadow: 0 0 3px rgba(0, 240, 255, 0.6) !important;
    }
    body[data-theme="cyberpunk"] .retro-os-tooltip hr {
      border-top: 1px solid #ff007f !important;
    }

    /* Mac System 7 Platinum Theme */
    body[data-theme="mac"] .retro-os-tooltip {
      background-color: #dddddd !important;
      color: #000000 !important;
      border: 1px solid #444444 !important;
      box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.35) !important;
      font-family: "Chicago", "Geneva", "Lucida Grande", sans-serif !important;
      font-size: 11px !important;
    }
    body[data-theme="mac"] .retro-os-tooltip hr {
      border-top: 1px solid #888888 !important;
    }

    /* Windows 11 Fluent Acrylic Dark Theme */
    body[data-theme="win11"] .retro-os-tooltip {
      background-color: rgba(30, 30, 30, 0.94) !important;
      backdrop-filter: blur(16px) !important;
      -webkit-backdrop-filter: blur(16px) !important;
      color: #f3f4f6 !important;
      border: 1px solid rgba(255, 255, 255, 0.18) !important;
      border-radius: 6px !important;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
      font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif !important;
      font-size: 12px !important;
      padding: 7px 11px !important;
    }
    body[data-theme="win11"] .retro-os-tooltip hr {
      border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    /* Developer Dispatch & Warden Memo Styling */
    .dev-dispatch-card {
      background: #fffdf5;
      border: 2px solid #d4c5a9;
      box-shadow: inset 0 0 10px rgba(180, 160, 120, 0.15);
      border-radius: 4px;
      color: #2c251d;
    }

    /* -------------------------------------------------------------
       SLOTS98.EXE // CASINO CABINET & 5-REEL SPECULATION STYLING
       ------------------------------------------------------------- */
    .slot-machine-wrapper {
      background: #1e222d;
      border: 3px inset #3a4155;
      color: #e2e8f0;
      font-family: "MS Sans Serif", Tahoma, sans-serif;
    }
    .slot-marquee-header {
      background: linear-gradient(180deg, #11141c 0%, #0a0d14 100%);
      border: 2px outset #525f7f;
      padding: 6px 10px;
      border-radius: 2px;
      box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
    }
    .slot-neon-title {
      color: #fbbf24;
      font-weight: 900;
      font-size: 0.95rem;
      letter-spacing: 1px;
      text-shadow: 0 0 6px rgba(251, 191, 36, 0.6), 0 0 12px rgba(245, 158, 11, 0.4);
    }
    .slot-cabinet-display {
      background: radial-gradient(circle at center, #1b2838 0%, #0b1119 100%);
      border: 3px inset #334155;
      border-radius: 4px;
      box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.9);
    }
    .slot-reel-chassis {
      background: linear-gradient(180deg, #64748b 0%, #334155 40%, #1e293b 100%);
      border: 2px outset #94a3b8;
      border-radius: 4px;
      padding: 4px 2px;
      box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    }
    .slot-reel-bezel {
      background: #0f172a;
      border: 2px inset #1e293b;
      border-radius: 3px;
      padding: 3px;
    }
    .slot-reel-window {
      background: linear-gradient(180deg, #9ca3af 0%, #f3f4f6 20%, #ffffff 50%, #f3f4f6 80%, #9ca3af 100%);
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 2px;
      box-shadow: inset 0 6px 8px rgba(0, 0, 0, 0.4), inset 0 -6px 8px rgba(0, 0, 0, 0.4);
      overflow: hidden;
    }
    .slot-reel-val {
      font-size: 2.2rem;
      line-height: 1;
      display: inline-block;
      user-select: none;
      filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
      transition: transform 0.08s ease;
    }
    .reel-lock-flash {
      animation: reelThudFlash 0.25s ease-out;
    }
    @keyframes reelThudFlash {
      0% { transform: scale(1.35); filter: drop-shadow(0 0 10px #fbbf24) brightness(1.6); }
      50% { transform: scale(0.92); filter: brightness(1.2); }
      100% { transform: scale(1.0); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
    }
    .slot-reel-tag {
      font-size: 0.62rem;
      font-family: monospace;
      color: #94a3b8;
      margin-top: 3px;
      letter-spacing: 1px;
    }
    .slot-annunciator-banner {
      background: #020617;
      border: 2px inset #1e293b;
      border-radius: 2px;
      min-height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .slot-banner-text {
      font-family: "Courier New", Courier, monospace;
      font-weight: bold;
      font-size: 0.80rem;
      letter-spacing: 1px;
    }
    .slot-banner-win {
      color: #4ade80 !important;
      text-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
    }
    .slot-controls-deck {
      background: #232a3b;
      border: 2px outset #475569;
      border-radius: 2px;
    }
    .slot-spin-lever {
      background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%) !important;
      color: #ffffff !important;
      border: 3px outset #f87171 !important;
      font-size: 0.95rem !important;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(248, 113, 113, 0.6) !important;
      box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35) !important;
      cursor: pointer;
      letter-spacing: 0.5px;
    }
    .slot-spin-lever:hover:not(:disabled) {
      background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%) !important;
      box-shadow: 0 6px 14px rgba(239, 68, 68, 0.55) !important;
    }
    .slot-spin-lever:active:not(:disabled) {
      border-style: inset !important;
      transform: translateY(1px);
    }
    .slot-spin-lever:disabled {
      background: #475569 !important;
      color: #94a3b8 !important;
      border: 2px outset #64748b !important;
      box-shadow: none !important;
      cursor: not-allowed;
    }
    .btn-chip {
      background: #334155;
      border: 2px outset #64748b;
      color: #e2e8f0;
      font-weight: bold;
      font-size: 0.75rem;
      border-radius: 3px;
    }
    .btn-chip:hover:not(:disabled) {
      background: #475569;
      color: #ffffff;
    }
    .btn-chip-max {
      border-color: #ef4444 !important;
    }
    .slot-payout-table td {
      padding: 2px 4px !important;
    }
    .reel-suspense-glow {
      animation: suspensePulse 0.16s infinite alternate !important;
      border-color: #f59e0b !important;
      box-shadow: 0 0 16px rgba(245, 158, 11, 0.9), inset 0 0 8px rgba(239, 68, 68, 0.7) !important;
    }
    @keyframes suspensePulse {
      0% { transform: scale(1.0); box-shadow: 0 0 8px #f59e0b; }
      100% { transform: scale(1.04); box-shadow: 0 0 20px #ef4444, inset 0 0 10px #fbbf24; }
    }
    .reel-winning-symbol {
      animation: winningSymbolPulse 0.5s infinite alternate;
    }
    .reel-winning-symbol .slot-reel-window {
      background: linear-gradient(180deg, #fef08a 0%, #fef9c3 30%, #ffffff 50%, #fef9c3 70%, #fef08a 100%) !important;
      box-shadow: inset 0 0 12px rgba(234, 179, 8, 0.9), 0 0 10px rgba(34, 197, 94, 0.7) !important;
    }
    @keyframes winningSymbolPulse {
      0% { transform: scale(1.0); }
      100% { transform: scale(1.12); filter: drop-shadow(0 0 8px #eab308); }
    }
    .coin-particle {
      position: absolute;
      pointer-events: none;
      font-size: 1.4rem;
      animation: coinBurst 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
      z-index: 100;
      user-select: none;
    }
    @keyframes coinBurst {
      0% { opacity: 1; transform: translate(0, 0) scale(0.6) rotate(0deg); }
      50% { opacity: 1; transform: translate(var(--tx, 0px), var(--ty, -60px)) scale(1.3) rotate(180deg); }
      100% { opacity: 0; transform: translate(var(--tx, 0px), var(--ty-drop, 80px)) scale(0.9) rotate(360deg); }
    }

    /* ================= BANKING98.EXE WINDOWS 98 FINANCIAL STYLING ================= */
    .bank-desk-shell {
      background: #c0c0c0;
      color: #000000;
      font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
      font-size: 0.76rem;
    }
    .bank-menubar {
      background: #c0c0c0;
      border-bottom: 1px solid #808080;
      padding: 1px 4px;
      font-size: 0.74rem;
      user-select: none;
    }
    .bank-menu-item {
      padding: 2px 7px;
      cursor: pointer;
      display: inline-block;
    }
    .bank-menu-item:hover {
      background: #000080;
      color: #ffffff;
    }
    .bank-toolbar {
      background: #c0c0c0;
      border-top: 1px solid #ffffff;
      border-bottom: 2px groove #ffffff;
      padding: 3px 6px;
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: wrap;
    }
    .bank-tool-btn {
      background: #c0c0c0;
      border: 2px outset #ffffff;
      padding: 2px 7px;
      font-size: 0.72rem;
      font-weight: 500;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .bank-tool-btn:hover {
      background: #d4d0c8;
    }
    .bank-tool-btn:active {
      border: 2px inset #ffffff;
      background: #b0b0b0;
    }
    .bank-fieldset {
      border: 2px groove #ffffff !important;
      background: #d4d0c8;
      padding: 8px 10px 10px 10px !important;
      margin-bottom: 8px !important;
      box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5);
    }
    .bank-fieldset legend {
      font-size: 0.75rem !important;
      font-weight: bold;
      color: #000080;
      padding: 0 5px;
      margin-bottom: 0;
      float: none;
      width: auto;
      letter-spacing: 0.3px;
    }
    .bank-sunken-panel {
      background: #ffffff;
      border: 2px inset #ffffff;
      padding: 6px;
    }
    .bank-sunken-dark {
      background: #000000;
      color: #00ff41;
      border: 2px inset #ffffff;
      padding: 6px;
      font-family: 'Courier New', monospace;
    }
    .bank-rating-badge {
      padding: 2px 8px;
      font-family: 'Courier New', monospace;
      font-weight: bold;
      border: 1px inset #808080;
      letter-spacing: 0.5px;
    }
    .credit-tier-aaa { background: #000080; color: #facc15; text-shadow: 0 0 5px rgba(250, 204, 21, 0.6); }
    .credit-tier-aa  { background: #000080; color: #38bdf8; }
    .credit-tier-a   { background: #000080; color: #4ade80; }
    .credit-tier-b   { background: #000080; color: #ffffff; }
    .credit-tier-c   { background: #804000; color: #ffedd5; }
    .credit-tier-d   { background: #800000; color: #ffffff; }

    /* Vintage Certificate of Deposit & Bearer Bond Cards */
    .bank-certificate-card {
      background: #fbfdf9;
      border: 3px double #1b5e20;
      padding: 8px;
      position: relative;
      box-shadow: 1px 1px 0 #ffffff, inset 0 0 6px rgba(27, 94, 32, 0.08);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;
    }
    .bank-certificate-card:hover {
      border-color: #0d3810;
      box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15), inset 0 0 8px rgba(27, 94, 32, 0.12);
    }
    .bank-certificate-serial {
      font-family: 'Courier New', monospace;
      font-size: 0.64rem;
      color: #2e7d32;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }
    .bank-certificate-title {
      font-weight: bold;
      color: #1b5e20;
      font-size: 0.76rem;
      line-height: 1.2;
      margin-top: 2px;
    }
    .bank-certificate-yield {
      font-family: 'Courier New', monospace;
      font-size: 0.95rem;
      font-weight: 900;
      color: #0d531a;
      letter-spacing: 0.5px;
    }
    .bank-certificate-seal {
      font-size: 0.60rem;
      color: #555;
      font-style: italic;
      border-top: 1px dashed #a5d6a7;
      padding-top: 4px;
      margin-top: 4px;
    }
    .bank-deposit-btn {
      background: #c0c0c0;
      border: 2px outset #ffffff;
      font-size: 0.68rem;
      padding: 2px 4px;
      font-family: 'Segoe UI', Tahoma, sans-serif;
      cursor: pointer;
    }
    .bank-deposit-btn:hover:not(:disabled) {
      background: #d4d0c8;
    }
    .bank-deposit-btn:active:not(:disabled) {
      border: 2px inset #ffffff;
    }
    .bank-deposit-btn:disabled {
      color: #888888;
      cursor: not-allowed;
    }

    /* Active Maturing Bond Item */
    .bank-active-bond-item {
      background: #fdfefe;
      border: 2px inset #ffffff;
      padding: 6px 8px;
      margin-bottom: 4px;
      box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.08);
    }
    .bank-active-bond-item.is-matured {
      background: #f0fff4;
      border-color: #2e7d32;
      border-style: solid;
      border-width: 2px;
    }
    .bank-claim-btn {
      border: 2px outset #ffffff;
      background: #c0c0c0;
      padding: 4px 10px;
      font-weight: bold;
      font-size: 0.74rem;
      cursor: pointer;
    }
    .bank-claim-btn.ready {
      background: #2e7d32;
      color: #ffffff;
      border-color: #81c784;
      animation: hudPulseDeficit 1.8s ease-in-out infinite;
    }
    .bank-claim-btn.ready:hover {
      background: #1b5e20;
    }

    /* Municipal Loan Vouchers */
    .bank-loan-voucher {
      background: #fffdf5;
      border: 2px groove #a09070;
      padding: 8px;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.06);
    }
    .bank-loan-voucher:hover {
      border-color: #705030;
      background: #fffaea;
    }
    .bank-voucher-form-id {
      font-family: 'Courier New', monospace;
      font-size: 0.64rem;
      color: #8c6d3b;
      font-weight: bold;
    }

    /* Active Debt Warning Box */
    .bank-active-debt-banner {
      background: #fff0f0;
      border: 2px solid #c62828;
      box-shadow: inset 0 0 6px rgba(198, 40, 40, 0.12);
      padding: 8px 10px;
      margin-bottom: 6px;
    }

    /* Continuous Green-Bar Tractor Feed Computer Paper Ledger */
    .bank-tractor-ledger {
      background: #ffffff;
      border: 2px inset #ffffff;
      font-family: 'Courier New', Courier, monospace;
      font-size: 0.72rem;
      height: 105px;
      overflow-y: auto;
      background-image: repeating-linear-gradient(
        #f4fbf4,
        #f4fbf4 18px,
        #ffffff 18px,
        #ffffff 36px
      );
      line-height: 18px;
      box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.15);
    }
    .bank-ledger-row {
      display: flex;
      justify-content: space-between;
      padding: 0 6px;
      height: 18px;
      align-items: center;
      border-bottom: 1px dotted rgba(46, 125, 50, 0.2);
    }
    .bank-ledger-credit {
      color: #1b5e20;
      font-weight: bold;
    }
    .bank-ledger-debit {
      color: #b71c1c;
      font-weight: bold;
    }

    /* Windows 98 Sunken Status Bar */
    .bank-statusbar {
      background: #c0c0c0;
      border-top: 1px solid #808080;
      padding: 2px 4px;
      display: flex;
      gap: 4px;
      font-size: 0.70rem;
      user-select: none;
    }
    .bank-statusbar-pane {
      background: #c0c0c0;
      border: 1px inset #ffffff;
      padding: 1px 6px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* HUD Planetary Supply Mini-Meters */
    .hud-supply-meter-card {
      user-select: none;
      box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.05);
    }
    .hud-supply-meter-card:hover {
      filter: brightness(1.2);
      border-color: #3b82f6 !important;
    }
    @keyframes hudPulseDeficit {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.55; transform: scale(0.96); }
    }
    .animate-pulse {
      animation: hudPulseDeficit 1.4s ease-in-out infinite;
      display: inline-block;
    }

    /* ================= README.TXT & DEVELOPER DISPATCH MODAL ================= */
    .changelog-modal-box {
      width: 680px;
      max-width: 95vw;
      box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.7);
    }
    .changelog-tab-btn {
      font-size: 0.76rem;
      padding: 3px 10px;
      margin-right: 2px;
      white-space: nowrap;
    }
    .changelog-tab-body {
      min-height: 340px;
      max-height: 520px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    /* Developer Dispatch Card Desktop & Default */
    .dev-dispatch-card {
      background: #fffdf5;
      border: 2px solid #d4c5a9;
      border-radius: 4px;
      padding: 16px;
      box-shadow: inset 0 0 12px rgba(180, 160, 120, 0.15), 0 2px 5px rgba(0,0,0,0.05);
      position: relative;
    }
    .dev-dispatch-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      border-bottom: 2px solid #d4c5a9;
      padding-bottom: 8px;
      margin-bottom: 10px;
      gap: 8px;
    }
    .dev-dispatch-brand {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .dev-dispatch-seal {
      font-size: 2rem;
      line-height: 1;
    }
    .dev-dispatch-title {
      font-weight: bold;
      text-transform: uppercase;
      font-family: 'Share Tech Mono', monospace, sans-serif;
      letter-spacing: 1px;
      color: #5c4d32;
      font-size: 0.95rem;
      line-height: 1.2;
    }
    .dev-dispatch-subtitle {
      color: #786644;
      font-size: 0.72rem;
      margin-top: 2px;
    }
    .dev-dispatch-badge {
      background: #8b7355;
      color: #fff;
      font-size: 0.65rem;
      font-family: monospace;
      padding: 2px 6px;
      border-radius: 2px;
      letter-spacing: 0.5px;
      white-space: nowrap;
    }
    .dev-dispatch-meta {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 6px;
      font-size: 0.72rem;
      color: #786644;
      font-family: 'Courier New', monospace;
      border-bottom: 1px dashed #d4c5a9;
      padding-bottom: 6px;
      margin-bottom: 12px;
    }
    .dev-dispatch-meta-item {
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .dev-dispatch-body {
      padding: 4px 6px;
      margin-bottom: 14px;
      font-family: 'Georgia', serif;
      font-size: 0.86rem;
      line-height: 1.65;
      color: #2c251d;
      white-space: pre-line;
    }
    .dev-dispatch-footer {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      border-top: 2px solid #d4c5a9;
      padding-top: 10px;
      gap: 12px;
    }
    .dev-dispatch-signature {
      font-weight: bold;
      font-family: 'Share Tech Mono', monospace;
      color: #4a3d28;
      font-size: 0.85rem;
    }
    .dev-dispatch-corp {
      color: #8c7b64;
      font-size: 0.68rem;
      margin-top: 2px;
    }
    .dev-dispatch-verified-stamp {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border: 2px dashed #b91c1c;
      color: #b91c1c;
      padding: 3px 8px;
      border-radius: 3px;
      transform: rotate(-3deg);
      user-select: none;
      font-family: 'Share Tech Mono', monospace;
      font-size: 0.65rem;
      font-weight: bold;
      letter-spacing: 1px;
    }
    .dev-dispatch-verified-stamp small {
      font-size: 0.55rem;
      letter-spacing: 0.5px;
    }

    /* Responsive Mobile Styles for Changelog & Developer Dispatch (<= 768px) */
    @media (max-width: 768px) {
      .changelog-modal-box {
        width: 96vw !important;
        max-width: 96vw !important;
        height: 94vh !important;
        max-height: 94vh !important;
        display: flex !important;
        flex-direction: column !important;
        margin: auto !important;
        border: 2px outset #dfdfdf !important;
      }
      .changelog-modal-content {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        padding: 8px !important;
        overflow: hidden !important;
      }
      .changelog-tabs-bar {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        padding-bottom: 6px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
        flex-shrink: 0;
      }
      .changelog-tabs-bar::-webkit-scrollbar {
        display: none;
      }
      .changelog-tab-btn {
        flex: 0 0 auto !important;
        font-size: 0.78rem !important;
        padding: 6px 12px !important;
        min-height: 36px !important;
        touch-action: manipulation;
      }
      .changelog-tab-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 10px !important;
        margin-bottom: 8px !important;
      }
      .changelog-footer-bar {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
        padding-top: 6px !important;
        flex-shrink: 0;
      }
      .changelog-footer-actions {
        display: flex !important;
        width: 100% !important;
        gap: 6px !important;
      }
      .changelog-footer-actions .win-btn,
      .changelog-footer-actions .btn {
        flex: 1 1 50% !important;
        min-height: 38px !important;
        font-size: 0.78rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
      }

      /* Mobile Developer Dispatch Card */
      .dev-dispatch-card {
        padding: 12px 10px !important;
        margin: 0 !important;
        border-width: 1.5px !important;
      }
      .dev-dispatch-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
      }
      .dev-dispatch-brand {
        gap: 8px !important;
      }
      .dev-dispatch-seal {
        font-size: 1.6rem !important;
      }
      .dev-dispatch-title {
        font-size: 0.88rem !important;
        letter-spacing: 0.5px !important;
      }
      .dev-dispatch-subtitle {
        font-size: 0.68rem !important;
      }
      .dev-dispatch-badge {
        align-self: flex-start !important;
        font-size: 0.60rem !important;
      }
      .dev-dispatch-meta {
        flex-direction: column !important;
        gap: 3px !important;
        font-size: 0.68rem !important;
        padding-bottom: 4px !important;
      }
      .dev-dispatch-body {
        font-size: 0.84rem !important;
        line-height: 1.6 !important;
        padding: 2px !important;
      }
      .dev-dispatch-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
      }
      .dev-dispatch-verified-stamp {
        align-self: flex-end !important;
        transform: rotate(-2deg) scale(0.9) !important;
      }
    }

    /* Responsive 2-Column Grid for Governance Policies & Tech Upgrades */
    #win-page-governance,
    #win-lobbying,
    #tab-lobbying,
    #policies-container,
    #win-page-engineering,
    #win-upgrades,
    #tab-upgrades,
    #upgrades-container {
      container-type: inline-size;
    }

    .policy-card-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      align-items: stretch;
    }

    @media (min-width: 620px) {
      .policy-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @container (max-width: 530px) {
      .policy-card-grid {
        grid-template-columns: 1fr !important;
      }
    }

    .policy-card-item {
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      height: 100% !important;
      margin-bottom: 0 !important;
      box-sizing: border-box;
    }

    .policy-card-body {
      flex: 1 1 auto;
    }

    .policy-card-action {
      margin-top: auto;
      padding-top: 6px;
    }

    /* =============================================================
       PUNCHCARD32.EXE — ELECTRO-MECHANICAL TABULATOR & EARMARK DESK
       ============================================================= */
    .punchcard-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      z-index: 100000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      box-sizing: border-box;
    }

    @media (max-height: 850px) {
      .punchcard-modal-backdrop {
        align-items: flex-start;
        padding-top: 14px;
        padding-bottom: 24px;
      }
    }

    .punchcard-window,
    .microfiche-window,
    .foia-window,
    .wiretap-window {
      width: 100%;
      max-width: 780px;
      max-height: 92vh;
      display: flex;
      flex-direction: column;
      background: #c0c0c0;
      border: 2px solid;
      border-color: #dfdfdf #404040 #404040 #dfdfdf;
      box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.45);
      z-index: 100001;
      overflow: hidden;
      margin: auto;
      box-sizing: border-box;
    }

    .punchcard-window .win-titlebar,
    .microfiche-window .win-titlebar,
    .foia-window .win-titlebar,
    .wiretap-window .win-titlebar {
      flex: 0 0 auto;
    }

    .punchcard-chassis {
      background: #2b2b2b;
      border: 2px solid;
      border-color: #1a1a1a #505050 #505050 #1a1a1a;
      padding: 10px;
      color: #e0e0e0;
    }

    .punchcard-sheet {
      background-color: #f7eed8;
      background-image: 
        linear-gradient(90deg, rgba(160, 130, 90, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(160, 130, 90, 0.08) 1px, transparent 1px);
      background-size: 14px 18px;
      border: 2px solid #bda87d;
      box-shadow: inset 0 0 10px rgba(140, 110, 70, 0.25), 2px 2px 8px rgba(0,0,0,0.3);
      padding: 14px;
      color: #2e2619;
      font-family: 'Courier New', Courier, monospace;
      position: relative;
      overflow: hidden;
      clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
    }

    .punchcard-corner-cut {
      position: absolute;
      top: 0;
      right: 0;
      width: 18px;
      height: 18px;
      background: #2b2b2b;
      clip-path: polygon(0 0, 100% 0, 100% 100%);
    }

    .punchcard-grid-track {
      display: grid;
      grid-template-columns: repeat(16, 1fr);
      gap: 3px;
      background: rgba(0, 0, 0, 0.05);
      padding: 6px;
      border: 1px dashed #8c734b;
      margin: 8px 0;
    }

    .punch-slot {
      height: 14px;
      background: #e4d6ba;
      border: 1px solid #b59f77;
      border-radius: 2px;
      transition: background 0.15s ease, transform 0.15s ease;
    }

    .punch-slot.punched {
      background: #1a150e !important;
      border-color: #0d0a07 !important;
      box-shadow: inset 1px 1px 3px rgba(0,0,0,0.8);
      transform: scale(0.95);
    }

    .punchcard-rider-btn {
      background: #dfdfdf;
      border: 2px solid;
      border-color: #ffffff #808080 #808080 #ffffff;
      padding: 8px;
      cursor: pointer;
      text-align: left;
      transition: all 0.1s ease;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .punchcard-rider-btn:hover {
      background: #ececec;
    }

    .punchcard-rider-btn.active {
      background: #000080 !important;
      color: #ffffff !important;
      border-color: #808080 #ffffff #ffffff #808080;
    }

    .punchcard-rider-btn.active .text-muted,
    .punchcard-rider-btn.active .text-dark,
    .punchcard-rider-btn.active .text-success,
    .punchcard-rider-btn.active .text-primary {
      color: #ffff80 !important;
    }

    @keyframes punchcardStampMotion {
      0% { transform: scale(1); }
      30% { transform: scale(0.985) translateY(3px); }
      50% { transform: scale(1.01) translateY(-2px); }
      70% { transform: scale(0.995) translateY(1px); }
      100% { transform: scale(1) translateY(0); }
    }

    .punchcard-stamping-active {
      animation: punchcardStampMotion 0.35s ease-out;
    }

    @media (max-width: 620px) {
      .punchcard-window {
        max-height: 96vh;
      }
      .punchcard-sheet {
        padding: 8px;
        font-size: 0.78rem;
      }
      .punchcard-grid-track {
        grid-template-columns: repeat(8, 1fr);
      }
    }

    /* ==========================================================================
       MICROFICHE98.EXE — R&D Optical Lens & Jumper Circuit Tracer Styles
       ========================================================================== */
    .microfiche-chassis {
      background: #1c2620;
      border: 3px solid;
      border-color: #2e3d34 #0c120e #0c120e #2e3d34;
      padding: 10px;
      color: #b0d0be;
      font-family: 'MS Sans Serif', Tahoma, sans-serif;
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      padding-bottom: 24px;
    }

    .microfiche-viewport {
      background: #06170d;
      background-image: 
        radial-gradient(circle at 50% 50%, rgba(20, 80, 40, 0.4) 0%, rgba(5, 20, 10, 0.95) 75%, #020a05 100%);
      border: 3px solid;
      border-color: #040d07 #3a4f42 #3a4f42 #040d07;
      box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(20, 255, 80, 0.1);
      position: relative;
      height: 250px;
      overflow: hidden;
      border-radius: 4px;
    }

    .microfiche-graticule {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(40, 180, 80, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 180, 80, 0.12) 1px, transparent 1px);
      background-size: 20px 20px;
    }

    .microfiche-graticule::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 40px;
      height: 40px;
      transform: translate(-50%, -50%);
      border: 1px dashed rgba(60, 255, 120, 0.4);
      border-radius: 50%;
    }

    .microfiche-schematic-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 85%;
      height: 85%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: #38f06f;
      font-family: 'Courier New', Courier, monospace;
      text-shadow: 0 0 6px rgba(56, 240, 111, 0.6);
      transition: filter 0.1s ease, transform 0.1s ease;
      user-select: none;
    }

    .microfiche-spool {
      width: 32px;
      height: 32px;
      border: 2px solid #5a7364;
      border-radius: 50%;
      background: radial-gradient(circle, #2a3830 30%, #151d18 70%);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .microfiche-spool-hub {
      width: 10px;
      height: 10px;
      background: #7a9c87;
      border-radius: 50%;
    }

    @keyframes spoolSpin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .spooling-anim {
      animation: spoolSpin 1.2s linear infinite;
    }

    .microfiche-jumper-bay {
      background: #151d18;
      border: 2px solid;
      border-color: #0b110e #2e3d34 #2e3d34 #0b110e;
      padding: 8px;
    }

    .microfiche-socket-node {
      width: 48px;
      height: 48px;
      min-width: 48px;
      border-radius: 50%;
      background: #243028;
      border: 2px solid #6b8474;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-weight: bold;
      font-size: 0.75rem;
      transition: all 0.15s ease;
      user-select: none;
    }

    .microfiche-socket-node:hover {
      background: #334439;
      border-color: #8fae9b;
    }

    .microfiche-socket-node.selected {
      border-color: #ffff55 !important;
      box-shadow: 0 0 10px #ffff55;
      background: #404b20 !important;
      color: #ffffaa;
    }

    .microfiche-socket-node.connected {
      border-color: #38f06f !important;
      box-shadow: 0 0 8px rgba(56, 240, 111, 0.7);
      background: #0f381c !important;
      color: #a0ffc0;
    }

    .microfiche-bulb-gauge {
      height: 14px;
      background: #0d1410;
      border: 1px solid #3a4f42;
      position: relative;
      overflow: hidden;
    }

    .microfiche-bulb-fill {
      height: 100%;
      background: linear-gradient(90deg, #38f06f, #ffd040, #ff4444);
      transition: width 0.25s linear;
    }

    @media (max-width: 620px) {
      .microfiche-viewport {
        height: 200px;
      }
      .microfiche-socket-node {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 0.7rem;
      }
    }

    /* ============================================================= */
    /* 📑 REDACT98.EXE — FOIA Continuous Green-Bar Redaction Desk    */
    /* ============================================================= */

    .foia-desk-chassis {
      background: #c8beab;
      box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #808080;
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      padding-bottom: 24px;
    }

    .foia-greenbar-sheet {
      position: relative;
      background: #ffffff;
      background-image: repeating-linear-gradient(
        180deg,
        #f1faf1 0px,
        #f1faf1 26px,
        #ffffff 26px,
        #ffffff 52px
      );
      color: #1a2e1a;
      font-family: "Courier New", Courier, monospace;
      font-size: 0.88rem;
      line-height: 26px;
      padding: 16px 36px;
      border: 1px solid #7ea87e;
      box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25), inset 0 0 15px rgba(100, 150, 100, 0.08);
      user-select: none;
      overflow: hidden;
    }

    /* Left and Right Perforated Tractor Feed Margins */
    .foia-greenbar-sheet::before,
    .foia-greenbar-sheet::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      width: 22px;
      background-image: radial-gradient(#222 24%, transparent 26%);
      background-size: 22px 26px;
      background-position: center;
      opacity: 0.25;
      pointer-events: none;
    }

    .foia-greenbar-sheet::before {
      left: 2px;
      border-right: 1px dashed rgba(126, 168, 126, 0.5);
    }

    .foia-greenbar-sheet::after {
      right: 2px;
      border-left: 1px dashed rgba(126, 168, 126, 0.5);
    }

    .classified-stamp {
      display: inline-block;
      border: 3px double #d32f2f;
      color: #b71c1c;
      font-family: "Arial Black", Impact, sans-serif;
      font-size: 0.85rem;
      letter-spacing: 2px;
      padding: 2px 10px;
      transform: rotate(-7deg);
      background: rgba(255, 230, 230, 0.6);
      text-transform: uppercase;
      font-weight: 900;
      box-shadow: 0 0 4px rgba(211, 47, 47, 0.2);
    }

    .redact-token {
      display: inline-block;
      padding: 0 4px;
      margin: 0 2px;
      border-radius: 2px;
      cursor: pointer;
      font-weight: bold;
      border-bottom: 2px dotted #4a6b4a;
      transition: background 0.1s ease, color 0.1s ease;
      touch-action: manipulation;
    }

    .redact-token:hover:not(.redacted) {
      background: #ffffaa;
      color: #000;
      border-bottom: 2px solid #d4a017;
    }

    .redact-token.redacted {
      background: #0d0d0d !important;
      color: #0d0d0d !important;
      text-shadow: none !important;
      border-bottom: 2px solid #0d0d0d !important;
      box-shadow: 0 0 2px #000;
      position: relative;
    }

    .redact-token.redacted::selection {
      background: transparent;
      color: transparent;
    }

    .shredder-slot {
      height: 12px;
      background: #0a0a0a;
      border-top: 2px solid #444;
      border-bottom: 2px solid #777;
      box-shadow: inset 0 4px 6px #000;
      border-radius: 2px;
    }

    .shredder-lever-btn {
      background: repeating-linear-gradient(
        45deg,
        #b71c1c,
        #b71c1c 10px,
        #d32f2f 10px,
        #d32f2f 20px
      ) !important;
      color: #ffffff !important;
      font-weight: 900 !important;
      letter-spacing: 1px;
      border: 3px outset #ef5350 !important;
      text-shadow: 0 1px 2px #000;
      cursor: pointer;
      transition: all 0.1s ease;
    }

    .shredder-lever-btn:hover:not(:disabled) {
      filter: brightness(1.15);
      box-shadow: 0 0 10px rgba(239, 83, 80, 0.6);
    }

    .shredder-lever-btn:active:not(:disabled) {
      border-style: inset !important;
      transform: translateY(2px);
    }

    @media (max-width: 620px) {
      .foia-greenbar-sheet {
        padding: 12px 24px;
        font-size: 0.8rem;
        line-height: 24px;
      }
      .foia-greenbar-sheet::before,
      .foia-greenbar-sheet::after {
        width: 14px;
      }
      .redact-token {
        min-height: 28px;
        line-height: 24px;
        padding: 2px 5px;
      }
    }

    /* ☎️ WIRETAP32.EXE — Inmate Telecom Surveillance Switchboard Styles */
    .wiretap-switchboard-chassis {
      background: #0f172a;
      border: 3px outset #475569;
      color: #e2e8f0;
      box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0,0,0,0.6);
    }

    .wiretap-body-scroll {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      padding-bottom: 24px;
    }

    .wiretap-panel-header {
      background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
      border-bottom: 2px solid #0f172a;
      padding: 8px 12px;
    }

    .wiretap-tape-deck {
      background: #090d16;
      border: 2px inset #334155;
      border-radius: 6px;
      padding: 10px;
    }

    .wiretap-tape-reel {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      border: 4px solid #64748b;
      background: radial-gradient(circle, #334155 25%, #0f172a 26%, #1e293b 60%, #475569 61%, #0f172a 100%);
      position: relative;
      box-shadow: inset 0 0 8px rgba(0,0,0,0.9), 0 2px 6px rgba(0,0,0,0.5);
    }

    .wiretap-tape-reel::before,
    .wiretap-tape-reel::after {
      content: '';
      position: absolute;
      background: #64748b;
    }

    .wiretap-tape-reel::before {
      top: 50%;
      left: 10%;
      right: 10%;
      height: 2px;
      transform: translateY(-50%);
    }

    .wiretap-tape-reel::after {
      left: 50%;
      top: 10%;
      bottom: 10%;
      width: 2px;
      transform: translateX(-50%);
    }

    .tape-spinning {
      animation: spinReel 1.6s linear infinite;
    }

    @keyframes spinReel {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    /* Analog VU Meter */
    .wiretap-vu-meter {
      width: 140px;
      height: 70px;
      background: #fef08a;
      border: 3px inset #713f12;
      border-radius: 6px 6px 0 0;
      position: relative;
      overflow: hidden;
      box-shadow: inset 0 0 12px rgba(113, 63, 18, 0.4);
    }

    .wiretap-vu-scale {
      position: absolute;
      top: 8px;
      left: 0;
      right: 0;
      text-align: center;
      font-size: 0.65rem;
      font-family: 'Share Tech Mono', monospace;
      color: #713f12;
      font-weight: bold;
      letter-spacing: 1px;
    }

    .wiretap-vu-needle {
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 2px;
      height: 52px;
      background: #dc2626;
      transform-origin: bottom center;
      transform: rotate(-45deg);
      transition: transform 0.08s ease-out;
      box-shadow: 0 0 2px #000;
    }

    /* Line Status LEDs */
    .wiretap-led {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      border: 1px solid #000;
    }

    .led-idle {
      background: #475569;
      box-shadow: none;
    }

    .led-ringing {
      background: #ef4444;
      box-shadow: 0 0 8px #ef4444, 0 0 14px #ef4444;
      animation: pulseLed 0.5s infinite alternate;
    }

    .led-connected {
      background: #22c55e;
      box-shadow: 0 0 8px #22c55e, 0 0 12px #22c55e;
    }

    @keyframes pulseLed {
      from { opacity: 0.4; }
      to { opacity: 1.0; }
    }

    /* Phosphor Amber CRT Teletype */
    .wiretap-teletype-terminal {
      background: #020617;
      border: 3px inset #334155;
      color: #fbbf24;
      font-family: 'Share Tech Mono', monospace;
      font-size: 0.85rem;
      line-height: 22px;
      padding: 10px;
      height: 200px;
      overflow-y: auto;
      box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.95);
      text-shadow: 0 0 4px rgba(251, 191, 36, 0.6);
    }

    .wiretap-transcript-row {
      margin-bottom: 4px;
      border-bottom: 1px dashed rgba(251, 191, 36, 0.15);
      padding-bottom: 2px;
    }

    /* =============================================================
       PHASE 5: AUCTION98.EXE — CIVIL ASSET FORFEITURE & GAVEL DESK
       ============================================================= */
    .auction-desk {
      box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.85);
      border: 3px inset #5a422d;
    }

    .auction-gavel-graphic {
      display: inline-block;
      transform-origin: bottom left;
      transition: transform 0.15s ease-out;
    }

    .gavel-strike-anim {
      animation: gavelStrike 0.4s ease-out;
    }

    @keyframes gavelStrike {
      0% { transform: rotate(0deg); }
      30% { transform: rotate(-50deg); }
      60% { transform: rotate(20deg) scale(1.15); }
      80% { transform: rotate(-10deg); }
      100% { transform: rotate(0deg); }
    }

    .blink-tag {
      animation: blinkTag 1s infinite alternate;
    }

    @keyframes blinkTag {
      from { opacity: 1.0; }
      to { opacity: 0.35; }
    }

    /* =============================================================
       PHASE 6: DEFRAG98.EXE — CENTRAL MAINFRAME SECTOR OPTIMIZATION
       ============================================================= */
    .defrag-desk {
      box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
    }

    .defrag-cluster-cell {
      transition: transform 0.1s;
    }

    .defrag-cluster-cell:hover {
      transform: scale(1.12);
      z-index: 2;
    }

    .cell-allocated {
      background: #000080 !important;
    }

    .cell-fragmented {
      background: #d92b2b !important;
      animation: pulseFragment 1.2s infinite alternate;
      box-shadow: inset 0 0 4px #ff9999;
    }

    .cell-reading {
      background: #f5d020 !important;
      animation: blinkHead 0.25s infinite alternate;
      box-shadow: 0 0 6px #ffe600;
    }

    .cell-free {
      background: #ffffff !important;
    }

    .cell-flash-purge {
      background: #10b981 !important;
      transform: scale(1.25);
      animation: flashPurge 0.4s ease-out forwards;
    }

    @keyframes pulseFragment {
      from { filter: brightness(0.85); }
      to { filter: brightness(1.25); }
    }

    @keyframes blinkHead {
      from { opacity: 0.65; }
      to { opacity: 1.0; }
    }

    @keyframes flashPurge {
      0% { background: #10b981; transform: scale(1.25); }
      100% { background: #000080; transform: scale(1.0); }
    }

    /* =============================================================
       GAMIFIED CONTRABAND: SCANNER98.EXE — FLUOROSCOPE X-RAY DESK
       ============================================================= */
    .scanner-desk {
      box-shadow: inset 1px 1px 0 #6e7984, inset -1px -1px 0 #181b1e, 0 4px 12px rgba(0, 0, 0, 0.6);
      border: 3px solid #4a535c;
      background: #252a2e;
    }

    .scanner-crt-monitor {
      background: #181b1e;
      border: 3px solid #3c444c;
      box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9);
      position: relative;
      overflow: hidden;
    }

    /* =============================================================
       INDUSTRIAL FLUOROSCOPE CONVEYOR & PARCEL INSPECTION STYLES
       (Late 90s Industrial SCADA / Alien Nostromo Heavy Spec)
       ============================================================= */
    .conveyor-assembly {
      background: #202428;
      border: 3px solid #3c444c;
      border-radius: 2px;
      box-shadow: inset 0 2px 6px rgba(0,0,0,0.9), 0 3px 8px rgba(0,0,0,0.6);
      position: relative;
    }

    .conveyor-steel-rail {
      height: 14px;
      background: linear-gradient(180deg, #5c6670 0%, #3e464f 45%, #2a3036 100%);
      border-top: 1px solid #778593;
      border-bottom: 2px solid #141719;
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 10px;
    }

    .conveyor-rail-rivet {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: radial-gradient(circle at 2px 2px, #d1d9e0, #343c44);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.9);
    }

    .conveyor-belt-viewport {
      position: relative;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: #4a535c #181b1e;
    }

    /* Cylindrical Heavy Industrial Steel Roller Bed */
    .conveyor-belt-track {
      background: repeating-linear-gradient(
        90deg,
        #141719 0px,
        #141719 2px,
        #2e343b 3px,
        #555f69 7px,
        #8e98a3 11px,
        #adb7c2 12px,
        #8e98a3 13px,
        #555f69 17px,
        #2e343b 21px,
        #141719 22px
      );
      background-size: 22px 100%;
      min-height: 135px;
      position: relative;
      border-top: 2px solid #121517;
      border-bottom: 2px solid #121517;
      box-shadow: inset 0 6px 10px rgba(0,0,0,0.6), inset 0 -6px 10px rgba(0,0,0,0.6);
    }

    .conveyor-belt-track.belt-running {
      animation: rollBeltRight 0.85s linear infinite;
    }

    .conveyor-belt-track.belt-paused {
      animation: rollBeltRight 0.85s linear infinite;
      animation-play-state: paused;
    }

    @keyframes rollBeltRight {
      from { background-position-x: 0px; }
      to { background-position-x: 22px; }
    }

    /* Infeed Heavy Lead-Rubber Flap Curtain on Left */
    .conveyor-infeed-curtain {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 28px;
      background: repeating-linear-gradient(90deg, #1e2226 0px, #1e2226 6px, #111315 6px, #111315 8px);
      border-right: 3px solid #0d0f11;
      border-left: 2px solid #3a4249;
      box-shadow: 4px 0 8px rgba(0,0,0,0.8);
      z-index: 10;
      pointer-events: none;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    /* Outfeed Heavy Steel Yard Chute with Industrial Hazard Chevrons */
    .conveyor-outfeed-chute {
      position: absolute;
      right: 0;
      top: 0;
      bottom: 0;
      width: 28px;
      background: repeating-linear-gradient(-45deg, #1c1f22 0px, #1c1f22 8px, #d97706 8px, #d97706 16px);
      border-left: 3px solid #0d0f11;
      border-right: 2px solid #3a4249;
      box-shadow: -4px 0 8px rgba(0,0,0,0.8);
      z-index: 10;
      pointer-events: none;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    /* Heavy Cast-Steel Lead-Shielded X-Ray Inspection Shroud (Slot 2) */
    .xray-chamber-housing {
      border: 3px solid #5a646e !important;
      background: linear-gradient(180deg, #282d32 0%, #1a1e21 100%) !important;
      position: relative;
      border-radius: 2px !important;
      box-shadow: inset 0 0 14px rgba(0,0,0,0.95), 0 0 0 1px #111416 !important;
    }

    .xray-chamber-housing::before {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      height: 2px;
      background: #f59e0b;
      box-shadow: 0 0 4px #f59e0b, 0 0 8px #d97706;
      opacity: 0.85;
      pointer-events: none;
      z-index: 5;
      animation: scanBeamSweep 2.2s ease-in-out infinite alternate;
    }

    @keyframes scanBeamSweep {
      0% { top: 6px; opacity: 0.9; }
      50% { opacity: 0.4; }
      100% { top: calc(100% - 8px); opacity: 0.9; }
    }

    .xray-crosshair {
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: 
        linear-gradient(to right, transparent calc(50% - 1px), rgba(245,158,11,0.22) calc(50% - 1px), rgba(245,158,11,0.22) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(to bottom, transparent calc(50% - 1px), rgba(245,158,11,0.22) calc(50% - 1px), rgba(245,158,11,0.22) calc(50% + 1px), transparent calc(50% + 1px));
      z-index: 4;
    }

    /* Sturdy Industrial Kraft Corrugated Cardboard Freight Parcels */
    .scanner-parcel-card {
      transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
      cursor: pointer;
      position: relative;
      background: linear-gradient(155deg, #7a6147 0%, #5e4832 100%);
      border: 2px solid #483624;
      border-radius: 2px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.12);
      user-select: none;
      min-width: 140px;
    }

    .scanner-parcel-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0,0,0,0.85);
      border-color: #6d5238;
    }

    /* Sturdy Industrial Amber Focus Bracket */
    .scanner-parcel-card.active-aperture {
      outline: 2px solid #f59e0b !important;
      outline-offset: 2px !important;
      border-color: #d97706 !important;
      box-shadow: 0 0 12px rgba(245, 158, 11, 0.45), 0 4px 10px rgba(0,0,0,0.8) !important;
    }

    /* Cardboard Seam Packaging Tape Strip */
    .parcel-packing-tape {
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      height: 15px;
      transform: translateY(-50%);
      background: rgba(40, 26, 14, 0.5);
      border-top: 1px dashed rgba(160, 125, 80, 0.4);
      border-bottom: 1px dashed rgba(160, 125, 80, 0.4);
      pointer-events: none;
      z-index: 1;
    }

    /* Dot-Matrix Postal Barcode Manifest Label */
    .parcel-shipping-label {
      background: #f4ede2;
      color: #1a1a1a;
      padding: 2px 5px;
      border-radius: 1px;
      border: 1px solid #6b635b;
      font-family: 'Share Tech Mono', monospace;
      font-size: 0.58rem;
      line-height: 1.15;
      text-align: left;
      box-shadow: 1px 1px 2px rgba(0,0,0,0.4);
      position: relative;
      z-index: 2;
    }

    .parcel-barcode-strip {
      height: 8px;
      background: repeating-linear-gradient(
        90deg,
        #111 0px,
        #111 2px,
        #f4ede2 2px,
        #f4ede2 4px,
        #111 4px,
        #111 7px,
        #f4ede2 7px,
        #f4ede2 9px,
        #111 9px,
        #111 10px,
        #f4ede2 10px,
        #f4ede2 13px
      );
      margin-top: 2px;
    }

    /* Distressed Rubber Stamps */
    .rubber-stamp-overlay {
      position: absolute;
      top: 45%;
      left: 50%;
      transform: translate(-50%, -50%) rotate(-12deg);
      padding: 2px 8px;
      font-weight: 900;
      font-size: 0.72rem;
      letter-spacing: 1px;
      text-transform: uppercase;
      border-radius: 2px;
      z-index: 10;
      pointer-events: none;
      box-shadow: 0 0 6px rgba(0,0,0,0.7);
    }

    .rubber-stamp-confiscated {
      border: 3px double #ef4444;
      color: #ef4444;
      background: rgba(185, 28, 28, 0.35);
      text-shadow: 0 0 4px rgba(239, 68, 68, 0.6);
      transform: translate(-50%, -50%) rotate(-12deg);
    }

    .rubber-stamp-cleared {
      border: 3px double #10b981;
      color: #10b981;
      background: rgba(5, 150, 105, 0.35);
      text-shadow: 0 0 4px rgba(16, 185, 129, 0.6);
      transform: translate(-50%, -50%) rotate(8deg);
    }

    .ci-tip-pulsing {
      animation: pulseCiTip 1.0s infinite alternate;
    }

    @keyframes pulseCiTip {
      0% { box-shadow: 0 0 4px #fbbf24; border-color: #fbbf24; }
      100% { box-shadow: 0 0 14px #f59e0b; border-color: #f59e0b; }
    }

    /* Industrial Amber Tachometer / Conveyor Motor Speed Bar */
    .conveyor-speed-meter-track {
      background: #14171a;
      border: 1px solid #343c44;
      height: 18px;
      position: relative;
      border-radius: 1px;
      overflow: hidden;
    }

    .conveyor-speed-meter-fill {
      height: 100%;
      background: linear-gradient(90deg, #92400e 0%, #d97706 70%, #f59e0b 100%);
      transition: width 0.1s linear;
    }

    /* Mobile Responsive Optimizations for SCANNER98 */
    @media (max-width: 768px) {
      .conveyor-belt-viewport {
        padding: 0 20px !important;
      }
      .scanner-parcel-card {
        min-width: 130px;
        flex: 0 0 130px;
      }
      .conveyor-infeed-curtain, .conveyor-outfeed-chute {
        width: 18px;
      }
      #scanner-aperture-detail .btn {
        min-height: 44px;
      }
    }

    .gavel-strike-anim {
      animation: strikeGavelKeyframe 0.25s ease-out;
    }

    @keyframes strikeGavelKeyframe {
      0% { transform: rotate(0deg) scale(1); }
      40% { transform: rotate(-35deg) scale(1.2); }
      75% { transform: rotate(15deg) scale(1.1); }
      100% { transform: rotate(0deg) scale(1); }
    }

    /* =============================================================
       BUG REPORTING & ANOMALY DOCKET (REPORT32.EXE / BUGREP32.EXE)
       ============================================================= */
    .bug-report-dropzone {
      border: 2px dashed #7f9db9;
      background: #f8fafc;
      padding: 12px;
      text-align: center;
      cursor: pointer;
      border-radius: 2px;
      transition: all 0.15s ease-in-out;
    }
    .bug-report-dropzone:hover, .bug-report-dropzone.drag-over {
      border-color: #2563eb;
      background: #eff6ff;
    }
    .bug-report-card {
      background: #ffffff;
      border: 1px solid #cbd5e1;
      padding: 8px 10px;
      margin-bottom: 6px;
      cursor: pointer;
      transition: background 0.12s ease;
    }
    .bug-report-card:hover {
      background: #f1f5f9;
      border-color: #94a3b8;
    }
    .bug-report-card.selected {
      background: #000080 !important;
      color: #ffffff !important;
      border-color: #000050 !important;
    }
    .bug-report-card.selected .text-muted,
    .bug-report-card.selected .text-dark,
    .bug-report-card.selected .text-secondary {
      color: #e2e8f0 !important;
    }






