/* ==========================================================================
   Industrial UI Architecture Standard UNIFIED V2.0 — Token Engine (HSL)
   Preset: navy-industrial-default
   Generated automatically by @yeste/css-generator. DO NOT EDIT DIRECTLY.
   ========================================================================== */

:root {
  /* HSL Parametric Engine */
  --base-h: 220;
  --base-s: 16%;
  --accent-h: calc(var(--base-h) - 182);
  --accent-s: 92%;

  /* Luminance Surfaces */
  --surface-0: hsl(var(--base-h), var(--base-s), 6%);
  --surface-1: hsl(var(--base-h), var(--base-s), 10%);
  --surface-2: hsl(var(--base-h), var(--base-s), 14%);
  --surface-3: hsl(var(--base-h), var(--base-s), 18%);
  --surface-glass: hsla(var(--base-h), var(--base-s), 12%, 0.75);

  /* Typography */
  --text-high: hsl(var(--base-h), 12%, 86%);
  --text-med:  hsl(var(--base-h), 10%, 58%);
  --text-low:  hsl(var(--base-h), 8%, 38%);

  /* 10% Focal Accents */
  --focal-core: hsl(var(--accent-h), var(--accent-s), 52%);
  --focal-glow: hsla(var(--accent-h), var(--accent-s), 52%, 0.25);
  --focal-dim:  hsla(var(--accent-h), var(--accent-s), 52%, 0.1);

  /* Highlight / Edge */
  --edge-highlight: inset 0 1px 0 0 hsla(var(--base-h), 20%, 100%, 0.05);
  --radius-base: 8px;
  --space-unit: 8px;

  /* Spacing Scale (8px Grid) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;

  /* Typography Stacks */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', Menlo, Consolas, monospace;

  /* Font Awesome Webfont Fallback */
  --fa-style-family-classic: "Font Awesome 6 Pro";
}

/* ==========================================================================
   Base & Focus State (V2.0 Standard)
   ========================================================================== */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--focal-core), 0 0 8px var(--focal-glow);
}

/* ==========================================================================
   Icon System (Font Awesome Standard)
   ========================================================================== */
.icon {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn .icon {
  font-size: 14px;
}

.btn-dense .icon {
  font-size: 12px;
}

.card-label .icon,
.alert-text .icon {
  color: var(--text-med);
}

.status-dot .icon {
  color: var(--focal-core);
}

/* ==========================================================================
   Minimal Utility Classes & Button Primitives
   ========================================================================== */
.tabular-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.edge-highlight {
  box-shadow: var(--edge-highlight);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-base);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  user-select: none;
  text-decoration: none;
}

.btn-dense {
  height: 32px;
  padding: 0 12px;
  font-size: 0.75rem;
}

.btn-primary {
  background: var(--focal-core);
  color: #000;
  box-shadow: 0 0 8px var(--focal-glow);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  background: var(--surface-3);
  color: var(--text-high);
  box-shadow: var(--edge-highlight);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-med);
}

.btn-ghost:hover {
  background: var(--surface-3);
  color: var(--text-high);
}

/* ==========================================================================
   Defensive Interaction Component Utilities (V2.0)
   ========================================================================== */

/* 1. Undo Toast */
.ynote-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.ynote-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface-2);
  color: var(--text-high);
  padding: 12px 16px;
  border-radius: var(--radius-base);
  box-shadow: var(--edge-highlight), 0 8px 24px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  min-width: 300px;
  max-width: 440px;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  animation: ynote-toast-in 0.2s ease-out;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.ynote-toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.ynote-toast-msg {
  flex: 1;
  color: var(--text-high);
}

.ynote-toast-undo {
  background: var(--surface-3);
  color: var(--focal-core);
  border: none;
  border-radius: var(--radius-base);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--edge-highlight);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.ynote-toast-undo:hover {
  background: var(--surface-1);
}

.ynote-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--focal-core);
  box-shadow: 0 0 4px var(--focal-glow);
  width: 100%;
  transform-origin: left;
  animation: ynote-toast-decay linear forwards;
}

@keyframes ynote-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ynote-toast-decay {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* 2. Two-Step Modal */
.ynote-modal-backdrop {
  position: fixed;
  inset: 0;
  background: hsla(var(--base-h), var(--base-s), 4%, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 16px;
  animation: ynote-modal-fade-in 0.15s ease-out;
  transition: opacity 0.15s ease;
}

.ynote-modal-backdrop.is-leaving {
  opacity: 0;
}

.ynote-modal {
  background: var(--surface-2);
  color: var(--text-high);
  border-radius: var(--radius-base);
  box-shadow: var(--edge-highlight), 0 20px 40px rgba(0, 0, 0, 0.55);
  max-width: 460px;
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: ynote-modal-scale-in 0.15s ease-out;
  outline: none;
}

.ynote-modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-high);
  margin: 0;
}

.ynote-modal-body {
  font-size: 0.875rem;
  color: var(--text-med);
  line-height: 1.5;
  margin: 0;
}

.ynote-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

@keyframes ynote-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ynote-modal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 3. Hold-to-Execute Button */
.ynote-hold {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.ynote-hold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--hold-progress, 0%);
  background: var(--focal-core);
  opacity: 0.3;
  pointer-events: none;
  transition: width 0.04s linear;
}

.ynote-hold.is-completed {
  box-shadow: 0 0 16px var(--focal-glow);
}

/* 4. Typed Confirmation & Paste Blocked */
.ynote-paste-blocked {
  animation: ynote-shake 0.35s ease-in-out;
  box-shadow: 0 0 0 1px var(--focal-core), 0 0 12px var(--focal-glow) !important;
}

@keyframes ynote-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* 5. Roving Tabindex */
.ynote-roving-row {
  cursor: pointer;
  outline: none;
  transition: background-color 0.1s ease;
}

.ynote-roving-row:focus-visible,
.ynote-roving-row.ynote-roving-active:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--focal-core), 0 0 8px var(--focal-glow);
  background: var(--surface-3);
}

.ynote-roving-row.is-selected {
  background: var(--surface-3);
}
