*{box-sizing:border-box}body{color:#1f2937;background:#f6f7fb;margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select{font-family:inherit}button{cursor:pointer}.app-container{min-height:100vh;display:flex}.sidebar{color:#fff;background:#111827;flex-direction:column;width:250px;display:flex;position:fixed;top:0;bottom:0;left:0}.logo{border-bottom:1px solid #273244;align-items:center;gap:12px;height:82px;padding:20px;display:flex}.logo-mark{background:#4f46e5;border-radius:10px;justify-content:center;align-items:center;width:40px;height:40px;font-weight:700;display:flex}.logo-title{font-size:16px;font-weight:700}.logo-subtitle{color:#9ca3af;margin-top:3px;font-size:11px}.sidebar-menu{flex-direction:column;gap:5px;padding:20px 12px;display:flex}.menu-item{color:#9ca3af;border-radius:8px;align-items:center;gap:12px;padding:12px 14px;font-size:14px;text-decoration:none;display:flex}.menu-item:hover{color:#fff;background:#1f2937}.menu-item.active{color:#fff;background:#312e81}.menu-icon{width:22px}.sidebar-footer{border-top:1px solid #273244;align-items:center;gap:10px;margin-top:auto;padding:18px;display:flex}.user-avatar{color:#fff;background:#4f46e5;border-radius:50%;justify-content:center;align-items:center;width:34px;height:34px;font-weight:600;display:flex}.user-name{font-size:13px;font-weight:600}.user-role{color:#9ca3af;font-size:11px}.main-container{width:calc(100% - 250px);margin-left:250px}.header{background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;height:82px;padding:0 32px;display:flex}.header-title{font-size:18px;font-weight:700}.header-subtitle{color:#6b7280;margin-top:3px;font-size:12px}.header-actions{align-items:center;gap:20px;display:flex}.notification-button{background:0 0;border:0;font-size:18px}.header-user{align-items:center;gap:8px;font-size:14px;display:flex}.page-content{padding:32px}.page-heading{justify-content:space-between;align-items:center;margin-bottom:28px;display:flex}.page-heading h1{margin:0;font-size:28px}.page-heading p{color:#6b7280;margin:7px 0 0;font-size:14px}.primary-button,.secondary-button{border:0;border-radius:7px;padding:10px 16px;font-size:13px;font-weight:600}.primary-button{color:#fff;background:#4f46e5}.primary-button:hover{background:#4338ca}.secondary-button{color:#4338ca;background:#eef2ff}.text-button{color:#4f46e5;background:0 0;border:0}.stats-grid{grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px;display:grid}.stat-card,.dashboard-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px}.stat-card{padding:20px}.stat-label{color:#6b7280;font-size:13px}.stat-value{margin-top:8px;font-size:30px;font-weight:700}.stat-description{color:#9ca3af;margin-top:5px;font-size:12px}.dashboard-grid{grid-template-columns:1.5fr 1fr;gap:20px;display:grid}.dashboard-card{padding:24px}.card-header{justify-content:space-between;align-items:center;display:flex}.card-header h2{margin:0;font-size:17px}.empty-state{text-align:center;padding:60px 20px}.empty-icon{font-size:35px}.empty-state h3{margin:15px 0 7px}.empty-state p{color:#6b7280;margin-bottom:20px;font-size:13px}.quick-actions{flex-direction:column;gap:10px;margin-top:20px;display:flex}.quick-action{text-align:left;background:#fff;border:1px solid #e5e7eb;border-radius:8px;align-items:center;gap:13px;padding:14px;display:flex}.quick-action:hover{background:#f9fafb}.quick-action span{font-size:22px}.quick-action div{flex-direction:column;gap:4px;display:flex}.quick-action small{color:#6b7280}.toolbar{gap:12px;margin-bottom:20px;display:flex}.search-input,.filter-select{background:#fff;border:1px solid #d1d5db;border-radius:7px;padding:11px 13px}.search-input{width:350px}.data-table{border-collapse:collapse;width:100%}.data-table th,.data-table td{text-align:left;border-bottom:1px solid #e5e7eb;padding:14px;font-size:13px}.data-table th{color:#6b7280;font-weight:600}.table-empty{text-align:center;color:#9ca3af;padding:50px}.project-grid,.template-grid{grid-template-columns:repeat(3,1fr);gap:18px;display:grid}.create-project-card,.create-template-card{text-align:center;background:#fff;border:1px dashed #c7cbd4;border-radius:10px;padding:35px}.create-icon,.template-plus{color:#4f46e5;font-size:35px}.template-tabs{border-bottom:1px solid #e5e7eb;gap:25px;margin-bottom:25px;display:flex}.tab{color:#6b7280;background:0 0;border:0;padding:12px 4px}.tab.active{color:#4f46e5;border-bottom:2px solid #4f46e5}.designer-page{margin:-10px}.designer-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.designer-header h1{margin:0}.designer-header p{color:#6b7280}.designer-layout{background:#fff;border:1px solid #e5e7eb;border-radius:10px;grid-template-columns:180px 1fr 240px;min-height:650px;display:grid;overflow:hidden}.designer-tools,.designer-properties{background:#fafafa;padding:18px}.designer-tools{border-right:1px solid #e5e7eb}.designer-properties{border-left:1px solid #e5e7eb}.designer-tools button{text-align:left;background:#fff;border:1px solid #e5e7eb;border-radius:6px;width:100%;margin-bottom:8px;padding:10px}.designer-canvas-area{background:#eef0f4;justify-content:center;align-items:center;display:flex}.card-canvas{background:#fff;border-radius:5px;justify-content:center;align-items:center;width:500px;height:315px;display:flex;box-shadow:0 5px 25px #0000001f}.canvas-placeholder{text-align:center;color:#9ca3af}.canvas-placeholder span{font-size:40px}.generation-steps{gap:10px;margin-bottom:25px;display:flex}.step{background:#fff;border:1px solid #e5e7eb;border-radius:7px;flex:1;padding:13px;font-size:13px}.step span{background:#e5e7eb;border-radius:50%;justify-content:center;align-items:center;width:25px;height:25px;margin-right:8px;display:inline-flex}.step.active{color:#4f46e5;border-color:#4f46e5}.status-badge{color:#92400e;background:#fef3c7;border-radius:20px;padding:5px 9px;font-size:11px}.setting-row{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:20px 0;display:flex}.setting-row p{color:#6b7280;margin:5px 0 0;font-size:13px}.form-card,.jobs-card,.upload-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;margin-bottom:20px}.form-card{max-width:760px;padding:28px}.workflow-step-header{align-items:flex-start;gap:14px;margin-bottom:30px;display:flex}.workflow-step-number{color:#fff;background:#4f46e5;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;font-weight:700;display:flex}.workflow-step-header h2{margin:0;font-size:18px}.workflow-step-header p{color:#6b7280;margin:5px 0 0;font-size:13px}.job-form{flex-direction:column;gap:22px;display:flex}.form-group{flex-direction:column;gap:7px;display:flex}.form-group label{color:#374151;font-size:13px;font-weight:600}.form-group input{border:1px solid #d1d5db;border-radius:7px;outline:none;width:100%;padding:12px 13px;font-size:14px}.form-group input:focus{border-color:#4f46e5;box-shadow:0 0 0 3px #eef2ff}.form-group small{color:#9ca3af;font-size:12px}.form-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:7px;padding:12px 14px;font-size:13px}.form-actions,.bottom-actions{justify-content:flex-end;align-items:center;gap:10px;display:flex}.workflow-steps{grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:20px;display:grid}.workflow-step{color:#9ca3af;background:#fff;border:1px solid #e5e7eb;border-radius:7px;padding:11px;font-size:12px;font-weight:600}.workflow-step span{color:#6b7280;background:#e5e7eb;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;margin-right:7px;display:inline-flex}.workflow-step.active{color:#4338ca;background:#eef2ff;border-color:#c7d2fe}.workflow-step.active span{color:#fff;background:#4f46e5}.job-info-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;grid-template-columns:1fr 1.5fr 180px;gap:25px;margin-bottom:20px;padding:18px 22px;display:grid}.job-info-card>div{flex-direction:column;gap:5px;display:flex}.info-label{color:#9ca3af;text-transform:uppercase;letter-spacing:.04em;font-size:11px}.job-status{color:#92400e;background:#fef3c7;border-radius:20px;width:fit-content;padding:5px 9px;font-size:11px;font-weight:600;display:inline-flex}.job-status.created{color:#3730a3;background:#e0e7ff}.jobs-card{overflow:hidden}.jobs-card-header{border-bottom:1px solid #e5e7eb;padding:20px 22px}.jobs-card-header h2{margin:0;font-size:17px}.jobs-card-header p{color:#9ca3af;margin:5px 0 0;font-size:12px}.jobs-table-wrapper{overflow-x:auto}.empty-page-card{text-align:center;background:#fff;border:1px dashed #c7cbd4;border-radius:10px;padding:80px 30px}.empty-page-card h2{margin:15px 0 8px}.empty-page-card p{color:#6b7280;margin-bottom:22px}.upload-card{padding:24px}.section-heading{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.section-heading h2{margin:0;font-size:17px}.section-heading p{color:#6b7280;margin:5px 0 0;font-size:13px}.hidden-file-input{display:none}.upload-icon{margin-bottom:5px;font-size:42px}.summary-item{background:#f9fafb;border-radius:8px;min-width:0;padding:14px}.summary-item span{color:#9ca3af;margin-bottom:6px;font-size:11px;display:block}.summary-item strong{word-break:break-word;font-size:13px;display:block}.preview-note{color:#9ca3af;margin:12px 0 0;font-size:12px}.sample-badge{color:#fff;letter-spacing:.05em;background:#4f46e5;border-radius:20px;margin-bottom:12px;padding:5px 9px;font-size:10px;font-weight:700;display:inline-flex}.bottom-actions{margin:25px 0}.loading-state{text-align:center;color:#6b7280;padding:60px}.recent-jobs-list{flex-direction:column;margin-top:20px;display:flex}.recent-job-item{text-align:left;background:#fff;border:0;border-top:1px solid #e5e7eb;justify-content:space-between;align-items:center;width:100%;padding:15px 0;display:flex}.recent-job-item:hover{background:#fafafa}.recent-job-item>div{flex-direction:column;gap:4px;display:flex}.recent-job-item strong{font-size:13px}.recent-job-item span:not(.job-status){color:#9ca3af;font-size:11px}@media (width<=1000px){.workflow-steps,.job-info-card{grid-template-columns:1fr}}.designer-header-actions{gap:10px;display:flex}.designer-side-tabs{border-bottom:1px solid #e5e7eb;gap:20px;margin-bottom:16px;display:flex}.canvas-wrapper{border-radius:5px;overflow:hidden;box-shadow:0 5px 25px #0000001f}.property-row{border-bottom:1px solid #e5e7eb;justify-content:space-between;margin-bottom:10px;padding:8px 0;font-size:13px;display:flex}.property-section{flex-direction:column;gap:6px;margin-bottom:16px;display:flex}.property-section label{color:#374151;font-size:12px;font-weight:600}.property-section input,.property-section select{border:1px solid #d1d5db;border-radius:6px;width:100%;padding:8px;font-size:13px}.property-section small{color:#6b7280;font-size:11px}.danger-button{color:#b91c1c;cursor:pointer;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;width:100%;padding:10px}.loading-screen,.loading-state{text-align:center;color:#6b7280;padding:40px}.mono,code{font-family:SFMono-Regular,Consolas,monospace;font-size:12px}.muted{color:#9ca3af}.small{padding:6px 10px!important;font-size:12px!important}.form-hint{color:#92400e;font-size:13px}.primary-button:disabled,.secondary-button:disabled{opacity:.55;cursor:not-allowed}a.primary-button,a.secondary-button{text-decoration:none;display:inline-block}.text-button.danger{color:#dc2626}.danger-button{color:#b91c1c;background:#fee2e2;border:0;border-radius:7px;font-weight:600}.job-form-footer{justify-content:space-between;gap:12px;margin-top:20px;display:flex}.row-actions{justify-content:flex-end;align-items:center;gap:8px;display:flex}.job-status.created,.job-status.running{color:#3730a3;background:#e0e7ff}.job-status.cardholders-selected,.job-status.template-uploaded{color:#92400e;background:#fef3c7}.job-status.designed,.job-status.generated,.job-status.completed{color:#166534;background:#dcfce7}.job-status.failed{color:#b91c1c;background:#fee2e2}.workflow-step{text-align:left;align-items:center;font-family:inherit;display:flex}.workflow-step:disabled{cursor:default}.workflow-step:not(:disabled):hover{border-color:#c7d2fe}.workflow-step.completed{color:#166534}.workflow-step.completed span{color:#166534;background:#dcfce7}.login-page{background:linear-gradient(135deg,#eef2ff,#f6f7fb);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.login-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;width:100%;max-width:400px;padding:32px;box-shadow:0 20px 45px #4f46e514}.login-logo{margin-bottom:24px;padding:0}.login-card h1{margin:0;font-size:22px}.login-card>p{color:#6b7280;margin:6px 0 22px;font-size:14px}.login-card .form-group{margin-bottom:16px}.login-submit{width:100%;margin-top:6px;padding:12px}.project-dialog{max-width:820px;padding:0;overflow:hidden}.project-dialog-title{color:#fff;letter-spacing:.06em;text-transform:uppercase;background:#1f2430;padding:16px 22px;font-size:13px;font-weight:700}.project-form{grid-template-columns:1fr 1fr;gap:18px 24px;padding:24px 22px;display:grid}.form-span-2{grid-column:1/-1}.form-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}.form-group select{background:#fff;border:1px solid #d1d5db;border-radius:7px;padding:10px 12px;font-size:14px}.form-actions{border-top:1px solid #e5e7eb;justify-content:space-between;gap:12px;padding-top:18px;display:flex}.toolbar-count{color:#6b7280;margin-left:auto;font-size:13px}.cardholder-thumb{object-fit:cover;color:#9ca3af;background:#f3f4f6;border-radius:5px;justify-content:center;align-items:center;width:38px;height:46px;display:flex}.selected-row td{background:#eef2ff}.pagination{color:#6b7280;justify-content:flex-end;align-items:center;gap:12px;margin-top:14px;font-size:13px;display:flex}.template-upload-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;display:grid}.template-side-card{border:1px solid #e5e7eb;border-radius:10px;flex-direction:column;gap:12px;padding:16px;display:flex}.template-side-header{justify-content:space-between;align-items:center;display:flex}.template-side-header h3{margin:0 8px 0 0;font-size:15px;display:inline}.required-label{color:#4338ca;background:#eef2ff;border-radius:20px;padding:3px 8px;font-size:11px}.template-preview{background:#f9fafb;border:2px dashed #d1d5db;border-radius:10px;justify-content:center;align-items:center;width:100%;display:flex;overflow:hidden}.template-image-preview{object-fit:cover;width:100%;height:100%}.template-upload-empty{text-align:center;padding:16px}.template-upload-empty h3{margin:4px 0;font-size:15px}.template-upload-empty p{color:#6b7280;margin:0 0 12px;font-size:13px}.template-file-info{word-break:break-all;justify-content:space-between;align-items:center;gap:8px;font-size:13px;display:flex}.institute-template{color:#4b5563;background:#f9fafb;border-radius:8px;align-items:center;gap:10px;padding:8px 10px;font-size:13px;display:flex}.institute-template img{object-fit:cover;border-radius:5px;width:44px;height:44px}.institute-template span{flex:1}.designer-shell{color:#e5e7eb;background:#2b2f3a;border-radius:12px;flex-direction:column;height:calc(100vh - 150px);min-height:560px;display:flex;overflow:hidden}.designer-topbar{background:#1f2430;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:10px 14px;display:grid}.designer-title{align-items:center;gap:10px;min-width:0;font-size:13px;display:flex}.designer-title span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.designer-icon-button{color:#fff;background:#363b49;border:0;border-radius:6px;width:32px;height:32px}.sample-navigator{text-align:center;grid-template-columns:34px 90px 34px;align-items:center;row-gap:3px;display:grid}.sample-navigator button{color:#fff;background:#363b49;border:0;border-radius:6px;height:32px;font-size:18px}.sample-navigator button:disabled{opacity:.4;cursor:default}.sample-navigator span{color:#1f2937;background:#eef0f4;height:32px;font-size:13px;font-weight:600;line-height:32px}.sample-name{color:#9ca3af;white-space:nowrap;text-overflow:ellipsis;grid-column:1/-1;max-width:220px;font-size:11px;overflow:hidden}.designer-top-actions{justify-content:flex-end;align-items:center;gap:10px;display:flex}.designer-notice{color:#86efac;font-size:12px}.designer-notice.muted{color:#fcd34d}.proceed-button{letter-spacing:.04em;text-transform:uppercase;color:#1f2937;background:#fbbf24;border:0;border-radius:7px;padding:10px 22px;font-size:13px;font-weight:700}.designer-error{margin:8px 14px 0}.designer-body{flex:1;grid-template-columns:76px 1fr 150px;min-height:0;display:grid}.designer-toolbox,.designer-sidepanel{background:#252936;flex-direction:column;gap:4px;padding:8px;display:flex;overflow-y:auto}.toolbox-title,.sidepanel-title{letter-spacing:.06em;text-transform:uppercase;color:#9ca3af;text-align:center;padding:8px 0 4px;font-size:10px;font-weight:700}.designer-toolbox button{color:#fff;background:#1f2430;border:0;border-radius:6px;flex-direction:column;align-items:center;gap:3px;padding:8px 2px;display:flex}.designer-toolbox button:hover:not(:disabled){background:#3b4152}.designer-toolbox button span{font-size:18px;font-weight:700;line-height:1}.designer-toolbox button small{color:#cbd5e1;font-size:9px;line-height:1.2}.designer-workspace{background-color:#1b1e27;background-image:linear-gradient(45deg,#232733 25%,#0000 25%),linear-gradient(-45deg,#232733 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#232733 75%),linear-gradient(-45deg,#0000 75%,#232733 75%);background-position:0 0,0 10px,10px -10px,-10px 0;background-size:20px 20px;justify-content:center;align-items:center;padding:24px;display:flex;position:relative;overflow:auto}.designer-canvas-frame{border-radius:6px;flex-shrink:0;margin:auto;position:relative;overflow:hidden;box-shadow:0 10px 40px #00000073}.card-guides{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.card-guides-legend{color:#cbd5e1;pointer-events:none;gap:14px;font-size:11px;display:flex;position:absolute;bottom:12px;left:16px}.card-guides-legend span:before{content:"";vertical-align:middle;border-top:2px solid;width:14px;height:0;margin-right:6px;display:inline-block}.card-guides-legend .legend-punch:before{border-color:#ef4444}.card-guides-legend .legend-safe:before{border-color:#06b6d4;border-top-style:dashed}.card-guides-legend .legend-bleed:before{background:#94a3b880;border:0;height:8px}.designer-loading{color:#cbd5e1;background:#1b1e27b3;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.sidepanel-group{border-bottom:1px solid #363b49;flex-direction:column;gap:4px;padding-bottom:8px;display:flex}.sidepanel-group button{color:#e5e7eb;background:#1f2430;border:0;border-radius:5px;padding:7px 6px;font-size:11px;font-weight:600}.sidepanel-group button.active{color:#fbbf24}.sidepanel-group button:disabled{opacity:.4;cursor:default}.sidepanel-row{grid-template-columns:1fr 1fr;gap:4px;display:grid}.sidepanel-group.dimensions label{color:#9ca3af;text-align:center;flex-direction:column;gap:2px;font-size:10px;display:flex}.sidepanel-group input{text-align:center;border:0;border-radius:4px;width:100%;padding:5px;font-size:12px}.sidepanel-group code{color:#fcd34d;word-break:break-all;text-align:center}.property-bar{background:#1f2430;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;min-height:58px;padding:10px 14px;font-size:11px;display:flex}.property-bar label{color:#9ca3af;flex-direction:column;gap:3px;display:flex}.property-bar label.checkbox{flex-direction:row;align-items:center;gap:5px;padding-bottom:6px}.property-bar input,.property-bar select{border:0;border-radius:4px;min-width:60px;max-width:190px;padding:5px 7px;font-size:12px}.property-bar input[type=number],.property-bar input.short{width:70px;min-width:0}.property-bar label.wide input{width:190px}.property-bar input[type=color]{width:40px;height:27px;padding:0}.property-bar-label{color:#e5e7eb;padding-bottom:6px;font-weight:700}.property-bar-hint{color:#9ca3af;padding-bottom:6px}.toggle-group{gap:2px;display:flex}.toggle-group button{color:#1f2937;background:#eef0f4;border:0;border-radius:4px;width:28px;height:27px}.toggle-group button.active{background:#fbbf24}.context-menu{z-index:1000;color:#1f2937;background:#fff;border:1px solid #d1d5db;border-radius:6px;min-width:190px;max-height:70vh;padding:4px 0;font-size:13px;position:fixed;overflow-y:auto;box-shadow:0 12px 30px #00000040}.context-menu-group{border-bottom:1px solid #e5e7eb;flex-direction:column;padding:3px 0;display:flex}.context-menu-group:last-child{border-bottom:0}.context-menu-title{letter-spacing:.05em;text-transform:uppercase;color:#6b7280;padding:4px 14px;font-size:10px;font-weight:700}.context-menu button{text-align:left;background:0 0;border:0;justify-content:space-between;gap:12px;padding:6px 14px;font-size:13px;display:flex}.context-menu button:hover{background:#dbeafe}.context-menu button.checked{background:#bfdbfe;font-weight:600}.context-menu button.danger{color:#dc2626}.context-menu button small{color:#6b7280;text-overflow:ellipsis;white-space:nowrap;max-width:140px;overflow:hidden}.preview-toolbar{flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:18px;display:flex}.preview-position{color:#6b7280;flex-direction:column;flex:1;align-items:center;min-width:200px;font-size:13px;display:flex}.preview-position strong{color:#1f2937;font-size:15px}.preview-jump input{border:1px solid #d1d5db;border-radius:7px;width:100px;padding:9px}.preview-sides{flex-wrap:wrap;justify-content:center;gap:28px;display:flex}.preview-side{flex:360px;max-width:560px;margin:0}.preview-side figcaption{letter-spacing:.05em;text-transform:uppercase;color:#6b7280;margin-bottom:8px;font-size:12px;font-weight:700}.preview-card{background:#f3f4f6;border-radius:10px;width:100%;position:relative;overflow:hidden;box-shadow:0 8px 24px #0f172a26}.preview-bleed-toggle{color:#374151;cursor:pointer;align-items:center;gap:6px;font-size:13px;display:inline-flex}.preview-card img{width:100%;height:100%;transition:opacity .15s;display:block}.preview-loading{color:#6b7280;justify-content:center;align-items:center;font-size:13px;display:flex;position:absolute;inset:0}.generate-card{justify-content:space-between;align-items:center;gap:24px;margin-top:20px;display:flex}.generate-card h2{margin:0 0 6px;font-size:18px}.generate-card p{color:#6b7280;margin:0;font-size:14px}.generate-actions{flex-shrink:0;align-items:center;gap:14px;display:flex}.generation-status{color:#4338ca;font-size:13px;font-weight:600}.generation-status.completed{color:#166534}.generation-status.failed{color:#b91c1c;max-width:320px}@media (width<=1000px){.project-form{grid-template-columns:1fr}.designer-body{grid-template-columns:64px 1fr}.designer-sidepanel{display:none}}.form-success{color:#166534;background:#dcfce7;border-radius:7px;margin-top:10px;padding:9px 12px;font-size:13px}.form-success.inline{margin:0;padding:6px 10px}.inline-form{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.inline-form label{font-size:13px;font-weight:600}.inline-form input{border:1px solid #d1d5db;border-radius:7px;flex:1;min-width:220px;padding:10px 12px;font-size:14px}.template-create-card{margin-bottom:24px}.library-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;flex-direction:column;display:flex;overflow:hidden}.library-thumb{color:#9ca3af;background:#f3f4f6;border:0;justify-content:center;align-items:center;width:100%;padding:0;font-size:13px;display:flex;overflow:hidden}.library-thumb img{object-fit:cover;width:100%;height:100%}.library-info{flex-direction:column;gap:4px;padding:12px 14px 4px;display:flex}.library-info span{color:#6b7280;font-size:12px}.library-actions{align-items:center;gap:8px;margin-top:auto;padding:10px 14px 14px;display:flex}.saved-template-list{flex-direction:column;gap:10px;display:flex}.saved-template-item{border:1px solid #e5e7eb;border-radius:10px;align-items:center;gap:14px;padding:10px 12px;display:flex}.saved-template-item.disabled{opacity:.6}.saved-template-thumb{background:#f3f4f6;border-radius:6px;flex-shrink:0;width:96px;overflow:hidden}.saved-template-thumb img{object-fit:cover;width:100%;height:100%;display:block}.saved-template-info{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.saved-template-info span{color:#6b7280;font-size:12px}.saved-template-info small{color:#b45309;font-size:12px}.saved-template-confirm{color:#92400e;align-items:center;gap:8px;font-size:13px;display:flex}.modal-backdrop{z-index:900;background:#0f172a8c;justify-content:center;align-items:flex-start;padding:60px 16px;display:flex;position:fixed;inset:0;overflow-y:auto}.modal{color:#1f2937;background:#fff;border-radius:12px;width:100%;max-width:720px;padding:22px 24px;box-shadow:0 25px 60px #0000004d}.modal-header{justify-content:space-between;align-items:center;display:flex}.modal-header h2{margin:0;font-size:20px}.modal section{border-top:1px solid #e5e7eb;margin-top:16px;padding-top:16px}.modal section h3{margin:0 0 4px;font-size:15px}.modal section>p{color:#6b7280;margin:0 0 12px;font-size:13px}.designer-select{border:0;border-radius:6px;max-width:220px;padding:8px;font-size:12px}
