:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}html,body{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);min-width:100%;min-height:100%}#root{text-align:center;box-sizing:border-box;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);flex-direction:column;width:100%;min-width:0;min-height:100svh;margin:0;display:flex}body{margin:0;overflow-x:hidden}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}.admin-invites{color:#1f2937;background:#fffffff5;border-radius:12px;padding:1.5rem;box-shadow:0 8px 28px #0f172a24}.admin-invites-header{justify-content:center;align-items:flex-start;gap:1rem;margin-bottom:1.25rem;display:flex}.admin-invites-header h2{color:#111827;margin:0 0 .35rem}.admin-invites-header p{color:#4b5563;text-align:center;margin:0}.admin-access-section{margin-top:1.25rem}.admin-access-section:first-of-type{margin-top:0}.admin-access-section h3{color:#111827;margin:0 0 .75rem;font-size:1.05rem}.admin-invite-form{grid-template-columns:minmax(220px,1fr) auto;gap:.75rem;margin-bottom:1.25rem;display:grid}.admin-invite-form input{border:1px solid #d1d5db;border-radius:8px;padding:.75rem .9rem;font-size:1rem}.admin-invite-form button,.admin-invite-revoke-btn,.admin-account-delete-btn{cursor:pointer;border:0;border-radius:8px;padding:.75rem 1rem;font-size:.95rem;font-weight:600}.admin-invite-form button{color:#fff;background:#2563eb}.admin-invite-form button:disabled,.admin-invite-revoke-btn:disabled,.admin-account-delete-btn:disabled{opacity:.6;cursor:not-allowed}.admin-invites-table-wrap{overflow-x:auto}.admin-invites-table{border-collapse:collapse;width:100%}.admin-invites-table th,.admin-invites-table td{text-align:left;white-space:nowrap;border-bottom:1px solid #e5e7eb;padding:.75rem}.admin-invites-table th{color:#374151;text-transform:uppercase;letter-spacing:.03em;font-size:.85rem}.admin-invite-status{border-radius:999px;align-items:center;padding:.25rem .6rem;font-size:.78rem;font-weight:700;display:inline-flex}.admin-invite-status-pending{color:#92400e;background:#fef3c7}.admin-invite-status-accepted{color:#166534;background:#dcfce7}.admin-invite-status-revoked,.admin-invite-revoke-btn,.admin-account-delete-btn{color:#991b1b;background:#fee2e2}.admin-invites-loading,.admin-invites-empty,.admin-invite-no-action{color:#6b7280}@media (width<=720px){.admin-invite-form{grid-template-columns:1fr}}.subscription-services{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff1a;border:1px solid #fff3;border-radius:12px;margin-bottom:2rem;padding:2rem}.services-header{justify-content:space-between;align-items:center;margin-bottom:2rem;display:flex}.services-header h2{margin:0;font-size:1.8rem;font-weight:500}.services-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem;display:grid}.service-card{background:#ffffff0d;border:1px solid #ffffff1a;border-radius:8px;padding:1.5rem;transition:transform .2s,box-shadow .2s}.service-card:hover{transform:translateY(-2px);box-shadow:0 8px 25px #0003}.service-info h3{margin:0 0 .5rem;font-size:1.3rem;font-weight:500}.price{color:#4ade80;margin:.5rem 0;font-size:1.5rem;font-weight:600}.service-actions{gap:.5rem;display:flex}@media (width<=768px){.subscription-services{padding:1rem}.services-header{flex-direction:column;align-items:stretch;gap:1rem}.services-grid{grid-template-columns:1fr}.form-container{width:95%;padding:1.5rem}.form-actions{flex-direction:column}}.subscribers{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff1a;border:1px solid #fff3;border-radius:12px;margin-bottom:2rem;padding:2rem}.subscribers-header{justify-content:space-between;align-items:center;margin-bottom:2rem;display:flex}.header-content{justify-content:space-between;align-items:center;gap:2rem;width:100%;display:flex}.header-controls{align-items:center;gap:1rem;display:flex}.search-container{position:relative}.search-input{color:#fff;background:#ffffff1a;border:1px solid #fff3;border-radius:6px;width:200px;padding:.5rem 1rem;font-size:.9rem;transition:all .2s}.search-input::placeholder{color:#fff9}.search-input:focus{background:#ffffff26;border-color:#fff6;outline:none}.search-input:disabled{opacity:.5;cursor:not-allowed}.debtor-toggle{align-items:center;display:flex}.toggle-label{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.5rem;display:flex}.toggle-input{display:none}.toggle-slider{background:#fff3;border:1px solid #ffffff4d;border-radius:12px;width:44px;height:24px;transition:background-color .2s;position:relative}.toggle-slider:before{content:"";background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .2s;position:absolute;top:2px;left:2px}.toggle-input:checked+.toggle-slider{background:#22c55ecc;border-color:#22c55ee6}.toggle-input:checked+.toggle-slider:before{transform:translate(20px)}.toggle-text{color:#fff;font-size:.9rem;font-weight:500}.subscribers-header h2{margin:0;font-size:1.8rem;font-weight:500}.subscribers-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem;display:grid}.subscriber-card{background:#ffffff0d;border:1px solid #ffffff1a;border-radius:8px;padding:1.5rem;transition:transform .2s,box-shadow .2s}.subscriber-card:hover{transform:translateY(-2px);box-shadow:0 8px 25px #0003}.subscriber-info h3{margin:0 0 .5rem;font-size:1.3rem;font-weight:500}.email{color:#60a5fa;word-break:break-word;margin:.5rem 0;font-size:1.1rem}.auto-pay{color:#ffffffc7;background:#ffffff14;border-radius:999px;align-items:center;margin:.25rem 0;padding:.25rem .5rem;font-size:.8rem;font-weight:600;display:inline-flex}.auto-pay.enabled{color:#86efac;background:#22c55e2e}.subscriber-actions{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:.5rem;display:grid}.subscriber-actions .btn{white-space:nowrap;min-width:0}.subscriber-actions .btn-warning{grid-column:1/-1}.modal-overlay{z-index:1000;background:#0009;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-content{background:#fff;border-radius:8px;width:90%;max-width:500px;max-height:90vh;padding:24px;overflow-y:auto;box-shadow:0 20px 25px -5px #0000004d,0 10px 10px -5px #0003}.subscriber-detail{max-width:800px}.form-group .checkbox-label{cursor:pointer;align-items:center;gap:.5rem;margin-bottom:0;display:flex}.form-group .checkbox-label input[type=checkbox]{width:auto;margin:0}.form-group input{color:#333;box-sizing:border-box;background:#fff;border:1px solid #d0d7de;border-radius:6px;width:100%;padding:8px 12px;font-size:14px}.subscriber-detail{max-width:800px;max-height:90vh;overflow-y:auto}.subscriber-detail-info{background:#ffffff1a;border-radius:8px;margin-bottom:2rem;padding:1.5rem}.subscriber-detail-info h4{color:#333;margin:0 0 1rem;font-size:1.5rem;font-weight:500}.subscriber-detail-info p{color:#555;margin:.5rem 0}.active-subscriptions,.unpaid-invoices{margin-bottom:2rem}.subscription-card,.unpaid-invoice-card{background:#ffffff0d;border:1px solid #ffffff1a;border-radius:6px;margin-bottom:1rem;padding:1rem}.subscription-card p,.unpaid-invoice-card p{color:#555;margin:.3rem 0}.subscription-card p strong,.unpaid-invoice-card p strong{color:#333}.debt-payment-result{margin:0 0 2rem}.debt-payment-summary{color:#333;background:#f0fff4;border:1px solid #b7ebc6;border-radius:6px;gap:4px;padding:12px 14px;display:grid}.debt-payment-items{border:1px solid #e0e0e0;border-radius:6px;margin-top:12px;display:grid;overflow:auto}.debt-payment-header,.debt-payment-row{grid-template-columns:minmax(160px,1.4fr) minmax(130px,1fr) minmax(90px,.7fr) minmax(120px,.9fr);align-items:center;gap:12px;padding:10px 12px;display:grid}.debt-payment-header{color:#333;background:#f8f9fa;border-bottom:1px solid #e0e0e0;font-weight:600}.debt-payment-row{color:#555;background:#fff;border-bottom:1px solid #f0f0f0}.debt-payment-row:last-child{border-bottom:none}.debt-payment-row span:first-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.debt-payment-badge{color:#fff;text-overflow:ellipsis;white-space:nowrap;border-radius:12px;width:fit-content;max-width:100%;padding:2px 8px;font-size:.85em;font-weight:600;overflow:hidden}.debt-payment-badge.paid{background:#007bff}.debt-payment-badge.skipped{background:#6c757d}@media (width<=768px){.subscribers{padding:1rem}.header-content,.header-controls{flex-direction:column;align-items:stretch;gap:1rem}.search-input{width:100%}.subscribers-grid{grid-template-columns:1fr}.form-container{width:95%;padding:1.5rem}.form-actions{flex-direction:column}}.charges{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff1a;border:1px solid #fff3;border-radius:12px;margin-bottom:2rem;padding:2rem}.charges-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:2rem;display:flex}.charges-header h2{margin:0;font-size:1.8rem;font-weight:500}.charges-controls{flex-wrap:wrap;align-items:center;gap:1rem;display:flex}.service-selector{color:#fff;background:#ffffff1a;border:1px solid #ffffff4d;border-radius:6px;min-width:200px;padding:.75rem 1rem;font-size:1rem}.service-selector:focus{border-color:#667eea;outline:none;box-shadow:0 0 0 2px #667eea33}.service-selector option{color:#fff;background:#333}.charges-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem;display:grid}.charge-card{background:#ffffff0d;border:1px solid #ffffff1a;border-radius:8px;padding:1.5rem;transition:transform .2s,box-shadow .2s}.charge-card:hover{transform:translateY(-2px);box-shadow:0 8px 25px #0003}.charge-info h3{margin:0 0 .5rem;font-size:1.3rem;font-weight:500}.amount{color:#f59e0b;margin:.5rem 0;font-size:1.5rem;font-weight:600}.date{opacity:.7;margin:.5rem 0 1rem;font-size:.9rem}.charge-actions{gap:.5rem;display:flex}.form-container{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#333;background:#fffffff2;border:1px solid #fff3;border-radius:12px;width:90%;max-width:400px;padding:2rem}.form-container h3{text-align:center;margin:0 0 1.5rem;font-size:1.5rem;font-weight:500}.form-group input,.form-group select{color:#333;box-sizing:border-box;background:#fff;border:1px solid #ddd;border-radius:6px;width:100%;padding:.75rem;font-size:1rem}.form-group input:disabled,.form-group select:disabled{cursor:not-allowed;background:#f5f5f5}.form-actions{justify-content:flex-end;gap:1rem;display:flex}.btn{cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;padding:.75rem 1.5rem;font-size:1rem;font-weight:500;text-decoration:none;transition:all .2s;display:inline-flex}.btn-primary:hover{background:#5a67d8;transform:translateY(-1px)}.btn-success:hover{background:#22c55e;transform:translateY(-1px)}.btn-secondary:hover{background:#ffffff4d;transform:translateY(-1px)}.btn-danger:hover{background:#dc2626;transform:translateY(-1px)}.loading{text-align:center;color:#ffffffb3;padding:2rem}@media (width<=768px){.charges{padding:1rem}.charges-header{flex-direction:column;align-items:stretch;gap:1rem}.charges-controls{flex-direction:column;align-items:stretch}.service-selector{min-width:auto}.charges-grid{grid-template-columns:1fr}.form-container{width:95%;padding:1.5rem}.form-actions{flex-direction:column}}.memberships{background:#fff;border-radius:8px;padding:24px;box-shadow:0 2px 4px #0000001a}.memberships-header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.memberships-header h2{color:#333;margin:0;font-size:24px;font-weight:600}.memberships-filters{background:#f6f8fa;border:1px solid #d0d7de;border-radius:8px;margin-bottom:24px;padding:16px}.filter-row{flex-wrap:wrap;align-items:end;gap:16px;display:flex}.filter-group{flex-direction:column;gap:4px;min-width:150px;display:flex}.filter-group label{color:#333;font-size:14px;font-weight:500}.filter-group select,.filter-group input{background:#fff;border:1px solid #d0d7de;border-radius:6px;padding:6px 8px;font-size:14px}.filter-group select:focus,.filter-group input:focus{border-color:#0969da;outline:none;box-shadow:0 0 0 3px #0969da1a}.memberships-list{margin-top:20px}.memberships-grid{grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:20px;display:grid}.membership-card{background:#fafbfc;border:1px solid #e1e5e9;border-radius:8px;padding:20px;transition:box-shadow .2s}.membership-card:hover{box-shadow:0 4px 12px #0000001a}.membership-info{margin-bottom:16px}.membership-info h3{color:#333;margin:0 0 12px;font-size:18px;font-weight:600}.membership-info p{color:#666;margin:4px 0;font-size:14px}.membership-info .service{color:#0969da;font-weight:500}.membership-info .date{color:#656d76}.status-active{color:#fff;background:#1a7f37;border-radius:12px;margin-top:8px;padding:2px 8px;font-size:12px;font-weight:500;display:inline-block}.membership-actions{flex-wrap:wrap;gap:8px;display:flex}.empty-state p{margin:0;font-size:16px}.form-container h3{color:#333;margin:0 0 20px;font-size:20px;font-weight:600}.form-group{margin-bottom:16px}.form-group label{color:#333;margin-bottom:4px;font-size:14px;font-weight:500;display:block}.form-group input,.form-group select{background:#fff;border:1px solid #d0d7de;border-radius:6px;width:100%;padding:8px 12px;font-size:14px}.form-actions{gap:12px;margin-top:24px;display:flex}.btn{cursor:pointer;border:none;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:500;transition:background-color .2s}.btn-secondary{color:#333;background:#f3f4f6;border:1px solid #d0d7de}.error-message{color:#cf222e;background:#ffebe9;border:1px solid #f85149;border-radius:6px;margin-bottom:16px;padding:12px}.loading{text-align:center;color:#656d76;padding:40px;font-size:16px}.cost-calculations{padding:20px}.cost-calculations-header{margin-bottom:20px}.cost-calculations-header h3{color:#333;margin:0 0 15px}.suggestion-banner{background:#f0f8ff;border:1px solid #b3d9ff;border-radius:8px;margin-bottom:20px;padding:15px}.cost-calculation-form{background:#f8f9fa;border-radius:8px;margin-bottom:30px;padding:20px}.ledger-generate-panel .cost-calculations{padding:0}.ledger-generate-panel .cost-calculations-header{margin-bottom:1rem}.ledger-generate-panel .cost-calculations-header h3{color:#111827;margin-bottom:.75rem}.ledger-generate-panel .suggestion-banner{background:#eff6ff;border-color:#bfdbfe;margin-bottom:1rem}.ledger-generate-panel .cost-calculation-form{background:0 0;margin-bottom:0;padding:0}.form-row{align-items:end;gap:20px;display:flex}.form-group{flex:1}.form-group input:focus{border-color:#007bff;outline:none;box-shadow:0 0 0 2px #007bff40}.form-actions{margin-top:20px}.recent-calculations{margin-top:30px}.recent-calculations h4{color:#333;margin:0 0 15px}.calculations-list{gap:15px;display:grid}.calculation-item{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:15px}.calculation-info p{color:#555;margin:5px 0}.calculation-info p:first-child{color:#333;font-weight:500}.btn-primary:hover:not(:disabled){background:#0056b3}.btn-primary:disabled{cursor:not-allowed;background:#6c757d}@media (width<=768px){.form-row{flex-direction:column;gap:15px}.form-group{width:100%}}.ledger{color:#1f2937;background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 4px 6px #0000001a}.ledger,.ledger *{box-sizing:border-box}.ledger-header,.ledger-pane-header{justify-content:space-between;align-items:center;gap:1rem;display:flex}.ledger-header{margin-bottom:1rem}.ledger-header h2,.ledger-pane-header h3{margin:0}.ledger-pane-header p{color:#6b7280;margin:.25rem 0 0}.ledger-pane-header span{color:#6b7280;font-size:.9rem}.ledger-layout{grid-template-columns:minmax(280px,360px) minmax(0,1fr);align-items:start;gap:1rem;display:grid}.ledger-generate-panel{background:#f8fbff;border:1px solid #dbeafe;border-radius:8px;margin-bottom:1rem;padding:1rem}.ledger-runs-pane,.ledger-entries-pane,.ledger-detail{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;min-width:0;padding:1rem}.ledger-runs-list{flex-direction:column;gap:.75rem;margin-top:1rem;display:flex}.ledger-run{text-align:left;color:#374151;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:8px;gap:.35rem;padding:.85rem;transition:border-color .2s,box-shadow .2s;display:grid}.ledger-run:hover,.ledger-run-selected{border-color:#667eea;box-shadow:0 2px 8px #667eea2e}.ledger-run-id{color:#111827;overflow-wrap:anywhere;font-family:monospace}.ledger-run-undone{color:#b45309;font-weight:600}.ledger-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin:1rem 0;display:grid}.ledger-filter{flex-direction:column;gap:.35rem;min-width:0;display:flex}.ledger-filter-wide{grid-column:span 2}.ledger-filter label{color:#374151;font-size:.85rem;font-weight:600}.ledger-filter input,.ledger-filter select{color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:6px;width:100%;min-width:0;max-width:100%;min-height:38px;padding:.5rem}.ledger-filter-actions{flex-wrap:wrap;align-items:end;gap:.5rem;min-width:0;display:flex}.ledger-filter-actions .btn{white-space:nowrap;flex:74px;min-width:0}.ledger-table-wrap{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow-x:auto}.ledger-table{border-collapse:collapse;width:100%;min-width:920px}.ledger-table th,.ledger-table td{text-align:left;vertical-align:top;border-bottom:1px solid #e5e7eb;padding:.75rem}.ledger-table th{color:#374151;text-transform:uppercase;background:#f3f4f6;font-size:.85rem}.ledger-table tbody tr{cursor:pointer}.ledger-table tbody tr:hover{background:#f9fafb}.ledger-table td span{color:#6b7280;overflow-wrap:anywhere;margin-top:.25rem;font-size:.85rem;display:block}.ledger-invoice-assigned{font-weight:600;color:#047857!important}.ledger-invoice-unassigned{font-weight:600;color:#b45309!important}.ledger-empty-state{color:#6b7280;background:#fff;border:1px dashed #d1d5db;border-radius:8px;margin-top:1rem;padding:1rem}.ledger-detail{margin-top:1rem}.ledger-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1rem;display:grid}.ledger-detail-grid div{background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:.75rem}.ledger-detail-grid span{color:#6b7280;text-transform:uppercase;margin-bottom:.25rem;font-size:.8rem;font-weight:600;display:block}.ledger-detail-grid strong{overflow-wrap:anywhere;display:block}@media (width<=980px){.ledger-layout,.ledger-filters,.ledger-detail-grid{grid-template-columns:1fr}.ledger-filter-wide{grid-column:auto}}.invoices{padding:20px}.invoices-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.invoices-header h3{color:#333;margin:0}.header-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.suggestion-banner{color:#333;background:#f0f8ff;border:1px solid #b3d9ff;border-radius:8px;margin-bottom:20px;padding:15px}.suggestion-banner p{margin:5px 0}.suggestion-banner p:first-child{margin-bottom:10px}.suggestion-banner em{color:#666;font-size:.9em}.invoices-list{margin-top:20px}.empty-state{text-align:center;color:#666;padding:40px}.manual-invoice-help{color:#495057;background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;margin-bottom:20px;padding:12px 14px;line-height:1.4}.invoices-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px;display:grid}.invoice-card{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:20px;box-shadow:0 2px 4px #0000001a}.invoice-info h4{color:#333;margin:0 0 10px}.invoice-info p{color:#555;margin:5px 0}.status-badge{color:#fff;border-radius:12px;padding:2px 8px;font-size:.8em;font-weight:500}.invoice-status-line{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;display:flex}.status-editor{position:relative}.status-editor summary{cursor:pointer;color:#495057;background:#fff;border:1px solid #ced4da;border-radius:999px;justify-content:center;align-items:center;width:22px;height:22px;padding:0;font-size:11px;font-weight:600;line-height:1.2;list-style:none;display:inline-flex}.status-editor summary::-webkit-details-marker{display:none}.status-editor[open] summary{border-color:#007bff}.status-editor-chevron{border-bottom:1.5px solid;border-right:1.5px solid;width:7px;height:7px;transform:rotate(45deg)translateY(-1px)}.status-editor-chevron.is-updating{border:1.5px solid;border-left-color:#0000;border-radius:50%;width:10px;height:10px;animation:.8s linear infinite status-spin;transform:none}@keyframes status-spin{to{transform:rotate(360deg)}}.status-editor-menu{z-index:2;background:#fff;border:1px solid #ced4da;border-radius:6px;margin-top:6px;padding:8px;position:absolute;right:0;box-shadow:0 8px 20px #0000001f}.status-editor-menu select{color:#333;background:#fff;border:1px solid #ced4da;border-radius:4px;min-width:150px;min-height:34px;padding:6px 8px}.invoice-actions{border-top:1px solid #eee;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin-top:15px;padding-top:15px;display:grid}.invoice-actions .btn{text-align:center;white-space:normal;width:100%;min-width:0;min-height:34px;line-height:1.2}.form-overlay{z-index:1000;background:#00000080;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.form-container{background:#fff;border-radius:8px;width:90%;max-width:600px;max-height:80vh;padding:30px;overflow-y:auto}.form-container h3{color:#333;margin:0 0 20px}.form-row{gap:20px;margin-bottom:20px;display:flex}.form-group{flex:1;margin-bottom:20px}.form-group label{color:#333;margin-bottom:5px;font-weight:500;display:block}.form-group input{border:1px solid #ddd;border-radius:4px;width:100%;padding:8px 12px;font-size:14px}.form-group select{background-color:#fff;border:1px solid #ddd;border-radius:4px;width:100%;padding:8px 12px;font-size:14px}.form-group input:focus,.form-group select:focus{border-color:#007bff;outline:none;box-shadow:0 0 0 2px #007bff40}.subscribers-checkbox-list{border:1px solid #ddd;border-radius:4px;max-height:200px;padding:10px;overflow-y:auto}.checkbox-label{cursor:pointer;margin-bottom:8px;display:block}.checkbox-label input{margin-right:8px}.form-actions{justify-content:flex-end;gap:10px;margin-top:20px;display:flex}.invoice-detail{max-width:800px}.invoice-detail-info{background:#f8f9fa;border-radius:8px;margin-bottom:20px;padding:15px}.invoice-detail-info h4{color:#333;margin:0 0 10px}.invoice-detail-info p{color:#555;margin:5px 0}.invoice-detail h5{color:#333;margin:20px 0 10px}.ledger-entries{gap:10px;display:grid}.ledger-entry{background:#f8f9fa;border:1px solid #e0e0e0;border-radius:6px;padding:12px}.ledger-entry p{color:#555;margin:3px 0}.ledger-entry p strong{color:#333}.empty-ledger-state{color:#6c757d;background:#f8f9fa;border:1px dashed #ced4da;border-radius:6px;padding:16px}.status-history-modal{max-width:760px}.status-history-summary{background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;gap:6px;margin-bottom:16px;padding:12px 14px;display:grid}.status-history-summary p{color:#555;margin:0}.status-history-list{gap:10px;max-height:420px;padding-right:4px;display:grid;overflow-y:auto}.status-history-item{background:#fff;border:1px solid #e0e0e0;border-radius:6px;gap:6px;padding:12px;display:grid}.status-history-item p{color:#555;overflow-wrap:anywhere;margin:0;line-height:1.4}.status-history-transition{color:#333;flex-wrap:wrap;align-items:center;gap:8px;font-weight:600;display:flex}.draft-email-preview{max-width:760px}.draft-email-summary{background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;flex-wrap:wrap;gap:12px 24px;margin-bottom:16px;padding:12px 14px;display:flex}.draft-email-summary p{color:#333;margin:0}.draft-email-list{gap:8px;max-height:360px;padding-right:4px;display:grid;overflow-y:auto}.draft-email-row{background:#fff;border:1px solid #e0e0e0;border-radius:6px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:12px;display:grid}.draft-email-row div{gap:4px;min-width:0;display:grid}.draft-email-row div:last-child{text-align:right}.draft-email-row strong{color:#333}.draft-email-row span{color:#6c757d;font-size:.9em}.draft-balance-payment-modal{max-width:980px}.draft-balance-payment-copy{color:#333;margin:0 0 16px;line-height:1.5}.draft-balance-payment-summary{background:#fff8f0;border:1px solid #ffe0bd;border-radius:6px;margin-bottom:16px;padding:12px 14px}.draft-balance-payment-summary p{color:#333;margin:0}.draft-balance-payment-results{border:1px solid #e0e0e0;border-radius:6px;max-height:420px;display:grid;overflow:auto}.draft-balance-payment-header,.draft-balance-payment-row{grid-template-columns:minmax(140px,1.2fr) minmax(110px,.8fr) minmax(110px,.8fr) minmax(110px,.8fr) minmax(80px,.6fr) minmax(180px,1.4fr);align-items:center;gap:12px;padding:10px 12px;display:grid}.draft-balance-payment-header{z-index:1;color:#333;background:#f8f9fa;border-bottom:1px solid #e0e0e0;font-weight:600;position:sticky;top:0}.draft-balance-payment-row{color:#555;background:#fff;border-bottom:1px solid #f0f0f0}.draft-balance-payment-row:last-child{border-bottom:none}.draft-balance-payment-result{color:#fff;border-radius:12px;width:fit-content;padding:2px 8px;font-size:.85em;font-weight:600}.draft-balance-payment-result-paid{background:#007bff}.draft-balance-payment-result-skipped{background:#6c757d}.draft-balance-payment-result-failed{background:#dc3545}.notes-section{border-top:1px solid #eee;margin-top:15px;padding-top:15px}.notes-section p{color:#555;margin:5px 0}.notes-section p strong{color:#333}.notes-display{margin-top:10px}.notes-display p{color:#666;margin-bottom:10px;font-style:italic}.notes-display em{color:#999}.notes-edit-form{margin-top:10px}.notes-textarea{resize:vertical;border:1px solid #ddd;border-radius:4px;width:100%;min-height:80px;padding:8px 12px;font-family:inherit;font-size:14px}.notes-textarea:focus{border-color:#007bff;outline:none;box-shadow:0 0 0 2px #007bff40}.notes-edit-actions{gap:8px;margin-top:10px;display:flex}.btn-outline-secondary{color:#6c757d;background:0 0;border:1px solid #6c757d}.btn-outline-secondary:hover{color:#fff;background:#6c757d}.error-message{color:#721c24;background:#f8d7da;border-radius:4px;margin:15px 0;padding:10px}.success-message{color:#155724;background:#d4edda;border-radius:4px;margin:15px 0;padding:10px}.btn{cursor:pointer;border:none;border-radius:4px;padding:8px 16px;font-size:14px;text-decoration:none;transition:background-color .2s;display:inline-block}.btn:disabled{cursor:not-allowed;opacity:.65}.btn-primary:hover{background:#0056b3}.btn-info{color:#fff;background:#17a2b8}.btn-info:hover{background:#117a8b}.btn-success:hover{background:#1e7e34}.btn-warning{color:#fff;background:#fd7e14}.btn-warning:hover{background:#e46f0b}.btn-secondary{color:#fff;background:#6c757d}.btn-secondary:hover{background:#545b62}.btn-danger{color:#fff;background:#dc3545}.btn-danger:hover{background:#c82333}.btn-sm{padding:6px 12px;font-size:13px}.warning-text{color:#a61e2a;margin:12px 0}.form-help{color:#6c757d;margin-top:8px;line-height:1.4;display:block}@media (width<=768px){.invoices-header{flex-direction:column;align-items:stretch;gap:15px}.form-row{flex-direction:column;gap:15px}.invoices-grid{grid-template-columns:1fr}.form-container{width:95%;padding:20px}.draft-email-row{grid-template-columns:1fr;gap:8px}.draft-email-row div:last-child{text-align:left}.draft-balance-payment-header{display:none}.draft-balance-payment-row{grid-template-columns:1fr;gap:6px}}.admin-actions{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;background:#ffffff1a;border:1px solid #fff3;border-radius:12px;padding:2rem}.admin-actions-header{margin-bottom:1.5rem}.admin-actions-header h2{margin:0 0 .5rem;font-size:1.8rem}.admin-actions-header p{opacity:.85;margin:0}.admin-actions-tabs{flex-wrap:wrap;gap:.75rem;margin-bottom:1.5rem;display:flex}.admin-actions-tab{color:#fff;cursor:pointer;background:#ffffff14;border:1px solid #ffffff40;border-radius:999px;padding:.7rem 1rem;font-size:.95rem;transition:background .2s,transform .2s}.admin-actions-tab:hover{background:#ffffff29;transform:translateY(-1px)}.admin-actions-tab-active{background:#ffffff3d}.admin-actions-filters{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-bottom:1.5rem;display:grid}.admin-actions-filter label{opacity:.85;margin-bottom:.4rem;font-size:.9rem;display:block}.admin-actions-filter select{color:#fff;background:#ffffff1f;border:1px solid #fff3;border-radius:10px;width:100%;padding:.75rem .9rem;font-size:.95rem}.admin-actions-filter input{color:#fff;box-sizing:border-box;background:#ffffff1f;border:1px solid #fff3;border-radius:10px;width:100%;padding:.75rem .9rem;font-size:.95rem}.admin-actions-filter select:focus,.admin-actions-filter input:focus{border-color:#ffffff73;outline:none}.admin-actions-filter select option{color:#fff;background:#4a4f77}.admin-actions-filter input::placeholder{color:#fff9}.admin-actions-filter-actions{flex-wrap:wrap;align-items:end;gap:.75rem;display:flex}.admin-actions-submit,.admin-actions-reset{cursor:pointer;color:#fff;border:1px solid #fff3;border-radius:10px;padding:.78rem 1rem;font-size:.95rem;transition:background .2s,transform .2s}.admin-actions-submit{background:#28a74547}.admin-actions-reset{background:#ffffff1f}.admin-actions-submit:hover:not(:disabled),.admin-actions-reset:hover:not(:disabled){transform:translateY(-1px)}.admin-actions-submit:disabled,.admin-actions-reset:disabled{opacity:.65;cursor:not-allowed}.admin-actions-empty{text-align:center;opacity:.9;background:#ffffff14;border:1px solid #ffffff26;border-radius:10px;padding:2rem}.admin-actions-list{gap:1rem;display:grid}.admin-actions-card{background:#ffffff14;border:1px solid #ffffff29;border-radius:12px;padding:1.25rem}.admin-actions-card-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.9rem;display:flex}.admin-actions-badge{letter-spacing:.02em;background:#ffffff1f;border:1px solid #fff3;border-radius:999px;padding:.35rem .75rem;font-size:.8rem;font-weight:600}.admin-actions-badge-default{background:#ffffff1f;border:1px solid #ffffff38}.admin-actions-badge-cost{background:#17a2b83d;border:1px solid #17a2b873}.admin-actions-badge-invoice{background:#28a7453d;border:1px solid #28a74573}.admin-actions-badge-success{background:#28a74538;border:1px solid #28a74566}.admin-actions-badge-info{background:#17a2b833;border:1px solid #17a2b861}.admin-actions-badge-danger,.admin-actions-badge-undone{background:#dc35453d;border:1px solid #dc354573}.admin-actions-badge-subscriber{background:#6f42c138;border:1px solid #6f42c166}.admin-actions-badge-charge{background:#fd7e1438;border:1px solid #fd7e1466}.admin-actions-badge-membership{background:#6610f233;border:1px solid #6610f261}.admin-actions-badge-service{background:#20c99733;border:1px solid #20c99761}.admin-actions-badge-pinned-post{background:#ffc1072e;border:1px solid #ffc10757}.admin-actions-created-at{opacity:.85;font-size:.9rem}.admin-actions-summary{margin:0 0 1rem;font-size:1.05rem;line-height:1.45}.admin-actions-meta{opacity:.92;gap:.35rem;margin-bottom:1rem;display:grid}.admin-actions-meta p{word-break:break-word;margin:0}.admin-actions-metrics{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;display:grid}.admin-actions-metric{background:#ffffff14;border:1px solid #ffffff1f;border-radius:10px;padding:.85rem 1rem}.admin-actions-metric-label{opacity:.75;margin-bottom:.35rem;font-size:.8rem;display:block}.admin-actions-metric-value{font-size:1rem;font-weight:600;display:block}.admin-actions-recovery{border-top:1px solid #ffffff1f;margin-top:1rem;padding-top:1rem}.admin-actions-recovery-actions{flex-wrap:wrap;gap:.75rem;display:flex}.admin-actions-recovery-panel{background:#ffffff0f;border:1px solid #ffffff1f;border-radius:12px;margin-top:.9rem;padding:1rem}.admin-actions-recovery-panel p{margin:0 0 .6rem}.admin-actions-recovery-blockers{margin:.9rem 0}.admin-actions-recovery-blockers strong{margin-bottom:.35rem;display:block}.admin-actions-recovery-blockers ul{margin:0;padding-left:1.25rem}.admin-actions-recovery-effects{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;margin:.9rem 0;display:grid}.admin-actions-recovery-reason{margin-bottom:.9rem;display:block}.admin-actions-recovery-reason span{opacity:.85;margin-bottom:.4rem;font-size:.9rem;display:block}.admin-actions-recovery-reason textarea{box-sizing:border-box;color:#fff;resize:vertical;background:#ffffff1f;border:1px solid #fff3;border-radius:10px;width:100%;padding:.75rem .9rem;font-size:.95rem}.admin-actions-recovery-reason textarea:focus{border-color:#ffffff73;outline:none}@media (width<=768px){.admin-actions,.admin-actions-card{padding:1rem}.admin-actions-metrics{grid-template-columns:1fr}}.telegram-posts{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff1a;border:1px solid #fff3;border-radius:12px;margin-bottom:2rem;padding:2rem}.telegram-posts-header{margin-bottom:2rem}.telegram-posts-header h3{color:#fff;margin:0 0 .5rem;font-size:1.8rem;font-weight:500}.telegram-posts-header p{color:#fffc;margin:0;font-size:1rem}.telegram-posts-content{flex-direction:column;gap:2rem;display:flex}.generate-section{background:#ffffff0d;border:1px solid #ffffff1a;border-radius:8px;padding:1.5rem}.generate-section h4{color:#fff;margin:0 0 .5rem;font-size:1.3rem;font-weight:500}.generate-section p{color:#fffc;margin:0 0 1.5rem;font-size:.95rem;line-height:1.4}.content-section{background:#ffffff0d;border:1px solid #ffffff1a;border-radius:8px;padding:1.5rem}.content-section h4{color:#fff;margin:0 0 1rem;font-size:1.3rem;font-weight:500}.content-display{background:#0000004d;border:1px solid #fff3;border-radius:6px;max-height:400px;margin-bottom:1rem;padding:1rem;overflow-y:auto}.content-display pre{color:#f8f8f2;white-space:pre-wrap;word-wrap:break-word;margin:0;font-family:Consolas,Monaco,Courier New,monospace;font-size:.9rem;line-height:1.4}.content-actions{gap:1rem;display:flex}.btn{cursor:pointer;border:none;border-radius:6px;align-items:center;gap:.5rem;padding:.75rem 1.5rem;font-size:.9rem;font-weight:500;text-decoration:none;transition:all .2s;display:inline-flex}.btn-primary{color:#fff;background:#0969da}.btn-primary:hover:not(:disabled){background:#0860ca;transform:translateY(-1px)}.btn-success{color:#fff;background:#1a7f37}.btn-success:hover:not(:disabled){background:#1a7f37;transform:translateY(-1px)}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.error-message{color:#fca5a5;text-align:center;background:#ef444433;border:1px solid #ef44444d;border-radius:8px;margin-bottom:1.5rem;padding:1rem}.success-message{color:#86efac;text-align:center;background:#22c55e33;border:1px solid #22c55e4d;border-radius:8px;margin-bottom:1.5rem;padding:1rem}@media (width<=768px){.telegram-posts{padding:1rem}.content-display{max-height:300px}.content-actions{flex-direction:column}.btn{justify-content:center;width:100%}}.subscriber-cabinet{color:#182230;background:#f4f6f8;min-height:100vh;padding:28px}.subscriber-header{justify-content:space-between;align-items:center;gap:20px;max-width:1180px;margin:0 auto 24px;display:flex}.subscriber-header p{color:#667085;margin:0 0 6px}.subscriber-header h1{margin:0;font-size:2.1rem;line-height:1.1}.subscriber-actions{align-items:center;gap:10px;display:flex}.subscriber-actions a,.subscriber-actions button,.subscriber-panel-heading button,.subscriber-invoice-meta button,.subscriber-error-panel button{color:#172033;cursor:pointer;font:inherit;background:#fff;border:1px solid #cfd8e3;border-radius:8px;padding:10px 14px;font-weight:600;text-decoration:none}.subscriber-actions a:hover,.subscriber-actions button:hover,.subscriber-panel-heading button:hover,.subscriber-invoice-meta button:hover,.subscriber-error-panel button:hover{border-color:#2f80ed}.subscriber-alert,.subscriber-summary-grid,.subscriber-tabs,.subscriber-content-grid,.subscriber-error-panel,.subscriber-loading{max-width:1180px;margin-left:auto;margin-right:auto}.subscriber-alert{color:#7a4d00;background:#fff4e5;border:1px solid #f6c56f;border-radius:8px;margin-bottom:18px;padding:12px 14px}.subscriber-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px;display:grid}.subscriber-summary-grid article,.subscriber-panel,.subscriber-error-panel{background:#fff;border:1px solid #d8e0ea;border-radius:8px;box-shadow:0 12px 30px #1018280f}.subscriber-summary-grid article{padding:18px}.subscriber-summary-grid span,.subscriber-detail-grid span{color:#667085;margin-bottom:8px;font-size:.88rem;display:block}.subscriber-summary-grid strong{font-size:1.45rem;display:block}.subscriber-summary-grid small{color:#667085;margin-top:6px;display:block}.subscriber-tabs{gap:8px;margin-bottom:18px;display:flex}.subscriber-tabs button{cursor:pointer;font:inherit;color:#475467;background:0 0;border:1px solid #cfd8e3;border-radius:8px;padding:10px 16px;font-weight:700}.subscriber-tabs button.is-active{color:#fff;background:#182230;border-color:#182230}.subscriber-content-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.subscriber-panel{padding:22px}.subscriber-panel-wide{grid-column:1/-1}.subscriber-panel-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.subscriber-panel h2,.subscriber-panel h3{margin:0 0 16px}.subscriber-panel-heading h2{margin:0}.subscriber-list,.subscriber-ledger-list{gap:12px;display:grid}.subscriber-list-row,.subscriber-invoice-row{text-align:left;border:1px solid #edf0f3;border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px;padding:14px;display:grid}.subscriber-list-row strong,.subscriber-list-row span,.subscriber-invoice-row strong,.subscriber-invoice-row span{display:block}.subscriber-list-row span,.subscriber-invoice-row span{color:#667085;margin-top:5px}.subscriber-invoice-meta{text-align:left;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px;min-width:210px;display:flex}.subscriber-status{letter-spacing:0;border-radius:999px;padding:5px 8px;font-size:.78rem;font-weight:800}.subscriber-status-draft{color:#475467;background:#eef2f6}.subscriber-status-sent{color:#175cd3;background:#e7f1ff}.subscriber-status-paid{color:#067647;background:#e7f8ee}.subscriber-status-void{color:#b42318;background:#fdecec}.subscriber-detail-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px;display:grid}.subscriber-detail-grid div{border:1px solid #edf0f3;border-radius:8px;padding:14px}.subscriber-empty,.subscriber-loading{color:#667085}.subscriber-loading{place-items:center;min-height:55vh;display:grid}.subscriber-error-panel{padding:28px}@media (width<=820px){.subscriber-cabinet{padding:18px}.subscriber-header,.subscriber-list-row,.subscriber-invoice-row{grid-template-columns:1fr;align-items:stretch}.subscriber-summary-grid,.subscriber-content-grid,.subscriber-detail-grid{grid-template-columns:1fr}.subscriber-invoice-meta{justify-content:flex-start;min-width:0}}.admin-invite-accept{color:#111827;background:linear-gradient(135deg,#0f766e 0%,#1d4ed8 100%);justify-content:center;align-items:center;min-height:100vh;padding:1rem;display:flex}.admin-invite-accept-panel{background:#fff;border-radius:12px;width:min(100%,560px);padding:2rem;box-shadow:0 18px 45px #0f172a3d}.admin-invite-accept-kicker{color:#2563eb;text-transform:uppercase;letter-spacing:.06em;margin:0 0 .5rem;font-size:.82rem;font-weight:700}.admin-invite-accept-panel h1{color:#111827;letter-spacing:0;margin:0 0 .75rem;font-size:2rem;font-weight:700;line-height:1.15}.admin-invite-accept-panel p:not(.admin-invite-accept-kicker){color:#1f2937;text-wrap:pretty;max-width:44rem;margin:0 0 1.25rem;line-height:1.5}.admin-invite-accept-panel button,.admin-invite-accept-panel a{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:8px;justify-content:center;align-items:center;padding:.75rem 1rem;font-weight:700;text-decoration:none;display:inline-flex}.admin-invite-accept-actions{flex-wrap:wrap;gap:.75rem;display:flex}.toast-container{z-index:9999;pointer-events:none;flex-direction:column;gap:10px;display:flex;position:fixed;top:20px;right:20px}.toast{pointer-events:auto;cursor:pointer;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;min-width:300px;max-width:400px;padding:16px 20px;animation:.3s toast-slide-in;display:flex;box-shadow:0 4px 12px #0000004d}.toast-success{color:#fff;background:#1a7f37}.toast-error{color:#fff;background:#da3633}.toast-info{color:#fff;background:#3b82f6}.toast-message{flex:1;font-size:14px;font-weight:500;line-height:1.4}.toast-close{color:inherit;cursor:pointer;opacity:.8;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;width:24px;height:24px;padding:0;font-size:20px;transition:opacity .2s;display:flex}.toast-close:hover{opacity:1;background:#fff3}@keyframes toast-slide-in{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@media (width<=768px){.toast-container{top:10px;left:10px;right:10px}.toast{min-width:auto;max-width:100%}}.loading-container{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);justify-content:center;align-items:center;min-height:100vh;display:flex}.loading-spinner{color:#fff;font-size:1.2rem;animation:1s linear infinite spin}.dashboard{color:#fff;text-align:center;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:2rem;display:flex}.dashboard h1{margin-bottom:1rem;font-size:2.5rem;font-weight:600}.dashboard p{opacity:.9;margin-bottom:2rem;font-size:1.2rem}.dashboard button{color:#667eea;cursor:pointer;background:#fff;border:none;border-radius:8px;padding:.75rem 2rem;font-size:1rem;font-weight:500;transition:all .2s}.dashboard button:hover{background:#f8f9fa;transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.no-access{color:#172033;background:#eef2f6;place-items:center;min-height:100vh;padding:24px;display:grid}.no-access-panel{background:#fff;border:1px solid #d8e0ea;border-radius:8px;width:min(520px,100%);padding:32px;box-shadow:0 20px 50px #1720331f}.no-access-kicker{color:#667085;margin:0 0 8px;font-size:.92rem}.no-access h1{margin:0 0 12px;font-size:2rem;line-height:1.15}.no-access p{color:#596579;line-height:1.5}.no-access-actions{flex-wrap:wrap;gap:10px;margin-top:22px;display:flex}.no-access-actions button{color:#fff;cursor:pointer;font:inherit;background:#172033;border:1px solid #cfd8e3;border-radius:8px;padding:10px 14px;font-weight:700}.no-access-actions .no-access-logout{color:#344054;background:#fff}.no-access-actions button:hover{border-color:#98a2b3}.login-container{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);justify-content:center;align-items:center;min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;display:flex}.login-card{text-align:center;background:#fff;border-radius:16px;width:100%;max-width:400px;padding:2.5rem;box-shadow:0 20px 40px #0000001a}.login-card h1{color:#333;margin-bottom:.5rem;font-size:1.875rem;font-weight:600}.login-card p{color:#666;margin-bottom:2rem;font-size:1rem;line-height:1.5}.error-message{color:#c33;background:#fee;border:1px solid #fcc;border-radius:8px;margin-bottom:1.5rem;padding:.75rem;font-size:.875rem}.google-login-btn{color:#333;cursor:pointer;background:#fff;border:2px solid #e0e0e0;border-radius:8px;justify-content:center;align-items:center;gap:.75rem;width:100%;margin-bottom:1.5rem;padding:.875rem 1.5rem;font-size:1rem;font-weight:500;transition:all .2s;display:inline-flex}.google-login-btn:hover:not(:disabled){background:#f8f9fa;border-color:#d0d0d0;transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.google-login-btn:disabled{opacity:.6;cursor:not-allowed}.google-icon{flex-shrink:0}.loading-spinner{animation:1s linear infinite spin;display:inline-block}.login-footer{border-top:1px solid #e0e0e0;margin-top:2rem;padding-top:1.5rem}.login-footer p{color:#999;margin:0;font-size:.75rem;line-height:1.4}@media (width<=480px){.login-card{margin:1rem;padding:2rem}.login-card h1{font-size:1.5rem}}.admin-dashboard{color:#fff;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);flex-direction:column;min-height:100vh;padding:2rem;display:flex}.admin-dashboard a,.admin-dashboard a:hover,.admin-dashboard a:focus,.admin-dashboard a:active,.admin-dashboard a:visited{color:inherit;text-decoration:none}.admin-header{text-align:center;margin-bottom:3rem}.admin-header h1{margin-bottom:.5rem;font-size:2.5rem;font-weight:600}.admin-header p{opacity:.9;font-size:1.2rem}.admin-content{flex:1;width:100%;max-width:1200px;margin:0 auto}.admin-home-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem;display:grid}.admin-home-card{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);text-align:left;color:#fff;cursor:pointer;background:#ffffff1a;border:1px solid #fff3;border-radius:12px;padding:1.5rem;transition:transform .2s,box-shadow .2s}.admin-home-card:hover{transform:translateY(-2px);box-shadow:0 8px 25px #0003}.admin-home-card-secondary{background:#ffffff2e;border-color:#ffffff59}.admin-home-card h3{margin:0 0 8px;font-size:1.15rem;font-weight:600}.admin-home-card p{opacity:.9;margin:0;font-size:.95rem;line-height:1.4}.admin-section-page{flex-direction:column;gap:1rem;display:flex}.admin-section-nav{display:flex}.admin-section-content{width:100%}.admin-profile-card{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff1a;border:1px solid #fff3;border-radius:12px;max-width:520px;padding:1.5rem}.admin-profile-card h3{margin:0 0 1rem}.admin-profile-card p{margin:.5rem 0}.admin-profile-actions{flex-wrap:wrap;align-items:center;gap:.75rem;margin-top:1.25rem;display:flex}.admin-profile-link{color:#fff;background:#ffffff24;border:1px solid #ffffff3d;border-radius:8px;padding:.75rem 1rem;font-size:1rem;font-weight:500}.admin-profile-link:hover{background:#ffffff38}.admin-btn{color:#fff;cursor:pointer;background:#ffffff1a;border:1px solid #fff3;border-radius:8px;padding:1rem 1.5rem;font-size:1rem;font-weight:500;transition:all .2s}.admin-btn:hover:not(:disabled){background:#fff3;transform:translateY(-1px)}.admin-btn:disabled{opacity:.5;cursor:not-allowed}.logout-btn{color:#fff;cursor:pointer;background:#ef444433;border:1px solid #ef44444d;border-radius:8px;padding:.75rem 2rem;font-size:1rem;font-weight:500;transition:all .2s}.logout-btn:hover:not(:disabled){background:#ef44444d;transform:translateY(-1px)}.logout-btn:disabled{opacity:.6;cursor:not-allowed}@media (width<=768px){.admin-dashboard{padding:1rem}.admin-header h1{font-size:2rem}.admin-home-grid{grid-template-columns:1fr}}.role-chooser{color:#172033;background:#eef2f6;place-items:center;min-height:100vh;padding:24px;display:grid}.role-chooser-panel{background:#fff;border:1px solid #d8e0ea;border-radius:8px;width:min(760px,100%);padding:32px;box-shadow:0 20px 50px #1720331f}.role-chooser-kicker{color:#667085;margin:0 0 8px;font-size:.92rem}.role-chooser h1{margin:0;font-size:2rem;line-height:1.15}.role-chooser-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:28px 0 20px;display:grid}.role-choice{min-height:128px;color:inherit;border:1px solid #d8e0ea;border-radius:8px;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:14px;padding:18px;text-decoration:none;transition:border-color .18s,box-shadow .18s,transform .18s;display:grid}.role-choice:hover{border-color:#2f80ed;transform:translateY(-1px);box-shadow:0 12px 28px #2f80ed24}.role-choice-icon{color:#1c64d1;background:#edf5ff;border-radius:8px;place-items:center;width:44px;height:44px;font-size:1.35rem;font-weight:700;display:grid}.role-choice strong,.role-choice small{display:block}.role-choice strong{margin-bottom:6px;font-size:1.05rem}.role-choice small{color:#667085;line-height:1.35}.role-chooser-logout{color:#344054;cursor:pointer;background:#fff;border:1px solid #cfd8e3;border-radius:8px;padding:10px 14px;font-size:.95rem;font-weight:700}.role-chooser-logout:hover{color:#172033;border-color:#98a2b3}@media (width<=640px){.role-chooser-panel{padding:24px}.role-chooser-grid{grid-template-columns:1fr}}
