/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */
@layer properties;
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');
@font-face {
  font-family: 'DSEG7-Classic';
  src: url('fonts/dseg/DSEG7Classic-Bold.woff2') format('woff2'), url('fonts/dseg/DSEG7Classic-Bold.woff') format('woff'), url('fonts/dseg/DSEG7Classic-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@layer theme {
  :root {
    --color-maroon: #800020;
    --color-maroon-light: #a0002a;
    --color-maroon-dark: #600018;
    --color-rust: #b7410e;
    --color-rust-light: #d4551a;
    --color-rust-dark: #9a3709;
    --color-ochre: #cc7722;
    --color-ochre-light: #e6952d;
    --color-ochre-dark: #b3651b;
    --color-viridian: #4aa685;
    --color-viridian-light: #5ebf9d;
    --color-viridian-dark: #3a8970;
    --color-cobalt: #0047ab;
    --color-cobalt-light: #0059d6;
    --color-cobalt-dark: #003580;
    --color-amethyst: #7c17e0;
    --color-amethyst-light: #a67dd9;
    --color-amethyst-dark: #5a0a96;
    --color-rose: #ff1a8f;
    --color-rose-light: #ff4da6;
    --color-rose-dark: #d91a75;
    --color-red: #dc143c;
    --color-red-light: #ff1744;
    --color-red-dark: #b01030;
    --color-maroon-border-dark: #751d1d;
    --color-maroon-border-light: #8a2423;
    --color-maroon-shadow: rgba(117, 29, 29, 0.6);
    --color-rust-border-dark: #a83c0d;
    --color-rust-border-light: #c5460f;
    --color-rust-shadow: rgba(168, 60, 13, 0.6);
    --color-ochre-border-dark: #bc6e20;
    --color-ochre-border-light: #db8024;
    --color-ochre-shadow: rgba(188, 110, 32, 0.6);
    --color-viridian-border-dark: #449a7a;
    --color-viridian-border-light: #50b290;
    --color-viridian-shadow: rgba(68, 154, 122, 0.6);
    --color-cobalt-border-dark: #00429e;
    --color-cobalt-border-light: #004cb8;
    --color-cobalt-shadow: rgba(0, 66, 158, 0.6);
    --color-amethyst-border-dark: #7215cf;
    --color-amethyst-border-light: #861af1;
    --color-amethyst-shadow: rgba(114, 21, 207, 0.6);
    --color-rose-border-dark: #eb1883;
    --color-rose-border-light: #ff2c9b;
    --color-rose-shadow: rgba(235, 24, 131, 0.6);
    --color-red-border-dark: #cb1237;
    --color-red-border-light: #ed1541;
    --color-red-shadow: rgba(203, 18, 55, 0.6);
    --color-ochre-complement: #375EA2;
    --color-ochre-complement-shadow: rgba(55, 94, 162, 0.6);
    --color-maroon-complement: #008060;
    --color-maroon-complement-shadow: rgba(0, 128, 96, 0.6);
    --pattern-maroon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 100 100'%3E%3Crect x='10' y='10' width='35' height='35' stroke='%23800020' stroke-width='2.67' fill='none' opacity='0.2'/%3E%3Crect x='55' y='10' width='35' height='35' stroke='%23800020' stroke-width='2.67' fill='none' opacity='0.2'/%3E%3Crect x='10' y='55' width='35' height='35' stroke='%23800020' stroke-width='2.67' fill='none' opacity='0.2'/%3E%3Crect x='55' y='55' width='35' height='35' stroke='%23800020' stroke-width='2.67' fill='none' opacity='0.2'/%3E%3Ccircle cx='27.5' cy='27.5' r='8' stroke='%23800020' stroke-width='2' fill='none' opacity='0.2'/%3E%3Ccircle cx='72.5' cy='72.5' r='8' stroke='%23800020' stroke-width='2' fill='none' opacity='0.2'/%3E%3C/svg%3E");
    --pattern-rust: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 100 100'%3E%3Cline x1='50' y1='50' x2='100' y2='20' stroke='%23b7410e' stroke-width='2.67' opacity='0.2'/%3E%3Cline x1='50' y1='50' x2='100' y2='50' stroke='%23b7410e' stroke-width='2.67' opacity='0.2'/%3E%3Cline x1='50' y1='50' x2='100' y2='80' stroke='%23b7410e' stroke-width='2.67' opacity='0.2'/%3E%3Cline x1='50' y1='50' x2='0' y2='20' stroke='%23b7410e' stroke-width='2.67' opacity='0.2'/%3E%3Cline x1='50' y1='50' x2='0' y2='50' stroke='%23b7410e' stroke-width='2.67' opacity='0.2'/%3E%3Cline x1='50' y1='50' x2='0' y2='80' stroke='%23b7410e' stroke-width='2.67' opacity='0.2'/%3E%3Ccircle cx='50' cy='50' r='5' fill='%23b7410e' opacity='0.2'/%3E%3Ccircle cx='50' cy='50' r='15' stroke='%23b7410e' stroke-width='1.33' fill='none' opacity='0.2'/%3E%3Ccircle cx='50' cy='50' r='25' stroke='%23b7410e' stroke-width='1.33' fill='none' opacity='0.15'/%3E%3C/svg%3E");
    --pattern-ochre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 100 100'%3E%3Cline x1='10' y1='30' x2='90' y2='30' stroke='%23cc7722' stroke-width='2' stroke-dasharray='5,3' opacity='0.2'/%3E%3Cline x1='10' y1='50' x2='90' y2='50' stroke='%23cc7722' stroke-width='2.67' opacity='0.2'/%3E%3Cline x1='10' y1='70' x2='90' y2='70' stroke='%23cc7722' stroke-width='2' stroke-dasharray='5,3' opacity='0.2'/%3E%3Cline x1='30' y1='10' x2='30' y2='90' stroke='%23cc7722' stroke-width='2' stroke-dasharray='5,3' opacity='0.2'/%3E%3Cline x1='50' y1='10' x2='50' y2='90' stroke='%23cc7722' stroke-width='2.67' opacity='0.2'/%3E%3Cline x1='70' y1='10' x2='70' y2='90' stroke='%23cc7722' stroke-width='2' stroke-dasharray='5,3' opacity='0.2'/%3E%3Ccircle cx='50' cy='50' r='12' stroke='%23cc7722' stroke-width='2.67' fill='none' opacity='0.2'/%3E%3C/svg%3E");
    --pattern-viridian: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 100 100'%3E%3Cpath d='M50,10 L50,50' stroke='%234aa685' stroke-width='4' opacity='0.2'/%3E%3Cpath d='M50,50 Q35,60 25,75' stroke='%234aa685' stroke-width='2.67' fill='none' opacity='0.2'/%3E%3Cpath d='M50,50 Q65,60 75,75' stroke='%234aa685' stroke-width='2.67' fill='none' opacity='0.2'/%3E%3Cpath d='M50,50 Q40,70 30,90' stroke='%234aa685' stroke-width='2' fill='none' opacity='0.2'/%3E%3Cpath d='M50,50 Q60,70 70,90' stroke='%234aa685' stroke-width='2' fill='none' opacity='0.2'/%3E%3Ccircle cx='50' cy='15' r='4' fill='%234aa685' opacity='0.2'/%3E%3Ccircle cx='50' cy='50' r='5' fill='%234aa685' opacity='0.2'/%3E%3Ccircle cx='25' cy='75' r='3' fill='%234aa685' opacity='0.2'/%3E%3Ccircle cx='75' cy='75' r='3' fill='%234aa685' opacity='0.2'/%3E%3C/svg%3E");
    --pattern-cobalt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='20' stroke='%230047ab' stroke-width='4' fill='none' opacity='0.2'/%3E%3Crect x='48' y='25' width='4' height='10' fill='%230047ab' opacity='0.2'/%3E%3Crect x='48' y='65' width='4' height='10' fill='%230047ab' opacity='0.2'/%3E%3Crect x='25' y='48' width='10' height='4' fill='%230047ab' opacity='0.2'/%3E%3Crect x='65' y='48' width='10' height='4' fill='%230047ab' opacity='0.2'/%3E%3Crect x='33' y='33' width='7' height='7' fill='%230047ab' transform='rotate(45 36.5 36.5)' opacity='0.2'/%3E%3Crect x='60' y='33' width='7' height='7' fill='%230047ab' transform='rotate(45 63.5 36.5)' opacity='0.2'/%3E%3Crect x='33' y='60' width='7' height='7' fill='%230047ab' transform='rotate(45 36.5 63.5)' opacity='0.2'/%3E%3Crect x='60' y='60' width='7' height='7' fill='%230047ab' transform='rotate(45 63.5 63.5)' opacity='0.2'/%3E%3C/svg%3E");
    --pattern-amethyst: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 100 100'%3E%3Ccircle cx='30' cy='30' r='5' fill='%237c17e0' opacity='0.2'/%3E%3Ccircle cx='70' cy='30' r='5' fill='%237c17e0' opacity='0.2'/%3E%3Ccircle cx='50' cy='50' r='5' fill='%237c17e0' opacity='0.2'/%3E%3Ccircle cx='30' cy='70' r='5' fill='%237c17e0' opacity='0.2'/%3E%3Ccircle cx='70' cy='70' r='5' fill='%237c17e0' opacity='0.2'/%3E%3Cline x1='30' y1='30' x2='50' y2='50' stroke='%237c17e0' stroke-width='2' opacity='0.2'/%3E%3Cline x1='70' y1='30' x2='50' y2='50' stroke='%237c17e0' stroke-width='2' opacity='0.2'/%3E%3Cline x1='30' y1='70' x2='50' y2='50' stroke='%237c17e0' stroke-width='2' opacity='0.2'/%3E%3Cline x1='70' y1='70' x2='50' y2='50' stroke='%237c17e0' stroke-width='2' opacity='0.2'/%3E%3Cline x1='30' y1='30' x2='70' y2='30' stroke='%237c17e0' stroke-width='1.33' opacity='0.15'/%3E%3Cline x1='30' y1='70' x2='70' y2='70' stroke='%237c17e0' stroke-width='1.33' opacity='0.15'/%3E%3C/svg%3E");
    --pattern-rose: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 100 100'%3E%3Cpath d='M50,50 Q55,45 55,40 Q55,35 52,32 Q48,30 45,32 Q42,35 42,40 Q42,46 48,50 Q54,54 60,52 Q66,50 68,44 Q70,38 66,32 Q62,26 55,24' stroke='%23ff1a8f' stroke-width='3.33' fill='none' opacity='0.2'/%3E%3Ccircle cx='50' cy='50' r='3' fill='%23ff1a8f' opacity='0.2'/%3E%3Cpath d='M30,70 Q35,65 40,70' stroke='%23ff1a8f' stroke-width='2' fill='none' opacity='0.2'/%3E%3Cpath d='M60,70 Q65,65 70,70' stroke='%23ff1a8f' stroke-width='2' fill='none' opacity='0.2'/%3E%3Cpath d='M20,50 Q22,45 25,50' stroke='%23ff1a8f' stroke-width='2' fill='none' opacity='0.2'/%3E%3Cpath d='M75,50 Q77,45 80,50' stroke='%23ff1a8f' stroke-width='2' fill='none' opacity='0.2'/%3E%3C/svg%3E");
    --pattern-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 100 100'%3E%3Cline x1='30' y1='30' x2='70' y2='70' stroke='%23dc143c' stroke-width='4' opacity='0.2'/%3E%3Cline x1='70' y1='30' x2='30' y2='70' stroke='%23dc143c' stroke-width='4' opacity='0.2'/%3E%3Ccircle cx='50' cy='50' r='20' stroke='%23dc143c' stroke-width='3' fill='none' opacity='0.2'/%3E%3C/svg%3E");
    --pattern-obsidian: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 100 100'%3E%3Ccircle cx='15' cy='20' r='1.5' fill='%23ffffff' opacity='0.6'/%3E%3Ccircle cx='75' cy='30' r='1' fill='%23ffffff' opacity='0.4'/%3E%3Ccircle cx='35' cy='50' r='2' fill='%23ffffff' opacity='0.7'/%3E%3Ccircle cx='85' cy='65' r='1.2' fill='%23ffffff' opacity='0.5'/%3E%3Ccircle cx='50' cy='80' r='1.5' fill='%23ffffff' opacity='0.6'/%3E%3Ccircle cx='20' cy='75' r='1' fill='%23ffffff' opacity='0.4'/%3E%3Ccircle cx='60' cy='15' r='1.8' fill='%23ffffff' opacity='0.65'/%3E%3Ccircle cx='40' cy='35' r='1' fill='%23ffffff' opacity='0.45'/%3E%3Ccircle cx='70' cy='55' r='1.3' fill='%23ffffff' opacity='0.55'/%3E%3Ccircle cx='25' cy='90' r='1' fill='%23ffffff' opacity='0.5'/%3E%3C/svg%3E");
    --pattern-lcd-scanlines: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="3"><defs><pattern id="lcd-scanlines" x="0" y="0" width="30" height="3" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="30" height="1" fill="rgba(0,0,0,0.05)"/><rect x="0" y="2" width="30" height="1" fill="rgba(0,0,0,0.02)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23lcd-scanlines)"/></svg>');
  }
}
@layer utilities {
  .bg-maroon {
    background-color: var(--color-maroon);
  }
  .bg-maroon-light {
    background-color: var(--color-maroon-light);
  }
  .bg-maroon-dark {
    background-color: var(--color-maroon-dark);
  }
  .bg-rust {
    background-color: var(--color-rust);
  }
  .bg-rust-light {
    background-color: var(--color-rust-light);
  }
  .bg-rust-dark {
    background-color: var(--color-rust-dark);
  }
  .bg-ochre {
    background-color: var(--color-ochre);
  }
  .bg-ochre-light {
    background-color: var(--color-ochre-light);
  }
  .bg-ochre-dark {
    background-color: var(--color-ochre-dark);
  }
  .bg-viridian {
    background-color: var(--color-viridian);
  }
  .bg-viridian-light {
    background-color: var(--color-viridian-light);
  }
  .bg-viridian-dark {
    background-color: var(--color-viridian-dark);
  }
  .bg-cobalt {
    background-color: var(--color-cobalt);
  }
  .bg-cobalt-light {
    background-color: var(--color-cobalt-light);
  }
  .bg-cobalt-dark {
    background-color: var(--color-cobalt-dark);
  }
  .bg-amethyst {
    background-color: var(--color-amethyst);
  }
  .bg-amethyst-light {
    background-color: var(--color-amethyst-light);
  }
  .bg-amethyst-dark {
    background-color: var(--color-amethyst-dark);
  }
  .bg-rose {
    background-color: var(--color-rose);
  }
  .bg-rose-light {
    background-color: var(--color-rose-light);
  }
  .bg-rose-dark {
    background-color: var(--color-rose-dark);
  }
  .bg-red {
    background-color: var(--color-red);
  }
  .bg-red-light {
    background-color: var(--color-red-light);
  }
  .bg-red-dark {
    background-color: var(--color-red-dark);
  }
  .text-maroon {
    color: var(--color-maroon);
  }
  .text-rust {
    color: var(--color-rust);
  }
  .text-ochre {
    color: var(--color-ochre);
  }
  .text-viridian {
    color: var(--color-viridian);
  }
  .text-cobalt {
    color: var(--color-cobalt);
  }
  .text-amethyst {
    color: var(--color-amethyst);
  }
  .text-rose {
    color: var(--color-rose);
  }
  .text-red {
    color: var(--color-red);
  }
  .border-maroon {
    border-color: var(--color-maroon);
  }
  .border-rust {
    border-color: var(--color-rust);
  }
  .border-ochre {
    border-color: var(--color-ochre);
  }
  .border-viridian {
    border-color: var(--color-viridian);
  }
  .border-cobalt {
    border-color: var(--color-cobalt);
  }
  .border-amethyst {
    border-color: var(--color-amethyst);
  }
  .border-rose {
    border-color: var(--color-rose);
  }
  .border-red {
    border-color: var(--color-red);
  }
  .ring-maroon {
    --tw-ring-color: var(--color-maroon);
  }
  .ring-rust {
    --tw-ring-color: var(--color-rust);
  }
  .ring-ochre {
    --tw-ring-color: var(--color-ochre);
  }
  .ring-viridian {
    --tw-ring-color: var(--color-viridian);
  }
  .ring-cobalt {
    --tw-ring-color: var(--color-cobalt);
  }
  .ring-amethyst {
    --tw-ring-color: var(--color-amethyst);
  }
  .ring-rose {
    --tw-ring-color: var(--color-rose);
  }
  .ring-red {
    --tw-ring-color: var(--color-red);
  }
  .hover\:bg-maroon-light:hover {
    background-color: var(--color-maroon-light);
  }
  .hover\:bg-rust-light:hover {
    background-color: var(--color-rust-light);
  }
  .hover\:bg-ochre-light:hover {
    background-color: var(--color-ochre-light);
  }
  .hover\:bg-viridian-light:hover {
    background-color: var(--color-viridian-light);
  }
  .hover\:bg-cobalt-light:hover {
    background-color: var(--color-cobalt-light);
  }
  .hover\:bg-amethyst-light:hover {
    background-color: var(--color-amethyst-light);
  }
  .hover\:bg-rose-light:hover {
    background-color: var(--color-rose-light);
  }
  .hover\:bg-red-light:hover {
    background-color: var(--color-red-light);
  }
}
@layer components {
  .gradient-add {
    background: linear-gradient(135deg, rgb(var(--color-ochre)) 0%,  rgb(var(--color-viridian)) 50%,  rgb(var(--color-maroon)) 100%  );
  }
  .gradient-subtract {
    background: linear-gradient(135deg, rgb(var(--color-ochre)) 0%,  rgb(var(--color-cobalt)) 50%,  rgb(var(--color-maroon)) 100%  );
  }
  .gradient-header {
    background: linear-gradient(90deg, rgb(var(--color-maroon)) 0%, rgb(var(--color-ochre)) 50%, rgb(var(--color-rose)) 100% );
  }
  .gradient-add-animated {
    background: linear-gradient( 90deg, rgb(var(--color-ochre)), rgb(var(--color-viridian)), rgb(var(--color-maroon)), rgb(var(--color-viridian)), rgb(var(--color-ochre)) );
    background-size: 200% 100%;
    animation: gradient-flow 2s ease infinite;
  }
  @keyframes gradient-flow {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
}
.markdown-background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Space Mono', monospace;
  transition: z-index 0s 0.6s,  opacity 0.6s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.markdown-background-layer[data-mode="background"] {
  z-index: 1;
  pointer-events: all;
  opacity: 1;
  cursor: pointer;
  color: rgba(74, 166, 133, 0.17);
  text-shadow: 0 0 20px rgba(74, 166, 133, 0.08),  0 0 40px rgba(94, 191, 157, 0.06);
}
.markdown-background-layer[data-mode="background"] .markdown-scroll-wrapper {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  padding: 2rem;
  overflow: hidden;
}
.markdown-background-layer[data-mode="background"] .markdown-content-renderer {
  max-width: 90rem;
  margin: 0 auto;
  text-align: right;
}
.markdown-background-layer[data-mode="background"] p, .markdown-background-layer[data-mode="background"] li, .markdown-background-layer[data-mode="background"] blockquote, .markdown-background-layer[data-mode="background"] pre {
  opacity: 0.24;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.markdown-background-layer[data-mode="background"] h1 {
  opacity: 0.31;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  letter-spacing: 0.02em;
}
.markdown-background-layer[data-mode="background"] h2 {
  opacity: 0.28;
  font-size: 1.875rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
}
.markdown-background-layer[data-mode="background"] h3 {
  opacity: 0.26;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem 0;
}
.markdown-background-layer[data-mode="background"] code {
  font-family: 'Courier New', 'Consolas', monospace;
  opacity: 0.22;
  background: rgba(74, 166, 133, 0.04);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
}
.markdown-background-layer[data-mode="background"] pre {
  background: rgba(74, 166, 133, 0.08);
  padding: 0.75rem;
  border-radius: 0.375rem;
  opacity: 0.22;
  overflow-x: hidden;
}
.markdown-background-layer[data-mode="background"] strong, .markdown-background-layer[data-mode="background"] b {
  font-weight: 700;
  opacity: 0.28;
}
.markdown-background-layer[data-mode="background"]:hover p, .markdown-background-layer[data-mode="background"]:hover li, .markdown-background-layer[data-mode="background"]:hover blockquote, .markdown-background-layer[data-mode="background"]:hover pre {
  opacity: 0.312;
  transition: opacity 0.3s ease;
}
.markdown-background-layer[data-mode="background"]:hover h1 {
  opacity: 0.403;
  transition: opacity 0.3s ease;
}
.markdown-background-layer[data-mode="background"]:hover h2 {
  opacity: 0.364;
  transition: opacity 0.3s ease;
}
.markdown-background-layer[data-mode="background"]:hover h3 {
  opacity: 0.338;
  transition: opacity 0.3s ease;
}
.markdown-background-layer[data-mode="background"]:hover code {
  opacity: 0.286;
  transition: opacity 0.3s ease;
}
.markdown-background-layer[data-mode="background"]:hover strong, .markdown-background-layer[data-mode="background"]:hover b {
  opacity: 0.364;
  transition: opacity 0.3s ease;
}
.markdown-background-layer[data-mode="reader"] {
  z-index: 100;
  pointer-events: all;
  opacity: 1;
  color: #e2e8f0;
  text-shadow: 1px 1px #00ffc9bf;
  border: 3px solid;
  border-top-color: rgba(123, 173, 39, 0.6);
  border-right-color: rgba(123, 173, 39, 0.6);
  border-bottom-color: rgba(0, 255, 201, 0.6);
  border-left-color: rgba(0, 255, 201, 0.6);
  background: linear-gradient( 135deg, rgba(26, 26, 26, 0.98) 0%, rgba(10, 10, 10, 0.98) 50%, rgba(0, 0, 0, 0.99) 100% );
  box-shadow: 0 8px 32px rgba(154, 154, 49, 0.15), 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(232, 213, 85, 0.2);
}
.markdown-background-layer[data-mode="reader"] .markdown-scroll-wrapper {
  padding: 3rem;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  scroll-behavior: smooth;
}
.markdown-background-layer[data-mode="reader"] .markdown-content-renderer {
  max-width: 65rem;
  margin: 0 auto;
  text-align: left;
}
.markdown-background-layer[data-mode="reader"] p, .markdown-background-layer[data-mode="reader"] li {
  opacity: 1;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.markdown-background-layer[data-mode="reader"] blockquote {
  border-left: 4px solid var(--color-viridian);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}
.markdown-background-layer[data-mode="reader"] ul, .markdown-background-layer[data-mode="reader"] ol {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}
.markdown-background-layer[data-mode="reader"] li {
  margin-bottom: 0.75rem;
}
.markdown-background-layer[data-mode="reader"] hr {
  border: none;
  border-top: 2px solid rgba(123, 173, 39, 0.3);
  margin: 2.5rem 0;
}
.markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="maroon"] h1, .markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="maroon"] h2, .markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="maroon"] h3 {
  color: var(--color-maroon-light);
}
.markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="rust"] h1, .markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="rust"] h2, .markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="rust"] h3 {
  color: var(--color-rust-light);
}
.markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="ochre"] h1, .markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="ochre"] h2, .markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="ochre"] h3 {
  color: var(--color-ochre-light);
}
.markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="viridian"] h1, .markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="viridian"] h2, .markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="viridian"] h3 {
  color: var(--color-viridian-light);
}
.markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="cobalt"] h1, .markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="cobalt"] h2, .markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="cobalt"] h3 {
  color: var(--color-cobalt-light);
}
.markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="amethyst"] h1, .markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="amethyst"] h2, .markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="amethyst"] h3 {
  color: var(--color-amethyst-light);
}
.markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="rose"] h1, .markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="rose"] h2, .markdown-background-layer[data-mode="reader"] .markdown-section[data-suite="rose"] h3 {
  color: var(--color-rose-light);
}
.markdown-background-layer[data-mode="reader"] h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem 0;
  letter-spacing: 0.02em;
}
.markdown-background-layer[data-mode="reader"] h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 2.5rem 0 1.25rem 0;
}
.markdown-background-layer[data-mode="reader"] h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
}
.markdown-background-layer[data-mode="reader"] code {
  font-family: 'Courier New', 'Consolas', monospace;
  background: rgba(123, 173, 39, 0.15);
  color: rgba(0, 255, 201, 0.9);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}
