 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 :root {
     --primary: #667eea;
     --primary-dark: #764ba2;
     --primary-light: #a78bfa;
     --success: #10b981;
     --success-dark: #059669;
     --error: #ef4444;
     --warning: #f59e0b;
     --dark-bg: #f8f9fa;
     --surface: #ffffff;
     --surface-light: #f1f5f9;
     --border: #e2e8f0;
     --text: #1f2937;
     --text-muted: #475569;
     --text-dim: #94a3b8;
     --mono: 'JetBrains Mono', 'Consolas', monospace;
     --sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
 }

 body {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     font-family: var(--sans);
     min-height: 100vh;
     padding: 24px 20px;
     color: var(--text);
 }

 body.dark-theme {
     background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
     --dark-bg: #1e293b;
     --surface: #0f172a;
     --surface-light: #334155;
     --border: #334155;
     --text: #f1f5f9;
     --text-muted: #94a3b8;
     --text-dim: #64748b;
 }

 .container {
     max-width: 1300px;
     margin: 0 auto;
 }

 .back-button {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     color: rgba(255, 255, 255, 0.9);
     text-decoration: none;
     font-size: 0.9rem;
     font-weight: 500;
     padding: 7px 16px;
     border-radius: 20px;
     background: rgba(255, 255, 255, 0.15);
     border: 1px solid rgba(255, 255, 255, 0.2);
     transition: all 0.2s;
     margin-bottom: 16px;
 }

 .back-button:hover {
     background: rgba(255, 255, 255, 0.28);
     color: white;
 }

 .tool-switcher {
     display: flex;
     align-items: center;
     gap: 8px;
     flex-wrap: wrap;
     margin-bottom: 20px;
 }

 .tool-switcher-label {
     color: rgba(255, 255, 255, 0.85);
     font-size: 0.88rem;
     font-weight: 600;
     white-space: nowrap;
     display: flex;
     align-items: center;
     gap: 6px;
 }

 .tool-switch-btn {
     color: rgba(255, 255, 255, 0.85);
     text-decoration: none;
     font-size: 0.82rem;
     font-weight: 500;
     padding: 6px 14px;
     border-radius: 20px;
     background: rgba(255, 255, 255, 0.12);
     border: 1px solid rgba(255, 255, 255, 0.2);
     transition: all 0.2s;
     white-space: nowrap;
 }

 .tool-switch-btn:hover {
     background: rgba(255, 255, 255, 0.25);
     color: white;
 }

 .tool-switch-btn.active {
     background: rgba(255, 255, 255, 0.9);
     color: #667eea;
     font-weight: 600;
 }

 .breadcrumb-nav {
     margin-bottom: 16px;
 }

 .breadcrumb {
     list-style: none;
     display: flex;
     gap: 6px;
     font-size: 0.88rem;
     flex-wrap: wrap;
 }

 .breadcrumb li {
     display: flex;
     align-items: center;
     color: rgba(255, 255, 255, 0.85);
 }

 .breadcrumb li:not(:last-child)::after {
     content: '›';
     margin-left: 6px;
     color: rgba(255, 255, 255, 0.5);
     font-size: 1.1rem;
 }

 .breadcrumb a {
     color: rgba(255, 255, 255, 0.9);
     text-decoration: none;
 }

 .breadcrumb a:hover {
     opacity: 0.75;
     text-decoration: underline;
 }

 .breadcrumb [aria-current="page"] {
     color: white;
     font-weight: 600;
 }

 .header {
     text-align: center;
     margin-bottom: 32px;
     animation: fadeInDown 0.5s ease;
 }

 @keyframes fadeInDown {
     from {
         opacity: 0;
         transform: translateY(-20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .header h1 {
     font-size: 2.5rem;
     font-weight: 700;
     color: white;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
     margin-bottom: 8px;
 }

 .header p {
     color: rgba(255, 255, 255, 0.9);
     font-size: 1rem;
 }

 .badge {
     display: inline-block;
     background: rgba(255, 255, 255, 0.2);
     border: 1px solid rgba(255, 255, 255, 0.3);
     border-radius: 30px;
     padding: 4px 14px;
     font-size: 0.75rem;
     font-family: var(--mono);
     color: white;
     margin-top: 12px;
 }

 .card {
     background: var(--surface);
     border-radius: 24px;
     border: 1px solid var(--border);
     overflow: hidden;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
     animation: fadeIn 0.6s ease;
 }

 .card-header {
     background: var(--dark-bg);
     padding: 20px 28px;
     border-bottom: 1px solid var(--border);
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
     gap: 15px;
 }

 .card-header h2 {
     font-size: 1.3rem;
     font-weight: 600;
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .theme-toggle {
     background: transparent;
     border: 1px solid var(--border);
     color: var(--text);
     cursor: pointer;
     font-size: 1.1rem;
     padding: 8px 14px;
     border-radius: 8px;
     transition: all 0.2s;
 }

 .theme-toggle:hover {
     border-color: var(--primary);
 }

 .upload-section {
     padding: 28px;
 }

 .upload-area {
     border: 3px dashed var(--border);
     border-radius: 20px;
     padding: 50px 30px;
     text-align: center;
     cursor: pointer;
     transition: all 0.3s;
     background: var(--dark-bg);
     position: relative;
 }

 .upload-area:focus-visible {
     outline: 3px solid var(--primary);
     outline-offset: 2px;
 }

 .upload-area:hover {
     border-color: var(--primary);
     background: rgba(102, 126, 234, 0.05);
 }

 .upload-area.dragover {
     border-color: var(--success);
     background: rgba(16, 185, 129, 0.08);
 }

 .upload-icon {
     font-size: 4rem;
     margin-bottom: 16px;
     display: block;
 }

 .upload-text {
     font-size: 1.2rem;
     font-weight: 600;
     color: var(--text);
     margin-bottom: 8px;
 }

 .upload-hint {
     font-size: 0.85rem;
     color: var(--text-muted);
 }

 .upload-formats {
     display: flex;
     justify-content: center;
     gap: 12px;
     margin-top: 16px;
     flex-wrap: wrap;
 }

 .format-badge {
     padding: 6px 16px;
     background: var(--surface);
     border: 1px solid var(--border);
     border-radius: 20px;
     font-size: 0.8rem;
     font-weight: 500;
     color: var(--text-muted);
 }

 .pdf-filename-section {
     padding: 16px 28px;
     background: var(--dark-bg);
     border-top: 1px solid var(--border);
     display: flex;
     align-items: center;
     gap: 12px;
 }

 .pdf-filename-section label {
     font-size: 0.85rem;
     font-weight: 600;
     color: var(--text);
     white-space: nowrap;
 }

 .pdf-filename-input {
     flex: 1;
     padding: 10px 16px;
     border: 1px solid var(--border);
     border-radius: 10px;
     background: var(--surface);
     color: var(--text);
     font-family: var(--mono);
     font-size: 0.85rem;
     outline: none;
     transition: all 0.2s;
 }

 .pdf-filename-input:focus {
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
 }

 .pdf-extension {
     font-weight: 600;
     color: var(--text-muted);
     font-size: 0.85rem;
 }

 .options-bar {
     padding: 20px 28px;
     background: var(--dark-bg);
     border-bottom: 1px solid var(--border);
     border-top: 1px solid var(--border);
     display: flex;
     flex-wrap: wrap;
     gap: 20px;
     align-items: center;
 }

 .option-group {
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .option-group label {
     font-size: 0.85rem;
     color: var(--text-muted);
     font-weight: 500;
     white-space: nowrap;
 }

 .option-select {
     background: var(--surface);
     border: 1px solid var(--border);
     padding: 10px 16px;
     border-radius: 10px;
     color: var(--text);
     font-family: var(--sans);
     font-size: 0.85rem;
     cursor: pointer;
     min-width: 130px;
 }

 .option-input {
     background: var(--surface);
     border: 1px solid var(--border);
     padding: 10px 14px;
     border-radius: 10px;
     color: var(--text);
     font-family: var(--mono);
     font-size: 0.85rem;
     width: 70px;
     text-align: center;
 }

 .option-input:focus,
 .option-select:focus {
     outline: 2px solid var(--primary);
     outline-offset: 2px;
 }

 .margin-presets {
     display: flex;
     gap: 6px;
 }

 .margin-preset {
     padding: 6px 12px;
     border: 1px solid var(--border);
     border-radius: 15px;
     background: var(--surface);
     color: var(--text-muted);
     cursor: pointer;
     font-size: 0.75rem;
     font-weight: 500;
     transition: all 0.2s;
 }

 .margin-preset:hover {
     border-color: var(--primary);
     color: var(--primary);
 }

 .margin-preset.active {
     background: var(--primary);
     color: white;
     border-color: var(--primary);
 }

 .main-content {
     display: none;
 }

 .main-content.active {
     display: grid;
     grid-template-columns: 1fr 400px;
     gap: 0;
     border-top: 1px solid var(--border);
 }

 @media (max-width: 1000px) {
     .main-content.active {
         grid-template-columns: 1fr;
     }

     .main-content.active .settings-panel {
         border-left: none;
         border-top: 1px solid var(--border);
     }
 }

 .preview-area {
     padding: 20px;
     background: #e8ecf1;
     display: flex;
     align-items: center;
     justify-content: center;
     min-height: 500px;
     position: relative;
     overflow: auto;
 }

 body.dark-theme .preview-area {
     background: #1a1f2b;
 }

 .page-preview-container {
     position: relative;
     display: inline-block;
 }

 .page-preview {
     background: white;
     box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.1);
     position: relative;
     transition: all 0.3s;
 }

 body.dark-theme .page-preview {
     box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
 }

 .margin-boundary {
     position: absolute;
     border: 2px dashed #f59e0b;
     pointer-events: none;
     z-index: 2;
     opacity: 0.7;
 }

 .margin-label {
     position: absolute;
     background: #f59e0b;
     color: #1a1a1a;
     font-size: 0.65rem;
     font-weight: 700;
     padding: 2px 8px;
     border-radius: 4px;
     pointer-events: none;
     z-index: 3;
     font-family: var(--mono);
     white-space: nowrap;
 }

 .page-preview img {
     position: absolute;
     display: block;
 }

 .page-nav {
     display: flex;
     align-items: center;
     gap: 16px;
     margin-top: 16px;
     justify-content: center;
 }

 .page-nav-btn {
     background: var(--surface);
     border: 1px solid var(--border);
     padding: 10px 20px;
     border-radius: 10px;
     cursor: pointer;
     font-size: 0.85rem;
     color: var(--text);
     transition: all 0.2s;
     font-weight: 500;
 }

 .page-nav-btn:focus-visible {
     outline: 2px solid var(--primary);
     outline-offset: 2px;
 }

 .page-nav-btn:hover:not(:disabled) {
     background: var(--primary);
     color: white;
     border-color: var(--primary);
 }

 .page-nav-btn:disabled {
     opacity: 0.4;
     cursor: not-allowed;
 }

 .page-indicator {
     font-weight: 600;
     color: var(--text);
     font-size: 0.9rem;
     min-width: 80px;
     text-align: center;
 }

 .settings-panel {
     background: var(--surface);
     border-left: 1px solid var(--border);
     padding: 20px;
     overflow-y: auto;
     max-height: 600px;
 }

 .settings-section {
     margin-bottom: 24px;
 }

 .settings-section h4 {
     font-size: 0.9rem;
     font-weight: 700;
     color: var(--text);
     margin-bottom: 12px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 8px;
     width: 100%;
 }

 .settings-section h4 .icon {
     font-size: 1rem;
 }

 .margin-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 10px;
 }

 .margin-input-group {
     display: flex;
     flex-direction: column;
     gap: 4px;
 }

 .margin-input-group label {
     font-size: 0.7rem;
     color: var(--text-dim);
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 .margin-input-group .margin-input-wrapper {
     display: flex;
     align-items: center;
     gap: 4px;
     background: var(--dark-bg);
     border: 1px solid var(--border);
     border-radius: 8px;
     padding: 4px 10px;
 }

 .margin-input-wrapper input {
     border: none;
     background: transparent;
     color: var(--text);
     font-family: var(--mono);
     font-size: 0.85rem;
     width: 50px;
     outline: none;
     text-align: center;
 }

 .margin-input-wrapper input:focus {
     outline: 2px solid var(--primary);
     border-radius: 4px;
 }

 .margin-input-wrapper span {
     font-size: 0.65rem;
     color: var(--text-dim);
 }

 .lock-btn {
     background: transparent;
     border: 1px solid var(--border);
     padding: 8px;
     border-radius: 8px;
     cursor: pointer;
     font-size: 0.85rem;
     color: var(--text-muted);
     transition: all 0.2s;
 }

 .lock-btn:focus-visible {
     outline: 2px solid var(--primary);
     outline-offset: 2px;
 }

 .lock-btn.locked {
     background: var(--primary);
     color: white;
     border-color: var(--primary);
 }

 .thumbnail-strip {
     display: flex;
     gap: 8px;
     overflow-x: auto;
     padding-bottom: 8px;
 }

 .thumbnail {
     min-width: 60px;
     height: 75px;
     border: 2px solid var(--border);
     border-radius: 6px;
     cursor: pointer;
     overflow: hidden;
     transition: all 0.2s;
     position: relative;
     flex-shrink: 0;
 }

 .thumbnail:focus-visible {
     outline: 2px solid var(--primary);
     outline-offset: 2px;
 }

 .thumbnail:hover {
     border-color: var(--primary);
 }

 .thumbnail.active {
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
 }

 .thumbnail img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .thumbnail .thumb-page {
     position: absolute;
     bottom: 2px;
     left: 2px;
     background: rgba(0, 0, 0, 0.7);
     color: white;
     font-size: 0.55rem;
     padding: 1px 5px;
     border-radius: 3px;
     font-weight: 700;
 }

 .thumbnail .thumb-remove {
     position: absolute;
     top: 2px;
     right: 2px;
     background: var(--error);
     color: white;
     border: none;
     width: 18px;
     height: 18px;
     border-radius: 50%;
     cursor: pointer;
     font-size: 0.6rem;
     display: flex;
     align-items: center;
     justify-content: center;
     opacity: 0;
     transition: opacity 0.2s;
 }

 .thumbnail:hover .thumb-remove {
     opacity: 1;
 }

 .fit-options {
     display: flex;
     gap: 8px;
 }

 .fit-option {
     flex: 1;
     padding: 10px 8px;
     border: 2px solid var(--border);
     border-radius: 10px;
     cursor: pointer;
     text-align: center;
     transition: all 0.2s;
     background: var(--surface);
 }

 .fit-option:focus-visible {
     outline: 2px solid var(--primary);
     outline-offset: 2px;
 }

 .fit-option:hover {
     border-color: var(--primary);
 }

 .fit-option.active {
     border-color: var(--primary);
     background: rgba(102, 126, 234, 0.1);
 }

 .fit-option .fit-icon {
     font-size: 1.5rem;
     display: block;
     margin-bottom: 4px;
 }

 .fit-option .fit-label {
     font-size: 0.7rem;
     font-weight: 600;
     color: var(--text);
 }

 .fit-option .fit-desc {
     font-size: 0.6rem;
     color: var(--text-dim);
     margin-top: 2px;
 }

 .zoom-controls {
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .zoom-btn {
     background: var(--surface);
     border: 1px solid var(--border);
     width: 32px;
     height: 32px;
     border-radius: 8px;
     cursor: pointer;
     font-size: 1rem;
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--text);
     transition: all 0.2s;
 }

 .zoom-btn:focus-visible {
     outline: 2px solid var(--primary);
     outline-offset: 2px;
 }

 .zoom-btn:hover {
     background: var(--primary);
     color: white;
     border-color: var(--primary);
 }

 .zoom-level {
     font-size: 0.8rem;
     font-weight: 600;
     color: var(--text);
     min-width: 45px;
     text-align: center;
 }

 .action-bar {
     padding: 20px 28px;
     background: var(--dark-bg);
     border-top: 1px solid var(--border);
     display: flex;
     flex-wrap: wrap;
     gap: 12px;
     align-items: center;
 }

 .btn {
     padding: 12px 28px;
     border-radius: 40px;
     font-weight: 600;
     font-size: 0.9rem;
     cursor: pointer;
     transition: all 0.25s;
     border: none;
     display: inline-flex;
     align-items: center;
     gap: 8px;
     font-family: var(--sans);
 }

 .btn:focus-visible {
     outline: 2px solid var(--primary);
     outline-offset: 2px;
 }

 .btn-primary {
     background: var(--primary);
     color: white;
 }

 .btn-primary:hover {
     background: var(--primary-dark);
     transform: translateY(-2px);
     box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
 }

 .btn-primary:disabled {
     opacity: 0.5;
     cursor: not-allowed;
     transform: none;
     box-shadow: none;
 }

 .btn-success {
     background: var(--success);
     color: white;
 }

 .btn-success:hover {
     background: var(--success-dark);
     transform: translateY(-2px);
 }

 .btn-success:disabled {
     opacity: 0.5;
     cursor: not-allowed;
     transform: none;
 }

 .btn-secondary {
     background: transparent;
     border: 1px solid var(--border);
     color: var(--text);
 }

 .btn-secondary:hover {
     border-color: var(--primary);
     color: var(--primary);
     background: rgba(102, 126, 234, 0.1);
 }

 .btn-danger {
     background: transparent;
     border: 1px solid var(--error);
     color: var(--error);
 }

 .btn-danger:hover {
     background: rgba(239, 68, 68, 0.15);
     transform: translateY(-2px);
 }

 .progress-container {
     margin: 0 28px 20px 28px;
     display: none;
 }

 .progress-container.active {
     display: block;
 }

 .progress-bar {
     width: 100%;
     height: 8px;
     background: var(--border);
     border-radius: 10px;
     overflow: hidden;
 }

 .progress-fill {
     height: 100%;
     background: linear-gradient(90deg, var(--primary), var(--primary-dark));
     border-radius: 10px;
     transition: width 0.3s;
     width: 0%;
 }

 .progress-text {
     text-align: center;
     font-size: 0.8rem;
     color: var(--text-muted);
     margin-top: 8px;
 }

 .message {
     margin: 0 28px 20px 28px;
     padding: 12px 18px;
     border-radius: 12px;
     display: none;
     animation: slideIn 0.25s ease;
     font-size: 0.85rem;
 }

 .message.show {
     display: block;
 }

 .message-error {
     background: #fef2f2;
     border-left: 4px solid var(--error);
     color: #dc2626;
 }

 .message-success {
     background: #f0fdf4;
     border-left: 4px solid var(--success);
     color: #16a34a;
 }

 .message-info {
     background: #eff6ff;
     border-left: 4px solid var(--primary);
     color: #2563eb;
 }

 body.dark-theme .message-error {
     background: rgba(239, 68, 68, 0.15);
     color: #fecaca;
 }

 body.dark-theme .message-success {
     background: rgba(16, 185, 129, 0.15);
     color: #a7f3d0;
 }

 body.dark-theme .message-info {
     background: rgba(102, 126, 234, 0.15);
     color: #bfdbfe;
 }

 @keyframes slideIn {
     from {
         opacity: 0;
         transform: translateY(-5px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .info-cards {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
     gap: 16px;
     padding: 20px 28px;
     background: var(--dark-bg);
     border-top: 1px solid var(--border);
 }

 .info-card {
     text-align: center;
     padding: 16px;
     background: var(--surface);
     border-radius: 12px;
     border: 1px solid var(--border);
 }

 .info-value {
     font-size: 1.8rem;
     font-weight: 700;
     color: var(--primary);
     font-family: var(--mono);
 }

 .info-label {
     font-size: 0.7rem;
     color: var(--text-muted);
     margin-top: 4px;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 .seo-content,
 .related-tools-section,
 .faq-section {
     background: var(--surface);
     border-radius: 16px;
     padding: 24px 28px;
     margin-top: 24px;
     border: 1px solid var(--border);
 }

 .seo-content h2 {
     color: var(--text);
     font-size: 1.2rem;
     margin-bottom: 12px;
     margin-top: 20px;
 }

 .seo-content h2:first-child {
     margin-top: 0;
 }

 .seo-content h3 {
     color: var(--text);
     font-size: 1rem;
     margin-bottom: 10px;
     margin-top: 18px;
 }

 .seo-content p {
     color: var(--text-muted);
     line-height: 1.7;
     font-size: 0.9rem;
     margin-bottom: 16px;
 }

 .seo-content ol {
     color: var(--text-muted);
     line-height: 1.8;
     font-size: 0.9rem;
     padding-left: 20px;
     margin-bottom: 16px;
 }

 .seo-content ol li {
     margin-bottom: 6px;
 }

 .related-tools-section h3,
 .faq-section h3 {
     color: var(--text);
     font-size: 1.1rem;
     margin-bottom: 16px;
 }

 .related-links {
     display: flex;
     flex-wrap: wrap;
     gap: 10px;
 }

 .related-link {
     display: inline-block;
     padding: 8px 18px;
     background: var(--dark-bg);
     color: var(--text-muted);
     text-decoration: none;
     border-radius: 20px;
     font-weight: 500;
     font-size: 0.85rem;
     border: 1px solid var(--border);
     transition: all 0.2s;
 }

 .related-link:focus-visible {
     outline: 2px solid var(--primary);
     outline-offset: 2px;
 }

 .related-link:hover {
     background: var(--primary);
     color: white;
     border-color: var(--primary);
 }

 .usp-box {
     background: #f0f7ff;
     border: 2px solid #667eea;
     border-radius: 15px;
     padding: 22px 25px;
     margin: 20px 0;
 }

 body.dark-theme .usp-box {
     background: rgba(102, 126, 234, 0.15);
     border-color: #667eea;
 }

 body.dark-theme .usp-box h3 {
     color: var(--text);
 }

 body.dark-theme .usp-list li {
     color: #cbd5e1;
 }

 .usp-list {
     list-style: none;
     padding: 0;
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 10px;
 }

 .usp-list li {
     display: flex;
     align-items: center;
     gap: 8px;
     font-weight: 600;
     font-size: 0.9rem;
     color: var(--text);
 }

 .faq-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 12px;
 }

 .faq-item {
     background: var(--dark-bg);
     padding: 14px 18px;
     border-radius: 8px;
     border: 1px solid var(--border);
 }

 .faq-item summary {
     font-weight: 600;
     color: var(--text);
     cursor: pointer;
     font-size: 0.9rem;
 }

 .faq-item summary:focus-visible {
     outline: 2px solid var(--primary);
     border-radius: 4px;
 }

 .faq-item summary:hover {
     color: var(--primary);
 }

 .faq-item p {
     margin-top: 8px;
     color: var(--text-muted);
     line-height: 1.6;
     font-size: 0.85rem;
 }

 footer {
     text-align: center;
     margin-top: 32px;
     color: rgba(255, 255, 255, 0.6);
     font-size: 0.75rem;
 }

 footer a {
     color: rgba(255, 255, 255, 0.8);
     text-decoration: none;
 }

 footer a:focus-visible {
     outline: 2px solid white;
     border-radius: 4px;
 }

 footer a:hover {
     text-decoration: underline;
 }

 .shortcuts {
     margin-left: auto;
     font-size: 0.7rem;
     color: var(--text-dim);
 }

 .kbd {
     background: var(--surface-light);
     padding: 2px 8px;
     border-radius: 6px;
     font-family: var(--mono);
     font-size: 0.7rem;
 }

 .batch-note {
     font-size: 0.7rem;
     color: var(--text-dim);
     margin-top: 8px;
 }

 @media (max-width: 768px) {
     .header h1 {
         font-size: 1.8rem;
     }

     .options-bar {
         flex-direction: column;
         align-items: stretch;
     }

     .btn {
         padding: 10px 20px;
         font-size: 0.8rem;
     }

     .margin-label {
         font-size: 0.5rem;
         padding: 1px 4px;
     }
 }