:root{--primary-color:#3b82f6;--primary-hover:#2563eb;--bg-color:#f8fafc;--surface-color:#ffffff;--text-color:#1e293b;--border-color:#e2e8f0;--error-color:#ef4444;--success-color:#22c55e;--code-bg:#f1f5f9;--toolbar-bg:#f1f5f9}@media (prefers-color-scheme:dark){:root{--bg-color:#0f172a;--surface-color:#1e293b;--text-color:#f1f5f9;--border-color:#334155;--code-bg:#0f172a;--toolbar-bg:#1e293b}}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;background-color:var(--bg-color);color:var(--text-color);height:100vh;display:flex;flex-direction:column;transition:background-color 0.3s,color 0.3s}header{background-color:var(--surface-color);padding:0.75rem 1.5rem;border-bottom:1px solid var(--border-color);display:flex;justify-content:space-between;align-items:center;box-shadow:0 1px 3px rgba(0,0,0,0.05)}h1{font-size:1.25rem;font-weight:600;display:flex;align-items:center;gap:0.5rem}.brand-link{text-decoration:none;color:var(--text-color)}.toolbar{background-color:var(--toolbar-bg);padding:0.75rem 1.5rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;border-bottom:1px solid var(--border-color)}.toolbar-group{display:flex;align-items:center;gap:0.5rem;flex-wrap:wrap}.divider{width:1px;height:24px;background-color:var(--border-color);margin:0 0.5rem}button,select,.file-upload-label{padding:0.5rem 1rem;border:1px solid var(--border-color);border-radius:0.375rem;background-color:var(--surface-color);color:var(--text-color);cursor:pointer;font-size:0.875rem;transition:all 0.2s;display:inline-flex;align-items:center;justify-content:center}@media (min-width:769px){button:hover,.file-upload-label:hover{border-color:var(--primary-color);color:var(--primary-color)}button.primary:hover{background-color:var(--primary-hover)}}@media (max-width:768px){button:active,.file-upload-label:active,select:active{transform:scale(0.97);transition:transform 0.05s;border-color:var(--primary-color)}button.primary:active{background-color:var(--primary-hover)}}button.primary{background-color:var(--primary-color);color:white;border-color:var(--primary-color)}select:focus,button:focus{outline:2px solid var(--primary-color);outline-offset:2px}#fileInput{display:none}main{flex:1;display:flex;padding:1rem;gap:1rem;height:calc(100vh - 130px);overflow:hidden}.editor-container{flex:1;display:flex;flex-direction:column;background-color:var(--surface-color);border:1px solid var(--border-color);border-radius:0.5rem;overflow:hidden;position:relative}.editor-header{padding:0.5rem 1rem;background-color:var(--toolbar-bg);border-bottom:1px solid var(--border-color);font-size:0.875rem;font-weight:500;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem}textarea{flex:1;width:100%;border:none;resize:none;padding:1rem;background-color:var(--surface-color);color:var(--text-color);font-family:"Menlo","Monaco","Consolas","Courier New",monospace;font-size:14px;line-height:1.5;outline:none}#statusIndicator{font-size:0.75rem;padding:0.25rem 0.5rem;border-radius:0.25rem}.status-valid{color:var(--success-color);background:rgba(34,197,94,0.1)}.status-error{color:var(--error-color);background:rgba(239,68,68,0.1)}footer{text-align:center;padding:0.5rem;font-size:0.75rem;color:#64748b;background-color:var(--bg-color);border-top:1px solid var(--border-color)}footer a{color:var(--primary-color);text-decoration:none}@media (max-width:768px){header{padding:0.6rem 1rem}h1{font-size:1rem}.toolbar{padding:0.6rem 0.8rem;gap:0.6rem}.toolbar-group{flex:1;justify-content:center;gap:0.4rem}.divider{display:none}button,select,.file-upload-label{padding:0.5rem 0.75rem;font-size:0.8rem}main{flex-direction:column;height:auto;padding:0.8rem;gap:0.8rem;flex:1}.editor-container{height:40vh;min-height:250px}.editor-header{padding:0.4rem 0.8rem;font-size:0.75rem}textarea{padding:0.8rem;font-size:13px}#statusIndicator{font-size:0.7rem;padding:0.2rem 0.4rem}footer{padding:0.4rem;font-size:0.7rem}}@media (max-width:550px){header{padding:0.5rem 0.8rem}h1{font-size:0.9rem}.toolbar{padding:0.5rem;gap:0.5rem;flex-direction:column;align-items:stretch}.toolbar-group{justify-content:space-between;gap:0.5rem}.toolbar-group:first-child{flex-wrap:wrap}.toolbar-group:first-child{display:grid;grid-template-columns:repeat(3,1fr)}.toolbar-group:last-child{display:grid;grid-template-columns:repeat(2,1fr)}button,select,.file-upload-label{padding:0.5rem 0.5rem;font-size:0.75rem;width:100%;text-align:center}main{padding:0.6rem;gap:0.6rem}.editor-container{min-height:220px}.editor-header{padding:0.3rem 0.6rem;font-size:0.7rem;flex-direction:column;align-items:flex-start;gap:0.3rem}textarea{padding:0.6rem;font-size:12px}}@media (max-width:400px){.toolbar-group:first-child{grid-template-columns:repeat(2,1fr)}.toolbar-group:last-child{grid-template-columns:repeat(2,1fr)}button,select,.file-upload-label{padding:0.45rem 0.4rem;font-size:0.7rem}.editor-container{min-height:200px}}@media (max-width:768px) and (orientation:landscape){main{flex-direction:row;height:calc(100vh - 110px)}.editor-container{height:auto;min-height:auto}.toolbar{flex-direction:row;flex-wrap:wrap}.toolbar-group{flex:auto}.toolbar-group:first-child,.toolbar-group:last-child{display:flex;grid-template-columns:none}button,select,.file-upload-label{width:auto;padding:0.4rem 0.7rem}}@media (hover:none) and (pointer:coarse){button,select,.file-upload-label{cursor:pointer;-webkit-tap-highlight-color:transparent}button:active{transform:scale(0.97)}textarea{-webkit-tap-highlight-color:transparent}}pre,code,textarea{word-break:break-word;white-space:pre-wrap}