.markdown-background-layer[data-mode="reader"] pre {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(123, 173, 39, 0.3);
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.markdown-background-layer[data-mode="reader"] pre code {
  background: none;
  padding: 0;
  color: #e2e8f0;
  text-shadow: none;
}
.markdown-background-layer[data-mode="reader"] strong, .markdown-background-layer[data-mode="reader"] b {
  font-weight: 700;
  color: rgba(0, 255, 201, 0.95);
}
.markdown-background-layer[data-mode="reader"] .markdown-scroll-wrapper::-webkit-scrollbar {
  width: 10px;
}
.markdown-background-layer[data-mode="reader"] .markdown-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 5px;
}
.markdown-background-layer[data-mode="reader"] .markdown-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-viridian);
  border-radius: 5px;
  border-top: 1px solid var(--color-viridian-border-dark);
  border-right: 1px solid var(--color-viridian-border-dark);
  border-bottom: 1px solid var(--color-viridian-border-light);
  border-left: 1px solid var(--color-viridian-border-light);
}
.markdown-background-layer[data-mode="reader"] .markdown-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--color-viridian-light);
}
.calculator-overlay-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  pointer-events: none;
  transition: z-index 0s 0.6s, opacity 0.6s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.calculator-overlay-layer .calculator-layer-inner {
  pointer-events: all;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}
