:root{--bg: #f4f4f5;--surface: #ffffff;--surface-sunken: #fafafa;--surface-hover: #f4f4f5;--border: #e4e4e7;--border-strong: #d4d4d8;--text: #18181b;--muted: #52525b;--muted-2: #71717a;--accent: #4f46e5;--accent-hover: #4338ca;--accent-active: #3730a3;--accent-soft: #eef2ff;--accent-contrast: #ffffff;--danger: #dc2626;--danger-strong: #b91c1c;--danger-soft: #fef2f2;--success: #15803d;--success-soft: #f0fdf4;--radius-sm: 8px;--radius: 12px;--radius-lg: 16px;--shadow-sm: 0 1px 2px rgba(24, 24, 27, .05);--shadow: 0 4px 12px rgba(24, 24, 27, .08);--shadow-lg: 0 12px 32px rgba(24, 24, 27, .12)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased;background:var(--bg);color:var(--text)}h1{font-size:22px;font-weight:700;letter-spacing:-.01em;margin:0 0 4px}h2{font-size:16px;font-weight:600;margin:0 0 4px}p{line-height:1.5}a{color:var(--accent)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.login-screen,.event-form-screen{max-width:440px;margin:8vh auto;padding:32px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow)}.events-screen{max-width:620px;margin:8vh auto;padding:32px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow)}.photos-screen{max-width:960px;margin:5vh auto;padding:32px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow)}.login-screen form,.event-form-screen form{display:flex;flex-direction:column;gap:14px;margin-top:20px}.login-screen label,.event-form-screen label,.moderators-section label,.promotion-form label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500;color:var(--muted)}.checkbox-label{flex-direction:row!important;align-items:center;gap:8px!important}input,select{font:inherit;font-size:15px;color:var(--text);caret-color:var(--text);background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:10px 12px;transition:border-color .12s ease}input::placeholder{color:var(--muted-2)}input:hover,select:hover{border-color:var(--border-strong)}input:focus-visible,select:focus-visible{border-color:var(--accent)}input:disabled,select:disabled{background:var(--surface-sunken);color:var(--muted-2);cursor:not-allowed}input[type=checkbox],input[type=radio]{width:16px;height:16px;accent-color:var(--accent);cursor:pointer}input[type=color]{width:64px;height:40px;padding:4px;cursor:pointer}input[type=file]{border:none;padding:4px 0;font-size:14px}input[type=file]::file-selector-button{font:inherit;font-size:13px;font-weight:500;color:var(--text);background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:8px 14px;margin-right:12px;cursor:pointer;transition:background .12s ease,border-color .12s ease}input[type=file]::file-selector-button:hover{background:var(--surface-hover);border-color:var(--border-strong)}.field-hint{font-size:12px;color:var(--muted-2);margin:-6px 0 0}button{font:inherit;font-size:15px;font-weight:500;color:var(--text);background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:10px 16px;cursor:pointer;transition:background .12s ease,border-color .12s ease,color .12s ease;-webkit-tap-highlight-color:transparent}button:hover:not(:disabled){background:var(--surface-hover);border-color:var(--border-strong)}button:active:not(:disabled){background:var(--surface-hover)}button:disabled{opacity:.5;cursor:not-allowed}.btn-primary{color:var(--accent-contrast);background:var(--accent);border-color:var(--accent)}.btn-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.btn-primary:active:not(:disabled){background:var(--accent-active);border-color:var(--accent-active)}.btn-danger{color:var(--danger-strong);background:var(--surface);border-color:var(--border)}.btn-danger:hover:not(:disabled){color:#fff;background:var(--danger-strong);border-color:var(--danger-strong)}.btn-link{border:none;background:none;padding:4px 0;color:var(--accent);font-weight:500;text-align:left}.btn-link:hover:not(:disabled){background:none;text-decoration:underline}.btn-icon{width:36px;height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.btn-file{display:inline-flex;align-items:center;font-size:13px;font-weight:500;color:var(--text);background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:9px 14px;cursor:pointer;transition:background .12s ease,border-color .12s ease}.btn-file:hover{background:var(--surface-hover);border-color:var(--border-strong)}.error{color:var(--danger-strong);font-size:14px}.success{color:var(--success);font-size:14px}.role-badge{display:inline-block;color:var(--muted-2);font-size:12px;font-weight:500;background:var(--surface-sunken);border:1px solid var(--border);border-radius:999px;padding:3px 10px;margin:0 0 16px}.events-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:4px}.events-header h1{margin:0}.center-msg{text-align:center;margin-top:20vh;color:var(--muted)}ul{list-style:none;padding:0;margin:16px 0 0}.event-row{display:block;width:100%;text-align:left;background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius);padding:14px 16px;margin-bottom:8px;font-weight:400;transition:border-color .12s ease,box-shadow .12s ease}.event-row:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm)}.event-code{color:var(--muted-2);font-size:14px}.form-actions{display:flex;gap:8px}.form-actions input{flex:1;min-width:0;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:13px}.qr-section{display:flex;flex-direction:column;align-items:center;gap:10px;margin:20px 0;padding:20px;background:var(--surface-sunken);border:1px solid var(--border);border-radius:var(--radius)}.qr-section canvas{background:#fff;border-radius:var(--radius-sm);box-shadow:var(--shadow-sm)}.guest-url{font-size:13px;color:var(--muted-2);word-break:break-all;text-align:center}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-top:16px}.photo-grid a{display:block;border-radius:var(--radius-sm);overflow:hidden;border:1px solid var(--border);transition:box-shadow .12s ease,transform .08s ease}.photo-grid a:hover{box-shadow:var(--shadow);transform:translateY(-1px)}.photo-grid img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.readonly-detail{background:var(--surface-sunken);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin:16px 0}.readonly-detail p{margin:4px 0;color:var(--muted)}.logo-section,.promotions-section,.moderators-section{margin-top:28px;border-top:1px solid var(--border);padding-top:20px}.logo-section{display:flex;flex-direction:column;gap:12px}.logo-preview{max-width:160px;max-height:160px;object-fit:contain;border-radius:var(--radius);background:var(--surface-sunken);border:1px solid var(--border);padding:8px}.moderators-section form{display:flex;flex-direction:column;gap:12px;margin-top:12px}.moderators-section ul li{padding:8px 0;border-bottom:1px solid var(--border);font-size:14px}.promotions-list{list-style:none;padding:0;margin:12px 0;display:flex;flex-direction:column;gap:8px}.promotion-item{display:flex;align-items:center;gap:12px;background:var(--surface-sunken);border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px}.promotion-image{width:48px;height:48px;object-fit:cover;border-radius:var(--radius-sm);flex-shrink:0}.promotion-info{flex:1;min-width:0}.promotion-info p{margin:2px 0;color:var(--muted-2);font-size:13px}.promotion-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.promotion-form{display:flex;flex-direction:column;gap:12px;margin-top:16px}
