/* PragFeedback — Universal Side-Tucked Component Stylesheet */
:root {
  --pf-surface-void: #030308;
  --pf-surface-panel: rgba(11, 14, 22, 0.92);
  --pf-surface-hover: rgba(22, 27, 39, 0.96);
  --pf-surface-modal: rgba(13, 17, 26, 0.98);
  --pf-surface-input: rgba(18, 22, 33, 0.85);

  --pf-border-subtle: rgba(255, 255, 255, 0.08);
  --pf-border-active: rgba(255, 255, 255, 0.20);
  --pf-border-focus: rgba(56, 189, 248, 0.5);
  --pf-catchlight: inset 0 1px 0 rgba(255, 255, 255, 0.12);

  --pf-text-primary: #ffffff;
  --pf-text-secondary: #94a3b8;
  --pf-text-muted: #64748b;
  --pf-accent-cyan: #38bdf8;
  --pf-accent-rose: #f43f5e;
  --pf-accent-amber: #f59e0b;
  --pf-accent-emerald: #10b981;

  --pf-radius-pill: 24px;
  --pf-radius-card: 16px;
  --pf-radius-btn: 10px;
  --pf-shadow-ambient: 0 16px 40px rgba(0, 0, 0, 0.7);
}

/* Light Mode Optical Palette */
html[data-resolved-theme="light"],
html[data-theme="light"] {
  --pf-surface-void: #f8fafc;
  --pf-surface-panel: rgba(255, 255, 255, 0.94);
  --pf-surface-hover: rgba(241, 245, 249, 0.96);
  --pf-surface-modal: rgba(255, 255, 255, 0.98);
  --pf-surface-input: rgba(248, 250, 252, 0.95);

  --pf-border-subtle: rgba(15, 23, 42, 0.10);
  --pf-border-active: rgba(15, 23, 42, 0.22);
  --pf-border-focus: rgba(2, 132, 199, 0.6);
  --pf-catchlight: inset 0 1px 0 rgba(255, 255, 255, 0.8);

  --pf-text-primary: #0f172a;
  --pf-text-secondary: #475569;
  --pf-text-muted: #64748b;
  --pf-accent-cyan: #0284c7;

  --pf-shadow-ambient: 0 16px 40px rgba(15, 23, 42, 0.15);
}

/* Luminous Stardust Celebration Overlay Canvas */
.pf-stardust-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100010;
}

/* Unified Sovereign System Action Tray */
.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.382s cubic-bezier(0.16, 1, 0.3, 1), transform 0.382s cubic-bezier(0.16, 1, 0.3, 1);
}

.prag-system-tray:has(.pragchat-trigger-btn.is-autohidden) {
  gap: 0px;
}

/* When inside .pragchat-hud-container, tray is positioned by parent */
.pragchat-hud-container .prag-system-tray {
  position: static;
  bottom: auto;
  right: auto;
}

/* Floating Dock Container */
.pf-dock {
  display: flex;
  align-items: center;
  user-select: none;
  touch-action: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: static;
  z-index: auto;
}

/* Hide drag handle when cleanly docked in system tray */
.prag-system-tray .pf-drag-handle {
  display: none;
}

/* Standalone fallback if outside tray */
body > .pf-dock {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(calc(-50% + var(--pf-offset-y, 0px)));
  z-index: 99999;
}

/* Inner Capsule Body with Specular Catchlight Tracking */
.pf-dock-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  background-color: var(--pf-surface-panel);
  background-image: radial-gradient(circle 90px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12), transparent 75%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--pf-border-subtle);
  border-radius: var(--pf-radius-pill);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), var(--pf-catchlight);
  padding: 0 5px 0 5px;
  cursor: pointer;
  outline: none;
  transition: width 0.36s cubic-bezier(0.34, 1.56, 0.64, 1),
              padding 0.36s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.28s ease,
              transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(1);
}

/* Hover & Glance State: Scott Sun Gummy Spring Expansion */
.pf-dock-inner:hover,
.pf-dock-inner:focus-visible,
.pf-dock-inner.pf-peek {
  border-color: rgba(255, 255, 255, 0.24);
  background-color: var(--pf-surface-hover);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.88),
              inset 0 1px 0 rgba(255, 255, 255, 0.22),
              0 0 16px rgba(56, 189, 248, 0.16);
  transform: scale(1.02);
  padding: 0 15px 0 6px;
}

.pf-dock-inner:active {
  transform: scale(0.97);
}

.pf-dock.pf-dragging .pf-dock-inner {
  transition: none;
  opacity: 0.95;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), var(--pf-catchlight);
}

/* Drag Handle / Gripper */
.pf-drag-handle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 8px;
  height: 22px;
  cursor: ns-resize;
  opacity: 0.35;
  padding: 0 1px;
  margin-right: 2px;
  transition: opacity 0.18s ease;
  flex-shrink: 0;
}

.pf-dock-inner:hover .pf-drag-handle {
  opacity: 0.75;
}

.pf-drag-dot {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: var(--pf-text-secondary);
}