.calculator-overlay-layer .calculator-layer-inner::-webkit-scrollbar {
  display: none;
}
.calculator-overlay-layer.shadow-box-mode {
  z-index: 10;
  opacity: 0.1;
}
.calculator-overlay-layer.shadow-box-mode .calculator-layer-inner {
  transform: scale(0.85);
  pointer-events: none;
}
.reader-mode-screen-filter {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient( ellipse 60% 50% at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.6) 100% );
  backdrop-filter: blur(2px);
}
.reader-mode-screen-filter.active {
  opacity: 1;
  pointer-events: all;
  cursor: pointer;
}
.close-reader-button {
  position: fixed;
  top: 33px;
  right: 33px;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient( 135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 50%, rgba(0, 0, 0, 0.98) 100% );
  border: 2px solid;
  border-top-color: var(--color-viridian-light);
  border-right-color: var(--color-viridian-light);
  border-bottom-color: var(--color-viridian-dark);
  border-left-color: var(--color-viridian-dark);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(74, 166, 133, 0.2), 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(94, 191, 157, 0.15);
  color: var(--color-viridian-light);
  font-family: 'Space Mono', monospace;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}
.close-reader-button.active {
  opacity: 1 !important;
  pointer-events: all !important;
  transform: scale(1) !important;
}
.close-reader-button.active:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(74, 166, 133, 0.3), 0 3px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(94, 191, 157, 0.25);
  border-top-color: var(--color-viridian);
  border-right-color: var(--color-viridian);
}
.close-reader-button.active:active {
  transform: scale(0.95) !important;
  box-shadow: 0 2px 8px rgba(74, 166, 133, 0.2), 0 1px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(94, 191, 157, 0.1);
}
@media (max-width: 768px) {
  .markdown-background-layer[data-mode="reader"] .markdown-scroll-wrapper {
    padding: 1.5rem;
  }
  .markdown-background-layer[data-mode="reader"] h1 {
    font-size: 2rem;
  }
  .markdown-background-layer[data-mode="reader"] h2 {
    font-size: 1.5rem;
  }
  .markdown-background-layer[data-mode="reader"] h3 {
    font-size: 1.25rem;
  }
  .calculator-overlay-layer.shadow-box-mode .calculator-layer-inner {
    transform: scale(0.75);
  }
}
@layer theme {
  :root, :host {
    --color-slate-50: oklch(0.984 0.003 247.858);
    --color-slate-100: oklch(0.968 0.007 247.896);
    --color-slate-300: oklch(0.869 0.022 252.894);
    --color-slate-600: oklch(0.446 0.043 257.281);
    --color-slate-800: oklch(0.279 0.041 260.031);
    --color-slate-900: oklch(0.208 0.042 265.755);
    --color-black: #000;
    --color-white: #fff;
    --spacing: 0.25rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --font-weight-semibold: 600;
    --radius-lg: 0.5rem;
    --radius-2xl: 1rem;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
}
@layer utilities {
  .invisible {
    visibility: hidden;
  }
  .visible {
    visibility: visible;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .table {
    display: table;
  }
  .min-h-screen {
    min-height: 100vh;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .bg-gradient-to-br {
    --tw-gradient-position: to bottom right in oklab;
    background-image: linear-gradient(var(--tw-gradient-stops));
  }
  .from-slate-800 {
    --tw-gradient-from: var(--color-slate-800);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }
  .via-slate-900 {
    --tw-gradient-via: var(--color-slate-900);
    --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-via-stops);
  }
  .to-black {
    --tw-gradient-to: var(--color-black);
    --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
  }
  .text-wrap {
    text-wrap: wrap;
  }
  .text-white {
    color: var(--color-white);
  }
  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, visibility, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
}
* {
  font-family: 'Orbitron', monospace;
}
@layer components {
  .calculator-container {
    width: 100%;
    max-width: 587px;
    margin: 0 auto;
    padding: 0;
  }
  .calculator-card {
    border-radius: var(--radius-2xl);
    --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    padding: 10px !important;
    border-width: 3px !important;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cstyle%3E.helix%7Bfill:none;stroke:%23000000;stroke-width:1;opacity:0.08%7D%3C/style%3E%3C/defs%3E%3Cg class='helix'%3E%3Cellipse cx='50' cy='40' rx='35' ry='12' /%3E%3Cpath d='M 15 40 Q 25 70, 50 80 T 85 120' /%3E%3Cpath d='M 85 40 Q 75 70, 50 80 T 15 120' /%3E%3Cellipse cx='50' cy='120' rx='35' ry='12' /%3E%3Cpath d='M 15 120 Q 25 150, 50 160 T 85 200' /%3E%3Cpath d='M 85 120 Q 75 150, 50 160 T 15 200' /%3E%3Cellipse cx='150' cy='40' rx='35' ry='12' /%3E%3Cpath d='M 115 40 Q 125 70, 150 80 T 185 120' /%3E%3Cpath d='M 185 40 Q 175 70, 150 80 T 115 120' /%3E%3Cellipse cx='150' cy='120' rx='35' ry='12' /%3E%3Cpath d='M 115 120 Q 125 150, 150 160 T 185 200' /%3E%3Cpath d='M 185 120 Q 175 150, 150 160 T 115 200' /%3E%3Cellipse cx='50' cy='-60' rx='35' ry='12' /%3E%3Cpath d='M 15 -60 Q 25 -30, 50 -20 T 85 20' /%3E%3Cpath d='M 85 -60 Q 75 -30, 50 -20 T 15 20' /%3E%3Cellipse cx='150' cy='-60' rx='35' ry='12' /%3E%3Cpath d='M 115 -60 Q 125 -30, 150 -20 T 185 20' /%3E%3Cpath d='M 185 -60 Q 175 -30, 150 -20 T 115 20' /%3E%3C/g%3E%3C/svg%3E"),  radial-gradient( ellipse 70% 50% at 50% 50%, rgba(232, 213, 85, 0.2) 0%, rgba(196, 184, 67, 0.15) 25%, rgba(154, 154, 49, 0.1) 45%, rgba(112, 128, 31, 0.06) 65%, transparent 100% ),  linear-gradient( 135deg, #1a1a1a 0%, #0a0a0a 30%, #000000 70%, #0a0a0a 100% );
    background-size: 200px 200px, 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0;
    background-repeat: repeat, no-repeat, no-repeat;
    border-top: 2px solid #1b363c;
    border-right: 2px solid #1b363c;
    border-bottom: 2px solid #1d3b41;
    border-left: 2px solid #1d3b41;
    box-shadow: 0 8px 32px rgba(154, 154, 49, 0.15),  0 4px 16px rgba(0, 0, 0, 0.4),  inset 0 1px 0 rgba(232, 213, 85, 0.2);
  }
  .calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( to bottom, rgba(232, 213, 85, 0.15) 0%, rgba(232, 213, 85, 0.05) 30%, transparent 50%, rgba(0, 0, 0, 0.2) 100% );
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
  }
  .controls-wrapper {
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.95), rgba(0, 0, 0, 0.95));
    padding: 5px;
    border-radius: 10px;
    border-top: 3px solid #381121;
    border-right: 3px solid #381121;
    border-bottom: 3px solid #421527;
    border-left: 3px solid #421527;
  }
  .calculator-header {
    position: relative;
    border-radius: 0.5rem;
    padding: 0.75rem;
    isolation: isolate;
    overflow: visible;
    border-top: 2px solid #704d11fc;
    border-right: 2px solid #704d11fc;
    border-bottom: 2px solid #a67219fc;
    border-left: 2px solid #a67219fc;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 213, 85, 0.25) 0%, rgba(196, 184, 67, 0.18) 20%, rgba(154, 154, 49, 0.12) 40%, rgba(112, 128, 31, 0.08) 60%, transparent 100%), linear-gradient(135deg, #362433 0%, #30200f 30%, #361e1e 70%, #29231d 100%);
    box-shadow: inset 0 1px 0 rgba(245, 220, 70, 0.2);
  }
  .calculator-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( to bottom, rgba(232, 213, 85, 0.12) 0%, rgba(232, 213, 85, 0.04) 40%, transparent 50%, rgba(0, 0, 0, 0.2) 100% );
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
  }
  .display-section {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 8px !important;
    margin-bottom: 8px !important;
    background: rgba(255, 255, 255, 0.03);
  }
  .operands-section {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 3px;
    margin-bottom: 3px !important;
    background: rgba(255, 255, 255, 0.03);
  }
  .dialpad-section {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 3px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
  }
  .scientific-section {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
  }
  .dark .display-section, .dark .operands-section, .dark .dialpad-section, .dark .scientific-section {
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
  }
  .hifi-input {
    width: 100%;
    border-radius: var(--radius-lg);
    padding-inline: calc(var(--spacing) * 4);
    padding-block: calc(var(--spacing) * 3);
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    background-color: var(--color-white);
    @media (prefers-color-scheme: dark) {
      background-color: var(--color-slate-800);
    }
    border-style: var(--tw-border-style);
    border-width: 2px;
    border-color: var(--color-slate-300);
    @media (prefers-color-scheme: dark) {
      border-color: var(--color-slate-600);
    }
    color: var(--color-slate-900);
    @media (prefers-color-scheme: dark) {
      color: var(--color-slate-100);
    }
  }
  .hifi-input:focus {
    border-color: var(--color-ochre);
    --tw-ring-color: var(--color-ochre);
    --tw-ring-opacity: 0.5;
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    --tw-outline-style: none;
    outline-style: none;
  }
  .calc-btn {
    border-radius: var(--radius-lg);
    padding-inline: calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 3);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
    --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    &:hover {
      @media (hover: hover) {
        --tw-scale-x: 105%;
        --tw-scale-y: 105%;
        --tw-scale-z: 105%;
        scale: var(--tw-scale-x) var(--tw-scale-y);
      }
    }
    &:hover {
      @media (hover: hover) {
        --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
        box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
      }
    }
    color: var(--color-white);
  }
  .calc-btn-viridian {
    background-color: var(--color-viridian);
  }
  .calc-btn-viridian:hover {
    background-color: var(--color-viridian-light);
  }
  .calc-btn-cobalt {
    background-color: var(--color-cobalt);
  }
  .calc-btn-cobalt:hover {
    background-color: var(--color-cobalt-light);
  }
  .calc-btn-amethyst {
    background-color: var(--color-amethyst);
  }
  .calc-btn-amethyst:hover {
    background-color: var(--color-amethyst-light);
  }
  .calc-btn-ochre {
    background-color: var(--color-ochre);
  }
  .calc-btn-ochre:hover {
    background-color: var(--color-ochre-light);
  }
  .calc-btn-red {
    background-color: var(--color-red);
  }
  .calc-btn-red:hover {
    background-color: var(--color-red-light);
  }
  .calc-btn:disabled {
    cursor: not-allowed;
    opacity: 30%;
    &:hover {
      @media (hover: hover) {
        --tw-scale-x: 100%;
        --tw-scale-y: 100%;
        --tw-scale-z: 100%;
        scale: var(--tw-scale-x) var(--tw-scale-y);
      }
    }
    &:hover {
      @media (hover: hover) {
        --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
        box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
      }
    }
  }
  .result-display {
    border-radius: var(--radius-lg);
    border-style: var(--tw-border-style);
    border-width: 2px;
    padding: calc(var(--spacing) * 4);
    background-color: rgb(from var(--color-maroon) r g b / 0.1);
    border-color: var(--color-maroon);
    color: var(--color-maroon);
  }
  .dark .result-display {
    background-color: rgb(from var(--color-maroon) r g b / 0.2);
  }
  .error-display {
    border-radius: var(--radius-lg);
    border-style: var(--tw-border-style);
    border-width: 2px;
    padding: calc(var(--spacing) * 4);
    background-color: rgb(from var(--color-red) r g b / 0.1);
    border-color: var(--color-red);
    color: var(--color-red);
  }
  .dark .error-display {
    background-color: rgb(from var(--color-red) r g b / 0.2);
  }
  .hifi-label {
    margin-top: calc(var(--spacing) * 1);
    display: block;
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
    opacity: 75%;
    transition-property: opacity;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    &:is(:where(.group):hover *) {
      @media (hover: hover) {
        opacity: 100%;
      }
    }
  }
  .hifi-surface-light {
    background-color: var(--color-slate-50);
    color: var(--color-slate-900);
  }
  .hifi-surface-dark {
    background-color: var(--color-slate-900);
    color: var(--color-slate-100);
  }
  .hifi-btn-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 3px;
    background: rgba(0, 0, 0, 0.3);
    isolation: isolate;
    max-height: 60px;
  }
  .dark .hifi-btn-wrapper {
    background: rgba(0, 0, 0, 0.5);
  }
  .hifi-btn-wrapper-zero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 3px;
    background: rgba(0, 0, 0, 0.3);
    isolation: isolate;
    grid-column: span 2;
    max-height: 60px;
  }
  .dark .hifi-btn-wrapper-zero {
    background: rgba(0, 0, 0, 0.5);
  }
  .hifi-btn-digit {
    position: relative;
    border-radius: var(--radius-lg);
    padding-inline: calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 3);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    --tw-duration: 300ms;
    transition-duration: 300ms;
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
    color: var(--color-white);
    font-family: 'Orbitron', monospace;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-cobalt), radial-gradient(circle at 87.5% 12.5%, var(--color-cobalt) 0%, #151d1e 88%);
    background-repeat: repeat, no-repeat;
    background-size: 30px 30px, 100% 100%;
    background-position: 0 0, 0 0;
    border-top: 2px solid var(--color-cobalt-border-dark);
    border-right: 2px solid var(--color-cobalt-border-dark);
    border-bottom: 2px solid var(--color-cobalt-border-light);
    border-left: 2px solid var(--color-cobalt-border-light);
    box-shadow: -8px 8px 32px var(--color-cobalt-shadow);
  }
  .hifi-btn-digit:hover {
    background-image: var(--pattern-cobalt), radial-gradient(circle at 87.5% 12.5%, var(--color-cobalt-light) 0%, #151d1e 88%);
    box-shadow: -6px 6px 24px var(--color-cobalt-shadow);
    transform: scale(0.96);
  }
  .hifi-btn-digit:active {
    border-top: 2px solid var(--color-cobalt-border-light);
    border-right: 2px solid var(--color-cobalt-border-light);
    border-bottom: 2px solid var(--color-cobalt-border-dark);
    border-left: 2px solid var(--color-cobalt-border-dark);
  }
  .hifi-btn-add {
    position: relative;
    border-radius: var(--radius-lg);
    padding-inline: calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 3);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    --tw-duration: 300ms;
    transition-duration: 300ms;
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
    color: var(--color-white);
    font-family: 'Orbitron', monospace;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-rust), radial-gradient(circle at 87.5% 12.5%, var(--color-rust) 0%, #1e1915 88%);
    background-repeat: repeat, no-repeat;
    background-size: 30px 30px, 100% 100%;
    background-position: 0 0, 0 0;
    border-top: 2px solid var(--color-rust-border-dark);
    border-right: 2px solid var(--color-rust-border-dark);
    border-bottom: 2px solid var(--color-rust-border-light);
    border-left: 2px solid var(--color-rust-border-light);
    box-shadow: -8px 8px 32px var(--color-rust-shadow);
  }
  .hifi-btn-add:hover {
    background-image: var(--pattern-rust), radial-gradient(circle at 87.5% 12.5%, var(--color-rust-light) 0%, #1e1915 88%);
    box-shadow: -6px 6px 24px var(--color-rust-shadow);
    transform: scale(0.96);
  }
  .hifi-btn-add:active {
    border-top: 2px solid var(--color-rust-border-light);
    border-right: 2px solid var(--color-rust-border-light);
    border-bottom: 2px solid var(--color-rust-border-dark);
    border-left: 2px solid var(--color-rust-border-dark);
  }
  .hifi-btn-subtract {
    position: relative;
    border-radius: var(--radius-lg);
    padding-inline: calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 3);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    --tw-duration: 300ms;
    transition-duration: 300ms;
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
    color: var(--color-white);
    font-family: 'Orbitron', monospace;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-rose), radial-gradient(circle at 87.5% 12.5%, var(--color-rose) 0%, #1e151d 88%);
    background-repeat: repeat, no-repeat;
    background-size: 30px 30px, 100% 100%;
    background-position: 0 0, 0 0;
    border-top: 2px solid var(--color-rose-border-dark);
    border-right: 2px solid var(--color-rose-border-dark);
    border-bottom: 2px solid var(--color-rose-border-light);
    border-left: 2px solid var(--color-rose-border-light);
    box-shadow: -8px 8px 32px var(--color-rose-shadow);
  }
  .hifi-btn-subtract:hover {
    background-image: var(--pattern-rose), radial-gradient(circle at 87.5% 12.5%, var(--color-rose-light) 0%, #1e151d 88%);
    box-shadow: -6px 6px 24px var(--color-rose-shadow);
    transform: scale(0.96);
  }
  .hifi-btn-subtract:active {
    border-top: 2px solid var(--color-rose-border-light);
    border-right: 2px solid var(--color-rose-border-light);
    border-bottom: 2px solid var(--color-rose-border-dark);
    border-left: 2px solid var(--color-rose-border-dark);
  }
  .hifi-btn-zero {
    position: relative;
    border-radius: var(--radius-lg);
    padding-inline: calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 3);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    --tw-duration: 300ms;
    transition-duration: 300ms;
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
    color: var(--color-white);
    font-family: 'Orbitron', monospace;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-maroon), radial-gradient(circle at 87.5% 12.5%, var(--color-maroon) 0%, #1e1515 88%);
    background-repeat: repeat, no-repeat;
    background-size: 30px 30px, 100% 100%;
    background-position: 0 0, 0 0;
    border-top: 2px solid var(--color-maroon-border-dark);
    border-right: 2px solid var(--color-maroon-border-dark);
    border-bottom: 2px solid var(--color-maroon-border-light);
    border-left: 2px solid var(--color-maroon-border-light);
    box-shadow: -8px 8px 32px var(--color-maroon-shadow);
  }
  .hifi-btn-zero:hover {
    background-image: var(--pattern-maroon), radial-gradient(circle at 87.5% 12.5%, var(--color-maroon-light) 0%, #1e1515 88%);
    box-shadow: -6px 6px 24px var(--color-maroon-shadow);
    transform: scale(0.96);
  }
  .hifi-btn-zero:active {
    border-top: 2px solid var(--color-maroon-border-light);
    border-right: 2px solid var(--color-maroon-border-light);
    border-bottom: 2px solid var(--color-maroon-border-dark);
    border-left: 2px solid var(--color-maroon-border-dark);
  }
  .hifi-btn-backspace {
    position: relative;
    border-radius: var(--radius-lg);
    padding-inline: calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 3);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    --tw-duration: 300ms;
    transition-duration: 300ms;
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
    color: var(--color-white);
    font-family: 'Orbitron', monospace;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-amethyst), radial-gradient(circle at 87.5% 12.5%, var(--color-amethyst) 0%, #1a151e 88%);
    background-repeat: repeat, no-repeat;
    background-size: 30px 30px, 100% 100%;
    background-position: 0 0, 0 0;
    border-top: 2px solid var(--color-amethyst-border-dark);
    border-right: 2px solid var(--color-amethyst-border-dark);
    border-bottom: 2px solid var(--color-amethyst-border-light);
    border-left: 2px solid var(--color-amethyst-border-light);
    box-shadow: -8px 8px 32px var(--color-amethyst-shadow);
  }
  .hifi-btn-backspace:hover {
    background-image: var(--pattern-amethyst), radial-gradient(circle at 87.5% 12.5%, var(--color-amethyst-light) 0%, #1a151e 88%);
    box-shadow: -6px 6px 24px var(--color-amethyst-shadow);
    transform: scale(0.96);
  }
  .hifi-btn-backspace:active {
    border-top: 2px solid var(--color-amethyst-border-light);
    border-right: 2px solid var(--color-amethyst-border-light);
    border-bottom: 2px solid var(--color-amethyst-border-dark);
    border-left: 2px solid var(--color-amethyst-border-dark);
  }
  .hifi-btn-signed {
    position: relative;
    border-radius: var(--radius-lg);
    padding-inline: calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 3);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    --tw-duration: 300ms;
    transition-duration: 300ms;
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
    color: var(--color-white);
    font-family: 'Orbitron', monospace;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-ochre), radial-gradient(circle at 87.5% 12.5%, var(--color-ochre) 0%, #1e1d15 88%);
    background-repeat: repeat, no-repeat;
    background-size: 30px 30px, 100% 100%;
    background-position: 0 0, 0 0;
    border-top: 2px solid var(--color-ochre-border-dark);
    border-right: 2px solid var(--color-ochre-border-dark);
    border-bottom: 2px solid var(--color-ochre-border-light);
    border-left: 2px solid var(--color-ochre-border-light);
    box-shadow: -8px 8px 32px var(--color-ochre-shadow);
  }
  .hifi-btn-signed:hover {
    background-image: var(--pattern-ochre), radial-gradient(circle at 87.5% 12.5%, var(--color-ochre-light) 0%, #1e1d15 88%);
    box-shadow: -6px 6px 24px var(--color-ochre-shadow);
    transform: scale(0.96);
  }
  .hifi-btn-signed:active {
    border-top: 2px solid var(--color-ochre-border-light);
    border-right: 2px solid var(--color-ochre-border-light);
    border-bottom: 2px solid var(--color-ochre-border-dark);
    border-left: 2px solid var(--color-ochre-border-dark);
  }
  .hifi-btn-flip {
    position: relative;
    border-radius: var(--radius-lg);
    padding-inline: calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 3);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    --tw-duration: 300ms;
    transition-duration: 300ms;
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
    color: var(--color-white);
    font-family: 'Orbitron', monospace;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-viridian), radial-gradient(circle at 87.5% 12.5%, var(--color-viridian) 0%, #1d1e15 88%);
    background-repeat: repeat, no-repeat;
    background-size: 30px 30px, 100% 100%;
    background-position: 0 0, 0 0;
    border-top: 2px solid var(--color-viridian-border-dark);
    border-right: 2px solid var(--color-viridian-border-dark);
    border-bottom: 2px solid var(--color-viridian-border-light);
    border-left: 2px solid var(--color-viridian-border-light);
    box-shadow: -8px 8px 32px var(--color-viridian-shadow);
  }
  .hifi-btn-flip:hover {
    background-image: var(--pattern-viridian), radial-gradient(circle at 87.5% 12.5%, var(--color-viridian-light) 0%, #1d1e15 88%);
    box-shadow: -6px 6px 24px var(--color-viridian-shadow);
    transform: scale(0.96);
  }
  .hifi-btn-flip:active {
    border-top: 2px solid var(--color-viridian-border-light);
    border-right: 2px solid var(--color-viridian-border-light);
    border-bottom: 2px solid var(--color-viridian-border-dark);
    border-left: 2px solid var(--color-viridian-border-dark);
  }
  .hifi-btn-clear {
    position: relative;
    border-radius: var(--radius-lg);
    padding-inline: calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 3);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    --tw-duration: 300ms;
    transition-duration: 300ms;
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
    color: var(--color-white);
    font-family: 'Orbitron', monospace;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-red), radial-gradient(circle at 87.5% 12.5%, var(--color-red) 0%, #1e1515 88%);
    background-repeat: repeat, no-repeat;
    background-size: 30px 30px, 100% 100%;
    background-position: 0 0, 0 0;
    border-top: 2px solid var(--color-red-border-dark);
    border-right: 2px solid var(--color-red-border-dark);
    border-bottom: 2px solid var(--color-red-border-light);
    border-left: 2px solid var(--color-red-border-light);
    box-shadow: -8px 8px 32px var(--color-red-shadow);
  }
  .hifi-btn-clear:hover {
    background-image: var(--pattern-red), radial-gradient(circle at 87.5% 12.5%, var(--color-red-light) 0%, #1e1515 88%);
    box-shadow: -6px 6px 24px var(--color-red-shadow);
    transform: scale(0.96);
  }
  .hifi-btn-clear:active {
    border-top: 2px solid var(--color-red-border-light);
    border-right: 2px solid var(--color-red-border-light);
    border-bottom: 2px solid var(--color-red-border-dark);
    border-left: 2px solid var(--color-red-border-dark);
  }
  .hifi-btn-obsidian {
    position: relative;
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
    font-family: 'Space Mono', monospace;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 0;
    background-image: var(--pattern-obsidian), radial-gradient(circle at 87.5% 12.5%, #1a1a1a 0%, #000000 88%);
    background-repeat: repeat, no-repeat;
    background-size: 30px 30px, 100% 100%;
    background-position: 0 0, 0 0;
    border-top: 2px solid #0a0a0a;
    border-right: 2px solid #0a0a0a;
    border-bottom: 2px solid #2a2a2a;
    border-left: 2px solid #2a2a2a;
    box-shadow: -8px 8px 32px rgba(0, 0, 0, 0.8);
  }
  .hifi-btn-calculate {
    position: relative;
    border-radius: var(--radius-lg);
    padding-inline: calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 3);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    --tw-duration: 300ms;
    transition-duration: 300ms;
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
    color: var(--color-white);
    font-family: 'Space Mono', monospace;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-cobalt), radial-gradient(circle at 87.5% 12.5%, var(--color-cobalt) 0%, #151d1e 88%);
    background-repeat: repeat, no-repeat;
    background-size: 30px 30px, 100% 100%;
    background-position: 0 0, 0 0;
    border-top: 2px solid var(--color-cobalt-border-dark);
    border-right: 2px solid var(--color-cobalt-border-dark);
    border-bottom: 2px solid var(--color-cobalt-border-light);
    border-left: 2px solid var(--color-cobalt-border-light);
    box-shadow: -8px 8px 32px var(--color-cobalt-shadow);
  }
  .hifi-btn-calculate:hover {
    background-image: var(--pattern-cobalt), radial-gradient(circle at 87.5% 12.5%, var(--color-cobalt-light) 0%, #151d1e 88%);
    box-shadow: -6px 6px 24px var(--color-cobalt-shadow);
    transform: scale(0.96);
  }
  .hifi-btn-calculate:active {
    border-top: 2px solid var(--color-cobalt-border-light);
    border-right: 2px solid var(--color-cobalt-border-light);
    border-bottom: 2px solid var(--color-cobalt-border-dark);
    border-left: 2px solid var(--color-cobalt-border-dark);
  }
  .hifi-btn-compare {
    position: relative;
    border-radius: var(--radius-lg);
    padding-inline: calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 3);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    --tw-duration: 300ms;
    transition-duration: 300ms;
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
    color: var(--color-white);
    font-family: 'Space Mono', monospace;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-amethyst), radial-gradient(circle at 87.5% 12.5%, var(--color-amethyst) 0%, #1a151e 88%);
    background-repeat: repeat, no-repeat;
    background-size: 30px 30px, 100% 100%;
    background-position: 0 0, 0 0;
    border-top: 2px solid var(--color-amethyst-border-dark);
    border-right: 2px solid var(--color-amethyst-border-dark);
    border-bottom: 2px solid var(--color-amethyst-border-light);
    border-left: 2px solid var(--color-amethyst-border-light);
    box-shadow: -8px 8px 32px var(--color-amethyst-shadow);
  }
  .hifi-btn-compare:hover {
    background-image: var(--pattern-amethyst), radial-gradient(circle at 87.5% 12.5%, var(--color-amethyst-light) 0%, #1a151e 88%);
    box-shadow: -6px 6px 24px var(--color-amethyst-shadow);
    transform: scale(0.96);
  }
  .hifi-btn-compare:active {
    border-top: 2px solid var(--color-amethyst-border-light);
    border-right: 2px solid var(--color-amethyst-border-light);
    border-bottom: 2px solid var(--color-amethyst-border-dark);
    border-left: 2px solid var(--color-amethyst-border-dark);
  }
  .hifi-btn-multiply {
    position: relative;
    border-radius: var(--radius-lg);
    padding-inline: calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 3);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    --tw-duration: 300ms;
    transition-duration: 300ms;
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
    color: var(--color-white);
    font-family: 'Space Mono', monospace;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-viridian), radial-gradient(circle at 87.5% 12.5%, var(--color-viridian) 0%, #1d1e15 88%);
    background-repeat: repeat, no-repeat;
    background-size: 30px 30px, 100% 100%;
    background-position: 0 0, 0 0;
    border-top: 2px solid var(--color-viridian-border-dark);
    border-right: 2px solid var(--color-viridian-border-dark);
    border-bottom: 2px solid var(--color-viridian-border-light);
    border-left: 2px solid var(--color-viridian-border-light);
    box-shadow: -8px 8px 32px var(--color-viridian-shadow);
  }
  .hifi-btn-multiply:hover:not(:disabled) {
    background-image: var(--pattern-viridian), radial-gradient(circle at 87.5% 12.5%, var(--color-viridian-light) 0%, #1d1e15 88%);
    box-shadow: -6px 6px 24px var(--color-viridian-shadow);
    transform: scale(0.96);
  }
  .hifi-btn-multiply:active:not(:disabled) {
    border-top: 2px solid var(--color-viridian-border-light);
    border-right: 2px solid var(--color-viridian-border-light);
    border-bottom: 2px solid var(--color-viridian-border-dark);
    border-left: 2px solid var(--color-viridian-border-dark);
  }
  .hifi-btn-divide {
    position: relative;
    border-radius: var(--radius-lg);
    padding-inline: calc(var(--spacing) * 6);
    padding-block: calc(var(--spacing) * 3);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
    --tw-duration: 300ms;
    transition-duration: 300ms;
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
    color: var(--color-white);
    font-family: 'Space Mono', monospace;
    width: 100%;
    height: 100%;
    background-image: var(--pattern-ochre), radial-gradient(circle at 87.5% 12.5%, var(--color-ochre) 0%, #1e1d15 88%);
    background-repeat: repeat, no-repeat;
    background-size: 30px 30px, 100% 100%;
    background-position: 0 0, 0 0;
    border-top: 2px solid var(--color-ochre-border-dark);
    border-right: 2px solid var(--color-ochre-border-dark);
    border-bottom: 2px solid var(--color-ochre-border-light);
    border-left: 2px solid var(--color-ochre-border-light);
    box-shadow: -8px 8px 32px var(--color-ochre-shadow);
  }
  .hifi-btn-divide:hover:not(:disabled) {
    background-image: var(--pattern-ochre), radial-gradient(circle at 87.5% 12.5%, var(--color-ochre-light) 0%, #1e1d15 88%);
    box-shadow: -6px 6px 24px var(--color-ochre-shadow);
    transform: scale(0.96);
  }
  .hifi-btn-divide:active:not(:disabled) {
    border-top: 2px solid var(--color-ochre-border-light);
    border-right: 2px solid var(--color-ochre-border-light);
    border-bottom: 2px solid var(--color-ochre-border-dark);
    border-left: 2px solid var(--color-ochre-border-dark);
  }
  .hifi-btn-multiply:disabled, .hifi-btn-divide:disabled, .hifi-btn-add:disabled, .hifi-btn-subtract:disabled, .hifi-btn-compare:disabled, .hifi-btn-calculate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .version-tag {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 1px 4px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Space Mono', monospace;
    pointer-events: none;
    z-index: 10;
  }
}
@layer utilities {
  .text-gradient-hifi {
    background-clip: text;
    color: transparent;
    background-image: linear-gradient( 90deg, rgb(var(--color-maroon)), rgb(var(--color-ochre)), rgb(var(--color-rose)) );
  }
  .transition-colors-300 {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }
}
@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0.2;
  }
}
.input-cursor {
  display: none;
  width: 2px;
  height: 28px;
  background-color: var(--color-ochre);
  animation: none;
  opacity: 0;
}
.input-row-active .input-cursor {
  display: none;
  opacity: 0;
}
@media (hover: none) {
  .dial-btn:hover, .operand-btn:hover, .sci-btn:hover {
    transform: none;
    box-shadow: none;
    background-color: inherit;
  }
}
@media (hover: hover) {
  .dial-btn:hover {
    background-color: rgb(15 23 42);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  .operand-add:hover {
    background-color: var(--color-viridian-light);
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(64, 130, 109, 0.4);
  }
  .operand-subtract:hover {
    background-color: var(--color-cobalt-light);
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(0, 71, 171, 0.4);
  }
  .operand-compare:hover {
    background-color: var(--color-amethyst-light);
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(106, 13, 173, 0.4);
  }
  .operand-calculate:hover {
    background-color: rgb(34 197 94);
    transform: scale(0.96);
  }
  .operand-clear:hover {
    background-color: var(--color-red-light);
    transform: scale(0.96);
  }
}
@keyframes slideInGlow {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  50% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}
@keyframes flash-ochre {
  0%, 100% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(204, 119, 34, 0.3);
  }
}
@keyframes flash-red {
  0%, 100% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(220, 20, 60, 0.1);
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.calculator-header {
  position: relative;
  text-align: center;
  overflow: visible;
}
.calculator-title {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  text-shadow: 1px 2px crimson;
}
.hifi-eight {
  text-shadow: 1px 2px var(--color-rust);
}
.hifi-viridian {
  color: var(--color-viridian);
  text-shadow: 1px 2px var(--color-ochre);
}
.hifi-cobalt {
  color: var(--color-cobalt);
  text-shadow: 1px 2px var(--color-viridian);
}
.hifi-amethyst {
  color: var(--color-amethyst);
  text-shadow: 1px 2px var(--color-cobalt);
}
.hifi-rose {
  color: var(--color-rose);
  text-shadow: 1px 2px var(--color-amethyst);
}
.calculator-subtitle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}
.calculator-subtitle {
  font-size: 0.875rem;
  color: rgb(123 173 39);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px #00ffc9bf;
  margin: 0;
  padding: 0;
}
.calculator-subtitle.inactive {
  display: none;
}
#clockSubtitle {
  color: var(--color-viridian);
  text-shadow: 1px 1px var(--color-ochre);
}
.header-toggleable {
  cursor: pointer;
  user-select: none;
}
.header-toggleable:focus-visible {
  outline: 2px solid var(--color-ochre);
  outline-offset: 4px;
}
.calculator-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect x='10' y='10' width='35' height='35' stroke='%23800000' stroke-width='2' fill='none'/%3E%3Crect x='55' y='10' width='35' height='35' stroke='%23800000' stroke-width='2' fill='none'/%3E%3Crect x='10' y='55' width='35' height='35' stroke='%23800000' stroke-width='2' fill='none'/%3E%3Crect x='55' y='55' width='35' height='35' stroke='%23800000' stroke-width='2' fill='none'/%3E%3Ccircle cx='27.5' cy='27.5' r='8' stroke='%23800000' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='72.5' cy='72.5' r='8' stroke='%23800000' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-size: 33px 33px;
  background-position: 0 -3px;
  background-repeat: repeat;
  opacity: 0.1;
  transition: opacity 0.3s ease-out;
  pointer-events: none;
  z-index: 0;
  border-radius: 8px;
}
.calculator-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 18 C62 18 70 28 70 40 L70 52 L66 48 L62 52 L58 48 L54 52 L50 48 L46 52 L42 48 L38 52 L34 48 L30 52 L30 40 C30 28 38 18 50 18 Z' stroke='%2340826D' stroke-width='2' fill='none'/%3E%3Cline x1='50' y1='0' x2='50' y2='18' stroke='%2340826D' stroke-width='1.5' stroke-dasharray='4,4'/%3E%3Cline x1='50' y1='52' x2='50' y2='100' stroke='%2340826D' stroke-width='1.5' stroke-dasharray='4,4'/%3E%3Cline x1='0' y1='35' x2='30' y2='35' stroke='%2340826D' stroke-width='1.5' stroke-dasharray='4,4'/%3E%3Cline x1='70' y1='35' x2='100' y2='35' stroke='%2340826D' stroke-width='1.5' stroke-dasharray='4,4'/%3E%3Ccircle cx='50' cy='0' r='3' stroke='%2340826D' stroke-width='1' fill='none'/%3E%3Ccircle cx='0' cy='35' r='3' stroke='%2340826D' stroke-width='1' fill='none'/%3E%3Ccircle cx='100' cy='35' r='3' stroke='%2340826D' stroke-width='1' fill='none'/%3E%3Ccircle cx='50' cy='100' r='3' stroke='%2340826D' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  background-position: 0 -3px;
  background-repeat: repeat;
  opacity: 0.1;
  transition: opacity 0.3s ease-out;
  pointer-events: none;
  z-index: 0;
  border-radius: 8px;
}
.calculator-header:hover::before {
  opacity: 0.8;
}
.calculator-header:active::before {
  opacity: 1.0;
}
.calculator-header.header-clock-mode::before {
  opacity: 0.1;
}
.calculator-header.header-clock-mode:hover::before {
  opacity: 0.1;
}
.calculator-header.header-clock-mode:hover::after {
  opacity: 0.8;
}
.calculator-header.header-clock-mode:active::after {
  opacity: 1.0;
}
.header-content {
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.header-calc-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: visible;
  flex-wrap: nowrap;
}
.header-calc-content .cheshire-ghost {
  flex-shrink: 0;
}
.header-calc-content .calculator-title {
  margin-top: 0;
  margin-bottom: 0;
}
.header-clock-mode .header-calc-content {
  display: none;
}
.header-clock-display {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-viridian);
  text-shadow: 0 0 10px rgba(74, 166, 133, 0.5), 1px 2px var(--color-ochre);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  margin: 0;
  padding: 0.5rem 0;
}
.cheshire-ghost {
  --ghost-size: 100px;
  --ghost-speed: 0.6s;
  width: var(--ghost-size);
  height: var(--ghost-size);
  background-repeat: no-repeat;
  background-size: calc(var(--ghost-size) * 8) var(--ghost-size);
  animation: ghost-chomp var(--ghost-speed) steps(8) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 100'%3E%3Cpath fill-rule='evenodd' fill='%234aa685' d='M 50 8 C 78 8 92 30 92 50 L 92 72 Q 86 72 86 80 Q 86 72 78 72 Q 72 72 72 84 Q 72 72 64 72 Q 58 72 58 88 Q 58 72 50 72 Q 44 72 44 84 Q 44 72 36 72 Q 30 72 30 80 Q 30 72 22 72 Q 16 72 16 76 Q 16 72 8 72 L 8 50 C 8 30 22 8 50 8 Z M 92.035 47.998 L 92 51.301 L 52 50 L 44.88 48.592 L 41.24 44.568 L 40.563 38.853 L 43.925 34.72 C 43.925 34.72 47.916 33.039 50.247 33.546 C 51.062 36.044 49.511 38.739 49.511 38.739 L 47.048 40.88 L 47.779 35.915 L 43.279 39.745 L 44.016 43.866 L 46.686 46.652 L 50.245 47.432 L 54.932 47.754 L 88.356 48.172 L 88.768 49.858 L 90.666 48.091 L 92.035 47.998 Z'/%3E%3Cpath fill-rule='evenodd' fill='%234aa685' transform='translate(100,0)' d='M 50 8 C 78 8 92 30 92 50 L 92 72 Q 86 72 86 76 Q 86 72 78 72 Q 72 72 72 80 Q 72 72 64 72 Q 58 72 58 84 Q 58 72 50 72 Q 44 72 44 88 Q 44 72 36 72 Q 30 72 30 84 Q 30 72 22 72 Q 16 72 16 80 Q 16 72 8 72 L 8 50 C 8 30 22 8 50 8 Z M 92 46 L 92 54 L 50 50.5 L 45 50 L 40.5 47.5 L 38.53 39.83 L 41.045 36.22 C 41.045 36.22 42.855 33.688 45.249 33.612 C 47.336 33.546 47.307 37.627 47.307 37.627 L 46.013 41.504 L 44.562 36.634 L 41.192 40.42 L 42.643 45.388 L 46.8 47.5 L 50.102 47.757 L 56 47.5 L 87.282 46.333 L 87.785 48.905 L 90.077 46.195 L 92 46 Z'/%3E%3Cpath fill-rule='evenodd' fill='%234aa685' transform='translate(200,0)' d='M 50 8 C 78 8 92 30 92 50 L 92 72 Q 86 72 86 78 Q 86 72 78 72 Q 72 72 72 76 Q 72 72 64 72 Q 58 72 58 80 Q 58 72 50 72 Q 44 72 44 84 Q 44 72 36 72 Q 30 72 30 88 Q 30 72 22 72 Q 16 72 16 84 Q 16 72 8 72 L 8 50 C 8 30 22 8 50 8 Z M 92 42 L 92 58 L 47.934 51.264 L 43 50.5 L 37.867 47.835 L 35.972 42.145 L 37.411 36.484 C 37.411 36.484 39.554 34.249 42.054 33.249 C 44.348 33.445 46.414 36.129 46.414 36.129 L 46.705 39.551 L 42.493 36.184 L 39.66 39.535 L 39.946 44.048 L 43.13 46.917 L 48.933 48.439 L 55.968 48.355 L 86.061 43.055 L 87.055 46.707 L 89.713 42.462 L 92 42 Z'/%3E%3Cpath fill-rule='evenodd' fill='%234aa685' transform='translate(300,0)' d='M 50 8 C 78 8 92 30 92 50 L 92 72 Q 86 72 86 82 Q 86 72 78 72 Q 72 72 72 78 Q 72 72 64 72 Q 58 72 58 76 Q 58 72 50 72 Q 44 72 44 80 Q 44 72 36 72 Q 30 72 30 84 Q 30 72 22 72 Q 16 72 16 88 Q 16 72 8 72 L 8 50 C 8 30 22 8 50 8 Z M 92 35 L 92 65 L 44.813 52.001 L 40 51 L 35.492 48.736 L 33 45 L 33.039 38.715 C 33.039 38.715 35.245 33.643 38 33 C 40.755 32.357 43.724 34.537 43.724 34.537 L 44.85 37.572 L 39.116 35.617 L 36.331 39.312 L 36.727 44.592 L 40.625 47.541 L 46.528 48.669 L 53.267 48.406 L 86 37.07 L 87.256 41.824 L 89.975 35.952 L 92 35 Z'/%3E%3Cpath fill-rule='evenodd' fill='%234aa685' transform='translate(400,0)' d='M 50 8 C 78 8 92 30 92 50 L 92 72 Q 86 72 86 86 Q 86 72 78 72 Q 72 72 72 82 Q 72 72 64 72 Q 58 72 58 78 Q 58 72 50 72 Q 44 72 44 76 Q 44 72 36 72 Q 30 72 30 80 Q 30 72 22 72 Q 16 72 16 84 Q 16 72 8 72 L 8 50 C 8 30 22 8 50 8 Z M 92 42 L 92 58 L 47.934 51.264 L 43 50.5 L 37.867 47.835 L 35.972 42.145 L 37.411 36.484 C 37.411 36.484 39.554 34.249 42.054 33.249 C 44.348 33.445 46.414 36.129 46.414 36.129 L 46.705 39.551 L 42.493 36.184 L 39.66 39.535 L 39.946 44.048 L 43.13 46.917 L 48.933 48.439 L 55.968 48.355 L 86.061 43.055 L 87.055 46.707 L 89.713 42.462 L 92 42 Z'/%3E%3Cpath fill-rule='evenodd' fill='%234aa685' transform='translate(500,0)' d='M 50 8 C 78 8 92 30 92 50 L 92 72 Q 86 72 86 88 Q 86 72 78 72 Q 72 72 72 86 Q 72 72 64 72 Q 58 72 58 82 Q 58 72 50 72 Q 44 72 44 78 Q 44 72 36 72 Q 30 72 30 76 Q 30 72 22 72 Q 16 72 16 80 Q 16 72 8 72 L 8 50 C 8 30 22 8 50 8 Z M 92 46 L 92 54 L 50 50.5 L 45 50 L 40.5 47.5 L 38.53 39.83 L 41.045 36.22 C 41.045 36.22 42.855 33.688 45.249 33.612 C 47.336 33.546 47.307 37.627 47.307 37.627 L 46.013 41.504 L 44.562 36.634 L 41.192 40.42 L 42.643 45.388 L 46.8 47.5 L 50.102 47.757 L 56 47.5 L 87.282 46.333 L 87.785 48.905 L 90.077 46.195 L 92 46 Z'/%3E%3Cpath fill-rule='evenodd' fill='%234aa685' transform='translate(600,0)' d='M 50 8 C 78 8 92 30 92 50 L 92 72 Q 86 72 86 84 Q 86 72 78 72 Q 72 72 72 88 Q 72 72 64 72 Q 58 72 58 86 Q 58 72 50 72 Q 44 72 44 82 Q 44 72 36 72 Q 30 72 30 78 Q 30 72 22 72 Q 16 72 16 76 Q 16 72 8 72 L 8 50 C 8 30 22 8 50 8 Z M 92.035 47.998 L 92 51.301 L 52 50 L 44.88 48.592 L 41.24 44.568 L 40.563 38.853 L 43.925 34.72 C 43.925 34.72 47.916 33.039 50.247 33.546 C 51.062 36.044 49.511 38.739 49.511 38.739 L 47.048 40.88 L 47.779 35.915 L 43.279 39.745 L 44.016 43.866 L 46.686 46.652 L 50.245 47.432 L 54.932 47.754 L 88.356 48.172 L 88.768 49.858 L 90.666 48.091 L 92.035 47.998 Z'/%3E%3Cpath fill-rule='evenodd' fill='%234aa685' transform='translate(700,0)' d='M 50 8 C 78 8 92 30 92 50 L 92 72 Q 86 72 86 82 Q 86 72 78 72 Q 72 72 72 86 Q 72 72 64 72 Q 58 72 58 88 Q 58 72 50 72 Q 44 72 44 86 Q 44 72 36 72 Q 30 72 30 82 Q 30 72 22 72 Q 16 72 16 78 Q 16 72 8 72 L 8 50 C 8 30 22 8 50 8 Z M 92 46 L 92 54 L 50 50.5 L 45 50 L 40.5 47.5 L 38.53 39.83 L 41.045 36.22 C 41.045 36.22 42.855 33.688 45.249 33.612 C 47.336 33.546 47.307 37.627 47.307 37.627 L 46.013 41.504 L 44.562 36.634 L 41.192 40.42 L 42.643 45.388 L 46.8 47.5 L 50.102 47.757 L 56 47.5 L 87.282 46.333 L 87.785 48.905 L 90.077 46.195 L 92 46 Z'/%3E%3C/svg%3E");
}
@keyframes ghost-chomp {
  from {
    background-position: 0 0;
  }
  to {
    background-position: calc(var(--ghost-size) * -8) 0;
  }
}
.cheshire-ghost.fast {
  --ghost-speed: 0.3s;
}
.cheshire-ghost.clock-icon {
  --ghost-size: 65px;
  --ghost-speed: 0.3s;
  transform: scaleX(0.88);
  filter: drop-shadow(0 0 10px rgba(74, 166, 133, 0.5)) drop-shadow(1px 2px 0 var(--color-ochre));
}
.cheshire-ghost.clock-icon.inactive {
  animation-play-state: paused;
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)) drop-shadow(1px 2px 0 var(--color-rose));
}
.cheshire-ghost.clock-icon.inactive:hover {
  animation-play-state: unset;
  filter: unset;
}
@media (max-width: 520px) {
  .cheshire-ghost.clock-icon {
    --ghost-size: 48px;
    transform: scaleX(0.85);
  }
}
@media (max-width: 374px) {
  .cheshire-ghost.clock-icon {
    --ghost-size: 36px;
    transform: scaleX(0.8);
  }
}
.header-clock-content {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.header-clock-mode .header-clock-content {
  display: flex;
}
.display-section {
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.95), rgba(0, 0, 0, 0.95) );
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
  border-top: 3px solid #3a124d;
  border-right: 3px solid #3a124d;
  border-bottom: 3px solid #44165a;
  border-left: 3px solid #44165a;
  position: relative;
}
.display-section.processing-active {
  border: 3px solid transparent;
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.95), rgba(0, 0, 0, 0.95)) padding-box, conic-gradient( from var(--border-angle), var(--color-maroon) 0deg, var(--color-rust) 51.43deg, var(--color-ochre) 102.86deg, var(--color-viridian) 154.29deg, var(--color-cobalt) 205.71deg, var(--color-amethyst) 257.14deg, var(--color-rose) 308.57deg, var(--color-maroon) 360deg ) border-box;
  animation: prismatic-border-rotate 3s linear infinite;
}
@keyframes prismatic-border-rotate {
  to {
    --border-angle: 360deg;
  }
}
.mode-toggle-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.mode-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.toggle-track {
  width: 56px;
  height: 28px;
  background-color: rgb(71 85 105);
  border-radius: 14px;
  position: relative;
  transition: background-color 0.3s ease;
}
.dark .toggle-track {
  background-color: rgb(51 65 85);
}
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.dark .toggle-thumb {
  transform: translateX(28px);
}
.toggle-label {
  font-size: 0.875rem;
  color: rgb(148 163 184);
}
.dark .toggle-label .light-label {
  display: none;
}
.dark .toggle-label .dark-label {
  display: inline;
}
.toggle-label .dark-label {
  display: none;
}
.display-row {
  margin-bottom: 5px;
  border-radius: 0.75rem;
  padding-left: 8px;
  padding-right: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.display-row:last-child {
  margin-bottom: 0;
}
.input-row {
  background-color: rgba(30, 41, 59, 0.5);
  cursor: pointer;
  border-top: 2px solid #414f61;
  border-right: 2px solid #414f61;
  border-bottom: 2px solid #4d5b71;
  border-left: 2px solid #4d5b71;
}
.input-row:hover {
  background-color: rgba(30, 41, 59, 0.7);
}
.input-row-active {
  border: 2px solid var(--color-ochre);
  background-color: rgba(204, 119, 34, 0.1);
  box-shadow: 0 0 0 3px rgba(204, 119, 34, 0.2);
}
.input-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: rgb(148 163 184);
  font-weight: 500;
}
.label-hint {
  font-size: 0.625rem;
  opacity: 0.75;
}
.input-display {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: rgb(241 245 249);
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.input-value {
  font-family: 'DSEG7-Classic', monospace;
  flex: 1;
  width: 100%;
  text-align: right;
  padding-right: 16px;
}
.input-value:empty::before {
  content: '0';
  opacity: 0.3;
}
.operand-row {
  text-align: center;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}
.operand-display {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.operand-display button {
  width: 100%;
  min-height: 16px;
  cursor: default;
  pointer-events: none;
}
.operand-display .hifi-btn-obsidian, .operand-display .hifi-btn-add, .operand-display .hifi-btn-subtract, .operand-display .hifi-btn-multiply, .operand-display .hifi-btn-divide, .operand-display .hifi-btn-compare {
  padding: 0 !important;
  border-radius: 0 !important;
  transition: none !important;
  transform: none !important;
  border-top-width: 0.5px !important;
  border-right-width: 0.5px !important;
  border-bottom-width: 0.5px !important;
  border-left-width: 0.5px !important;
}
.operand-display .hifi-btn-add:hover, .operand-display .hifi-btn-subtract:hover, .operand-display .hifi-btn-multiply:hover, .operand-display .hifi-btn-divide:hover, .operand-display .hifi-btn-compare:hover {
  transform: none !important;
  box-shadow: -8px 8px 32px var(--color-rust-shadow);
}
.operand-display .hifi-btn-subtract:hover {
  box-shadow: -8px 8px 32px var(--color-rose-shadow);
}
.operand-display .hifi-btn-compare:hover {
  box-shadow: -8px 8px 32px var(--color-amethyst-shadow);
}
.operand-display .hifi-btn-add:active, .operand-display .hifi-btn-subtract:active, .operand-display .hifi-btn-multiply:active, .operand-display .hifi-btn-divide:active, .operand-display .hifi-btn-compare:active {
  border-top: 0.5px solid var(--color-rust-border-dark);
  border-right: 0.5px solid var(--color-rust-border-dark);
  border-bottom: 0.5px solid var(--color-rust-border-light);
  border-left: 0.5px solid var(--color-rust-border-light);
}
.operand-display .hifi-btn-subtract:active {
  border-top: 0.5px solid var(--color-rose-border-dark);
  border-right: 0.5px solid var(--color-rose-border-dark);
  border-bottom: 0.5px solid var(--color-rose-border-light);
  border-left: 0.5px solid var(--color-rose-border-light);
}
.operand-display .hifi-btn-compare:active {
  border-top: 0.5px solid var(--color-amethyst-border-dark);
  border-right: 0.5px solid var(--color-amethyst-border-dark);
  border-bottom: 0.5px solid var(--color-amethyst-border-light);
  border-left: 0.5px solid var(--color-amethyst-border-light);
}
.operand-row[data-operation="+"] {
  background-image: var(--pattern-rust), radial-gradient(circle at 87.5% 12.5%, var(--color-rust) 0%, #151d1e 88%);
  background-repeat: repeat, no-repeat;
  background-size: 30px 30px, 100% 100%;
  border-top: 2px solid var(--color-rust-border-dark);
  border-right: 2px solid var(--color-rust-border-dark);
  border-bottom: 2px solid var(--color-rust-border-light);
  border-left: 2px solid var(--color-rust-border-light);
}
.operand-row[data-operation="-"] {
  background-image: var(--pattern-rose), radial-gradient(circle at 87.5% 12.5%, var(--color-rose) 0%, #151d1e 88%);
  background-repeat: repeat, no-repeat;
  background-size: 30px 30px, 100% 100%;
  border-top: 2px solid var(--color-rose-border-dark);
  border-right: 2px solid var(--color-rose-border-dark);
  border-bottom: 2px solid var(--color-rose-border-light);
  border-left: 2px solid var(--color-rose-border-light);
}
.operand-row[data-operation="*"] {
  background-image: var(--pattern-viridian), radial-gradient(circle at 87.5% 12.5%, var(--color-viridian) 0%, #151d1e 88%);
  background-repeat: repeat, no-repeat;
  background-size: 30px 30px, 100% 100%;
  border-top: 2px solid var(--color-viridian-border-dark);
  border-right: 2px solid var(--color-viridian-border-dark);
  border-bottom: 2px solid var(--color-viridian-border-light);
  border-left: 2px solid var(--color-viridian-border-light);
}
.operand-row[data-operation="/"] {
  background-image: var(--pattern-ochre), radial-gradient(circle at 87.5% 12.5%, var(--color-ochre) 0%, #151d1e 88%);
  background-repeat: repeat, no-repeat;
  background-size: 30px 30px, 100% 100%;
  border-top: 2px solid var(--color-ochre-border-dark);
  border-right: 2px solid var(--color-ochre-border-dark);
  border-bottom: 2px solid var(--color-ochre-border-light);
  border-left: 2px solid var(--color-ochre-border-light);
}
.operand-row[data-operation=">"], .operand-row[data-operation="<"], .operand-row[data-operation=">="], .operand-row[data-operation="<="], .operand-row[data-operation="=="], .operand-row[data-operation="!="] {
  background-image: var(--pattern-amethyst), radial-gradient(circle at 87.5% 12.5%, var(--color-amethyst) 0%, #151d1e 88%);
  background-repeat: repeat, no-repeat;
  background-size: 30px 30px, 100% 100%;
  border-top: 2px solid var(--color-amethyst-border-dark);
  border-right: 2px solid var(--color-amethyst-border-dark);
  border-bottom: 2px solid var(--color-amethyst-border-light);
  border-left: 2px solid var(--color-amethyst-border-light);
}
.operand-label {
  font-size: 0.75rem;
  color: rgb(148 163 184);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  transform: translateY(14px);
}
.operand-display {
  font-family: 'Orbitron', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.operand-symbol {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(241 245 249);
  display: inline-block;
}
.operand-name {
  font-size: 0.875rem;
  color: rgb(148 163 184);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.output-row {
  background-color: rgba(128, 0, 32, 0.15);
  border-top: 2px solid var(--color-maroon-border-dark);
  border-right: 2px solid var(--color-maroon-border-dark);
  border-bottom: 2px solid var(--color-maroon-border-light);
  border-left: 2px solid var(--color-maroon-border-light);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  margin-top: 8px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.output-row.viridian {
  background-color: rgba(74, 166, 133, 0.15) !important;
  border-top: 2px solid var(--color-viridian-border-dark) !important;
  border-right: 2px solid var(--color-viridian-border-dark) !important;
  border-bottom: 2px solid var(--color-viridian-border-light) !important;
  border-left: 2px solid var(--color-viridian-border-light) !important;
}
.output-row.viridian .digital-display-output {
  background: linear-gradient(135deg, #4aa685 0%, #017881 100%) !important;
  border-color: rgba(74, 166, 133, 0.4) !important;
}
.output-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: rgb(148 163 184);
  font-weight: 500;
}
.output-display {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.output-value {
  font-family: 'DSEG7-Classic', monospace;
  flex: 1;
  width: 100%;
  text-align: right;
  padding-right: 16px;
}
.output-value:empty::before {
  content: '0';
  opacity: 0.3;
}
.error-row {
  background-color: rgba(220, 20, 60, 0.15);
  border: 2px solid var(--color-red);
}
.error-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-red);
}
.error-icon {
  font-size: 1.5rem;
}
.error-message {
  font-size: 0.875rem;
  font-weight: 500;
}
.scientific-section {
  margin-bottom: 1rem;
}
.section-label {
  font-size: 0.75rem;
  color: rgb(100 116 139);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 600;
}
.function-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.375rem;
  margin-bottom: 0.375rem;
}
.function-row:last-child {
  margin-bottom: 0;
}
.sci-btn, .mem-btn {
  padding: 0.75rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  transition: all 0.15s ease;
  cursor: pointer;
}
.sci-btn:not(.disabled) {
  background-color: rgb(51 65 85);
  color: white;
}
.sci-btn.disabled, .mem-btn.disabled {
  background-color: rgb(30 41 59);
  color: rgb(71 85 105);
  opacity: 0.5;
  cursor: not-allowed;
}
.operands-section {
  margin-bottom: 1rem;
}
.operands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.operand-btn {
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  transition: all 0.15s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}
.btn-symbol {
  font-size: 1.5rem;
  line-height: 1;
}
.btn-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.version-tag {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  font-size: 0.625rem;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}
.operand-add {
  background-color: var(--color-viridian);
  color: white;
}
.operand-subtract {
  background-color: var(--color-cobalt);
  color: white;
}
.operand-compare {
  background-color: var(--color-amethyst);
  color: white;
}
.operand-calculate {
  background-color: rgb(22 163 74);
  color: white;
}
.operand-clear {
  background-color: var(--color-red);
  color: white;
}
.operand-flip {
  background-color: var(--color-ochre);
  color: white;
}
.operand-btn.disabled {
  background-color: rgb(51 65 85);
  color: rgb(100 116 139);
  opacity: 0.5;
  cursor: not-allowed;
}
.operand-btn:active:not(.disabled) {
  transform: scale(0.95);
}
.dialpad-section {
  margin-bottom: 1rem;
}
.dialpad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.dial-btn {
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 0.75rem;
  background-color: rgb(51 65 85);
  color: white;
  transition: all 0.15s ease;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-top: 2px solid rgb(0 97 255);
  border-right: 2px solid rgb(0 97 255);
  border-bottom: 2px solid rgb(0 37 90);
  border-left: 2px solid rgb(0 37 90);
}
.dial-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border-top: 2px solid rgb(0 37 90);
  border-right: 2px solid rgb(0 37 90);
  border-bottom: 2px solid rgb(0 97 255);
  border-left: 2px solid rgb(0 97 255);
}
.dial-zero {
  grid-column: span 2;
  background-color: var(--color-ochre);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-top: 2px solid #810000;
  border-right: 2px solid #810000;
  border-bottom: 2px solid #aa0000;
  border-left: 2px solid #aa0000;
}
.dial-zero:active {
  border-top: 2px solid #aa0000;
  border-right: 2px solid #aa0000;
  border-bottom: 2px solid #810000;
  border-left: 2px solid #810000;
}
.zero-text {
  font-size: 1rem;
  font-weight: 700;
}
.zero-symbol {
  font-size: 1.5rem;
  opacity: 0.75;
}
.dial-backspace {
  background-color: rgb(75 85 99);
  border-top: 2px solid #7215cf;
  border-right: 2px solid #7215cf;
  border-bottom: 2px solid #861af1;
  border-left: 2px solid #861af1;
}
.dial-backspace:active {
  border-top: 2px solid #861af1;
  border-right: 2px solid #861af1;
  border-bottom: 2px solid #7215cf;
  border-left: 2px solid #7215cf;
}
.dial-comma {
  background-color: rgb(71 85 105);
  border-top: 2px solid #bc6e20;
  border-right: 2px solid #bc6e20;
  border-bottom: 2px solid #db8024;
  border-left: 2px solid #db8024;
}
.dial-comma:active {
  border-top: 2px solid #db8024;
  border-right: 2px solid #db8024;
  border-bottom: 2px solid #bc6e20;
  border-left: 2px solid #bc6e20;
}
.dial-switch {
  background-color: rgb(79 70 229);
}
.hifi-legend {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background-color: rgba(15, 23, 42, 0.5);
  border-radius: 0.5rem;
}
.legend-row {
  display: flex;
  justify-content: space-around;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.legend-row:last-child {
  margin-bottom: 0;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.625rem;
  color: rgb(148 163 184);
}
.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.version-info {
  text-align: center;
  font-size: 0.625rem;
  color: rgb(100 116 139);
  line-height: 1.4;
  margin-bottom: 72px;
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
@media (max-width: 520px) {
  body {
    overflow-x: hidden;
  }
  .calculator-overlay-layer {
    width: 100%;
    overflow-x: hidden;
    padding: 0 !important;
  }
  .calculator-layer-inner {
    width: 100%;
    padding: 0 !important;
  }
}
@media (max-width: 374px) {
  .calculator-container {
    padding: 0;
    width: 100%;
  }
  .calculator-card {
    padding: 6px !important;
    margin: 0.5rem;
  }
  .display-section {
    padding: 6px !important;
  }
  .display-row {
    padding-left: 6px;
    padding-right: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
    margin-bottom: 4px;
  }
  .digital-display-value, .digital-active-layer, .digital-display-input .digital-active-layer, .digital-display-output .digital-active-layer {
    font-size: 14.5px !important;
  }
  .digital-ghost-layer, .digital-display-input .digital-ghost-layer, .digital-display-output .digital-ghost-layer {
    display: none !important;
  }
  .digital-display-binary, .binary-display {
    font-size: 6.2px !important;
  }
  .calculator-subtitle {
    font-size: 13.2px !important;
  }
  .operands-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
  }
  .operand-btn {
    padding: 0.5rem 0.25rem;
    min-height: 44px;
  }
  .operand-btn .btn-symbol {
    font-size: 1.25rem;
  }
  .operand-btn .btn-label {
    font-size: 0.625rem;
  }
  .dialpad-grid {
    gap: 0.25rem;
  }
  .dial-btn {
    padding: 0.75rem;
    font-size: 1rem;
    min-height: 44px;
  }
  .version-tag {
    display: none;
  }
}
@media (min-width: 375px) and (max-width: 413px) {
  .calculator-container {
    padding: 0;
    width: 100%;
  }
  .calculator-card {
    padding: 8px !important;
    margin: 0.75rem;
  }
  .digital-display-value, .digital-active-layer, .digital-display-input .digital-active-layer, .digital-display-output .digital-active-layer {
    font-size: 14.5px !important;
  }
  .digital-ghost-layer, .digital-display-input .digital-ghost-layer, .digital-display-output .digital-ghost-layer {
    display: none !important;
  }
  .digital-display-binary, .binary-display {
    font-size: 6.2px !important;
  }
  .calculator-subtitle {
    font-size: 13.2px !important;
  }
  .operands-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.375rem;
  }
  .operand-btn {
    padding: 0.625rem 0.375rem;
    min-height: 48px;
  }
  .operand-btn .btn-symbol {
    font-size: 1.375rem;
  }
  .dialpad-grid {
    gap: 0.375rem;
  }
  .dial-btn {
    padding: 0.875rem;
    font-size: 1.125rem;
    min-height: 48px;
  }
}
@media (min-width: 414px) and (max-width: 520px) {
  .calculator-container {
    padding: 0;
    width: 100%;
  }
  .calculator-card {
    margin: 1rem;
  }
  .digital-display-value, .digital-active-layer, .digital-display-input .digital-active-layer, .digital-display-output .digital-active-layer {
    font-size: 14.5px !important;
  }
  .digital-ghost-layer, .digital-display-input .digital-ghost-layer, .digital-display-output .digital-ghost-layer {
    display: none !important;
  }
  .digital-display-binary, .binary-display {
    font-size: 6.2px !important;
  }
  .calculator-subtitle {
    font-size: 13.2px !important;
  }
  .operands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .dialpad-grid {
    gap: 0.375rem;
  }
  .dial-btn {
    padding: 1rem;
    font-size: 1.125rem;
  }
}
@media (min-width: 521px) {
  .calculator-container {
    max-width: 560px;
  }
}
@media (min-width: 768px) {
  .calculator-container {
    max-width: 587px;
    padding: 0;
  }
  .calculator-card {
    margin: 1rem;
  }
}
.scientific-frame-container {
  margin-top: 1rem;
}
.scientific-top-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.scientific-content-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
}
.scientific-left-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.scientific-center-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.scientific-right-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.operations-section {
  margin-bottom: 1rem;
}
.operations-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}
.operations-row .sci-btn {
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  transition: all 0.15s ease;
  cursor: pointer;
}
@media (hover: none) {
  .operations-row .sci-btn:hover {
    transform: none;
    box-shadow: none;
    background-color: inherit;
  }
}
@media (hover: hover) {
  .operations-row .sci-btn:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  .operand-add:hover {
    background-color: var(--color-viridian-light);
  }
  .operand-subtract:hover {
    background-color: var(--color-cobalt-light);
  }
  .operand-compare:hover {
    background-color: var(--color-amethyst-light);
  }
  .operand-calculate:hover {
    background-color: rgb(34 197 94);
  }
  .operand-clear:hover {
    background-color: rgb(239 68 68);
  }
}
.operations-row .sci-btn:active:not(.disabled) {
  transform: scale(0.95);
}
@media (max-width: 640px) {
  .scientific-top-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .scientific-content-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .scientific-left-column, .scientific-right-column {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .scientific-left-column .sci-btn, .scientific-right-column .sci-btn {
    flex: 1 1 calc(33.333% - 0.5rem);
  }
  .operations-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.digital-display-base {
  font-family: 'DSEG7-Classic', monospace;
  font-weight: bold;
  font-size: 20.5px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  position: relative;
  display: block;
  width: 100%;
  padding: 0 !important;
  border-radius: 0.375rem;
  border: 2px solid rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.digital-ghost-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  font-family: 'DSEG7-Classic', monospace;
  font-weight: bold;
  font-size: 20.5px;
  padding: 8px;
  text-align: right;
  transition: all 0.2s ease;
}
.digital-active-layer {
  position: relative;
  z-index: 2;
  font-family: 'DSEG7-Classic', monospace;
  font-weight: bold;
  font-size: 20.5px;
  padding: 8px;
  text-align: right;
  width: 100%;
  display: block;
  transition: all 0.2s ease;
}
.digital-noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  opacity: 0.08;
  z-index: 3;
  background-image: var(--pattern-lcd-scanlines);
  background-repeat: repeat;
}
.digital-display-input {
  background: linear-gradient(135deg, #C8A15D 0%, #b89650 100%);
  border-color: rgba(200, 161, 93, 0.4);
  filter: saturate(0.3);
  transition: filter 0.3s ease;
}
.input-row-active .digital-display-input {
  filter: saturate(1);
}
.digital-display-input .digital-ghost-layer {
  color: rgb(0 0 0 / 33%);
}
.digital-display-input .digital-active-layer {
  color: #1a1a1a;
  text-shadow: 0px 2px 4px var(--color-ochre-complement-shadow);
  padding-right: 9px;
}
.digital-display-output {
  background: linear-gradient(135deg, #800020 0%, #6b001a 100%);
  border-color: rgba(128, 0, 32, 0.4);
  filter: saturate(0.3);
  transition: filter 0.3s ease;
}
.output-row-active .digital-display-output {
  filter: saturate(1);
}
.digital-display-output .digital-ghost-layer {
  color: rgba(255, 255, 255, 0.08);
}
.digital-display-output .digital-active-layer {
  color: #e2e8f0;
  text-shadow: 0px 2px 4px var(--color-maroon-complement-shadow);
  padding-right: 9px;
}
.digital-display-base:hover .digital-active-layer {
  filter: brightness(1.1);
}
.input-section-wrapper {
  width: 100%;
  padding: 8px 12px 8px 8px;
}
.output-section-wrapper {
  width: 100%;
  padding: 8px 12px 8px 8px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}
.input-section-wrapper .input-display, .output-section-wrapper .output-display {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 0.5rem;
  position: relative;
  width: 100%;
  display: block;
}
.digital-active-layer .input-cursor {
  font-family: inherit;
  animation: blink 1s infinite;
  margin-left: 2px;
}
@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}
.binary-display-wrapper {
  display: flex;
  gap: 6px;
  align-items: center;
}
.binary-display {
  font-family: 'Orbitron', monospace !important;
  font-size: 9.2px;
  background: #4d0000 !important;
  color: #d4853d !important;
  text-shadow: 0.5px 0.5px rgb(5 141 208);
  overflow: visible !important;
  text-wrap: wrap !important;
  word-wrap: break-word !important;
  word-break: break-all !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.375rem !important;
  border-top: 2px solid #931a1a !important;
  border-right: 2px solid #931a1a !important;
  border-bottom: 2px solid #c10000 !important;
  border-left: 2px solid #c10000 !important;
}
.binary-display:hover {
  background: #660000 !important;
}
.output-mode-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Orbitron', monospace;
  flex-shrink: 0;
  outline: none;
}
.output-mode-toggle:focus-visible {
  outline: 2px solid var(--color-ochre);
  outline-offset: 2px;
}
.output-mode-toggle::before {
  content: 'R8';
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-maroon);
  text-shadow: 0 0 6px rgba(128, 0, 32, 0.5);
  transition: all 0.3s ease;
}
.output-mode-toggle::after {
  content: 'DEC';
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-viridian);
  opacity: 0.4;
  transition: all 0.3s ease;
}
.output-mode-toggle[aria-pressed="true"]::before {
  opacity: 0.4;
  text-shadow: none;
}
.output-mode-toggle[aria-pressed="true"]::after {
  opacity: 1;
  text-shadow: 0 0 6px rgba(74, 166, 133, 0.5);
}
.toggle-track {
  width: 32px;
  height: 18px;
  border-radius: 9px;
  position: relative;
  transition: all 0.3s ease;
  background-image: var(--pattern-maroon), radial-gradient(circle at 25% 50%, var(--color-maroon) 0%, #1e1515 88%);
  background-repeat: repeat, no-repeat;
  background-size: 30px 30px, 100% 100%;
  border-top: 2px solid var(--color-maroon-border-dark);
  border-right: 2px solid var(--color-maroon-border-dark);
  border-bottom: 2px solid var(--color-maroon-border-light);
  border-left: 2px solid var(--color-maroon-border-light);
  box-shadow: -3px 3px 12px var(--color-maroon-shadow);
}
.output-mode-toggle[aria-pressed="true"] .toggle-track {
  background-image: var(--pattern-viridian), radial-gradient(circle at 75% 50%, var(--color-viridian) 0%, #1d1e15 88%);
  border-top: 2px solid var(--color-viridian-border-dark);
  border-right: 2px solid var(--color-viridian-border-dark);
  border-bottom: 2px solid var(--color-viridian-border-light);
  border-left: 2px solid var(--color-viridian-border-light);
  box-shadow: -3px 3px 12px var(--color-viridian-shadow);
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.output-mode-toggle[aria-pressed="true"] .toggle-track::after {
  transform: translateX(14px);
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-gradient-position {
  syntax: "*";
  inherits: false;
}
@property --tw-gradient-from {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}
@property --tw-gradient-via {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}
@property --tw-gradient-to {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}
@property --tw-gradient-stops {
  syntax: "*";
  inherits: false;
}
@property --tw-gradient-via-stops {
  syntax: "*";
  inherits: false;
}
@property --tw-gradient-from-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0%;
}
@property --tw-gradient-via-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 50%;
}
@property --tw-gradient-to-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-scale-x {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-scale-y {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-scale-z {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-duration {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --border-angle: 0deg;
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-gradient-position: initial;
      --tw-gradient-from: #0000;
      --tw-gradient-via: #0000;
      --tw-gradient-to: #0000;
      --tw-gradient-stops: initial;
      --tw-gradient-via-stops: initial;
      --tw-gradient-from-position: 0%;
      --tw-gradient-via-position: 50%;
      --tw-gradient-to-position: 100%;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-font-weight: initial;
      --tw-scale-x: 1;
      --tw-scale-y: 1;
      --tw-scale-z: 1;
      --tw-duration: initial;
    }
  }
}
