/* Shared Lovable management components. Keep public display artwork untouched. */
.event-config-main .utility-actions .duplicate-display { min-height:27px; }
.event-config-main .utility-actions .delete-display { min-height:27px; }
.event-config-main .duplicate-display:focus-visible { outline:2px solid var(--ui-accent); outline-offset:3px; }
.management-page .template-list article[data-template-id] { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:16px; position:relative; }
.management-page .template-list article .template-order-controls { display:flex; flex-direction:row; gap:4px; }
.management-page .template-order-controls button { min-width:38px; min-height:44px; padding:8px; }
.management-page .template-drag-handle { cursor:grab; }
.management-page .template-drag-handle:active { cursor:grabbing; }
.management-page .template-list article.is-dragging { opacity:.55; }
.management-page .template-list article.drop-before::before,
.management-page .template-list article.drop-after::after { content:''; position:absolute; left:0; right:0; height:3px; background:var(--ui-accent); pointer-events:none; }
.management-page .template-list article.drop-before::before { top:-7px; }
.management-page .template-list article.drop-after::after { bottom:-7px; }
.management-page .template-list article .template-summary { display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-width:0; overflow-wrap:anywhere; }
.management-page .template-list .template-meta { flex-wrap:wrap; }
.management-page .template-list article .template-actions { display:flex; flex-direction:row; flex-wrap:wrap; gap:8px; }
.management-page .template-list button:focus-visible { outline:2px solid var(--ui-accent); outline-offset:3px; }
.management-page .template-list button:disabled { opacity:.45; cursor:not-allowed; }
.management-page #template-order-status { color:var(--ui-muted); font-size:14px; }
.management-page #template-order-status:empty { display:none; }
.management-page .template-list article[data-template-id]:not(:has(.template-order-controls)) { grid-template-columns:minmax(0,1fr); }
@media(max-width:800px) {
  .management-page .template-list article[data-template-id] { grid-template-columns:minmax(0,1fr); gap:12px; padding:16px; }
  .management-page .template-order-controls button { min-width:44px; }
}
.template-keyboard-toolbar { grid-column:1; grid-row:3; display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0; }
.template-keyboard-toolbar button { padding:7px 12px; }
.template-keyboard-toolbar span { color:var(--ui-muted); font-size:12px; line-height:1.5; }
.template-keyboard-toolbar button:disabled { opacity:.45; cursor:not-allowed; }
.template-page .template-stage:focus-visible { outline:2px solid var(--ui-accent); outline-offset:3px; }
.template-page .placed:focus-visible { outline:2px solid var(--ui-accent); outline-offset:2px; }
.template-page button:focus-visible { outline:2px solid var(--ui-accent); outline-offset:2px; }
.lovable-page .race-status { min-width:0; }
.lovable-page .race-status-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.lovable-page .race-status-card { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto; align-content:center; column-gap:8px; min-width:0; min-height:72px; padding:8px 10px; border:1px solid var(--ui-border); border-radius:6px; background:var(--ui-surface); }
.lovable-page .race-status-card-0 { border-color:#e89b49; background:linear-gradient(110deg,#513923,var(--ui-surface)); }
.lovable-page .race-status-card-1 { border-color:var(--ui-accent); }
.lovable-page .race-status-label { grid-column:1/-1; color:var(--ui-muted); font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:1px; }
.lovable-page .race-status-card-0 .race-status-label { color:#ffb96f; }
.lovable-page .race-status-card-1 .race-status-label { color:var(--ui-accent); }
.lovable-page .race-status-card h2 { grid-column:1; margin:3px 0 0; min-width:0; font-size:14px; line-height:1.1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lovable-page .race-status-wave { grid-column:1; margin:2px 0 0; color:var(--ui-muted); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lovable-page .race-status-start { display:none; }
.lovable-page .race-status-time { grid-column:2; grid-row:2/4; display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:2px; margin:0; white-space:nowrap; }
.lovable-page .race-status-time span { font-size:9px; color:var(--ui-muted); }
.lovable-page .race-status-time strong { font-size:18px; font-variant-numeric:tabular-nums; line-height:1; }
.lovable-page .race-status-empty { grid-column:1/-1; color:var(--ui-muted); margin:7px 0 0; font-size:11px; }
.lovable-page .race-status-notice { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.lovable-page #race-status-connection { color:#ffb96f; font-size:12px; letter-spacing:normal; text-transform:none; }
.lovable-page .race-status > .section-label { flex-wrap:wrap; gap:8px; }
@media(max-width:800px) {
  .lovable-page .race-status-cards { grid-template-columns:repeat(3,minmax(210px,1fr)); overflow-x:auto; }
}
.lovable-page, .editor-dialog {
  --ui-page:#062448;
  --ui-surface:#112f5a;
  --ui-input:#102d59;
  --ui-border:#315888;
  --ui-text:#f7f9ff;
  --ui-muted:#c2d3eb;
  --ui-accent:#94c947;
  font-family:"Barlow",Arial,sans-serif;
  color:var(--ui-text);
  color-scheme:dark;
}
#app:has(> .lovable-page:not(.template-page)) { overflow:auto; }
.lovable-header .header-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:10px;
  margin-left:auto;
}
.account-menu { display:flex; align-items:center; gap:10px; padding-left:10px; border-left:1px solid var(--ui-border); }
.account-menu .account-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; }
.lovable-page .lovable-header :is(.profile-link,.permissions-link) { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:40px; padding:0 12px; border:1px solid var(--ui-border); border-radius:5px; color:var(--ui-muted); font:600 13px/1.2 "Barlow",Arial,sans-serif; text-decoration:none; }
.lovable-page .lovable-header :is(.profile-link,.permissions-link):hover { background:#244b7d; border-color:#6684aa; color:#fff; }
.lovable-page .lovable-header :is(.profile-link,.permissions-link):focus-visible { outline:2px solid var(--ui-accent); outline-offset:3px; }
:is(.profile-link,.permissions-link) svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.account-menu p { margin:0; color:var(--ui-muted); font-size:10px; line-height:1.25; text-align:right; white-space:nowrap; }
.account-menu p strong { color:var(--ui-text); font-weight:600; }
.lovable-page .lovable-header button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 16px;
  border:1px solid var(--ui-border);
  border-radius:5px;
  background:transparent;
  color:var(--ui-muted);
  font:600 13px/1.2 "Barlow",Arial,sans-serif;
  white-space:nowrap;
  transition:background-color .15s,border-color .15s,color .15s;
}
.lovable-page .lovable-header button:hover {
  background:#244b7d;
  border-color:#6684aa;
  color:#fff;
  transform:none;
  box-shadow:none;
}
.lovable-page .lovable-header button:active { background:#183d6b; transform:none; box-shadow:none; }
.lovable-page .lovable-header button.new-display { background:var(--ui-accent); border-color:var(--ui-accent); color:#142446; }
.lovable-page .lovable-header button.new-display:hover { background:#a6db58; border-color:#a6db58; color:#142446; }
.lovable-page .lovable-header button.new-display:active { background:#83b73b; border-color:#83b73b; }
.lovable-page .lovable-header button:focus-visible { outline:2px solid var(--ui-accent); outline-offset:3px; }
@media(max-width:1200px) {
  .lovable-page .lovable-header:has(.header-actions) { height:auto; min-height:69px; padding-top:12px; padding-bottom:12px; flex-wrap:wrap; }
  .lovable-header .header-actions { width:100%; }
}
@media(max-width:800px) {
  .lovable-page .lovable-header:has(.header-actions) { height:auto; min-height:69px; padding:14px 18px; flex-wrap:wrap; gap:16px; }
  .lovable-header .header-actions { justify-content:flex-start; flex-wrap:wrap; }
  .account-menu { width:100%; padding:10px 0 0; border-left:0; border-top:1px solid var(--ui-border); flex-wrap:wrap; }
  .account-menu .account-actions { justify-content:flex-start; }
  .account-menu p { flex:1 1 100%; text-align:left; white-space:normal; }
}
@media(prefers-reduced-motion:reduce) {
  .lovable-page .lovable-header button { transition:none; }
}
.permissions-main { display:grid; align-content:start; gap:22px; }
.permissions-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; }
.permissions-heading h1 { margin:2px 0 6px; }
.permissions-heading .page-intro { margin-bottom:0; }
.permissions-print { flex:0 0 auto; min-height:44px; padding:0 24px; }
.role-tester { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px 24px; padding:18px; border:1px solid var(--ui-border); border-left:4px solid var(--ui-accent); border-radius:7px; background:var(--ui-surface); }
.role-tester h2 { margin:2px 0 5px; font-size:20px; }
.role-tester p { margin:0; color:var(--ui-muted); font-size:13px; line-height:1.45; }
.role-tester-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.role-tester-actions button { min-height:40px; padding:0 14px; }
.role-tester-actions button[aria-pressed=true] { border-color:var(--ui-accent); background:var(--ui-accent); color:#142446; box-shadow:0 0 0 2px #94c9472e; }
.role-tester .role-test-active { grid-column:1/-1; padding:9px 12px; border-radius:5px; background:#f2a93b1c; color:#ffd27a; }
.permissions-table-wrap { overflow:auto; border:1px solid var(--ui-border); border-radius:7px; background:var(--ui-surface); }
.active-users-page .permissions-table td { vertical-align:middle; }
.active-users-page .permissions-table td:first-child { display:grid; gap:3px; text-align:left; }
.active-users-page .permissions-table td small { display:block; margin-top:3px; color:var(--ui-muted); }
.active-user-online { color:var(--ui-accent); font-weight:700; white-space:nowrap; }
.permissions-table { width:100%; min-width:820px; border-collapse:collapse; color:var(--ui-text); font-size:14px; }
.permissions-table caption { padding:14px 18px; border-bottom:1px solid var(--ui-border); color:var(--ui-muted); font-size:12px; font-weight:700; letter-spacing:.08em; text-align:left; text-transform:uppercase; }
.permissions-table :is(th,td) { padding:12px 14px; border-right:1px solid var(--ui-border); border-bottom:1px solid var(--ui-border); vertical-align:middle; }
.permissions-table :is(th,td):last-child { border-right:0; }
.permissions-table tbody tr:last-child :is(th,td) { border-bottom:0; }
.permissions-table thead th { background:#0b2850; color:var(--ui-text); font-size:13px; line-height:1.25; text-align:center; }
.permissions-table thead th:first-child { width:35%; text-align:left; }
.permissions-table thead small { color:var(--ui-muted); font-size:11px; }
.permissions-table tbody th { font-weight:600; line-height:1.35; text-align:left; }
.permissions-table tbody td { text-align:center; white-space:nowrap; }
.permissions-table tbody tr:nth-child(even) { background:#0d2a52; }
.permission-yes { color:var(--ui-accent); font-weight:700; }
.permission-no { color:#9db0cc; font-weight:600; }
.permissions-notes { display:grid; gap:5px; padding:14px 16px; border-left:3px solid var(--ui-accent); background:#0d2a52; color:var(--ui-muted); font-size:13px; line-height:1.45; }
.permissions-notes p { margin:0; }
.permissions-notes strong { color:var(--ui-text); }
@media(max-width:800px) {
  .permissions-heading { align-items:flex-start; flex-direction:column; }
  .permissions-print { width:100%; }
  .role-tester { grid-template-columns:1fr; }
  .role-tester-actions { justify-content:stretch; }
  .role-tester-actions button { flex:1 1 180px; }
}
@media print {
  @page { size:A4 landscape; margin:10mm; }
  html, body, #app { height:auto !important; overflow:visible !important; background:#fff !important; }
  .permissions-page { min-height:0 !important; background:#fff !important; color:#111 !important; color-scheme:light; }
  .permissions-page .lovable-header, .permissions-page .permissions-print, .permissions-page .role-tester { display:none !important; }
  .permissions-page .lovable-main { width:auto !important; max-width:none !important; padding:0 !important; }
  .permissions-main { gap:10px; }
  .permissions-heading { display:block; }
  .permissions-heading .stage-kicker { color:#345 !important; }
  .permissions-heading h1 { color:#111 !important; font-size:22pt; }
  .permissions-heading .page-intro { color:#345 !important; }
  .permissions-table-wrap { overflow:visible; border:1px solid #657080; border-radius:0; background:#fff; }
  .permissions-table { min-width:0; color:#111; font-size:8.5pt; }
  .permissions-table caption { padding:7px 8px; border-color:#657080; color:#345; }
  .permissions-table :is(th,td) { padding:5px 7px; border-color:#8b949f; }
  .permissions-table thead th { background:#e4eaf0 !important; color:#111 !important; font-size:8pt; }
  .permissions-table thead small { color:#345 !important; font-size:7.5pt; }
  .permissions-table tbody tr:nth-child(even) { background:#f2f5f7 !important; }
  .permissions-table tr { break-inside:avoid; }
  .permissions-page .permission-yes { color:#315d00 !important; }
  .permissions-page .permission-no { color:#555 !important; }
  .permissions-notes { gap:2px; padding:6px 8px; border:1px solid #657080; border-left:3px solid #315d00; background:#fff !important; color:#345 !important; font-size:8pt; }
  .permissions-notes strong { color:#111 !important; }
}
.lovable-page h1, .management-page h2, .management-page h3, .editor-dialog h2 {
  font-family:"Barlow Condensed","Barlow",Arial,sans-serif;
  font-weight:700;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.management-page button, .editor-dialog button { font-family:inherit; }
.management-page :is(input,select,textarea), .editor-dialog :is(input,select,textarea) {
  min-width:0;
  width:100%;
  padding:10px 12px;
  border:1px solid var(--ui-border);
  border-radius:5px;
  background:var(--ui-input);
  color:var(--ui-text);
  font:500 14px/1.4 "Barlow",Arial,sans-serif;
}
.management-page textarea { resize:vertical; }
.management-page :is(input,textarea)::placeholder, .editor-dialog input::placeholder { color:#90a9cb; }
.management-page :is(input,select,textarea):focus, .editor-dialog :is(input,select,textarea):focus {
  border-color:var(--ui-accent);
  outline:2px solid #94c94740;
  outline-offset:1px;
}
.management-page :is(input,select,textarea):disabled, .editor-dialog :is(input,select,textarea):disabled {
  border-color:#365276;
  background:#102747;
  color:#8294ad;
  opacity:.65;
  cursor:not-allowed;
}
.management-page :is(button,a):focus-visible, .editor-dialog button:focus-visible {
  outline:2px solid var(--ui-accent);
  outline-offset:3px;
}
.management-page input[type=checkbox], .editor-dialog input[type=checkbox] {
  width:16px;
  height:16px;
  flex:0 0 16px;
  accent-color:var(--ui-accent);
}
.management-page input[type=color], .editor-dialog input[type=color] { height:40px; padding:4px; }
.management-page input[type=file], .editor-dialog input[type=file] { padding:7px; font-size:12px; }
.management-page input::file-selector-button, .editor-dialog input::file-selector-button {
  border:0;
  border-radius:3px;
  margin-right:10px;
  padding:6px 8px;
  background:#244b7d;
  color:var(--ui-text);
  font:600 12px "Barlow",Arial,sans-serif;
  cursor:pointer;
}
.management-page .field, .editor-dialog .field { gap:7px; margin:0; font-size:13px; font-weight:600; }
.management-page .check-field, .editor-dialog .check-field { flex-direction:row; align-items:center; align-self:end; min-height:40px; }
.management-page .field small, .editor-dialog .field small { color:var(--ui-muted); font-size:12px; font-weight:400; line-height:1.5; }
.editor-dialog .slug-warning { display:flex; align-items:flex-start; gap:7px; color:#ffd27a; }
.editor-dialog .slug-warning > span:first-child { flex:0 0 auto; color:#f2a93b; font-size:15px; line-height:1.25; }
.management-page button, .editor-dialog button {
  border:1px solid transparent;
  border-radius:5px;
  background:var(--ui-accent);
  color:#142446;
  font-size:13px;
  transition:background .15s,border-color .15s;
}
.management-page button:hover, .editor-dialog button:hover { background:#a6db58; }
.management-page button.secondary, .editor-dialog button.secondary {
  border-color:var(--ui-border);
  background:transparent;
  color:var(--ui-muted);
}
.management-page button.secondary:hover, .editor-dialog button.secondary:hover { background:#244b7d; color:#fff; border-color:#6684aa; }
.management-page button.danger { color:#ffb3b3; }
.management-page button.danger:hover { border-color:#bb6475; background:#512b43; }
.management-page button:disabled, .editor-dialog button:disabled { opacity:.5; cursor:not-allowed; }
.management-page .lovable-header, .editor-dialog header { flex-shrink:0; }
.management-page .section-label { color:var(--ui-muted); font-size:11px; font-weight:600; letter-spacing:.1em; }
.management-page .lovable-main { padding-inline:24px; }
.management-page .template-list { margin-top:12px; gap:10px; }
.management-page .template-list article { background:var(--ui-surface); border-radius:6px; padding:18px 20px; }
.management-page .template-list article strong { font-size:16px; }
.management-page .template-list article span { color:var(--ui-muted); font-size:12px; }
.management-page .template-list article .template-meta { flex-direction:row; align-items:center; gap:10px; }
.management-page .status-pill { display:inline-block; flex-shrink:0; white-space:nowrap; padding:3px 8px; border-radius:99px; background:#94c94722; color:var(--ui-accent); font-size:10px; font-weight:700; text-transform:uppercase; }
.management-page .status-pill.is-draft { background:#c2d3eb15; color:var(--ui-muted); }
.management-tabs { display:flex; gap:6px; margin:24px 0 18px; padding:5px; overflow-x:auto; border:1px solid var(--ui-border); border-radius:7px; background:var(--ui-surface); }
.management-tabs [role=tab] { flex:0 0 auto; min-width:130px; padding:10px 16px; border-color:transparent; background:transparent; color:var(--ui-muted); }
.management-tabs [role=tab][aria-selected=true] { border-color:var(--ui-accent); background:#94c9471c; color:var(--ui-text); }
.management-tabs [role=tab]:focus-visible { outline:2px solid var(--ui-accent); outline-offset:1px; }
.management-tab-panel[hidden] { display:none; }
.management-tab-panel { min-width:0; }
.management-tab-panel > .library-heading { margin-bottom:16px; }
.management-page .animation-library { margin-top:36px; padding:0; border:0; background:none; }
.management-page .management-tab-panel.animation-library { margin-top:0; }
.management-page .library-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:16px; }
.management-page .library-heading h2 { margin:0 0 5px; font-size:25px; }
.management-page .library-heading p { color:var(--ui-muted); font-size:14px; }
.management-page .animation-library form { margin:0; padding:20px; align-items:start; border:1px solid var(--ui-border); border-radius:6px; background:var(--ui-surface); }
.management-page .animation-library form > button { margin-top:23px; }
.management-page .animation-list { margin-top:12px; }
.management-page .animation-list article { padding:15px 20px; background:var(--ui-surface); }
.management-page .empty-library { padding:30px 20px; border:1px dashed var(--ui-border); border-radius:6px; color:var(--ui-muted); text-align:center; }
.load-error-panel { max-width:620px; margin:8vh auto 0; padding:32px; border:1px solid var(--ui-border); border-radius:8px; background:var(--ui-surface); }
.load-error-panel h1 { margin:8px 0 12px; }
.load-error-panel .actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.management-page .template-editor { gap:16px; padding:18px 24px 24px; grid-template-columns:360px minmax(0,1fr); }
.management-page .template-editor > aside { padding:0; border-radius:6px; background:var(--ui-surface); }
.management-page .template-editor > section { min-height:0; gap:12px 16px; grid-template-columns:minmax(0,1fr) 300px; grid-template-rows:auto minmax(0,1fr) auto; }
.management-page .editor-section { padding:14px 16px; border-bottom:1px solid var(--ui-border); }
.management-page .editor-section h1 { margin:0 0 6px; font-size:25px; }
.management-page .editor-section h3 { margin:0 0 14px; color:var(--ui-muted); font:600 11px "Barlow",Arial,sans-serif; letter-spacing:.1em; text-transform:uppercase; }
.management-page .editor-section > p { margin:0; color:var(--ui-muted); font-size:12px; line-height:1.5; }
.management-page .editor-section .field + .field { margin-top:11px; }
.management-page details.editor-section { padding:0; }
.management-page details.editor-section > summary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 16px; color:var(--ui-muted); font:600 11px "Barlow",Arial,sans-serif; letter-spacing:.1em; text-transform:uppercase; cursor:pointer; list-style:none; }
.management-page details.editor-section > summary::-webkit-details-marker { display:none; }
.management-page details.editor-section > summary::after { content:'+'; color:var(--ui-accent); font-size:18px; line-height:1; }
.management-page details.editor-section[open] > summary::after { content:'−'; }
.management-page details.editor-section > summary:focus-visible { outline:2px solid var(--ui-accent); outline-offset:-3px; }
.management-page details.editor-section > summary ~ * { margin-inline:16px; }
.management-page details.editor-section > summary + :not(div) { margin-top:0; }
.management-page details.editor-section[open] { padding-bottom:14px; }
.management-page details.editor-section #template-media-library { margin:0; padding:0 16px; }
.management-page .template-published { margin:14px 0 0; font-size:13px; }
.management-page .placeholder-palette { margin-top:14px; }
.management-page .placeholder-palette button { padding:8px; overflow-wrap:anywhere; text-align:left; border-color:var(--ui-border); background:#102d59; color:var(--ui-muted); font-size:12px; font-weight:500; }
.management-page .placeholder-palette button:hover { border-color:var(--ui-accent); color:var(--ui-text); background:#244b7d; }
.management-page .template-events { margin:0; }
.management-page .template-events label { align-items:flex-start; line-height:1.4; }
.management-page .template-save-bar { position:sticky; bottom:0; padding:14px 18px 8px; border-top:1px solid var(--ui-border); background:var(--ui-surface); }
.management-page .template-save-actions button { padding:9px 5px; font-size:12px; }
.management-page .template-preview-toggle { justify-content:space-between; flex-wrap:wrap; min-height:32px; }
.management-page .preview-mode-control { display:flex; align-items:center; gap:8px; margin-left:auto; font-size:11px; }
.management-page .template-preview-toggle input { width:1px; height:1px; }
.management-page .template-stage-wrap { grid-row:2; width:min(100%,calc((100dvh - 280px) * 16 / 9)); max-height:calc(100dvh - 280px); border-color:var(--ui-border); border-radius:5px; overflow:hidden; }
.management-page #add-display-body[hidden] { display:none; }
.management-page .template-animation-preview-area { position:absolute; left:4.1667%; top:16.6667%; width:91.6667%; height:70.3704%; border:2px dashed #00b9ff; box-sizing:border-box; pointer-events:none; container-type:size; }
.management-page .template-animation-preview-area .template-tile-grid-sample { inset:3%; }
.template-stage.show-placeholder-names .template-tile-grid-sample,
.template-stage.show-placeholder-names .template-animation-preview-area { visibility:hidden; }
.management-page .template-animation-replay { width:100%; margin-top:-10px; }
.management-page .template-animation-replay[hidden] { display:none; }
.management-page #standard-animation-field[hidden] { display:none; }
.management-page #power-race-reveal-hold-field[hidden] { display:none; }
.management-page .animation-time-source { margin:12px 0 18px; padding:12px; border:1px solid var(--ui-border); border-left:4px solid var(--ui-accent); border-radius:5px; background:var(--ui-input); color:var(--ui-text); font-size:12px; line-height:1.5; }
.management-page .animation-time-source[hidden] { display:none; }
.management-page .animation-time-source > strong { display:block; margin-bottom:8px; color:var(--ui-accent); font-size:13px; }
.management-page .animation-time-source p { margin:6px 0 0; }
.management-page .animation-time-source code { display:block; overflow-wrap:anywhere; color:var(--ui-text); }
.management-page .template-reveal-sample { position:absolute; inset:0; pointer-events:none; }
.template-stage.show-placeholder-names .template-reveal-sample { visibility:hidden; }
.template-stage.show-placeholder-names .template-reveal-sample .reveal-tile { visibility:hidden; }
.management-page #template-properties { grid-column:2; grid-row:2/4; padding:18px; border-radius:6px; background:var(--ui-surface); }
.management-page #template-properties h3 { font-size:20px; overflow-wrap:anywhere; }
.management-page .properties-empty { display:grid; min-height:200px; align-content:center; gap:8px; text-align:center; }
.management-page .properties-empty strong { color:var(--ui-text); font-size:15px; }
.management-page .properties-empty p { margin:0; color:var(--ui-muted); font-size:13px; line-height:1.6; }
.management-page .template-props { gap:14px 10px; }
.management-page .template-props label { color:var(--ui-muted); }
.management-page .template-props :is(input,select) { padding:8px; font-size:13px; }
.management-page .template-props input[type=color] { padding:3px; }
.management-page .template-help { line-height:1.6; }
.editor-dialog { width:min(640px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); padding:0; border:1px solid var(--ui-border); border-radius:8px; background:var(--ui-surface); box-shadow:0 24px 80px #0008; overflow:auto; }
.editor-dialog::backdrop { background:#031327bb; backdrop-filter:blur(4px); }
.editor-dialog header { position:sticky; top:0; z-index:1; align-items:flex-start; gap:20px; padding:22px 24px; background:var(--ui-surface); border-bottom:1px solid var(--ui-border); }
.editor-dialog h2 { margin:0 0 6px; font-size:28px; line-height:1; }
.editor-dialog header p { margin:0; color:var(--ui-muted); font-size:13px; line-height:1.5; }
.editor-dialog header .dialog-kicker { display:block; margin-bottom:8px; color:var(--ui-accent); font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.editor-dialog header button, .editor-dialog #close-editor { width:32px; height:32px; padding:0; flex:0 0 32px; font-size:22px; line-height:1; }
.editor-dialog .add { margin:0; padding:24px; border:0; }
.editor-dialog .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 16px; }
.editor-dialog .form-section-title { margin:2px 0 -4px; padding-top:18px; border-top:1px solid var(--ui-border); color:var(--ui-muted); font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.editor-dialog .form-section-title:first-child { padding-top:0; border-top:0; }
.editor-dialog [data-grid-capacity] { margin:0; padding:10px 12px; border-radius:5px; color:var(--ui-muted); background:#062448; font-size:12px; }
.editor-dialog .dialog-actions { display:flex; justify-content:flex-end; gap:10px; padding-top:18px; border-top:1px solid var(--ui-border); }
.editor-dialog .display-save-status { min-height:0; margin:0; color:var(--ui-muted); font-size:12px; line-height:1.5; }
.editor-dialog .display-save-status.is-conflict { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:12px; border:1px solid #d58d39; border-radius:6px; color:#ffd18d; background:#5b391b55; }
.editor-dialog .display-save-status.is-conflict button { flex:0 0 auto; padding:7px 10px; border-color:#d58d39; color:#fff0d5; }
.editor-dialog #event-form > .field { margin-bottom:18px; }
@media(max-width:1150px) {
  .management-page .template-editor { grid-template-columns:310px minmax(0,1fr); gap:12px; padding:12px; }
  .management-page .template-editor > section { grid-template-columns:minmax(0,1fr) 250px; gap:12px; }
}
@media(max-width:900px) {
  .management-page.template-page { height:auto; min-height:100dvh; overflow:visible; }
  #app:has(> .management-page.template-page) { overflow:auto; }
  .management-page .template-editor { height:auto; grid-template-columns:1fr; overflow:visible; }
  .management-page .template-editor > aside { overflow:visible; }
  .management-page .template-editor > section { grid-column:1; grid-row:1; }
  .management-page .template-editor > aside { grid-column:1; grid-row:2; }
  .management-page .template-editor > section { grid-template-columns:1fr; grid-template-rows:auto auto auto auto; overflow:visible; }
  .management-page .template-preview-toggle { grid-column:1; grid-row:1; }
  .management-page .template-stage-wrap { grid-column:1; grid-row:2; width:100%; max-height:none; }
  .management-page .template-keyboard-toolbar { grid-column:1; grid-row:3; }
  .management-page #template-properties { grid-column:1; grid-row:4; height:auto; }
  .management-page .template-save-bar { position:static; }
}
@media(max-width:800px) {
  .management-page .animation-library form > button { margin-top:0; }
}
@media(max-width:600px) {
  .management-page .lovable-header { height:auto; min-height:69px; gap:12px; padding:14px 18px; flex-wrap:wrap; }
  .management-page .brand-lockup img { width:76px; }
  .management-page .brand-lockup strong { font-size:13px; }
  .management-page .lovable-main { padding:26px 18px; }
  .management-tabs [role=tab] { min-width:max-content; }
  .management-page .template-list article { align-items:flex-start; flex-direction:column; gap:14px; }
  .management-page .animation-library form { grid-template-columns:1fr; }
  .management-page .animation-list article { align-items:flex-start; flex-direction:column; }
  .editor-dialog header, .editor-dialog .add { padding:20px; }
  .editor-dialog .grid { grid-template-columns:1fr; }
  .editor-dialog .dialog-actions { flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) {
  .management-page button, .editor-dialog button { transition:none; }
}
/* Event athlete-image management; originals and public output stay unchanged. */
.editor-dialog.event-images-dialog { width:min(900px,calc(100vw - 32px)); }
.editor-dialog .athlete-images { display:block; min-height:0; padding:24px; border-top:1px solid var(--ui-border); }
.athlete-image-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.athlete-image-heading h3 { margin:0 0 6px; font:700 24px "Barlow Condensed",Arial,sans-serif; text-transform:uppercase; }
.athlete-image-heading p, .athlete-image-heading > span { margin:0; color:var(--ui-muted); font-size:13px; }
.athlete-image-heading > span { white-space:nowrap; }
.editor-dialog .athlete-image-upload { padding:16px; border:1px dashed var(--ui-border); border-radius:6px; background:var(--ui-page); }
.editor-dialog .athlete-image-upload > strong { color:var(--ui-text); font-size:16px; }
.editor-dialog .athlete-image-upload > span { color:var(--ui-muted); font-size:12px; font-weight:400; }
.editor-dialog .athlete-image-upload.is-dragging { border:1px solid var(--ui-accent); background:#94c94718; box-shadow:inset 0 0 0 1px var(--ui-accent); }
.editor-dialog .athlete-image-upload:focus-within { border-color:var(--ui-accent); }
.editor-dialog .athlete-image-upload[aria-disabled=true] { opacity:.6; }
.athlete-image-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:20px 0 12px; font-size:12px; }
.athlete-image-toolbar label { display:flex; align-items:center; gap:7px; }
.athlete-image-toolbar > span { margin-right:auto; color:var(--ui-muted); }
.editor-dialog .athlete-images button { padding:8px 10px; font-size:12px; }
.editor-dialog button.danger { color:#fff; background:#7f2940; border-color:#b84a65; }
.editor-dialog button.danger:hover { background:#512b43; border-color:#bb6475; }
.delete-display-dialog { width:min(560px,calc(100vw - 32px)); }
.event-config-title-actions { display:flex; flex:0 0 auto; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.event-config-main .empty-all-outputs, .empty-all-outputs-dialog .empty-all-final, .empty-all-outputs-dialog .empty-all-continue { border-color:#f28c28; background:#f28c28; color:#3b2100; }
.event-config-main .empty-all-outputs:hover, .empty-all-outputs-dialog .empty-all-final:hover, .empty-all-outputs-dialog .empty-all-continue:hover { border-color:#ffa64d; background:#ffa64d; color:#2a1700; }
.empty-all-outputs-dialog { width:min(560px,calc(100vw - 32px)); }
.empty-all-confirmation { display:grid; gap:18px; padding:20px 24px 24px; }
.empty-all-confirmation p { margin:0; color:var(--ui-muted); }
.empty-all-confirmation .empty-all-warning { padding:10px 12px; border-left:3px solid #f28c28; background:#f28c2818; color:#ffd27a; }
.empty-all-confirmation .template-save-actions { justify-content:flex-end; }
.delete-display-confirmation { display:grid; gap:18px; padding-top:20px; }
.delete-display-confirmation p { margin:0; color:var(--ui-muted); }
.delete-display-confirmation .template-save-actions { justify-content:flex-end; }
.athlete-image-pending { margin-top:12px; padding:14px; border:1px solid var(--ui-border); border-radius:6px; font-size:13px; }
.athlete-image-pending > div { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.athlete-image-pending p { margin:0; overflow-wrap:anywhere; }
.athlete-image-confirm { padding:14px; margin:12px 0; border:1px solid #bb6475; border-radius:6px; background:#512b4333; font-size:13px; }
.athlete-image-confirm p { margin:0 0 12px; }
.athlete-image-confirm > div { display:flex; gap:10px; justify-content:flex-end; }
.athlete-image-pending details { margin-top:10px; }
.athlete-image-pending details p { max-height:120px; overflow:auto; margin-top:8px; }
.athlete-image-status { color:var(--ui-muted); font-size:13px; line-height:1.5; }
.athlete-images progress { width:100%; height:10px; accent-color:var(--ui-accent); }
.athlete-image-errors { padding:12px; margin:12px 0; border:1px solid #bb6475; border-radius:5px; color:#ffb3b3; font-size:13px; }
.athlete-image-errors ul { max-height:180px; overflow:auto; padding-left:20px; overflow-wrap:anywhere; }
.athlete-image-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; }
.athlete-image-card { min-width:0; padding:8px; border:1px solid var(--ui-border); border-radius:6px; background:var(--ui-page); }
.athlete-image-card:has(input:checked) { border-color:var(--ui-accent); }
.athlete-image-card label { display:grid; gap:8px; cursor:pointer; }
.athlete-image-card img { width:100%; height:auto; aspect-ratio:1; object-fit:contain; border-radius:3px; background:#0b1e38; }
.athlete-image-card label span { display:flex; align-items:center; gap:6px; font-size:13px; overflow-wrap:anywhere; }
.athlete-image-card > div { display:flex; justify-content:space-between; align-items:center; gap:6px; margin-top:8px; }
.athlete-image-card small { color:var(--ui-muted); font-size:10px; }
.editor-dialog .athlete-image-card button { padding:5px 7px; font-size:11px; }
.athlete-image-empty { grid-column:1/-1; padding:24px; border:1px dashed var(--ui-border); border-radius:6px; color:var(--ui-muted); text-align:center; font-size:13px; }
.athlete-image-pagination { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:16px; font-size:12px; color:var(--ui-muted); }
.athlete-images [hidden] { display:none; }
@media(max-width:600px) {
  .editor-dialog .athlete-images { padding:20px; }
  .athlete-image-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .athlete-image-heading { align-items:flex-start; }
}
/* Keep paging and editing distinct from the high-frequency output controls. */
.event-config-main .lovable-display-row { grid-template-columns:minmax(0,1fr) 360px; grid-template-rows:auto auto; min-height:84px; cursor:pointer; }
.event-config-main .row-actions { display:contents; }
.event-config-main .utility-actions { grid-column:1; grid-row:2; display:flex; align-items:center; flex-wrap:wrap; gap:5px; min-width:0; padding:3px 8px 7px; }
.event-config-main .display-safety-actions { display:inline-flex; align-items:center; gap:5px; margin-left:auto; }
.event-config-main .primary-display-actions { grid-column:2; grid-row:1 / span 2; display:grid; grid-template-columns:1fr 1.12fr 1fr .62fr .62fr .62fr; align-self:stretch; min-height:84px; }
.event-config-main .primary-display-actions button { min-width:0; height:100%; padding:8px 6px; border:0; border-left:2px solid var(--ui-page); border-radius:0; font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.event-config-main .primary-display-actions .make-transparent { color:#3b2100; background:#f28c28; }
.event-config-main .primary-display-actions .preview-simulation { color:#142446; background:#fff; font-size:10px; }
.event-config-main .primary-display-actions .play-display { color:#142446; background:var(--ui-accent); }
.event-config-main .primary-display-actions button:not(:disabled):hover { filter:brightness(1.12); }
.event-config-main .lovable-display-list { grid-template-rows:repeat(10,minmax(84px,1fr)); overflow:auto; }
.paging-controls { display:flex; align-items:center; gap:3px; padding-right:8px; border-right:1px solid var(--ui-border); }
.event-config-main .primary-display-actions .paging-controls { display:contents; }
.event-config-main .row-actions .paging-action { min-width:0; height:100%; padding:8px 5px; border:0; border-left:2px solid var(--ui-page); border-radius:0; background:#102d59; color:var(--ui-text); }
.event-config-main .paging-toggle svg { width:15px; height:15px; fill:currentColor; stroke:none; }
.event-config-main .utility-actions .icon-action { position:relative; display:inline-flex; align-items:center; justify-content:center; width:30px; min-width:30px; height:28px; padding:4px; }
.event-config-main .utility-actions .icon-action svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.event-config-main .utility-actions .icon-action::after { content:attr(data-tooltip); display:none; position:absolute; z-index:30; bottom:calc(100% + 7px); left:50%; translate:-50% 0; width:max-content; max-width:180px; padding:6px 8px; border:1px solid var(--ui-border); border-radius:4px; color:var(--ui-text); background:#18243b; font-size:11px; font-weight:600; line-height:1.2; white-space:nowrap; box-shadow:0 4px 15px #0006; pointer-events:none; }
.event-config-main .utility-actions .icon-action:is(:hover,:focus-visible)::after { display:block; }
.event-config-main .utility-actions .delete-display { color:#ff9bad; border-color:#a94d60; background:#351e31; }
.event-config-main .row-actions .paging-action:hover { background:#244b7d; border-color:var(--ui-accent); }
.event-config-main .row-actions .paging-action:focus-visible { outline:2px solid var(--ui-accent); outline-offset:2px; }
.event-config-main .row-actions .paging-toggle[aria-pressed=true] { color:var(--ui-accent); border-color:var(--ui-accent); }
.event-config-main .row-actions .paging-action:disabled { opacity:.35; cursor:not-allowed; }
@media(max-width:900px) { .event-config-main .lovable-display-list { grid-template-rows:none; } }
.event-config-main .lovable-display-row:has(.display-drag-handle) { grid-template-columns:32px minmax(0,1fr) 360px; }
.event-config-main .lovable-display-row:not(:has(.primary-display-actions button)) { grid-template-columns:minmax(0,1fr); }
.event-config-main .lovable-display-row:has(.display-drag-handle):not(:has(.primary-display-actions button)) { grid-template-columns:32px minmax(0,1fr); }
.event-config-main .display-drag-handle {
  grid-column:1;
  grid-row:1 / span 2;
  align-self:stretch;
  min-width:28px;
  padding:0;
  border:0;
  border-right:1px solid var(--ui-border);
  border-radius:3px 0 0 3px;
  background:transparent;
  color:var(--ui-muted);
  font-size:17px;
  letter-spacing:-4px;
  cursor:grab;
}
.event-config-main .display-drag-handle:hover { color:var(--ui-accent); background:#102d59; }
.event-config-main .display-drag-handle:active { cursor:grabbing; }
.event-config-main .display-drag-handle:focus-visible { outline:2px solid var(--ui-accent); outline-offset:-3px; }
.event-config-main .lovable-display-row:has(.display-drag-handle) .display-select { grid-column:2; }
.event-config-main .lovable-display-row:has(.display-drag-handle) .utility-actions { grid-column:2; }
.event-config-main .lovable-display-row:has(.display-drag-handle) .primary-display-actions { grid-column:3; }
.event-config-main .lovable-display-row.is-dragging { opacity:.48; border-color:var(--ui-accent); }
.event-config-main .lovable-display-row.is-drop-target { box-shadow:inset 0 2px 0 var(--ui-accent); }
@media(max-width:600px) {
  .event-config-main .event-config-title-line { align-items:flex-start; flex-direction:column; }
  .event-config-title-actions { width:100%; justify-content:stretch; }
  .event-config-title-actions button { flex:1 1 150px; }
}
/* Shared status and approval locks belong to management, never the output canvas. */
.event-config-main .preview-panel #preview[data-output-state] {
  outline:4px solid var(--preview-status-color);
  outline-offset:0;
}
.event-config-main .preview-panel #preview[data-output-state="empty"] { --preview-status-color:#f28c28; }
.event-config-main .preview-panel #preview[data-output-state="live"] { --preview-status-color:#8dc63f; }
.event-config-main .preview-panel #preview[data-output-state="locked"] { --preview-status-color:#ef4444; }
.preview-panel #preview.is-simulation-empty { background:#fff; }
.preview-panel #preview.is-simulation-empty .preview-viewport { visibility:hidden; }
.display-control-panel > .section-label { flex-wrap:wrap; gap:6px 12px; }
.display-sync-state { color:var(--ui-muted); font-size:10px; margin-left:auto; }
.display-sync-state.is-stale { color:#ffbc69; }
.event-config-main .lovable-display-row.is-locked { border-color:#a94d60; }
.event-config-main .lovable-display-row.is-locked .display-state,
.event-config-main .output-status.is-locked { color:#ff9bad; background:#411e32; }
.display-lock { position:relative; display:inline-flex; }
.event-config-main .row-actions .lock-display { display:inline-flex; align-items:center; justify-content:center; width:30px; height:28px; padding:4px; background:#102d59; border:1px solid var(--ui-border); color:var(--ui-muted); }
.event-config-main .row-actions .lock-display[data-locked=true] { color:#ff718c; border-color:#a94d60; background:#351e31; }
.lock-display svg { width:18px; height:18px; }
.lock-status { display:inline-flex; align-items:center; gap:5px; min-height:28px; padding:4px 7px; border:1px solid #a94d60; border-radius:4px; color:#ff9bad; background:#351e31; font-size:11px; font-weight:700; }
.lock-status svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; }
.lock-help { display:none; position:absolute; z-index:20; bottom:calc(100% + 6px); left:0; width:220px; max-width:65vw; padding:9px 11px; border:1px solid #a94d60; border-radius:5px; color:#ffdce4; background:#18243b; font-size:12px; line-height:1.5; white-space:normal; box-shadow:0 4px 15px #0006; }
.display-lock:hover .lock-help,.display-lock:focus-within .lock-help,.display-lock.show-help .lock-help { display:block; }
.event-config-main .row-actions button:focus-visible { outline:2px solid var(--ui-accent); outline-offset:2px; }
.event-config-main .row-actions button:disabled { opacity:.45; cursor:not-allowed; }
.event-config-main .lovable-display-list { grid-template-rows:repeat(10,minmax(min-content,1fr)); }
.event-config-main .lovable-display-row { --display-status:#fff; position:relative; border-left:8px solid var(--display-status); transition:background-color .18s ease,box-shadow .18s ease; }
.event-config-main .lovable-display-row.is-previewing {
  z-index:2;
  background-color:#1c477f;
  background-image:linear-gradient(90deg,#1c477f 0%,#173d73 62%,#12335f 100%);
  box-shadow:0 0 28px #00b9ffb3,inset 0 0 34px #00b9ff45;
}
.event-config-main .lovable-display-row.is-previewing::after {
  content:"";
  position:absolute;
  z-index:20;
  inset:0;
  border:2px solid #59dcff;
  border-left:0;
  border-radius:0 4px 4px 0;
  box-shadow:inset 0 0 18px #00b9ff52;
  pointer-events:none;
}
.event-config-main .lovable-display-row.is-previewing .display-icon { color:#72e4ff; filter:drop-shadow(0 0 7px #00b9ff); }
.event-config-main .lovable-display-row.is-previewing .display-summary strong { color:#fff; text-shadow:0 0 12px #45d6ff; }
.event-config-main .lovable-display-row:has(.icon-action:is(:hover,:focus-visible)),
.event-config-main .lovable-display-row:has(.lock-display:is(:hover,:focus-visible)) { z-index:12; overflow:visible; }
.event-config-main .lovable-display-row.is-hidden { --display-status:#f28c28; }
.event-config-main .lovable-display-row.is-live { --display-status:#8dc63f; }
.event-config-main .lovable-display-row.is-locked { --display-status:#ef445f; border-left-color:var(--display-status); }
@media(max-width:520px) {
  .event-config-main .lovable-display-row { grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto 62px; }
  .event-config-main .lovable-display-row:has(.display-drag-handle) { grid-template-columns:32px minmax(0,1fr); }
  .event-config-main .primary-display-actions { grid-column:1; grid-row:3; min-height:62px; }
  .event-config-main .lovable-display-row:has(.display-drag-handle) .primary-display-actions { grid-column:2; }
  .event-config-main .primary-display-actions button { font-size:10px; }
  .event-config-main .display-summary { display:block; overflow:hidden; }
  .event-config-main .display-summary strong { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .event-config-main .display-summary .meta { display:none; }
}
.management-page .template-media-upload { display:grid; gap:12px; min-width:0; }
.management-page .template-media-upload progress { width:100%; accent-color:var(--ui-accent); }
.management-page .template-media-status { color:var(--ui-muted); font-size:13px; overflow-wrap:anywhere; }
.management-page .template-media-actions,.management-page .template-layer-actions { display:flex; flex-wrap:wrap; gap:8px; }
.management-page .template-media-actions button,.management-page .template-layer-actions button { white-space:normal; min-width:0; }
.management-page #template-media-library input,.management-page #template-media-library select { max-width:100%; min-width:0; }
.management-page .template-layer-actions { padding-top:8px; border-top:1px solid var(--ui-border); }
.tile-animation-list { display:grid; gap:10px; margin-top:16px; }
.tile-animation-list article { display:grid; grid-template-columns:160px minmax(0,1fr) auto; align-items:center; gap:16px; padding:12px; border:1px solid var(--ui-border); border-radius:6px; background:var(--ui-surface); }
.tile-animation-list img { display:block; width:160px; aspect-ratio:16/9; object-fit:cover; border:1px solid var(--ui-border); border-radius:5px; background:var(--ui-page); }
.tile-animation-list article > div { display:grid; gap:5px; min-width:0; }
.tile-animation-list strong { font-size:15px; }
.tile-animation-list code { width:max-content; max-width:100%; overflow-wrap:anywhere; color:var(--ui-accent); font-size:11px; }
.tile-animation-list p { margin:0; color:var(--ui-muted); font-size:13px; line-height:1.45; }
.tile-animation-dialog { width:min(620px,calc(100vw - 32px)); }
.tile-animation-form { display:grid; gap:16px; padding-top:20px; }
.tile-animation-form > img { width:min(320px,100%); aspect-ratio:16/9; object-fit:cover; border:1px solid var(--ui-border); border-radius:6px; }
.tile-animation-form textarea { min-height:110px; }
@media(max-width:650px) {
  .tile-animation-list article { grid-template-columns:1fr; }
  .tile-animation-list img { width:100%; }
  .tile-animation-list article > button { width:100%; }
}
.management-page .template-stage .template-event-image-element .template-example-content { display:block; position:absolute; inset:0; }
.template-grid-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