/* Main Capsule Trigger Button */
.pf-toggle-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  min-width: 44px;
  min-height: 44px;
  color: var(--pf-text-primary);
  cursor: pointer;
  outline: none;
}

/* Icon Wrap: Centered 32px circular token with cyan Apple dialogue glyph */
.pf-capsule-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pf-dock-inner:hover .pf-capsule-icon-wrap,
.pf-dock-inner.pf-peek .pf-capsule-icon-wrap {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  transform: scale(1.05);
}

.pf-toggle-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
  pointer-events: none;
}

/* Bubble Icon: visible & cyan */
.pf-icon-bubble {
  color: var(--pf-accent-cyan);
  stroke: var(--pf-accent-cyan);
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Capsule Label: "Feedback" */
.pf-capsule-label {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--pf-text-primary);
  margin-left: 0;
  pointer-events: none;
  transition: max-width 0.36s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.24s ease,
              margin-left 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.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: 80px;
  opacity: 1;
  margin-left: 8px;
}

/* Action Buttons */
.pf-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: var(--pf-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--pf-border-subtle);
  color: var(--pf-text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.08s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pf-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--pf-text-primary);
  border-color: var(--pf-border-active);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: none;
}

.pf-action-btn:active {
  transform: scale(0.94);
}

/* Scott Sun Spring Compression */
.pf-action-btn:active,
.pf-toggle-btn:active,
.pf-category-tab:active,
.pf-btn-submit:active,
.pf-btn-cancel:active,
.pf-btn-return:active {
  transform: scale(0.94);
  transition: transform 0.08s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pf-action-btn svg {
  width: 15px;
  height: 15px;
}

.pf-action-bug:hover svg { color: var(--pf-accent-rose); stroke: var(--pf-accent-rose); }
.pf-action-feature:hover svg { color: var(--pf-accent-cyan); stroke: var(--pf-accent-cyan); }
.pf-action-rating:hover svg { color: var(--pf-accent-amber); stroke: var(--pf-accent-amber); }

/* Modal Backdrop */
.pf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.pf-modal-backdrop.pf-open {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Card with Specular Catchlight Tracking */
.pf-modal {
  width: 100%;
  max-width: 520px;
  background-color: var(--pf-surface-modal);
  background-image: radial-gradient(circle 320px at var(--modal-mouse-x, 50%) var(--modal-mouse-y, 25%), rgba(255, 255, 255, 0.05), transparent 75%);
  border: 1px solid var(--pf-border-subtle);
  border-radius: var(--pf-radius-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), var(--pf-catchlight);
  overflow: hidden;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--pf-text-primary);
  display: flex;
  flex-direction: column;
}

.pf-modal-backdrop.pf-open .pf-modal {
  transform: scale(1) translateY(0);
}

/* Modal Form Container */
.pf-modal-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Modal Header */
.pf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--pf-border-subtle);
}

.pf-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-modal-title-icon {
  width: 16px;
  height: 16px;
  color: var(--pf-accent-cyan);
  stroke: var(--pf-accent-cyan);
  flex-shrink: 0;
}

.pf-modal-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.pf-modal-close {
  background: transparent;
  border: none;
  color: var(--pf-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.pf-modal-close:hover {
  color: var(--pf-text-primary);
}

/* Modal Body */
.pf-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Category Tabs */
.pf-category-group {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--pf-border-subtle);
}

.pf-category-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pf-text-secondary);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-category-tab svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.72;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-category-tab:hover svg {
  opacity: 1;
}

.pf-category-tab.pf-active {
  background: rgba(255, 255, 255, 0.10);
  color: var(--pf-text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), var(--pf-catchlight);
}

.pf-category-tab.pf-active svg {
  opacity: 1;
  transform: scale(1.08);
}

/* Rating Container & Dynamic Emotion Sentiment Card */
.pf-rating-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--pf-surface-input);
  border: 1px solid var(--pf-border-subtle);
  border-radius: 12px;
  padding: 14px 18px;
}

.pf-rating-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pf-rating-label {
  font-size: 13px;
  color: var(--pf-text-secondary);
}

.pf-stars {
  display: flex;
  gap: 6px;
}

.pf-star-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: var(--pf-text-muted);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-star-btn svg {
  width: 22px;
  height: 22px;
}

.pf-star-btn.pf-star-active {
  color: var(--pf-accent-amber);
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.35));
}

.pf-star-btn:hover {
  transform: scale(1.22);
}

