:root{font-family:"Segoe UI",Arial,sans-serif;color:#1b2440;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility;--ink:#1b2440;--muted:#75809a;--line:#e7eaf2;--purple:#6857df;--purple-dark:#5545c8;--surface:#fff}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
.app-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:#171d35;color:#e8eaf5;padding:28px 18px;display:flex;flex-direction:column;z-index:2}
.brand{display:flex;align-items:center;gap:11px;font:800 19px "Segoe UI",sans-serif;letter-spacing:-.7px}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(145deg,#8b79ff,#6654df);color:white;font-size:19px;box-shadow:0 6px 16px #6756df55}
.brand-muted{font-weight:500;color:#aab1cc}
.nav-caption,.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.55px;color:#8f98b2}
.nav-caption{margin:48px 10px 12px}
.side-nav{display:grid;gap:6px}
.side-nav a{height:44px;display:flex;align-items:center;gap:12px;padding:0 12px;border-radius:9px;color:#b5bbd0;font-size:13px;font-weight:500}
.side-nav a:hover,.side-nav a.active{background:#ffffff12;color:white}
.side-nav a.active{box-shadow:inset 3px 0 #8e7dff}
.nav-icon{font-size:18px;width:18px;text-align:center;color:#a89cff}
.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff17;padding:17px 8px 0;display:grid;grid-template-columns:9px 1fr;align-items:center;gap:2px 9px;color:#aeb5c9;font-size:11px}
.sidebar-bottom small{grid-column:2;color:#747f9f;font-size:10px}
.status-dot{width:7px;height:7px;border-radius:50%;background:#48ca9a;box-shadow:0 0 0 3px #48ca9a1f;display:inline-block}
.main-area{margin-left:252px;min-height:100vh}
.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 40px;position:sticky;top:0;z-index:1}
.topbar-spacer{flex:1}
.user-chip{display:flex;align-items:center;gap:11px}
.avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#eeeaff;color:#6654d9;font-weight:700}
.user-info{display:grid;gap:2px;min-width:120px}
.user-info strong{font-size:12px}
.user-info span{font-size:10px;color:var(--muted)}
.logout-button{width:33px;height:33px;border:1px solid var(--line);border-radius:8px;background:white;color:#7b849b;cursor:pointer;font-size:17px}
.page-content{max-width:1320px;margin:0 auto;padding:40px}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:27px}
.page-heading .eyebrow{margin:0 0 9px;color:#796de0}
h1,h2,h3,p{margin-top:0}
h1{font:800 27px "Segoe UI",sans-serif;letter-spacing:-.8px;margin-bottom:7px}
h2{font:700 16px "Segoe UI",sans-serif;letter-spacing:-.25px;margin-bottom:5px}
h3{font:700 15px "Segoe UI",sans-serif;margin-bottom:7px}
.muted{color:var(--muted);font-size:12px;margin-bottom:0}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}
.stat-card,.panel{background:var(--surface);border:1px solid var(--line);border-radius:13px;box-shadow:0 3px 13px #2c38600a}
.stat-card{min-height:164px;padding:19px 20px;display:flex;flex-direction:column;align-items:flex-start}
.stat-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;font-size:19px;margin-bottom:13px}
.stat-icon.violet{background:#f0edff;color:#725fe1}
.stat-icon.blue{background:#e8f3ff;color:#428ad6}
.stat-label{font-size:11px;color:var(--muted)}
.stat-card>strong{font:800 27px Manrope,sans-serif;letter-spacing:-1px;margin:2px 0}
.stat-card>small{font-size:10px;color:#98a0b2}
.stat-card-note{justify-content:center;gap:9px}
.note-top{display:flex;align-items:center;gap:8px;color:#77829c;font-size:11px}
.stat-card-note>strong{font-size:18px}
.panel{padding:22px;margin-bottom:19px}
.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:19px}
.panel-heading .muted{font-size:11px}
.text-link{color:#6555d8;font-size:11px;font-weight:700}
.empty-state{text-align:center;padding:36px 15px;color:var(--muted)}
.empty-state p{font-size:12px;margin-bottom:17px}
.empty-icon{display:grid;place-items:center;margin:0 auto 12px;width:44px;height:44px;border-radius:13px;background:#f1efff;color:#7868df;font-size:21px}
.empty-state.compact{padding:18px}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;min-width:550px}
th{text-align:left;padding:10px 13px;border-bottom:1px solid var(--line);font-size:9px;letter-spacing:.7px;text-transform:uppercase;color:#929bb0;font-weight:700}
td{padding:13px;border-bottom:1px solid #f0f1f5;color:#68738c;font-size:11px}
tbody tr:last-child td{border-bottom:0}
.table-primary{font-weight:700;color:#313a56}
.badge{display:inline-flex;padding:5px 8px;border-radius:20px;font-size:9px;font-weight:700;text-transform:capitalize;background:#f2f3f7;color:#747d92}
.badge-active{background:#e8f8f0;color:#218a5d}.badge-published{background:#edf1ff;color:#5266c5}.badge-finished{background:#f0f0f3;color:#697184}.badge-cancelled{background:#fff0ee;color:#ca655b}
.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:39px;padding:0 15px;border:0;border-radius:8px;font-size:11px;font-weight:700;cursor:pointer;transition:background .15s,transform .15s}
.button:hover{transform:translateY(-1px)}
.button-primary{background:var(--purple);color:white;box-shadow:0 5px 12px #6958df2b}
.button-primary:hover{background:var(--purple-dark)}
.button-secondary{background:#f0edff;color:#5f50cd}
.button-wide{width:100%;margin-top:8px}
.notice{padding:11px 13px;border-radius:8px;font-size:11px;margin:0 0 17px}
.notice-success{background:#eaf8f1;color:#217b56}.notice-error{background:#fff0ee;color:#ac4c46}
.event-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.filter-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.filter-form .field{min-width:150px}
.filter-grow{flex:1}
.filter-button{min-width:90px}
.attendee-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.form-actions{display:flex;gap:9px}
.row-actions{display:flex;align-items:center;gap:12px}
.row-actions form{margin:0}
.text-button{padding:0;border:0;background:transparent;color:#6555d8;font-size:11px;font-weight:700;cursor:pointer}
.text-danger{color:#c45454}
.pagination{display:flex;justify-content:center;gap:5px;margin-top:18px}
.pagination a{display:grid;place-items:center;min-width:30px;height:30px;border:1px solid var(--line);border-radius:7px;color:#66708a;font-size:11px}
.pagination a.current{background:var(--purple);border-color:var(--purple);color:white}
.category-create-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.category-create-form .field{min-width:180px}
.user-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.user-form-submit{align-content:end;display:flex;align-items:center;justify-content:space-between;gap:12px}
.inline-input{width:100%;min-width:110px;padding:7px 8px;border:1px solid var(--line);border-radius:6px;color:var(--ink);font:inherit;font-size:11px}
.inline-check{display:flex;align-items:center;gap:5px;white-space:nowrap;color:#68738c;font-size:10px}
.field{display:grid;gap:7px}
.field label,.form-stack label{font-size:11px;font-weight:700;color:#48526d}
.field input,.field select,.field textarea,.form-stack input{width:100%;border:1px solid #e1e5ef;border-radius:7px;padding:10px 11px;background:#fff;color:var(--ink);font-size:12px;outline:none}
.field input:focus,.field select:focus,.field textarea:focus,.form-stack input:focus{border-color:#9588ed;box-shadow:0 0 0 3px #8e7cff1c}
.field textarea{resize:vertical}
.field-wide{grid-column:1/-1}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 10%,#eeebff 0,transparent 42%),#f7f8fc}
.auth-card{width:min(100%,410px);padding:37px;background:white;border:1px solid #e9ebf2;border-radius:15px;box-shadow:0 18px 55px #313c6812}
.auth-brand{margin-bottom:31px;color:#252d49}
.auth-card .eyebrow{margin-bottom:8px;color:#786add}
.auth-card h1{font-size:24px}
.auth-card>.muted{line-height:1.6;margin-bottom:22px}
.form-stack{display:grid;gap:9px}
.form-stack label:not(:first-of-type){margin-top:6px}
.auth-footnote{text-align:center;color:#a0a7b7;font-size:10px;margin:20px 0 0}
.install-card{width:min(100%,470px);padding:32px}
.install-card .auth-brand{margin-bottom:25px}
.install-card .form-stack{gap:7px}
.install-card .form-stack input{padding:9px}
.install-card code{background:#f1f2f7;padding:2px 5px;border-radius:4px}
.error-card h1{margin-top:12px}
.error-card .button{margin-top:15px}
.mobile-brand{display:none}
@media(max-width:980px){.sidebar{width:215px}.main-area{margin-left:215px}.page-content{padding:30px 24px}.topbar{padding:0 24px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.sidebar{position:static;width:auto;height:auto;padding:13px 17px;display:block}.sidebar>.brand,.sidebar>.nav-caption,.sidebar-bottom{display:none}.side-nav{display:flex;margin-top:12px;overflow-x:auto}.side-nav a{height:36px;padding:0 11px;white-space:nowrap}.main-area{margin:0}.topbar{height:61px;padding:0 17px}.mobile-brand{display:flex;align-items:center;gap:8px;font:700 13px "Segoe UI",sans-serif}.mobile-brand .brand-mark{width:28px;height:28px;font-size:15px}.user-info{display:none}.page-content{padding:26px 16px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading .button{align-self:flex-start}.stats-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:14px;min-height:145px}.stat-card-note{grid-column:1/-1;min-height:120px}.panel{padding:16px}.event-form,.attendee-form,.user-form{grid-template-columns:1fr}.field-wide{grid-column:auto}.auth-card{padding:27px 22px}.category-create-form,.filter-form{align-items:stretch;flex-direction:column}.category-create-form .field,.filter-form .field{width:100%}.user-form-submit{align-items:flex-start;flex-direction:column}}
@media(max-width:390px){.stats-grid{grid-template-columns:1fr}.stat-card-note{grid-column:auto}}

/* Refined, spacious controls for day-to-day event management. */
:root{font-size:14px;--purple:#6156d9;--purple-dark:#4e43c4;--line:#e6e9f1;--muted:#75809a}
body{background:#f6f7fb;color:#202942}
.sidebar{background:#171c32}
.main-area{min-width:0}
.topbar{box-shadow:0 2px 10px #25315b08}
.page-content{max-width:1460px;padding:38px 42px}
.page-heading{align-items:flex-end;margin-bottom:25px}
.page-heading h1{font-size:30px;letter-spacing:-.9px}
.page-heading .muted{font-size:14px;line-height:1.55}
.eyebrow{font-size:10px}
.panel,.stat-card{border-color:#e8eaf1;border-radius:16px;box-shadow:0 5px 20px #1e2b4d08}
.panel{padding:24px;margin-bottom:20px}
.panel-heading{margin-bottom:20px}
.panel-heading h2{font-size:17px}
.panel-heading .muted{font-size:13px}
.table-wrap{border:1px solid #eef0f5;border-radius:12px}
table{min-width:690px}
th{padding:13px 15px;background:#fafbfe;font-size:10px;letter-spacing:.8px}
td{padding:15px;color:#58647c;font-size:13px;line-height:1.5}
tbody tr{transition:background .15s}
tbody tr:hover{background:#fafaff}
.table-primary{color:#28314b;font-size:13px}
.badge{padding:6px 10px;font-size:10px;letter-spacing:.1px}
.badge-confirmed{background:#e8f8f0;color:#218a5d}
.badge-pending{background:#fff5df;color:#9a6b0b}
.badge-error{background:#fff0ee;color:#ac4c46;white-space:normal;line-height:1.45}
.badge-draft{background:#f2f3f7;color:#69748b}
.button{min-height:42px;padding:0 16px;border-radius:10px;font-size:13px;transition:background .15s,box-shadow .15s,transform .15s}
.button:focus-visible,.text-button:focus-visible,.text-link:focus-visible,.pagination a:focus-visible{outline:3px solid #9588ed;outline-offset:3px}
.button:disabled{opacity:.55;cursor:not-allowed;transform:none}
.button-secondary{background:#f0efff;color:#5248bd}
.button-quiet{background:#f2f4f8;color:#59647c}
.text-link,.text-button{font-size:13px}
.notice{padding:14px 16px;border-radius:10px;font-size:13px;line-height:1.55}
.notice-warning{background:#fff8e8;color:#906610;border:1px solid #f7e9be}
.filter-panel{padding:18px 20px}
.filter-form{align-items:flex-end;gap:14px}
.filter-form .field{min-width:165px}
.filter-form .filter-grow{min-width:230px}
.filter-button{min-width:130px}
.field{gap:8px}
.field label,.form-stack label{font-size:12px;color:#46516b}
.field input,.field select,.field textarea,.form-stack input{min-height:44px;padding:11px 13px;border:1px solid #dfe3ed;border-radius:9px;font-size:14px;transition:border-color .15s,box-shadow .15s}
.field input::placeholder{color:#a1a9ba}
.field textarea{min-height:96px}
.field input:focus,.field select:focus,.field textarea:focus,.form-stack input:focus{border-color:#8379e6;box-shadow:0 0 0 4px #8177e61a}
.heading-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}
.panel .eyebrow{margin-bottom:7px;color:#796de0}
.empty-state{padding:48px 18px}
.empty-state h3{color:#303a56}
.empty-state p{font-size:13px;line-height:1.6}
.pagination a{min-width:38px;height:38px;font-size:13px}
.row-actions{gap:15px;white-space:nowrap}
.disclosure{padding:0 21px}
.disclosure-summary{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:18px;cursor:pointer;list-style:none}
.disclosure-summary::-webkit-details-marker{display:none}
.disclosure-summary::after{content:"⌄";order:1;color:#858ca0;font-size:17px}
.disclosure-summary>span:first-child{display:grid;gap:5px}
.disclosure-summary strong{font-size:15px;color:#2b3450}
.disclosure-summary small{color:var(--muted);font-size:12px}
.disclosure-summary .button{order:0}
.disclosure[open] .disclosure-summary{border-bottom:1px solid var(--line);margin-bottom:20px}
.disclosure[open] .event-form,.disclosure[open] .user-form,.disclosure[open] .category-create-form{padding-bottom:22px}
.event-form,.user-form{gap:19px}
.category-create-form{gap:15px}
.attendee-edit-form .panel{padding:25px 27px}
.form-panel{max-width:1060px}
.form-grid{display:grid;gap:20px}
.form-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.form-section-heading{display:flex;align-items:center;gap:13px;margin-bottom:23px}
.form-section-heading h2{font-size:17px;margin:0 0 5px}
.form-section-heading .muted{font-size:13px}
.step-number{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#f0efff;color:#5e54cf;font-size:13px;font-weight:800}
.required-mark{color:#c14e58;font-weight:800}
.field-span-two{grid-column:span 2}
.form-footer{max-width:1060px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:5px 0 20px}
.form-footer .muted{font-size:12px}
.form-actions{align-items:center}
.form-footer .form-actions{display:flex;justify-content:flex-end}
.form-stack{gap:18px}
.form-stack .field{max-width:560px}
.upload-form{display:grid;gap:19px;max-width:560px;margin-top:27px}
.upload-form .field small{color:var(--muted);font-size:12px}
.upload-form input[type=file]{padding:10px;background:#fafbfe}
.import-panel{max-width:960px}
.import-guide{display:grid;gap:9px;margin-top:20px;padding:18px;border:1px solid #eceefa;border-radius:12px;background:#fafaff;color:#69748b;font-size:13px;line-height:1.55}
.import-guide strong{color:#35405a}
.import-guide code{width:fit-content;padding:6px 9px;border-radius:6px;background:#f0efff;color:#5449bf;font-size:12px}
.import-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}
.summary-chip{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:white;color:#6b758b;font-size:13px}
.summary-chip strong{font-size:24px;color:#303a56}
.summary-good strong{color:#218a5d}
.summary-warning strong{color:#a56f0b}
.row-invalid{background:#fffaf9}
.import-footer{max-width:none;padding-top:20px}
.import-footer form{margin:0}
.stat-icon.green{background:#e8f8f0;color:#218a5d}
.checkin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px}
.checkin-stat{min-height:120px;padding:20px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 5px 20px #1e2b4d08;display:grid;grid-template-columns:38px 1fr;align-content:center;align-items:center;gap:4px 13px}
.checkin-stat .stat-icon{grid-row:span 2;width:38px;height:38px;margin:0}
.checkin-stat .stat-label{font-size:13px}
.checkin-stat strong{font-size:26px;color:#303a56}
.checkin-card{max-width:920px;padding:28px}
.checkin-card .form-section-heading{margin-bottom:23px}
.checkin-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:14px}
.checkin-form .button{min-width:190px}
.checkin-hint{margin:17px 0 0;color:var(--muted);font-size:12px;line-height:1.55}
.checkin-form input{text-transform:none;font-family:Consolas,"Courier New",monospace;letter-spacing:.045em}
.auth-card{border-radius:18px;box-shadow:0 22px 65px #313c6818}
.logout-button:hover{background:#f6f5ff;color:#5e54cf}
@media(max-width:1100px){
    .page-content{padding:30px 26px}
    .topbar{padding:0 26px}
    .filter-form .field{min-width:140px}
}
@media(max-width:760px){
    .page-content{padding:24px 16px}
    .topbar{padding:0 16px}
    .page-heading{gap:15px;margin-bottom:20px}
    .page-heading h1{font-size:26px}
    .heading-actions{justify-content:flex-start;width:100%}
    .heading-actions .button{flex:1}
    .panel{padding:18px}
    .filter-panel{padding:16px}
    .filter-form{display:grid;grid-template-columns:1fr 1fr}
    .filter-form .field,.filter-form .filter-grow{min-width:0;width:100%}
    .filter-form .filter-grow{grid-column:1/-1}
    .filter-button{width:100%}
    .form-grid-three{grid-template-columns:repeat(2,minmax(0,1fr))}
    .form-grid-two{grid-template-columns:1fr}
    .form-grid{gap:16px}
    .attendee-edit-form .panel{padding:20px 17px}
    .form-footer{align-items:flex-start;flex-direction:column}
    .form-footer .form-actions{width:100%;justify-content:flex-end}
    .disclosure{padding:0 17px}
    .disclosure-summary{min-height:76px}
    .disclosure-summary .button{min-height:38px;padding:0 11px;font-size:12px}
    .import-summary{gap:9px}
    .summary-chip{padding:14px;align-items:flex-start;flex-direction:column;gap:5px}
    .checkin-form{grid-template-columns:1fr}
    .checkin-form .button{width:100%}
    .checkin-card{padding:20px 17px}
    .checkin-stats{gap:9px}
    .checkin-stat{min-height:105px;padding:12px;grid-template-columns:30px 1fr;gap:4px 8px}
    .checkin-stat .stat-icon{width:30px;height:30px}
    .checkin-stat .stat-label{font-size:11px}
    .checkin-stat strong{font-size:22px}
}
@media(max-width:480px){
    .page-heading .button{width:100%}
    .heading-actions{display:grid;grid-template-columns:1fr 1fr}
    .heading-actions .button:last-child{grid-column:1/-1}
    .filter-form{grid-template-columns:1fr}
    .filter-form .filter-grow{grid-column:auto}
    .form-grid-three{grid-template-columns:1fr}
    .form-grid-two{grid-template-columns:1fr}
    .field-span-two{grid-column:auto}
    .import-summary{grid-template-columns:1fr}
    .summary-chip{align-items:center;flex-direction:row}
    .form-section-heading{align-items:flex-start}
    .disclosure-summary{align-items:flex-start;padding:17px 0}
    .disclosure-summary .button{white-space:nowrap}
    .disclosure-summary::after{display:none}
    .checkin-stats{grid-template-columns:1fr}
    .checkin-stat{min-height:78px;grid-template-columns:34px 1fr auto}
    .checkin-stat .stat-icon{grid-row:span 1}
    .checkin-stat strong{grid-column:3;grid-row:1}
}
