@layer features {

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dropzone { border: 2px dashed var(--color-border-default); padding: 48px 32px; text-align: center; border-radius: 5px; background: var(--color-bg-surface-alt); cursor: pointer; transition: all 0.2s ease; color: var(--color-text-secondary); font-size: var(--font-size-sm); position: relative }
.dropzone:hover { border-color: var(--color-border-strong); background: var(--color-bg-surface-alt); color: var(--color-text-primary) }
.policy { color: var(--color-danger-text); font-size: var(--font-size-xs); margin-top: 12px; font-weight: var(--font-weight-medium) }
.row { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap }
button.primary-green { background: var(--color-accent); color: var(--color-text-primary); box-shadow: 0 1px 2px rgba(0,0,0,0.1) }
button.primary-green:hover { background: var(--color-accent-hover); box-shadow: 0 2px 4px rgba(0,0,0,0.15) }
button.secondary { background: var(--color-bg-surface); color: var(--color-text-primary); border: 1px solid var(--color-border-default); box-shadow: 0 1px 2px rgba(0,0,0,0.05); font-weight: var(--font-weight-medium) }
button.secondary:hover { background: var(--color-bg-surface-alt); border-color: var(--color-border-strong); box-shadow: 0 1px 3px rgba(0,0,0,0.1) }
button.with-arrow::after { content: " →"; margin-left: 6px; transition: transform 0.2s ease; font-weight: var(--font-weight-regular) }
button.with-arrow:hover::after { transform: translateX(3px) }
.tags { display: flex; gap: 6px }
.tag { background: var(--color-bg-surface-alt); color: var(--color-text-primary); padding: 2px 8px; border-radius: 5px; font-size: var(--font-size-xs); border: 1px solid var(--color-border-default) }
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); z-index: 10002 }
.modal-body { width: 560px; max-width: 90vw; background: var(--color-bg-surface); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--color-border-default); box-shadow: 0 4px 12px rgba(0,0,0,0.15); position: relative }
.modal-title { font-weight: var(--font-weight-semibold); margin-bottom: 24px; font-size: 22px; color: var(--color-text-primary); letter-spacing: -0.2px }
/* `.hidden` placed AFTER `.modal` (same specificity) so source-order tie
   resolves in favor of `.hidden` — matches the original styles.css layout
   where `.hidden` followed `.modal` for the same reason. */
.hidden { display: none }
.end { justify-content: flex-end }
.severity { padding: 6px 12px; border-radius: 5px; font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); text-transform: uppercase; letter-spacing: 0.3px; border: none }
.sev-low { background: var(--color-accent); color: var(--color-text-primary) }
.sev-medium { background: var(--c-secondary-100); color: var(--color-text-primary) }
.sev-high { background: var(--c-secondary-100); color: var(--color-text-primary) }




.preview { display: grid; gap: 12px }



.box { position: absolute; border: 2px solid var(--c-secondary-100); border-radius: 5px; background: rgba(255, 179, 193, 0.15) }

.toast-container { position: fixed; top: 100px; right: 24px; z-index: 10003; display: flex; flex-direction: column; gap: 10px; pointer-events: none }
.toast { padding: 16px 20px; border-radius: 5px; background: var(--color-bg-surface); border: 1px solid var(--color-border-default); box-shadow: 0 2px 8px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 12px; min-width: 300px; max-width: 400px; pointer-events: auto; animation: slideIn 0.3s ease-out }
.toast.success { border-left: 4px solid var(--color-accent); background: var(--color-bg-surface) }
.toast.error { border-left: 4px solid var(--c-secondary-100); background: var(--color-bg-surface) }
.toast.warning { border-left: 4px solid var(--c-secondary-100); background: var(--color-bg-surface) }
.toast.info { border-left: 4px solid var(--color-text-primary); background: var(--color-bg-surface) }
.toast-icon { font-size: 18px; flex-shrink: 0 }
.toast.success .toast-icon { color: var(--color-text-primary) }
.toast.error .toast-icon { color: var(--color-text-primary) }
.toast.warning .toast-icon { color: var(--color-text-primary) }
.toast.info .toast-icon { color: var(--color-text-primary) }
.toast-message { flex: 1; color: var(--color-text-primary); font-size: var(--font-size-sm); line-height: 1.5; font-weight: var(--font-weight-medium) }
.toast-close { background: transparent; border: 0; color: var(--color-text-secondary); cursor: pointer; font-size: 18px; padding: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); transition: all 0.2s ease }
.toast-close:hover { background: var(--color-bg-surface-alt); color: var(--color-text-primary) }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
.loading-modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); z-index: 10040 }
.loading-modal.hidden { display: none }



.loading-title { font-weight: var(--font-weight-semibold); font-size: var(--font-size-lg); color: var(--color-text-primary); margin-bottom: 8px; text-align: center }
.loading-subtitle { font-size: var(--font-size-sm); color: var(--color-text-secondary); margin-bottom: 16px; text-align: center; font-weight: var(--font-weight-regular) }






.progress-container { margin-bottom: 24px }
.progress-bar { width: 100%; height: 8px; background: var(--color-border-default); border-radius: 5px; overflow: hidden; border: none }
.progress-fill { height: 100%; background: var(--color-accent); border-radius: 5px; width: 0%; transition: width 0.3s ease-out }
.progress-text { text-align: center; margin-top: 8px; font-size: 13px; font-weight: var(--font-weight-semibold); color: var(--color-text-primary) }
.loading-spinner { display: flex; justify-content: center; margin-top: 20px }
.spinner { width: 32px; height: 32px; border: 3px solid var(--color-border-default); border-top-color: var(--color-text-primary); border-radius: 50%; animation: spin 1s linear infinite }



@keyframes spin { to { transform: rotate(360deg) } }


} /* end @layer features */
