body.afs-workspace-open { overflow: hidden; }
.afs-workspace-backdrop { position: fixed; inset: 0; z-index: 1500; display: flex; justify-content: center; align-items: center; background: rgba(15, 23, 42, .55); padding: 12px; }
.afs-workspace { width: min(1580px, 100%); height: 97vh; display: flex; flex-direction: column; background: #fff; color: #172033; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 64px #0f172a44; }
.afs-workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; }
.afs-workspace-header strong { font-size: 16px; }
.afs-workspace-header small { display: block; margin-top: 4px; color: #64748b; }
.afs-workspace-header > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; }
.afs-workspace button { background: #fff; color: #334155; border: 1px solid #cbd5e1; border-radius: 6px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.afs-workspace button:disabled { opacity: .45; cursor: wait; }
.afs-workspace-status { padding: 7px 16px; background: #f1f5f9; font-size: 12px; display: flex; justify-content: space-between; gap: 12px; }
.afs-workspace-status [data-afs-notice] { color: #b45309; }
.afs-workspace-viewport { position: relative; flex: 1; min-height: 200px; background: #eef2f7; overflow: auto; display: block; text-align: center; }
.afs-workspace-viewport img { width: 100%; max-width: 1440px; min-width: 1000px; display: block; margin: 0 auto; outline: none; cursor: default; }
.afs-workspace-viewport img:not([src]) { display: none; }
.afs-workspace-viewport img[aria-disabled="true"] { pointer-events: none; cursor: progress; }
.afs-workspace-viewport [data-afs-wait] { margin: 80px 24px; color: #64748b; }
.afs-workspace-text { padding: 10px 16px; display: flex; align-items: center; gap: 10px; border-top: 1px solid #e2e8f0; flex-wrap: wrap; }
.afs-workspace-text label { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 300px; font-size: 13px; }
.afs-workspace-text textarea { flex: 1; min-height: 36px; max-height: 120px; padding: 6px 9px; border: 1px solid #cbd5e1; border-radius: 5px; font-family: inherit; resize: vertical; }
.afs-workspace-text small { width: 100%; font-size: 12px; color: #64748b; }
.afs-workspace-dialog, .afs-workspace-attachment { padding: 12px 16px; background: #fffbeb; border-top: 1px solid #fbbf24; }
.afs-workspace-dialog[hidden], .afs-workspace-attachment[hidden] { display: none; }
.afs-workspace-dialog p { margin: 6px 0; white-space: pre-wrap; }
.afs-workspace-dialog button:last-child, .afs-workspace-text button { color: white; background: #4055d6; border-color: #4055d6; }
@media (max-width: 700px) { .afs-workspace-backdrop { padding: 0; } .afs-workspace { border-radius: 0; height: 100dvh; } .afs-workspace-header { align-items: flex-start; padding: 10px; } .afs-workspace-header strong { font-size: 14px; } .afs-workspace-header small { max-width: 190px; } .afs-workspace button { padding: 6px 8px; font-size: 12px; } }
