/* ===========================================================================
   EMPLOYEE PROMPT GENERATOR — namespaced .epg-* (own dark theme, theme-independent)
   Ported verbatim from the legacy Lenny OS monolith. The .epg-* selectors are
   uniquely namespaced; the --epg-* palette is a deliberately independent
   dark/amber theme and stays self-contained (it does NOT use the shell's mint).
   =========================================================================== */
  #view-prompts, .epg-app {
    --epg-bg: #0a0a0b;
    --epg-surface: #141418;
    --epg-surface-2: #1c1c22;
    --epg-surface-hover: #23232b;
    --epg-border: #26262d;
    --epg-border-strong: #3a3a44;
    --epg-text: #f4f4f5;
    --epg-text-muted: #a1a1aa;
    --epg-text-dim: #71717a;
    --epg-accent: #f59e0b;
    --epg-accent-hover: #fbbf24;
    --epg-accent-soft: rgba(245, 158, 11, 0.12);
    --epg-accent-border: rgba(245, 158, 11, 0.35);
    --epg-accent-text: #18181b;
    --epg-success: #10b981;
    --epg-radius-sm: 6px;
    --epg-radius: 10px;
    --epg-radius-lg: 14px;
    --epg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    --epg-font-mono: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  }
  .epg-app {
    font-family: var(--epg-font);
    color: var(--epg-text);
    background: var(--epg-bg);
    min-height: 100vh;
    padding: 40px 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
  }
  .epg-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--epg-border); }
  .epg-header h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
  .epg-header .epg-sub { color: var(--epg-text-muted); font-size: 15px; margin: 0; }
  .epg-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--epg-surface); border: 1px solid var(--epg-border); border-radius: var(--epg-radius); margin-bottom: 28px; position: sticky; top: 16px; z-index: 10; backdrop-filter: blur(8px); }
  .epg-count { font-size: 14px; color: var(--epg-text-muted); }
  .epg-count strong { color: var(--epg-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
  .epg-btn-ghost { background: transparent; border: 1px solid var(--epg-border); color: var(--epg-text-muted); padding: 7px 14px; font-size: 13px; border-radius: var(--epg-radius-sm); cursor: pointer; font-family: inherit; transition: all 0.15s ease; }
  .epg-btn-ghost:hover { background: var(--epg-surface-hover); color: var(--epg-text); border-color: var(--epg-border-strong); }
  .epg-btn-ghost.copied { background: var(--epg-success); color: white; border-color: var(--epg-success); }
  .epg-btn-primary { background: var(--epg-accent); color: var(--epg-accent-text); border: none; padding: 14px 28px; font-size: 15px; font-weight: 600; border-radius: var(--epg-radius); cursor: pointer; font-family: inherit; transition: all 0.15s ease; width: 100%; letter-spacing: -0.01em; }
  .epg-btn-primary:hover:not(:disabled) { background: var(--epg-accent-hover); transform: translateY(-1px); }
  .epg-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
  .epg-category { margin-bottom: 28px; }
  .epg-category-label { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--epg-text-dim); margin: 0 0 14px; }
  .epg-category-label::after { content: ""; flex: 1; height: 1px; background: var(--epg-border); }
  .epg-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
  .epg-chip { background: var(--epg-surface); border: 1px solid var(--epg-border); border-radius: var(--epg-radius); padding: 14px 16px; cursor: pointer; text-align: left; font-family: inherit; color: var(--epg-text); transition: all 0.15s ease; display: flex; align-items: flex-start; gap: 12px; position: relative; }
  .epg-chip:hover { background: var(--epg-surface-hover); border-color: var(--epg-border-strong); }
  .epg-chip[aria-pressed="true"] { background: var(--epg-accent-soft); border-color: var(--epg-accent-border); }
  .epg-chip-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--epg-border-strong); flex-shrink: 0; margin-top: 2px; transition: all 0.15s ease; position: relative; }
  .epg-chip[aria-pressed="true"] .epg-chip-dot { background: var(--epg-accent); border-color: var(--epg-accent); }
  .epg-chip[aria-pressed="true"] .epg-chip-dot::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2318181b'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z'/%3E%3C/svg%3E"); background-size: contain; }
  .epg-chip-content { flex: 1; min-width: 0; }
  .epg-chip-name { font-size: 14px; font-weight: 500; margin: 0 0 3px; letter-spacing: -0.01em; }
  .epg-chip-short { font-size: 12px; color: var(--epg-text-dim); margin: 0; line-height: 1.4; }
  .epg-options { margin: 32px 0 20px; padding: 20px; background: var(--epg-surface); border: 1px solid var(--epg-border); border-radius: var(--epg-radius); }
  .epg-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--epg-text-muted); user-select: none; }
  .epg-toggle input { width: 16px; height: 16px; accent-color: var(--epg-accent); cursor: pointer; }
  .epg-toggle:hover { color: var(--epg-text); }
  .epg-custom { margin-top: 16px; }
  .epg-custom summary { cursor: pointer; font-size: 13px; color: var(--epg-text-muted); padding: 6px 0; user-select: none; list-style: none; }
  .epg-custom summary::-webkit-details-marker { display: none; }
  .epg-custom summary::before { content: "+ "; color: var(--epg-accent); font-weight: 600; }
  .epg-custom[open] summary::before { content: "− "; }
  .epg-custom textarea { width: 100%; margin-top: 10px; min-height: 80px; padding: 12px; background: var(--epg-bg); border: 1px solid var(--epg-border); border-radius: var(--epg-radius-sm); color: var(--epg-text); font-family: inherit; font-size: 13px; line-height: 1.5; resize: vertical; }
  .epg-custom textarea:focus { outline: none; border-color: var(--epg-accent-border); }
  .epg-cta { margin: 24px 0; }
  .epg-output { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--epg-border); }
  .epg-output-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .epg-output-header h2 { font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
  .epg-output-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--epg-text-dim); font-variant-numeric: tabular-nums; }
  .epg-output-text { background: var(--epg-surface-2); border: 1px solid var(--epg-border); border-radius: var(--epg-radius); padding: 20px; font-family: var(--epg-font-mono); font-size: 13px; line-height: 1.65; color: var(--epg-text); white-space: pre-wrap; word-wrap: break-word; margin: 0; max-height: 500px; overflow-y: auto; }
  .epg-output-text::-webkit-scrollbar { width: 8px; }
  .epg-output-text::-webkit-scrollbar-track { background: transparent; }
  .epg-output-text::-webkit-scrollbar-thumb { background: var(--epg-border-strong); border-radius: 4px; }
  @media (max-width: 640px) {
    .epg-app { padding: 24px 16px 60px; }
    .epg-header h1 { font-size: 22px; }
    .epg-chips { grid-template-columns: 1fr; }
    .epg-toolbar { position: static; }
  }
  .epg-presets { margin-bottom: 24px; padding: 16px 18px; background: var(--epg-surface); border: 1px solid var(--epg-border); border-radius: var(--epg-radius); }
  .epg-presets-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
  .epg-presets-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--epg-text-dim); }
  .epg-presets-row { display: flex; flex-wrap: wrap; gap: 8px; min-height: 32px; align-items: center; }
  .epg-presets-empty { font-size: 13px; color: var(--epg-text-dim); font-style: italic; }
  .epg-preset-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px 6px 12px; background: var(--epg-surface-2); border: 1px solid var(--epg-accent-border); border-radius: 999px; font-size: 13px; color: var(--epg-text); cursor: pointer; font-family: inherit; transition: all 0.15s ease; }
  .epg-preset-pill:hover { background: var(--epg-accent-soft); }
  .epg-preset-pill-name { font-weight: 500; }
  .epg-preset-pill-meta { color: var(--epg-text-dim); font-size: 11px; font-variant-numeric: tabular-nums; }
  .epg-preset-pill-delete { background: transparent; border: none; color: var(--epg-text-dim); cursor: pointer; padding: 2px 6px; border-radius: 999px; font-size: 14px; line-height: 1; font-family: inherit; }
  .epg-preset-pill-delete:hover { background: var(--epg-border-strong); color: var(--epg-text); }
  @media (max-width: 640px) {
    .epg-presets-header { flex-direction: column; align-items: stretch; }
    .epg-presets-header button { width: 100%; }
  }
