*{box-sizing:border-box;margin:0;padding:0}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,sans-serif;background:linear-gradient(135deg,#667eead9,#764ba2d9);min-height:100vh;overflow-x:hidden;position:relative}body:before{content:"";position:fixed;top:0;left:0;width:100%;height:100%;background-image:var(--bg-image);background-size:cover;background-position:center;background-repeat:no-repeat;background-attachment:fixed;z-index:-1;opacity:.25}.page{position:relative;max-width:1400px;margin:0 auto;padding:1.5rem;min-height:100vh}@media (max-width: 768px){.page{padding:1rem}}.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem;margin-bottom:2rem;flex-wrap:wrap}.page-header h1{margin:0 0 .5rem;font-size:clamp(1.75rem,4vw,2.5rem);color:#fff;font-weight:700;text-shadow:0 2px 10px rgba(0,0,0,.15)}.page-header p{margin:0;color:#ffffffe6;font-size:clamp(.9rem,2vw,1rem)}.page-header .info{margin-top:.5rem;color:gold;font-weight:600}.top-actions{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}@media (max-width: 768px){.page-header{flex-direction:column;align-items:stretch}.top-actions{justify-content:stretch}.top-actions button{flex:1;min-width:auto}}.panel{background:#fffffffa;border-radius:16px;padding:clamp(1.25rem,3vw,2rem);box-shadow:0 20px 60px #00000026;margin-bottom:1.5rem;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}.panel h2{margin:0;color:#2d3748;font-weight:700;font-size:clamp(1.25rem,3vw,1.75rem);letter-spacing:-.02em}.controls{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}@media (max-width: 768px){.panel-header{flex-direction:column;align-items:stretch}.controls{justify-content:stretch}.controls button{flex:1}}.grid-form{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));margin-bottom:1rem}.grid-form label{display:flex;flex-direction:column;font-size:.875rem;color:#4a5568;gap:.5rem;font-weight:600}.grid-form input,.login-form input{border:2px solid #e2e8f0;border-radius:10px;padding:.75rem 1rem;font-size:1rem;background:#fff;color:#2d3748;transition:all .2s ease;font-family:inherit}.grid-form input:focus,.login-form input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea26;transform:translateY(-1px)}.grid-form input::placeholder{color:#a0aec0}.form-actions{display:flex;align-items:center;gap:.75rem;margin-top:.5rem;grid-column:1 / -1;flex-wrap:wrap}@media (max-width: 768px){.form-actions{flex-direction:column}.form-actions button{width:100%}}button{border:none;border-radius:10px;padding:.65rem 1.25rem;font-size:.95rem;font-weight:600;cursor:pointer;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;transition:all .2s ease;box-shadow:0 4px 15px #667eea40;font-family:inherit;white-space:nowrap}button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea59}button:active{transform:translateY(0)}button:disabled{opacity:.6;cursor:not-allowed;transform:none}button.ghost{background:#e2e8f0;color:#2d3748;box-shadow:0 2px 8px #00000014}button.ghost:hover{background:#cbd5e0;box-shadow:0 4px 12px #0000001f}button.danger{background:linear-gradient(135deg,#fc5c7d,#6a82fb);box-shadow:0 4px 15px #fc5c7d40}button.danger:hover{box-shadow:0 6px 20px #fc5c7d59}@media (max-width: 768px){button{padding:.75rem 1rem;font-size:.9rem}}.toggle{display:inline-flex;align-items:center;gap:.5rem;font-size:.9rem;color:#4a5568;cursor:pointer;font-weight:500}.toggle input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:#667eea}.table-wrapper{overflow-x:auto;border-radius:12px;box-shadow:0 2px 10px #0000000d}table{width:100%;border-collapse:collapse;min-width:650px;background:#fff}thead{background:linear-gradient(135deg,#667eea,#764ba2)}th{text-align:left;padding:1rem .75rem;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:#fff;font-weight:700}th:last-child{text-align:right;width:1%}td{padding:1rem .75rem;color:#2d3748;font-size:.95rem}tbody tr{border-bottom:1px solid #e2e8f0;transition:background .2s ease}tbody tr:hover{background:#667eea0d}tbody tr:last-child{border-bottom:none}tbody tr.archived{opacity:.5}.actions-cell{position:relative;text-align:right;width:1%}.actions-trigger{background:transparent;border:none;color:#4a5568;font-size:1.5rem;line-height:1;padding:.25rem .5rem;border-radius:8px;cursor:pointer;transition:background .2s ease;box-shadow:none!important;transform:none!important;min-width:auto}.actions-trigger:hover,.actions-trigger:focus-visible{background:#667eea1a;outline:none;box-shadow:none!important;transform:none!important}.actions-menu{position:fixed;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 10px 40px #00000026;display:flex;flex-direction:column;min-width:160px;padding:.5rem 0;z-index:100;overflow:hidden}.actions-menu button{background:transparent;border:none;text-align:left;padding:.75rem 1rem;font-size:.9rem;color:#2d3748;cursor:pointer;transition:background .2s ease;box-shadow:none;border-radius:0;font-weight:500;min-width:auto;white-space:nowrap}.actions-menu button:hover,.actions-menu button:focus-visible{background:#667eea1a;outline:none;transform:none}.actions-menu button.menu-delete{color:#fc5c7d}.actions-menu button.menu-delete:hover,.actions-menu button.menu-delete:focus-visible{background:#fc5c7d1a}.badge{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;padding:.35rem .75rem;border-radius:999px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-weight:700;font-size:.85rem;box-shadow:0 2px 8px #667eea40}.error{color:#fc5c7d;font-weight:600}.success{color:#48bb78;font-weight:600}.error.msg,.success.msg{padding:.75rem 1rem;border-radius:10px;margin:.75rem 0;font-size:.95rem}.error.msg{background:#fc5c7d1a;border:1px solid rgba(252,92,125,.2)}.success.msg{background:#48bb781a;border:1px solid rgba(72,187,120,.2)}.form-hint{margin-top:.75rem;color:#667eea;font-size:.9rem;font-weight:600;padding:.75rem 1rem;background:#667eea1a;border-radius:10px;border:1px solid rgba(102,126,234,.2)}.login-overlay{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eead9,#764ba2d9);padding:2rem;position:relative}.login-overlay:before{content:"";position:fixed;top:0;left:0;width:100%;height:100%;background-image:var(--bg-image);background-size:cover;background-position:center;background-repeat:no-repeat;background-attachment:fixed;z-index:-1;opacity:.25}.login-card{background:#fffffffa;border-radius:20px;padding:2.5rem;max-width:420px;width:100%;box-shadow:0 30px 90px #00000040;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.login-card h1{margin:0 0 .75rem;color:#2d3748;font-weight:700;font-size:1.75rem}.login-card p{margin:0 0 1.5rem;color:#4a5568;font-size:.95rem}.login-form{display:flex;flex-direction:column;gap:1.25rem}.login-form label{display:flex;flex-direction:column;gap:.5rem;font-weight:600;color:#2d3748;font-size:.9rem}.login-card button{width:100%;margin-top:.5rem;padding:.85rem;font-size:1rem}@media (max-width: 480px){.login-card{padding:2rem}}.log-output{background:#1a202c;color:#e2e8f0;padding:1.25rem;border-radius:12px;max-height:500px;overflow:auto;font-family:Courier New,Courier,monospace;font-size:.85rem;line-height:1.6;border:1px solid #2d3748;box-shadow:inset 0 2px 10px #0000004d}.log-output::-webkit-scrollbar{width:10px;height:10px}.log-output::-webkit-scrollbar-thumb{background:#667eea80;border-radius:10px}.log-output::-webkit-scrollbar-thumb:hover{background:#667eeab3}.log-output::-webkit-scrollbar-track{background:#0003;border-radius:10px}.log-columns{display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.log-card{display:flex;flex-direction:column;gap:.75rem}.log-card h3{margin:0;font-size:1.1rem;color:#2d3748;font-weight:700}.event-log-list{list-style:none;margin:0;padding:0;max-height:500px;overflow:auto;background:#f7fafc;border:1px solid #e2e8f0;border-radius:12px;padding:.75rem 1rem;display:flex;flex-direction:column;gap:.75rem}.event-log-item{display:flex;flex-direction:column;gap:.25rem;padding-bottom:.75rem;border-bottom:1px solid rgba(226,232,240,.8)}.event-log-item:last-child{border-bottom:none;padding-bottom:0}.event-log-time{font-size:.8rem;font-weight:600;color:#4a5568}.event-log-message{font-size:.9rem;color:#2d3748;line-height:1.4}.empty-log{color:#718096;font-style:italic}.notes-section{margin-top:2rem;background:transparent;border-radius:16px;padding:0;overflow:visible}.notes-section h3{margin:0;padding:1rem 1.25rem;background:#ffffff40;color:#5a3e0f;font-size:1.1rem;font-weight:700;border-bottom:1px solid rgba(255,255,255,.3);text-shadow:0 1px 2px rgba(255,255,255,.5)}.notes-section p{margin:0;padding:.75rem 1.25rem;color:#5a3e0f;font-size:.85rem;background:#ffffff26;border-bottom:1px solid rgba(255,255,255,.2);line-height:1.4}.notes-section textarea{width:100%;min-height:250px;padding:1.25rem;border:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:1rem;color:#3d2800;resize:vertical;background:#fffef5;line-height:1.6;transition:all .2s ease}.notes-section textarea:focus{outline:none;background:#fff}.notes-section textarea::placeholder{color:#5a3e0f80;font-style:italic}.notes-section .success.msg,.notes-section .error.msg{margin:0;padding:.75rem 1.25rem;border:none;border-radius:0;border-bottom:1px solid rgba(255,255,255,.3);font-size:.9rem}.notes-section .success.msg{background:#48bb7833;color:#2f7c4f}.notes-section .error.msg{background:#fc5c7d33;color:#c53030}.notes-actions{display:flex;gap:.75rem;padding:1rem 1.25rem;background:#ffffff40;border-top:1px solid rgba(255,255,255,.3);justify-content:flex-end}.notes-actions button{background:#ff9500;color:#fff;border:none;border-radius:10px;padding:.65rem 1.5rem;font-weight:600;font-size:.95rem;box-shadow:0 2px 8px #ff95004d;transition:all .2s ease}.notes-actions button:hover:not(:disabled){background:#ff8c00;transform:translateY(-1px);box-shadow:0 4px 12px #ff950066}.notes-actions button:active{transform:translateY(0)}.notes-actions button:disabled{opacity:.6;cursor:not-allowed;transform:none}@media (max-width: 768px){.notes-actions{flex-direction:column}.notes-actions button{width:100%}}.notes-metadata{margin:0;padding:.75rem 1.25rem;font-size:.8rem;color:#5a3e0f;font-style:italic;background:#fff3;text-align:right;border-top:1px solid rgba(255,255,255,.3)}.notes-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.notes-header h3{margin:0;color:#2d3748;font-size:1.5rem;font-weight:700}.add-note-btn{width:50px;height:50px;border-radius:50%;background:#ffffffe6;color:#667eea;font-size:2.5rem;font-weight:300;border:2px solid rgba(102,126,234,.2);cursor:pointer;box-shadow:0 2px 8px #00000014;transition:all .2s ease;display:flex;align-items:center;justify-content:center;line-height:1;padding:0}.add-note-btn:hover{transform:scale(1.05);background:#fff;border-color:#667eea4d;box-shadow:0 4px 12px #667eea26}.add-note-btn:active{transform:scale(1)}.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem;margin-top:1rem}.note-widget{background:#ffcc4d;border-radius:12px;padding:1.25rem;cursor:pointer;border:2px solid rgba(0,0,0,.1);box-shadow:0 2px 8px #0000001a;transition:all .2s ease;min-height:150px;display:flex;flex-direction:column;position:relative}.note-widget:hover{transform:translateY(-4px);box-shadow:0 6px 20px #00000026}.note-widget h4{margin:0 0 .75rem;font-size:1.1rem;font-weight:700;color:#3d2800;word-break:break-word}.note-widget p{margin:0;flex:1;font-size:.9rem;color:#5a3e0f;line-height:1.5;word-break:break-word;border:none;outline:none;background:none;box-shadow:none}.note-widget .note-date{display:block;margin-top:.75rem;font-size:.75rem;color:#5a3e0fb3;font-weight:700}.note-delete-btn{position:absolute;top:.5rem;right:.5rem;width:28px;height:28px;border-radius:50%;background:#f44;color:#fff;border:none;font-size:1.5rem;line-height:0;cursor:pointer;display:none;align-items:center;justify-content:center;box-shadow:0 2px 8px #f446;transition:all .2s ease;padding:0;min-width:28px}.note-widget:hover .note-delete-btn{display:flex}.note-delete-btn:hover{background:#c00;transform:scale(1.1);box-shadow:0 4px 12px #f449}.empty-notes{text-align:center;padding:3rem 1rem;color:#718096;font-style:italic}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal-content{background:#fff;border-radius:16px;width:100%;max-width:600px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e2e8f0}.modal-header h2{margin:0;font-size:1.5rem;color:#2d3748}.modal-close{background:none;border:none;font-size:2rem;color:#718096;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:all .2s ease;line-height:1;box-shadow:none}.modal-close:hover{background:#0000000d;color:#2d3748;transform:none}.modal-body{padding:1.5rem;overflow-y:auto;flex:1}.modal-body label{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1.25rem;font-weight:600;color:#2d3748}.modal-body input,.modal-body textarea{border:2px solid #e2e8f0;border-radius:10px;padding:.75rem 1rem;font-size:1rem;font-family:inherit;transition:all .2s ease}.modal-body input:focus,.modal-body textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea26}.modal-body textarea{resize:vertical;min-height:150px}.color-picker{display:flex;gap:.75rem;flex-wrap:wrap}.color-option{width:40px;height:40px;border-radius:8px;border:3px solid transparent;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 8px #00000026;padding:0;min-width:40px;background:inherit}.color-option:hover{transform:scale(1.1);box-shadow:0 4px 12px #0003}.color-option.active{border-color:#2d3748;transform:scale(1.15);box-shadow:0 4px 12px #00000040}.modal-footer{padding:1.5rem;border-top:1px solid #e2e8f0;display:flex;justify-content:space-between;gap:1rem}.modal-actions-left,.modal-actions-right{display:flex;gap:.75rem}@media (max-width: 640px){.modal-content{max-width:100%;max-height:100vh;border-radius:0}.notes-grid{grid-template-columns:1fr}.modal-footer{flex-direction:column}.modal-actions-left,.modal-actions-right{width:100%}.modal-actions-right{flex-direction:column-reverse}.modal-actions-left button,.modal-actions-right button{width:100%}}@media (max-width: 640px){.grid-form{grid-template-columns:1fr}table{font-size:.85rem}th,td{padding:.75rem .5rem}}
