/* GENERATED BY prag-uikit compile — Canonical Universal PragFeedback Stylesheet */
:root {
  --prag-panel: rgba(11, 14, 22, 0.94);
  --prag-surface-1: #0b0e16;
  --prag-surface-2: #141a28;
  --prag-border: rgba(255, 255, 255, 0.08);
  --prag-border-strong: rgba(255, 255, 255, 0.16);
  --prag-text-display: #ffffff;
  --prag-text-primary: #e2e8f0;
  --prag-text-muted: #94a3b8;
  --prag-accent: #27d4c8;
  --prag-cta-bg: #27d4c8;
  --prag-cta-fg: #03080c;
  --prag-credit: #10b981;
  --prag-debit: #f43f5e;
  --prag-pending: #f59e0b;
  --prag-card-shadow: 0 12px 36px rgba(0, 0, 0, 0.72);
  --prag-catchlight: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
html[data-resolved-theme="light"],
html[data-theme="light"] {
  --prag-panel: rgba(255, 255, 255, 0.96);
  --prag-surface-1: #ffffff;
  --prag-surface-2: #f4f6f9;
  --prag-border: rgba(15, 23, 42, 0.10);
  --prag-border-strong: rgba(15, 23, 42, 0.18);
  --prag-text-display: #090d16;
  --prag-text-primary: #1e293b;
  --prag-text-muted: #526277;
  --prag-accent: #0284c7;
  --prag-cta-bg: #090d16;
  --prag-cta-fg: #ffffff;
  --prag-card-shadow: 0 8px 24px rgba(15, 23, 42, 0.09), 0 2px 6px rgba(15, 23, 42, 0.04);
  --prag-catchlight: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
@layer components {
  dialog.prag-fb-dialog .prag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 9px;
    border: 1px solid var(--prag-border-strong);
    background-color: var(--prag-surface-2);
    color: var(--prag-text-primary);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
  }
  dialog.prag-fb-dialog .prag-btn-primary {
    background-color: var(--prag-cta-bg);
    color: var(--prag-cta-fg);
    border-color: transparent;
  }
  dialog.prag-fb-dialog .prag-btn-touch {
    min-height: 44px;
    min-width: 44px;
  }
}
@layer components {
  /* Fail-open upgrade guard for <prag-feedback> and <prag-feedback-pill> */
  prag-feedback:not(:defined),
  prag-feedback-pill:not(:defined) {
    visibility: hidden;
    opacity: 0;
    animation: prag-fb-defined-fallback 0.2s 2s forwards;
  }
  @keyframes prag-fb-defined-fallback {
    to { visibility: visible; opacity: 1; }
  }

  /* Unified Sovereign System Action Tray (co-docked with PragChat) */
  .prag-system-tray {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9910;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    transition: gap 0.36s cubic-bezier(0.16, 1, 0.3, 1), transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .prag-system-tray:has(.pragchat-trigger-btn.is-autohidden) {
    gap: 10px;
  }
  .pragchat-hud-container .prag-system-tray {
    position: static;
    bottom: auto;
    right: auto;
  }

  /* Variant 1: Detached Floating Capsule (1-click launch inside #prag-system-tray or standalone) */
  .pf-dock {
    display: flex;
    align-items: center;
    user-select: none;
    touch-action: none;
    font-family: var(--prag-font-sans, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif);
    position: static;
    z-index: auto;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .prag-system-tray .pf-drag-handle {
    display: none;
  }
  body > .pf-dock {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(calc(-50% + var(--prag-fb-offset-y, 0px)));
    z-index: 9500;
  }
  .pf-dock-inner {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 5px;
    border-radius: 24px;
    border: 1px solid var(--prag-border-strong);
    background-color: var(--prag-panel);
    background-image: radial-gradient(circle 88px at var(--mouse-x, 50%) var(--mouse-y, 50%), color-mix(in srgb, var(--prag-accent) 16%, transparent), transparent 72%);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: var(--prag-card-shadow), var(--prag-catchlight);
    cursor: pointer;
    outline: none;
    transform: scale(1);
    transition: padding 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.24s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .pf-dock-inner:hover,
  .pf-dock-inner:focus-visible,
  .pf-dock-inner.pf-peek {
    border-color: color-mix(in srgb, var(--prag-accent) 42%, var(--prag-border-strong));
    background-color: var(--prag-surface-2);
    transform: scale(1.02);
    padding: 0 14px 0 6px;
  }
  .pf-dock-inner:active {
    transform: scale(0.96);
  }
  .pf-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: var(--prag-text-primary);
    cursor: pointer;
  }
  .pf-capsule-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--prag-accent) 12%, var(--prag-surface-2));
    border: 1px solid color-mix(in srgb, var(--prag-accent) 28%, transparent);
    color: var(--prag-accent);
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .pf-toggle-icon {
    width: 16px;
    height: 16px;
    pointer-events: none;
  }
  .pf-capsule-label {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--prag-text-display);
    margin-left: 0;
    transition: max-width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, margin-left 0.24s ease;
  }
  .pf-dock-inner:hover .pf-capsule-label,
  .pf-dock-inner:focus-visible .pf-capsule-label,
  .pf-dock-inner.pf-peek .pf-capsule-label {
    max-width: 96px;
    opacity: 1;
    margin-left: 8px;
  }

  /* Variant 2: Side-Tucked Expandable 3-Button Drawer */
  .prag-fb-dock {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(calc(-50% + var(--prag-fb-offset-y, 0px)));
    z-index: 9500;
    display: flex;
    align-items: center;
    user-select: none;
    touch-action: none;
    font-family: var(--prag-font-sans, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif);
    transition: transform 0.24s var(--ease-apple-spring, cubic-bezier(0.22, 1, 0.36, 1));
  }
  .prag-fb-dock[data-side="left"] {
    right: auto;
    left: 0;
  }
  .prag-fb-capsule {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 6px 4px 4px;
    gap: 4px;
    background-color: var(--prag-panel);
    background-image: radial-gradient(circle 88px at var(--mouse-x, 50%) var(--mouse-y, 50%), color-mix(in srgb, var(--prag-accent) 16%, transparent), transparent 72%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--prag-border-strong);
    border-right: none;
    border-radius: 22px 0 0 22px;
    box-shadow: var(--prag-card-shadow), var(--prag-catchlight);
    overflow: visible;
    transition: border-color var(--prag-duration-interactive, 180ms) ease, background-color var(--prag-duration-interactive, 180ms) ease;
  }
  .prag-fb-dock[data-side="left"] .prag-fb-capsule {
    border-right: 1px solid var(--prag-border-strong);
    border-left: none;
    border-radius: 0 22px 22px 0;
    flex-direction: row-reverse;
    padding: 4px 4px 4px 6px;
  }
  .prag-fb-drag-handle,
  .pf-drag-handle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5px;
    width: 14px;
    height: 32px;
    cursor: ns-resize;
    opacity: 0.48;
    flex-shrink: 0;
    transition: opacity 0.16s ease;
  }
  .prag-fb-drag-handle:hover,
  .prag-fb-dock[data-dragging="true"] .prag-fb-drag-handle {
    opacity: 0.95;
  }
  .prag-fb-grip-dot,
  .pf-drag-dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background-color: var(--prag-text-muted);
  }
  .prag-fb-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--prag-accent) 32%, transparent);
    background-color: color-mix(in srgb, var(--prag-accent) 12%, var(--prag-surface-2));
    color: var(--prag-accent);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .prag-fb-toggle:hover {
    background-color: color-mix(in srgb, var(--prag-accent) 20%, var(--prag-surface-2));
    border-color: color-mix(in srgb, var(--prag-accent) 55%, transparent);
  }
  .prag-fb-toggle:active {
    transform: scale(0.94);
  }
  .prag-fb-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .prag-fb-dock[data-expanded="true"] .prag-fb-toggle .prag-fb-icon-bubble,
  prag-feedback:state(expanded) .prag-fb-toggle .prag-fb-icon-bubble,
  prag-feedback-pill:state(expanded) .prag-fb-toggle .prag-fb-icon-bubble {
    display: none;
  }
  .prag-fb-toggle .prag-fb-icon-chevron {
    display: none;
  }
  .prag-fb-dock[data-expanded="true"] .prag-fb-toggle .prag-fb-icon-chevron,
  prag-feedback:state(expanded) .prag-fb-toggle .prag-fb-icon-chevron,
  prag-feedback-pill:state(expanded) .prag-fb-toggle .prag-fb-icon-chevron {
    display: block;
  }
  .prag-fb-dock[data-side="left"][data-expanded="true"] .prag-fb-toggle .prag-fb-icon-chevron {
    transform: rotate(180deg);
  }
  .prag-fb-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-width 0.26s var(--ease-apple-spring, cubic-bezier(0.22, 1, 0.36, 1)), opacity 0.18s ease;
  }
  .prag-fb-dock[data-expanded="true"] .prag-fb-actions,
  prag-feedback:state(expanded) .prag-fb-actions,
  prag-feedback-pill:state(expanded) .prag-fb-actions {
    max-width: 280px;
    opacity: 1;
    overflow: visible;
    padding: 2px 4px 2px 2px;
    pointer-events: auto;
  }
  .prag-fb-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--prag-border);
    background-color: var(--prag-surface-2);
    color: var(--prag-text-primary);
    font-size: 12px;
    font-weight: 560;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transform: none;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.08s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .prag-fb-action-btn:hover {
    transform: none;
    background-color: var(--prag-surface-1);
    border-color: var(--prag-border-strong);
    color: var(--prag-text-display);
  }
  .prag-fb-action-btn:active {
    transform: scale(0.94);
  }
  .prag-fb-action-btn[data-cat="bug"] svg { color: var(--prag-debit, #f43f5e); }
  .prag-fb-action-btn[data-cat="suggestion"] svg { color: var(--prag-pending, #f59e0b); }
  .prag-fb-action-btn[data-cat="nps"] svg { color: var(--prag-accent, #27d4c8); }

  @media (pointer: coarse), (max-width: 640px) {
    .prag-system-tray {
      bottom: max(16px, env(safe-area-inset-bottom, 16px));
      right: max(16px, env(safe-area-inset-right, 16px));
      gap: 8px;
    }
    .prag-fb-toggle {
      width: 44px;
      height: 44px;
      min-width: 44px;
      min-height: 44px;
    }
    .prag-fb-action-btn {
      min-width: 44px;
      min-height: 44px;
      padding: 0 10px;
    }
    .prag-fb-action-btn .btn-label {
      display: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .prag-system-tray,
    .pf-dock,
    .pf-dock-inner,
    .pf-capsule-label,
    .prag-fb-dock,
    .prag-fb-toggle,
    .prag-fb-toggle svg,
    .prag-fb-actions,
    .prag-fb-action-btn,
    .prag-fb-star,
    .prag-fb-progress-bar {
      animation: none !important;
      transition: none !important;
    }
  }
}
@layer components {
  .prag-fb-stardust {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100010;
  }

  /* Native Top-Layer Feedback Dialog */
  dialog.prag-fb-dialog {
    width: min(468px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(90dvh, 740px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: auto;
    padding: 0;
    border-radius: 16px;
    border: 1px solid var(--prag-border-strong);
    background-color: var(--prag-surface-1);
    color: var(--prag-text-primary);
    box-shadow: var(--prag-card-shadow), var(--prag-catchlight);
    font-family: var(--prag-font-sans, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif);
  }
  dialog.prag-fb-dialog::backdrop {
    background-color: rgba(3, 3, 8, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .prag-fb-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--prag-border);
  }
  .prag-fb-modal-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .prag-fb-modal-title {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    color: var(--prag-text-display);
  }
  .prag-fb-product-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--prag-border);
    background-color: var(--prag-surface-2);
    color: var(--prag-text-muted);
  }
  .prag-fb-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .prag-fb-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .prag-fb-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  @media (max-width: 440px) {
    .prag-fb-tabs {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  .prag-fb-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid var(--prag-border);
    background-color: var(--prag-surface-2);
    color: var(--prag-text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  }
  .prag-fb-tab[aria-pressed="true"] {
    background-color: color-mix(in srgb, var(--prag-accent) 14%, var(--prag-surface-2));
    border-color: color-mix(in srgb, var(--prag-accent) 52%, transparent);
    color: var(--prag-text-display);
  }

  .prag-fb-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .prag-fb-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--prag-border);
    background-color: var(--prag-surface-2);
    color: var(--prag-text-muted);
    cursor: pointer;
    transition: border-color 0.14s ease, color 0.14s ease, background-color 0.14s ease, transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .prag-fb-star[aria-pressed="true"],
  .prag-fb-star[data-lit="true"] {
    color: var(--prag-fb-sentiment-color, var(--prag-accent));
    border-color: color-mix(in srgb, var(--prag-fb-sentiment-color, var(--prag-accent)) 52%, transparent);
    background-color: color-mix(in srgb, var(--prag-fb-sentiment-color, var(--prag-accent)) 14%, var(--prag-surface-2));
  }
  .prag-fb-star[data-bounce="true"] {
    animation: prag-fb-star-bounce 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  @keyframes prag-fb-star-bounce {
    0% { transform: scale(1); }
    45% { transform: scale(1.18); }
    100% { transform: scale(1); }
  }

  .prag-fb-sentiment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--prag-fb-sentiment-color, var(--prag-border-strong)) 38%, transparent);
    background-color: color-mix(in srgb, var(--prag-fb-sentiment-color, var(--prag-surface-2)) 10%, var(--prag-surface-2));
  }
  .prag-fb-sentiment-pip {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex-shrink: 0;
    background-color: var(--prag-fb-sentiment-color, var(--prag-accent));
  }
  .prag-fb-sentiment-title {
    font-size: 12.5px;
    font-weight: 650;
    color: var(--prag-text-display);
  }
  .prag-fb-sentiment-sub {
    font-size: 11.5px;
    color: var(--prag-text-muted);
    margin-top: 2px;
  }

  .prag-fb-textarea,
  .prag-fb-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--prag-border-strong);
    background-color: var(--prag-panel);
    color: var(--prag-text-display);
    font: inherit;
    font-size: 13px;
    resize: vertical;
  }
  .prag-fb-textarea {
    min-height: 92px;
  }
  .prag-fb-textarea:focus-visible,
  .prag-fb-input:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--prag-accent) 55%, transparent);
    outline-offset: 1px;
  }

  .prag-fb-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed var(--prag-border-strong);
    background-color: var(--prag-surface-2);
    color: var(--prag-text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
  }
  .prag-fb-dropzone:hover,
  .prag-fb-dropzone[data-dragover="true"] {
    border-color: var(--prag-accent);
    background-color: color-mix(in srgb, var(--prag-accent) 10%, var(--prag-surface-2));
    color: var(--prag-text-display);
  }
  .prag-fb-shot-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--prag-border);
    background-color: var(--prag-surface-2);
    font-size: 12px;
    color: var(--prag-text-muted);
  }
  .prag-fb-shot-preview img {
    height: 40px;
    width: auto;
    border-radius: 6px;
    border: 1px solid var(--prag-border);
  }

  .prag-fb-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--prag-debit, #ef4444) 48%, transparent);
    background-color: color-mix(in srgb, var(--prag-debit, #ef4444) 12%, var(--prag-surface-2));
    color: var(--prag-text-display);
    font-size: 12px;
  }
  .prag-fb-error[hidden],
  .prag-fb-shot-preview[hidden],
  .prag-fb-dropzone[hidden],
  .prag-fb-confirm[hidden],
  .prag-fb-form[hidden] {
    display: none;
  }

  .prag-fb-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
  }

  .prag-fb-confirm {
    padding: 26px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .prag-fb-confirm-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: color-mix(in srgb, var(--prag-credit, #10b981) 16%, var(--prag-surface-2));
    border: 1px solid color-mix(in srgb, var(--prag-credit, #10b981) 52%, transparent);
    color: var(--prag-credit, #10b981);
  }
  .prag-fb-confirm-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--prag-text-display);
  }
  .prag-fb-receipt {
    font-family: var(--prag-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--prag-border-strong);
    background-color: var(--prag-surface-2);
    color: var(--prag-text-primary);
  }
  .prag-fb-progress {
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background-color: var(--prag-surface-2);
    overflow: hidden;
  }
  .prag-fb-progress-bar {
    height: 100%;
    width: 100%;
    background-color: var(--prag-credit, #10b981);
    transform-origin: left center;
    animation: prag-fb-countdown 4.5s linear forwards;
  }
  @keyframes prag-fb-countdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
  }
}
