.swift-tool-main-wrapper { 
    font-family: 'Inter', system-ui, sans-serif !important; 
    background-color: #f8fafc !important; 
    padding: 20px 15px !important; 
    max-width: 1200px !important; 
    margin: 15px auto !important; 
    box-sizing: border-box !important;
    display: block !important;
    clear: both !important;
}

.tool-hero-section { text-align: center; margin-bottom: 25px; padding-top: 10px; }
.tool-title-main { font-size: 28px !important; font-weight: 800 !important; color: #0f172a !important; display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; margin-top: 0 !important; }
.hero-icon-svg { width: 36px; height: 36px; display: inline-block; }
.tool-subtitle-main { font-size: 15px !important; color: #475569 !important; font-weight: 500 !important; max-width: 700px; margin: 0 auto; line-height: 1.5; }

/* Studio Toolbar Controls */
.studio-toolbar-control-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 20px; margin-bottom: 20px; gap: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.toolbar-left-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tmpl-btn { background: #f1f5f9; border: 1px solid #cbd5e1; color: #334155; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.tmpl-btn:hover { background: #e2e8f0; color: #0f172a; }
.toolbar-right-group { display: flex; align-items: center; gap: 10px; }
.toolbar-inline-lbl { font-size: 13px; font-weight: 700; color: #475569; }
.toolbar-select-field { padding: 6px 10px; border: 2px solid #cbd5e1; border-radius: 6px; font-size: 13px; font-weight: 600; color: #0f172a; cursor: pointer; outline: none; }
.toolbar-select-field:focus { border-color: #a855f7; }

.vector-workspace { width: 100%; }
.studio-split-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 992px) { .studio-split-grid { grid-template-columns: 1fr 1fr; } }

.vector-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); display: flex; flex-direction: column; gap: 15px; border-top: 4px solid #a855f7; box-sizing: border-box; }
.preview-card { border-top: 4px solid #64748b; background: #ffffff; }

.card-title { font-size: 15px !important; font-weight: 700 !important; color: #0f172a !important; margin: 0; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; width: 100%; }

.form-group { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.custom-field-textarea { padding: 14px; border: 2px solid #cbd5e1; border-radius: 8px; font-size: 14px; font-weight: 600; color: #0f172a; outline: none; min-height: 420px; font-family: 'Fira Code', monospace; background: #ffffff; resize: vertical; box-sizing: border-box; width: 100%; line-height: 1.6; }
.custom-field-textarea:focus { border-color: #a855f7; }

.status-banner { padding: 12px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.premium-purple-banner { background: #faf5ff; color: #6b21a8; border: 1px solid #f3e8ff; }

/* Viewport Layouts System */
.preview-header-tabs-container { display: flex; border-bottom: 2px solid #e2e8f0; margin-bottom: 5px; gap: 5px; }
.tab-toggle-btn { padding: 10px 16px; border: none; background: transparent; font-size: 13.5px; font-weight: 700; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.tab-toggle-btn:hover { color: #0f172a; }
.active-tab { color: #a855f7 !important; border-bottom-color: #a855f7 !important; }

.studio-canvas-box { min-height: 420px; display: flex; border: 2px dashed #cbd5e1; border-radius: 8px; overflow: hidden; background: #ffffff; width: 100%; box-sizing: border-box; }
.rendered-markdown-frame { width: 100%; padding: 20px; overflow-y: auto; box-sizing: border-box; font-size: 14.5px; line-height: 1.6; }
.raw-code-terminal-box { width: 100%; border: none; padding: 20px; font-family: 'Fira Code', monospace; font-size: 13px; background: #0f172a; color: #38bdf8; resize: none; outline: none; box-sizing: border-box; height: 100%; min-height: 410px; }

/* --- PREVIEW DYNAMIC THEMES --- */
/* 1. GitHub Light */
.theme-github { background: #ffffff; color: #24292e; }
.theme-github h1, .theme-github h2, .theme-github h3 { border-bottom: 1px solid #eaecef; padding-bottom: 0.3em; color: #24292e; margin-top: 15px; margin-bottom: 10px; }
.theme-github code { background: rgba(27,31,35,0.05); padding: 0.2em 0.4em; border-radius: 3px; font-family: monospace; }
.theme-github table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.theme-github th, .theme-github td { border: 1px solid #dfe2e5; padding: 6px 13px; }
.theme-github th { background-color: #f6f8fa; }
.theme-github blockquote { border-left: 0.25em solid #dfe2e5; color: #6a737d; padding: 0 1em; margin: 10px 0; }

/* 2. Midnight Dark */
.theme-dark { background: #0f172a; color: #cbd5e1; border-radius: 6px; }
.theme-dark h1, .theme-dark h2, .theme-dark h3 { color: #f8fafc; border-bottom: 1px solid #334155; padding-bottom: 4px; }
.theme-dark code { background: #1e293b; color: #f43f5e; padding: 2px 6px; border-radius: 4px; }
.theme-dark table th { background: #1e293b; color: #fff; }
.theme-dark th, .theme-dark td { border: 1px solid #334155; padding: 8px; }
.theme-dark blockquote { border-left: 4px solid #a855f7; background: #1e293b; padding: 8px 12px; color: #94a3b8; }

/* 3. Cyberpunk Theme */
.theme-cyberpunk { background: #000000; color: #00ff66; border-radius: 6px; font-family: monospace; border: 1px solid #ff007f; }
.theme-cyberpunk h1, .theme-cyberpunk h2, .theme-cyberpunk h3 { color: #ff007f; text-shadow: 0 0 5px #ff007f; }
.theme-cyberpunk code { background: #222; color: #00ffff; padding: 2px 4px; }
.theme-cyberpunk th { background: #ff007f; color: #000; }
.theme-cyberpunk th, .theme-cyberpunk td { border: 1px solid #00ff66; padding: 6px; }
.theme-cyberpunk blockquote { border-left: 4px solid #00ffff; color: #00ffff; padding-left: 10px; }

/* Export Buttons Row Layout */
.action-export-row { display: flex; gap: 12px; width: 100%; margin-top: 5px; }
.action-btn-node { flex: 1; padding: 13px; font-size: 14px; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; transition: all 0.2s; text-align: center; }
.purple-solid-btn { background: linear-gradient(135deg, #a855f7, #7e22ce); color: #ffffff; box-shadow: 0 4px 14px rgba(168, 85, 247, 0.2); }
.green-solid-btn { background: linear-gradient(135deg, #10b981, #059669); color: #ffffff; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2); }
.action-btn-node:hover { opacity: 0.95; }

.seo-guide-section { width: 100%; margin-top: 50px; }
.step-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
@media (min-width: 768px) { .step-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: #fff; border: 1px solid #e2e8f0; padding: 22px; border-radius: 12px; position: relative; }
.step-num { position: absolute; top: -14px; left: 20px; color: #fff; font-weight: 800; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; }

.step-card h4 { margin: 8px 0 6px 0; font-size: 15px; font-weight: 700; color: #0f172a; }
.step-card p { margin: 0; font-size: 13px; color: #475569; line-height: 1.5; }

.faq-section { width: 100%; margin-top: 40px; }
.faq-main-title { font-size: 22px !important; font-weight: 800 !important; color: #0f172a; text-align: center; margin-bottom: 20px; }
.faq-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; margin-bottom: 12px; }
.faq-question { font-size: 15px !important; font-weight: 700 !important; color: #0f172a; margin: 0 0 6px 0; }
.faq-answer { font-size: 13.5px; color: #475569; line-height: 1.5; margin: 0; }

/* Print Media Configurations Engine For Flawless PDF Render */
@media print {
    body * { visibility: hidden; }
    .rendered-markdown-frame, .rendered-markdown-frame * { visibility: visible; }
    .rendered-markdown-frame { position: absolute; left: 0; top: 0; width: 100%; padding: 0; background: #fff !important; color: #000 !important; }
}