:root{--text:#1f2937;--text-muted:#4b5563;--border:#d0d5dd;--bg:#f9fafb;--surface:#fff;color:var(--text);background:var(--bg);font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}*{box-sizing:border-box}body{margin:0}#root{background:var(--surface);max-width:1440px;min-height:100vh;margin:0 auto}h1,p,label{margin:0}p{color:var(--text-muted)}.page{gap:1rem;padding:1.5rem;display:grid}.top-menu{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:1rem;padding-bottom:.75rem;display:flex}.menu-links{align-items:center;gap:.5rem;display:flex}.menu-logo-space{justify-content:flex-end;align-items:center;width:160px;min-height:56px;display:flex}.menu-logo{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:56px}.menu-link{color:#111827;cursor:pointer;background:#fff;border:1px solid #c6cbd3;border-radius:.35rem;padding:.5rem .9rem;font-weight:600}.menu-link.active{color:#fff;background:#1d4ed8;border-color:#1d4ed8}.header h1{margin:0}.header{align-items:flex-start;gap:1rem;display:flex}.toolbar{align-items:center;gap:.75rem;display:flex}.add-button{color:#fff;cursor:pointer;background:#1d4ed8;border:1px solid #1d4ed8;border-radius:.35rem;margin-left:auto;padding:.5rem .85rem}.import-button{color:#fff;cursor:pointer;background:#0f766e;border:1px solid #0f766e;border-radius:.35rem;padding:.5rem .85rem}.import-button:disabled{opacity:.7;cursor:not-allowed}.toolbar select{min-width:260px;padding:.5rem}.status{margin:0;font-weight:600}.status.error{color:#b42318}.dashboard{gap:1rem;display:grid}.dashboard-stats{grid-template-columns:repeat(2,minmax(180px,1fr));gap:.75rem;display:grid}.stat-card{background:#fff;border:1px solid #d1d5db;border-radius:.5rem;padding:1rem}.stat-card h3{color:#334155;margin:0 0 .4rem;font-size:.95rem}.stat-card p{color:#0f172a;margin:0;font-size:1.45rem;font-weight:700}.dashboard-events-header h2{margin:0 0 .25rem}.dashboard-events-list{gap:.45rem;display:grid}.dashboard-event-row{text-align:left;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:.5rem;grid-template-columns:160px 1fr 140px 140px;align-items:center;gap:.8rem;padding:.75rem .85rem;display:grid}.dashboard-event-row span:nth-child(3),.dashboard-event-row span:nth-child(4){font-weight:700}.dashboard-event-row:hover{background:#eff6ff;border-color:#1d4ed8}.dashboard-empty{color:#334155;background:#f8fafc;border:1px dashed #94a3b8;border-radius:.5rem;margin:0;padding:1.25rem}.table-wrap{border:1px solid var(--border);overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:1040px}th,td{border-bottom:1px solid var(--border);text-align:left;vertical-align:top;padding:.6rem .8rem}th{background:#f4f6f8}.actions-cell{gap:.35rem;display:flex}.icon-button{color:#1f2937;cursor:pointer;background:#fff;border:1px solid #c6cbd3;border-radius:.35rem;width:1.9rem;height:1.9rem;padding:.2rem}.icon-button svg{width:100%;height:100%}.icon-button:hover{background:#eff6ff}.icon-button.danger:hover{color:#b42318;background:#fef2f2}.modal-backdrop{background:#00000073;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:.5rem;gap:.8rem;width:min(840px,96vw);padding:1rem;display:grid}.modal h2{margin:0}.modal-header{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.modal-close{cursor:pointer;background:#fff;border:1px solid #c6cbd3;border-radius:.35rem;width:2rem;height:2rem;font-weight:700;line-height:1}.modal-close:hover{background:#f4f6f8}.modal-grid{grid-template-columns:1fr 1fr;gap:.75rem;display:grid}.modal-grid label{gap:.35rem;font-weight:600;display:grid}.modal-grid input:not([type=checkbox]),.modal-grid select,.modal-grid textarea{width:100%;font:inherit;padding:.45rem}.wide{grid-column:1/-1}.checkbox-row{align-items:center;gap:.5rem;font-weight:600;line-height:1.2;display:inline-flex}.checkbox-row input[type=checkbox]{accent-color:#1d4ed8;flex:none;width:1rem;height:1rem;margin:0;padding:0}.checkbox-label{display:inline-block}.modal-actions{justify-content:flex-end;gap:.6rem;display:flex}.modal-actions button{cursor:pointer;border:1px solid #c6cbd3;border-radius:.35rem;padding:.5rem .85rem}.modal-actions button:last-child{color:#fff;background:#1d4ed8;border-color:#1d4ed8}@media (width<=780px){.page{padding:1rem}.menu-logo-space{width:108px;min-height:40px}.menu-logo{max-height:40px}.toolbar{flex-direction:column;align-items:flex-start}.top-menu{padding-bottom:.5rem;overflow-x:auto}.dashboard-event-row{grid-template-columns:1fr;gap:.35rem}.dashboard-stats{grid-template-columns:1fr}.toolbar select{width:100%;min-width:0}.add-button{margin-left:0}.import-button{width:100%}.modal-grid{grid-template-columns:1fr}}
