*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--primary:#1a56db;--primary-dark:#1442a8;--danger:#dc2626;--success:#16a34a;--warning:#f59e0b;--gray-50:#f9fafb;--gray-100:#f3f4f6;--gray-200:#e5e7eb;--gray-300:#d1d5db;--gray-400:#9ca3af;--gray-500:#6b7280;--gray-600:#4b5563;--gray-700:#374151;--gray-800:#1f2937;--gray-900:#111827;--radius:10px;--radius-lg:12px;--shadow:0 1px 3px #00000014, 0 1px 2px #0000000b;--shadow-md:0 4px 6px #00000012, 0 2px 4px #0000000f}body{background:var(--gray-100);color:var(--gray-900);-webkit-tap-highlight-color:transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5}.guest-main:has(.guest-workspace){width:100%;max-width:1500px}.guest-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:16px;display:grid}.guest-workspace-form{min-width:0}.guest-reader{border-radius:var(--radius);min-width:0;max-height:calc(100dvh - 85px);box-shadow:var(--shadow);background:#fff;padding:16px;position:sticky;top:72px;overflow:auto}.guest-reader header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.guest-reader h2{overflow-wrap:anywhere}.guest-reader .qdw-document-scroll{overflow:auto}.guest-reader .qdw-document{overflow-wrap:anywhere;background:#fff;padding:16px}.guest-reader .qdw-table-scroll{overflow:auto}.guest-reader .qdw-bold{font-weight:700}.guest-reader .qdw-italic{font-style:italic}.guest-reader .qdw-underline{text-decoration:underline}.guest-reader .qdw-toolbar{flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0;display:flex}@media (width<=800px){.guest-workspace{display:block}.guest-reader-empty{display:none}.guest-reader:not(.guest-reader-empty){z-index:100;border-radius:0;height:100dvh;max-height:100dvh;position:fixed;inset:0;overflow:auto}}.guest-shell{flex-direction:column;min-height:100dvh;display:flex}.guest-header{border-bottom:1px solid var(--gray-200);z-index:10;background:#fff;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;display:flex;position:sticky;top:0}.guest-header-brand{align-items:center;gap:10px;display:flex}.guest-header-brand img{width:auto;height:28px}.guest-header-title{color:var(--gray-700);font-size:15px;font-weight:600}.guest-header-actions{align-items:center;gap:8px;display:flex}.guest-main{flex:1;width:100%;max-width:720px;margin:0 auto;padding:20px}.guest-footer{text-align:center;color:var(--gray-400);padding:16px 20px 24px;font-size:12px}.guest-card{border-radius:var(--radius-lg);box-shadow:var(--shadow);background:#fff;margin-bottom:16px;padding:24px}.guest-card h2{color:var(--gray-800);margin-bottom:12px;font-size:18px;font-weight:700}.guest-card h3{color:var(--gray-700);margin-bottom:8px;font-size:15px;font-weight:600}.guest-card p{color:var(--gray-600);margin-bottom:8px;font-size:14px;line-height:1.6}.guest-card p:last-child{margin-bottom:0}.btn{border-radius:var(--radius);cursor:pointer;-webkit-user-select:none;user-select:none;border:none;justify-content:center;align-items:center;gap:6px;padding:12px 20px;font-size:15px;font-weight:600;transition:background .15s,transform .1s;display:inline-flex}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn:disabled:active{transform:none}.btn-primary{background:var(--primary);color:#fff;box-shadow:0 1px 2px #102a7047}.btn-primary:hover:not(:disabled){background:var(--primary-dark)}.btn-secondary{color:var(--gray-800);box-shadow:inset 0 0 0 1px var(--gray-300);background:#fff}.btn-secondary:hover:not(:disabled){background:var(--gray-50)}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover:not(:disabled){background:#b91c1c}.btn-link{color:var(--primary);box-shadow:none;background:0 0;padding:8px 4px}.btn-link:hover:not(:disabled){text-decoration:underline}.btn-sm{padding:8px 14px;font-size:13px}.btn-full{width:100%}.guest-label{color:var(--gray-600);margin-top:16px;margin-bottom:6px;font-size:13px;font-weight:600;display:block}.guest-input{border:1px solid var(--gray-300);border-radius:var(--radius);width:100%;color:var(--gray-900);appearance:none;background:#fff;padding:12px;font-size:16px}.guest-input:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #1a56db26}.guest-input:disabled{background:var(--gray-100);color:var(--gray-500)}textarea.guest-input{resize:vertical;min-height:80px;font-family:inherit}.guest-badge{white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.guest-badge-info{color:#1e40af;background:#dbeafe}.guest-badge-success{color:#166534;background:#dcfce7}.guest-badge-warning{color:#92400e;background:#fef3c7}.guest-badge-danger{color:#991b1b;background:#fee2e2}.guest-badge-neutral{background:var(--gray-100);color:var(--gray-600)}.guest-alert{border-radius:var(--radius);margin-bottom:16px;padding:12px 16px;font-size:14px}.guest-alert-error{color:#991b1b;background:#fee2e2;border:1px solid #fecaca}.guest-alert-success{color:#166534;background:#dcfce7;border:1px solid #bbf7d0}.guest-alert-info{color:#1e40af;background:#dbeafe;border:1px solid #bfdbfe}.guest-alert-warning{color:#92400e;background:#fef3c7;border:1px solid #fde68a}.guest-verify-center{text-align:center;max-width:400px;margin:60px auto}.guest-code-input{text-align:center;letter-spacing:12px;font-variant-numeric:tabular-nums;max-width:260px;margin:16px auto;font-size:32px;display:block}.guest-masked-email{color:var(--gray-800);font-weight:600}.guest-scope-meta{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin:16px 0;display:grid}.guest-scope-meta dt{color:var(--gray-500);text-transform:uppercase;letter-spacing:.4px;font-size:12px;font-weight:600}.guest-scope-meta dd{color:var(--gray-800);margin:2px 0 8px;font-size:14px;font-weight:500}.guest-file-list{list-style:none}.guest-file-item{border-bottom:1px solid var(--gray-100);justify-content:space-between;align-items:center;gap:12px;padding:10px 0;display:flex}.guest-file-item:last-child{border-bottom:none}.guest-file-name{color:var(--gray-800);word-break:break-word;font-size:14px;font-weight:500}.guest-file-detail{color:var(--gray-500);font-size:12px}.guest-file-status{flex-shrink:0}.guest-draft-actions{flex-wrap:wrap;gap:10px;margin-top:20px;display:flex}.guest-money-input{font-variant-numeric:tabular-nums}.guest-upload-zone{border:2px dashed var(--gray-300);border-radius:var(--radius);text-align:center;cursor:pointer;padding:24px;transition:border-color .15s,background .15s}.guest-upload-zone:hover,.guest-upload-zone.dragging{border-color:var(--primary);background:#eff6ff}.guest-upload-zone p{color:var(--gray-500);margin:0;font-size:14px}.guest-upload-zone strong{color:var(--primary)}.guest-revision{border:1px solid var(--gray-200);border-radius:var(--radius);margin-bottom:12px;padding:16px}.guest-revision-header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.guest-revision-number{color:var(--gray-700);font-size:13px;font-weight:700}.guest-revision-detail{color:var(--gray-500);font-size:13px}.guest-outcome{text-align:center;padding:32px 20px}.guest-outcome-icon{border-radius:50%;justify-content:center;align-items:center;width:48px;height:48px;margin-bottom:12px;display:inline-flex}.guest-outcome-icon.success{color:#16a34a;background:#dcfce7}.guest-outcome-icon.neutral{background:var(--gray-100);color:var(--gray-500)}.guest-dialog-backdrop{z-index:50;background:#0006;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.guest-dialog{border-radius:var(--radius-lg);background:#fff;width:100%;max-width:440px;padding:24px;box-shadow:0 20px 60px #0000002e}.guest-dialog h3{margin-bottom:12px;font-size:17px;font-weight:700}.guest-dialog p{color:var(--gray-600);margin-bottom:16px;font-size:14px;line-height:1.6}.guest-dialog-actions{justify-content:flex-end;gap:10px;display:flex}.guest-loading{min-height:200px;color:var(--gray-500);flex-direction:column;justify-content:center;align-items:center;font-size:14px;display:flex}@media (width<=640px){.guest-main{padding:12px}.guest-card{padding:16px}.guest-scope-meta{grid-template-columns:1fr 1fr}.guest-draft-actions{flex-direction:column}.guest-draft-actions .btn{width:100%}}
