:root{--bg-surface: #ffffff;--bg-surface-2: #f4f4f5;--border-subtle: #e4e4e7;--text-primary: #18181b;--text-secondary: #71717a}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;width:100%;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background-color:var(--bg-surface);color:var(--text-primary);overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.15) transparent}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:#0000002e;border-radius:4px}::-webkit-scrollbar-track{background:transparent}#kasuality-root-container{width:100%;min-height:100%;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column}.content-wrapper{width:100%;max-width:580px;margin:0 auto;padding:12px 14px 24px;display:flex;flex-direction:column;overflow-x:hidden}h2,h3,h4{margin:0 0 6px}.kasu-input,.kasu-select{width:100%;padding:6px 8px;background:var(--bg-surface-2);border:1px solid var(--border-subtle);border-radius:6px;color:var(--text-primary);margin-bottom:8px;font-size:11.5px}.kasu-input:focus,.kasu-select:focus{outline:none;border-color:#4f46e5}.auth-bar{display:flex;justify-content:space-between;align-items:center;background:var(--bg-surface-2);padding:4px 8px;border-radius:6px;margin-bottom:8px;border:1px solid var(--border-subtle);gap:6px;flex-wrap:wrap}.auth-status{font-size:.75rem;color:var(--text-secondary);display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pro-badge{background:#f59e0b;color:#000;font-weight:700;padding:1px 4px;border-radius:3px;font-size:.6rem}.auth-actions{display:flex;align-items:center;gap:4px}.lang-select{margin:0!important;width:auto!important;padding:2px 4px!important;font-size:10px!important;height:24px;border-radius:4px}.palette-section{background:var(--bg-surface-2);padding:8px;border-radius:8px;border:none;margin-bottom:8px}.palette-header{display:flex;flex-direction:column;gap:4px;margin-bottom:6px}.palette-header h3{margin:0;font-size:.82rem;font-weight:700;color:var(--text-primary);letter-spacing:-.01em}.palette-controls{display:flex;gap:4px;width:100%}.select-compact{flex:1 1 0;min-width:0;width:50%;margin:0!important;padding:3px 6px!important;font-size:10.5px!important;height:26px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;border-radius:5px;border:1px solid var(--border-subtle);background:#fff;color:var(--text-primary);cursor:pointer}.palette-list{display:flex;flex-direction:column;gap:5px;margin-bottom:6px;width:100%}.color-row{display:flex;align-items:center;gap:7px;padding:4px 8px;background:#fff;border:1px solid var(--border-subtle);border-radius:8px;transition:all .15s ease;cursor:default;-webkit-user-select:none;user-select:none;position:relative;height:39px}.color-row.is-locked{border-color:#4f46e5;background:#f8fafc;box-shadow:0 0 0 1.5px #4f46e5}.color-row.is-dragging{opacity:.35;transform:scale(.97)}.color-row.drag-over{border-color:#10b981;background:#ecfdf5;transform:translateY(-1px);box-shadow:0 2px 6px #10b98133}.drag-handle{color:#94a3b8;cursor:grab;display:flex;align-items:center;justify-content:center;width:12px;height:28px;flex-shrink:0;transition:color .15s}.drag-handle:hover{color:#4f46e5}.drag-handle:active{cursor:grabbing}.swatch-preview{width:30px;height:30px;min-width:30px;border-radius:6px;box-shadow:inset 0 0 0 1px #0000001f,0 1px 2px #00000014;cursor:pointer;flex-shrink:0;transition:transform .15s}.swatch-preview:hover{transform:scale(1.08)}.row-details{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px;overflow:hidden}.row-details-top{display:flex;align-items:center;gap:5px;min-width:0;flex-wrap:nowrap}.role-badge{font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:#475569;background:#f1f5f9;padding:1px 4px;border-radius:3px;white-space:nowrap;flex-shrink:0;line-height:12px}.hex-text{font-family:monospace;font-size:12px;font-weight:700;color:var(--text-primary);cursor:pointer;white-space:nowrap;transition:color .15s;line-height:14px}.hex-text:hover{color:#4f46e5}.oklch-text{font-family:monospace;font-size:8.5px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;line-height:13px;cursor:pointer;padding:1px 3px;border-radius:3px;transition:all .15s ease}.oklch-text:hover{color:#4f46e5;background:#4f46e514;text-decoration:underline}.row-details-bottom{display:flex;align-items:center;gap:4px;flex-wrap:wrap;line-height:12px}.apca-badge{font-size:8px;font-weight:700;padding:0 4px;border-radius:3px;white-space:nowrap;line-height:12px}.apca-good{background:#ecfdf5;color:#047857}.apca-bad{background:#fef2f2;color:#b91c1c}.fix-contrast-btn{font-size:7.5px;font-weight:700;background:#b91c1c;color:#fff;border:none;border-radius:3px;padding:0 4px;cursor:pointer;display:inline-flex;align-items:center;line-height:12px;transition:background .15s}.fix-contrast-btn:hover{background:#991b1b}.cmyk-tag{font-size:7.5px;color:#b45309;font-weight:700;background:#fef3c7;padding:0 3px;border-radius:2px;white-space:nowrap;line-height:12px}.lock-btn{width:28px;height:28px;min-width:28px;border-radius:6px;border:1px solid var(--border-subtle);background:var(--bg-surface-2);display:flex;align-items:center;justify-content:center;cursor:pointer;color:#64748b;flex-shrink:0;padding:0;transition:all .15s ease}.lock-btn:hover{background:#e2e8f0;color:#1e293b}.lock-btn.locked{background:#4f46e5;color:#fff;border-color:#4f46e5;box-shadow:0 1px 2px #4f46e54d}.lock-btn.locked:hover{background:#4338ca}.lock-btn svg{width:14px;height:14px}.btn{width:100%;padding:7px 10px;border-radius:6px;font-weight:600;cursor:pointer;border:none;margin-bottom:6px;transition:transform .1s,opacity .2s;display:flex;align-items:center;justify-content:center;gap:6px;font-size:11.5px}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.4;cursor:not-allowed;transform:none}.btn-primary{background-color:#4f46e5;color:#fff}.btn-secondary{background-color:#e4e4e7;color:#18181b}.btn-secondary:hover:not(:disabled){background-color:#d4d4d8}.btn-success{background-color:#047857;color:#fff;margin-top:6px;height:32px;font-size:12px}.btn-small{padding:4px 8px;font-size:.75rem;margin-bottom:0;width:auto;height:24px}.btn-danger{background-color:transparent;color:#b91c1c;border:1px solid #b91c1c}.engine-section{margin-bottom:6px;padding-bottom:4px;border-bottom:1px solid var(--border-subtle)}.engine-section h3{margin:0 0 5px;font-size:.82rem;font-weight:700;color:var(--text-primary);letter-spacing:-.01em}.engine-input-row{display:flex;gap:3px;align-items:center;width:100%}.engine-input-row input{flex:1 1 auto;min-width:0;margin-bottom:0!important;padding:4px 6px;font-size:11px;height:28px;border-radius:5px}.btn-icon{width:26px!important;height:28px!important;padding:0!important;margin-bottom:0!important;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:5px}.btn-icon svg{width:13px;height:13px}.engine-controls-row{display:flex;flex-direction:column;gap:5px;margin-top:5px;width:100%}.engine-controls-row select{margin-bottom:0!important;padding:4px 6px;font-size:11px;height:28px;width:100%;border-radius:5px}.generate-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;margin-top:3px}.btn-generate{flex:1 1 auto;margin-bottom:0!important;padding:7px 12px;font-size:12.5px;font-weight:700;height:34px;letter-spacing:.02em;border-radius:6px}.kasu-footer-link{color:var(--text-secondary);text-decoration:none;display:inline-flex;align-items:center;gap:4px;transition:all .15s;font-weight:600;font-size:.75rem;white-space:nowrap;flex-shrink:0;padding:6px 10px;border-radius:6px;background:var(--bg-surface-2);border:1px solid var(--border-subtle);height:34px}.kasu-footer-link:hover{color:#4f46e5;border-color:#4f46e5;background:#4f46e50f}.kasu-footer-link svg{width:12px;height:12px}@supports (background-color: oklch(0% 0 0)){.btn-primary{background-color:#0766ee!important}.btn-secondary{background-color:#dadee5!important}.btn-success{background-color:#00764c!important;background-color:oklch(.5 .14 160)!important}.fix-contrast-btn{background-color:#bb001d!important;background-color:oklch(.5 .22 25)!important}.hex-text:hover,.oklch-text:hover{color:#0766ee!important}.color-row.is-locked{border-color:#0766ee;box-shadow:0 0 0 1.5px #0766ee}.kasu-input:focus,.kasu-select:focus{border-color:#0766ee}}.login-form{display:none;flex-direction:column;gap:8px;margin-top:8px}.login-form.active{display:flex}.sim-protanopia{filter:url(#protanopia)}.sim-deuteranopia{filter:url(#deuteranopia)}.sim-tritanopia{filter:url(#tritanopia)}#ui-toast{position:fixed;top:14px;left:50%;transform:translate(-50%) translateY(-100px);background-color:#047857;color:#fff;padding:7px 14px;border-radius:50px;font-size:11px;font-weight:700;opacity:0;transition:all .3s cubic-bezier(.68,-.55,.27,1.55);z-index:9999;text-align:center;max-width:90%;box-shadow:0 3px 10px #00000026}#ui-toast.show{transform:translate(-50%) translateY(0);opacity:1}#ui-toast.error{background-color:#ef4444}
