:root{color-scheme:light dark;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.4;font-weight:400;color:#0f172a;background-color:#f8fafc}*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:inherit;text-decoration:none}button{cursor:pointer}.app-shell{display:flex;flex-direction:column;min-height:100vh}.app-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:#1e293b;color:#f8fafc}.app-body{flex:1;display:flex;min-height:0}.sidebar{width:220px;background:#f1f5f9;border-right:1px solid #e2e8f0;padding:1.5rem 1rem;display:flex;flex-direction:column;gap:.75rem}.sidebar-title{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:#64748b;font-weight:600}.nav-button{border:none;background:transparent;text-align:left;padding:.65rem .75rem;border-radius:.6rem;font-weight:600;color:#1e293b;transition:background .2s,color .2s,transform .2s}.nav-button:hover{background:#e2e8f0}.nav-button.active{background:#e0ecff;color:#1d4ed8;transform:translate(4px)}.app-content{flex:1;padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem;overflow-y:auto;background:#f8fafc}.content-stack{display:flex;flex-direction:column;gap:1.25rem}.selection-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.table-wrapper{background:#fff;border-radius:.75rem;box-shadow:0 10px 30px #0f172a14;overflow:hidden}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.toolbar-input{flex:1;min-width:200px;max-width:320px;padding:.55rem .65rem;border:1px solid #d0d7e2;border-radius:.5rem;font-size:.95rem}.toolbar-actions{display:flex;gap:.5rem}.button{padding:.55rem .9rem;border-radius:.5rem;font-weight:600;border:none;cursor:pointer;transition:transform .1s ease,box-shadow .1s ease,background .2s ease}.button:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none}.button.primary{background:#2563eb;color:#fff}.button.secondary{background:#e2e8f0;color:#1e293b}.button.danger{background:#ef4444;color:#fff}.button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 16px #0f172a1f}.panel{background:#fff;border-radius:.75rem;box-shadow:0 10px 30px #0f172a14;padding:1.25rem;display:flex;flex-direction:column;gap:1rem}.panel h2{margin:0;font-size:1.1rem}.panel section{display:flex;flex-direction:column;gap:.75rem}.list{display:flex;flex-direction:column;gap:.5rem}.list button{width:100%;text-align:left;padding:.5rem .75rem;border:1px solid #e2e8f0;border-radius:.5rem;background:#fff;transition:border-color .2s,box-shadow .2s}.list button.active{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb33}.form-field{display:flex;flex-direction:column;gap:.35rem}.form-field label{font-size:.85rem;font-weight:600;color:#475569}.form-field input,.form-field textarea,.form-field select{padding:.55rem .65rem;border:1px solid #d0d7e2;border-radius:.5rem;font-size:.95rem}.inline-actions{display:flex;gap:.5rem}.inline-actions button{flex:1;padding:.5rem .75rem;border:none;border-radius:.5rem;font-weight:600}.inline-actions button.primary{background:#2563eb;color:#fff}.inline-actions button.secondary{background:#e2e8f0;color:#0f172a}.primary-button{width:100%;padding:.65rem;border:none;border-radius:.5rem;font-weight:600;background:#2563eb;color:#fff}.primary-button:disabled{opacity:.7;cursor:progress}.secondary-button{padding:.5rem .85rem;border-radius:.5rem;border:1px solid rgba(226,232,240,.85);background:#e2e8f0;color:#0f172a;font-weight:600}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:.75rem .9rem;border-bottom:1px solid #e2e8f0;text-align:left}.table th{font-size:.85rem;color:#475569;background:#f8fafc}.table tbody tr:nth-child(2n){background:#f9fbff}.table tbody tr:hover{background:#edf2ff}.table-actions{display:flex;gap:.4rem;justify-content:flex-end}.table-sort{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:.25rem;font-weight:600;color:#1e293b}.table-sort:hover{color:#1d4ed8}.table-sort span{font-size:.8rem;color:#64748b}.flag-actions{display:flex;gap:.5rem}.flag-actions button{padding:.35rem .6rem;font-size:.85rem;border-radius:.4rem;border:none}.flag-actions button.primary{background:#2563eb;color:#fff}.flag-actions button.secondary{background:#e2e8f0;color:#0f172a}.flag-actions button.danger{background:#ef4444;color:#fff}.notification{padding:.75rem;border-radius:.6rem;font-size:.9rem}.notification.success{background:#ecfdf5;color:#047857}.notification.error{background:#fef2f2;color:#b91c1c}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background:#0f172a59;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);padding:1.5rem;z-index:1000}.modal{background:#fff;border-radius:.85rem;box-shadow:0 24px 60px #1e293b40;width:min(480px,100%);display:flex;flex-direction:column;gap:.75rem}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem 0;gap:1rem}.modal-header h3{margin:0;font-size:1.1rem;color:#0f172a}.modal-close{all:unset;font-size:1.1rem;cursor:pointer;color:#64748b}.modal-close:disabled{cursor:not-allowed;opacity:.6}.modal-content{padding:0 1.25rem 1.25rem;display:flex;flex-direction:column;gap:1rem}.modal-actions{display:flex;justify-content:flex-end;gap:.5rem}.modal-close:focus-visible,.table-sort:focus-visible,.nav-button:focus-visible,.toolbar-input:focus-visible{outline:3px solid rgba(37,99,235,.4);outline-offset:2px}@media (max-width: 960px){.app-body{flex-direction:column}.sidebar{width:100%;border-right:none;border-bottom:1px solid #e2e8f0;flex-direction:row;align-items:center;flex-wrap:wrap;gap:.5rem}.sidebar-title{width:100%;margin-bottom:.25rem}.nav-button{flex:1;text-align:center}.nav-button.active{transform:none}}