.pf-star-btn.pf-star-bounce {
  animation: pfStarBounce 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pfStarBounce {
  0% { transform: scale(1); }
  45% { transform: scale(1.36) rotate(-8deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.pf-sentiment-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--pf-border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.25s ease;
}

.pf-sentiment-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-sentiment-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color 0.25s ease;
}

.pf-pip-rose { background: #f43f5e; }
.pf-pip-amber { background: #f59e0b; }
.pf-pip-slate { background: #94a3b8; }
.pf-pip-cyan { background: #38bdf8; }
.pf-pip-emerald { background: #10b981; }

.pf-sentiment-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--pf-text-primary);
  transition: color 0.2s ease;
}

/* Text Inputs */
.pf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pf-field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--pf-text-secondary);
}

.pf-textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  background: var(--pf-surface-input);
  border: 1px solid var(--pf-border-subtle);
  border-radius: 10px;
  color: var(--pf-text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.pf-textarea:focus {
  border-color: var(--pf-border-focus);
}

.pf-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--pf-surface-input);
  border: 1px solid var(--pf-border-subtle);
  border-radius: 10px;
  color: var(--pf-text-primary);
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.pf-input:focus {
  border-color: var(--pf-border-focus);
}

/* Screenshot Attachment Dropzone */
.pf-dropzone {
  border: 1px dashed var(--pf-border-subtle);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.pf-dropzone:hover {
  border-color: var(--pf-border-active);
  background: rgba(255, 255, 255, 0.04);
}

.pf-dropzone-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-dropzone-text {
  font-size: 12px;
  color: var(--pf-text-secondary);
}

.pf-screenshot-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.pf-screenshot-img {
  max-width: 100px;
  max-height: 60px;
  border-radius: 6px;
  border: 1px solid var(--pf-border-subtle);
  object-fit: cover;
}

.pf-screenshot-remove {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--pf-border-subtle);
  color: var(--pf-text-primary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
}

/* Diagnostics Telemetry Banner */
/* Modal Footer */
.pf-modal-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--pf-border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.pf-btn-cancel {
  background: transparent;
  border: 1px solid var(--pf-border-subtle);
  color: var(--pf-text-secondary);
  padding: 8px 16px;
  border-radius: var(--pf-radius-btn);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pf-btn-cancel:hover {
  color: var(--pf-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.pf-btn-submit {
  background: var(--pf-text-primary);
  color: var(--pf-surface-void);
  border: none;
  padding: 8px 20px;
  border-radius: var(--pf-radius-btn);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.pf-btn-submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.pf-btn-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pf-btn-submit svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-btn-submit:hover:not(:disabled) svg {
  transform: translate(1px, -1px);
}

/* Joyful Appreciative Confirmation Screen */
.pf-modal-success {
  padding: 38px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: pfFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pfFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pf-success-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--pf-catchlight);
}

.pf-success-svg {
  width: 44px;
  height: 44px;
  stroke-width: 2.5;
  stroke-miterlimit: 10;
  stroke: #10b981;
  fill: none;
}

.pf-success-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #10b981;
  animation: pfStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.pf-success-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: pfStroke 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes pfStroke {
  100% { stroke-dashoffset: 0; }
}

.pf-success-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pf-text-primary);
  margin: 0 0 12px 0;
}

.pf-success-ticket {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.20);
  border-radius: var(--pf-radius-pill);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pf-accent-cyan);
  margin-bottom: 22px;
}

.pf-success-ticket svg {
  width: 12px;
  height: 12px;
  color: var(--pf-accent-cyan);
  stroke: var(--pf-accent-cyan);
  flex-shrink: 0;
}

.pf-ticket-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
}

.pf-success-timer-bar {
  width: 100%;
  max-width: 240px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 24px;
}

.pf-success-timer-fill {
  height: 100%;
  width: 0%;
  background: var(--pf-text-primary);
  border-radius: 2px;
  transition: width 4.5s linear;
}

.pf-btn-return {
  background: var(--pf-text-primary);
  color: var(--pf-surface-void);
  border: none;
  padding: 10px 24px;
  border-radius: var(--pf-radius-btn);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.pf-btn-return:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Toast Notification */
.pf-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--pf-surface-panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--pf-border-subtle);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pf-text-primary);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), var(--pf-catchlight);
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100001;
}

.pf-toast.pf-show {
  transform: translateY(0);
  opacity: 1;
}

.pf-toast-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

/* Responsive Mobile Ergonomics */
@media (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;
  }
  .pragchat-hud-container .prag-system-tray {
    position: static;
  }
  .pf-dock {
    position: static;
    transform: none;
  }
  body > .pf-dock {
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    right: max(14px, env(safe-area-inset-right, 14px));
    transform: none;
  }
  .pf-dock-inner {
    height: 44px;
    width: 44px;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: var(--pf-radius-pill);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), var(--pf-catchlight);
  }
  .pf-dock-inner:hover,
  .pf-dock-inner.pf-peek {
    width: 44px;
    padding: 0 !important;
  }
  .pf-capsule-label {
    display: none !important;
  }
  .pf-capsule-icon-wrap {
    width: 32px;
    height: 32px;
  }
  .pf-modal {
    width: 94vw;
    max-width: 440px;
    border-radius: 14px;
  }
  .pf-modal-body {
    padding: 16px;
    gap: 12px;
  }
  .pf-rating-container {
    padding: 12px 14px;
  }
  .pf-modal-header,
  .pf-modal-footer {
    padding: 12px 16px;
  }
  .pf-category-tab {
    padding: 6px 4px;
    font-size: 11px;
    gap: 4px;
  }
}


