:root{--primary: #2a3147;--accent: #326496;--bg: #0f172a;--card-bg: #1e293b;--nav-bg: #1e293b;--text: #f1f5f9;--text-muted: #94a3b8;--success: #22c55e;--warning: #f59e0b;--danger: #ef4444;--glass: rgba(255, 255, 255, .05);--glass-border: rgba(255, 255, 255, .1);--radius-sm: 6px;--radius-md: 10px;--radius-pill: 999px;--shadow-card: 0 2px 8px rgba(0, 0, 0, .3);--input-height: 38px;--input-padding-x: 12px;--input-radius: 8px;--input-font-size: 14px;--input-focus-ring: rgba(50, 100, 150, .25)}html.light{--bg: #f8fafc;--card-bg: #ffffff;--nav-bg: #ffffff;--text: #0f172a;--text-muted: #64748b;--glass: rgba(0, 0, 0, .03);--glass-border: rgba(0, 0, 0, .1)}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;height:100%}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}button{font-family:inherit;cursor:pointer}a{color:var(--accent)}input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]),select,textarea{font-family:inherit;font-size:var(--input-font-size);color:var(--text);background:var(--card-bg);border:1px solid var(--glass-border);border-radius:var(--input-radius);box-sizing:border-box;outline:none;transition:border-color .12s ease,box-shadow .12s ease}input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]),select{height:var(--input-height);padding:0 var(--input-padding-x);line-height:normal}textarea{padding:9px var(--input-padding-x);line-height:1.5;min-height:calc(var(--input-height) * 2);resize:vertical}select{appearance:none;-webkit-appearance:none;-moz-appearance:none;padding-right:36px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");background-repeat:no-repeat;background-position:right 12px center;background-size:12px;cursor:pointer}input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]):focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--input-focus-ring)}input:disabled,select:disabled,textarea:disabled{opacity:.55;cursor:not-allowed}input::placeholder,textarea::placeholder{color:var(--text-muted);opacity:1}@keyframes modal-backdrop-in{0%{opacity:0}to{opacity:1}}@keyframes modal-panel-in{0%{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;background:#0f172a99;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:modal-backdrop-in .16s ease-out}.modal-panel{width:100%;display:flex;flex-direction:column;background:var(--card-bg);color:var(--text);border:1px solid var(--glass-border);border-radius:12px;box-shadow:0 20px 25px -5px #00000059,0 8px 10px -6px #00000040;max-height:calc(100vh - 32px);animation:modal-panel-in .18s ease-out}.modal-panel--sm{max-width:420px}.modal-panel--md{max-width:560px}.modal-panel--lg{max-width:760px}.modal-panel--xl{max-width:1024px}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--glass-border)}.modal-title{margin:0;font-size:18px;font-weight:600;line-height:1.3;color:var(--text)}.modal-subtitle{margin:4px 0 0;font-size:13px;color:var(--text-muted)}.modal-close{background:transparent;color:var(--text-muted);border:none;border-radius:8px;padding:8px;display:inline-flex;align-items:center;justify-content:center;transition:background-color .12s ease,color .12s ease}.modal-close:hover{background:var(--glass);color:var(--text)}.modal-close:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.modal-body{padding:20px 24px;overflow-y:auto;flex:1}.modal-footer{display:flex;gap:8px;justify-content:flex-end;padding:16px 24px;border-top:1px solid var(--glass-border);background:var(--glass);border-bottom-left-radius:12px;border-bottom-right-radius:12px}@media(prefers-reduced-motion:reduce){.modal-backdrop,.modal-panel{animation:none}}
