:root { --primary:#6366f1; --secondary:#8b5cf6; --muted:#667085; }
*,*::before,*::after{box-sizing:border-box}
html,body{width:100%;max-width:100%;min-height:100%;overflow-x:hidden}
body{margin:0;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#172033}
.string-art-page>main.container{width:100%;max-width:100%;padding-right:12px;padding-left:12px}
.tool-content{padding:30px;background:rgba(255,255,255,.98);border-radius:20px;box-shadow:0 8px 30px rgba(0,0,0,.1)}
.section-title{display:flex;align-items:center;gap:10px;margin:0 0 20px;color:var(--primary);font-size:1.75rem;font-weight:750}
.step-indicator{height:100%;padding:15px 18px;color:#1e40af;background:linear-gradient(135deg,#dbeafe,#e0e7ff);border-left:4px solid var(--primary);border-radius:10px;font-weight:650}
.tool-card{overflow:hidden;border:1px solid #e2e8f0;border-radius:14px}.tool-card-header{padding:13px 16px;color:#fff;background:linear-gradient(135deg,var(--primary),var(--secondary));border:0;font-weight:700}
.source-preview{display:grid;place-items:center;min-height:360px;overflow:hidden;color:#94a3b8;background:linear-gradient(135deg,#f8fafc,#e2e8f0);cursor:pointer}.source-preview>div{display:grid;place-items:center;gap:8px}.source-preview>div i{font-size:2rem}.source-preview img{display:block;width:100%;max-height:520px;object-fit:contain}
.info-badge{margin:0 0 24px;padding:15px 20px;color:#92400e;background:linear-gradient(135deg,#fef3c7,#fde68a);border-left:4px solid #f59e0b;border-radius:10px}
.form-control{min-height:44px;border-color:#d0d5dd;border-radius:11px}.form-control:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(99,102,241,.14)}.form-label{font-weight:650}.field-help{display:block;margin-top:5px;color:var(--muted);font-size:.8rem}
.licence-heading{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px}.licence-state{padding:3px 8px;color:#667085;background:#eaecf0;border-radius:999px;font-size:.76rem;font-weight:700}.licence-state.valid{color:#027a48;background:#d1fadf}.licence-message,.message{min-height:20px;margin:8px 0 0;color:#667085;font-size:.85rem}.btn-primary-tool,.btn-generate{color:#fff;background:linear-gradient(135deg,var(--primary),var(--secondary));border:0;border-radius:11px;font-weight:700}.btn-primary-tool{width:100%;min-height:44px}.generate-row{text-align:center;margin-bottom:24px}.btn-generate{min-width:240px;padding:13px 20px}.btn-generate:disabled{opacity:.45}
.result-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.result-summary>div{padding:12px;background:#f4f3ff;border-radius:11px}.result-summary span,.result-summary strong{display:block}.result-summary span{color:var(--muted);font-size:.82rem}.result-summary strong{color:#5143db;font-size:1.1rem}
.result-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-bottom:16px}.result-actions button{padding:9px 12px;color:#5143db;background:#fff;border:1px solid #c7c1ff;border-radius:10px;font-weight:650}.result-actions button:disabled{color:#98a2b3;border-color:#e4e7ec}
.preview-title{margin:0 0 10px;color:#475467;font-size:1rem;font-weight:750}.canvas-stage{display:grid;place-items:center;min-height:440px;max-height:70vh;padding:12px;overflow:auto;background:#eef0f4;border:1px solid #e4e7ec;border-radius:14px}.empty-preview{display:grid;place-items:center;gap:8px;color:#667085;text-align:center}.empty-preview i{color:#aaa2ff;font-size:3rem}.canvas-stage canvas{max-width:100%;height:auto;background:#fff;box-shadow:0 8px 25px rgba(16,24,40,.18)}
@media(max-width:575.98px){.string-art-page>main.container{padding-right:10px;padding-left:10px}.tool-content{padding:14px 10px;border-radius:14px}.section-title{font-size:1.4rem}.step-indicator{padding:12px 10px;font-size:.86rem}.source-preview{min-height:72vw}.btn-generate{width:100%;min-width:0}.result-summary{grid-template-columns:1fr}.result-actions button{flex:1 1 100%}.canvas-stage{min-height:300px}}
