

        body { font-family: 'Courier New', monospace; background: var(--bg); color: var(--text); max-width: 1300px; margin: 20px auto; padding: 20px; }
        header { border-bottom: 5px solid var(--border); margin-bottom: 20px; }
        .main-layout { display: grid; grid-template-columns: 1fr 400px; gap: 20px; }
        #pdf-workbench { border: 4px solid var(--border); height: 85vh; background: var(--tag-bg); overflow-y: auto; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 30px; position: relative; }
        .page-container { position: relative; border: 2px solid var(--border); background: var(--bg); line-height: 0; }
        canvas { display: block; max-width: 100%; }
        .sig-box { position: absolute; border: 2px dashed var(--border); cursor: move; z-index: 1000; background: rgba(255,255,255,0.2); }
        .sig-box img { width: 100%; height: 100%; pointer-events: none; }
        .resize-handle { position: absolute; bottom: -5px; right: -5px; width: 15px; height: 15px; background: var(--text); cursor: nwse-resize; }
        .delete-btn { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; background: var(--diff-del-text); color: var(--bg); border: 2px solid var(--border); cursor: pointer; text-align: center; line-height: 20px; font-weight: bold; }
        .sidebar { border: 4px solid var(--border); padding: 20px; background: var(--bg); height: fit-content; position: sticky; top: 20px; }
        #scribble-pad { border: 3px solid var(--border); width: 100%; height: 300px; touch-action: none; cursor: crosshair; }
        .action-btn { width: 100%; padding: 15px; margin-top: 10px;  font-family: inherit; font-weight: 900; text-transform: uppercase;   background: var(--text); color: var(--bg); border: 2px solid var(--border); cursor: pointer; transition: all 0.2s ease; }
        .action-btn:disabled { background: var(--muted); border-color: var(--muted); cursor: not-allowed; }

        footer {
            margin-top: 60px;
            padding: 30px 20px;
            text-align: center;
            border-radius: 12px 12px 0 0;
        }

        footer a {
            color: var(--text);
            text-decoration: none;
            font-weight: 900;
            border: 2px solid var(--border);
            padding: 8px 16px;
            display: inline-block;
            transition: all 0.2s ease;
        }

        footer a:hover {
            background: var(--text);
            color: var(--bg);
        }
        
        