:root {
  --hh-ink: #17211d;
  --hh-paper: #f5f1e8;
  --hh-canvas: #edf1f2;
  --hh-white: #fffdf8;
  --hh-line: #cfd5d2;
  --hh-muted: #61706a;
  --hh-control: #ffffff;
  --hh-action-bg: #17211d;
  --hh-action-text: #fffdf8;
  --hh-on-accent: #ffffff;
  --hh-link: #007bad;
  --hh-warning-surface: #fff5bf;
  --hh-shadow-ink: #17211d;
  --hh-on-yellow: #17211d;
  --hh-blue: #009fe3;
  --hh-pink: #ef2b68;
  --hh-orange: #ff7c1a;
  --hh-yellow: #ffdf24;
  --hh-green: #0e4c3a;
  --hh-purple: #6520a3;
  --hh-red: #ef3340;
  --hh-sidebar-width: 14rem;
  --hh-header-height: 3.5rem;
}

html.dark {
  color-scheme: dark;
  --hh-ink: #edf3ef;
  --hh-paper: #17201c;
  --hh-canvas: #0f1613;
  --hh-white: #1d2823;
  --hh-line: #435149;
  --hh-muted: #adb9b2;
  --hh-control: #111a16;
  --hh-action-bg: #edf3ef;
  --hh-action-text: #111a16;
  --hh-link: #63c9f3;
  --hh-warning-surface: #514713;
  --hh-shadow-ink: #080c0a;
  --hh-green: #3e9a78;
  --hh-purple: #a977d5;
  --hh-red: #ff6670;
}

/* Nova authentication shares the operator palette, including the saved theme.
   Keep these rules scoped so the authenticated workspace is unaffected. */
body[data-hoho-nova-auth] {
  min-width: 0;
  color: var(--hh-ink);
  background: #fff !important;
  font-family: Arial, Helvetica, sans-serif;
}

body[data-hoho-nova-auth] #app > .py-6 {
  min-height: 100svh;
  padding: clamp(1.5rem, 6vh, 4rem) 1.25rem 3rem;
}

body[data-hoho-nova-auth] #app > .py-6 > .py-8 {
  margin: 0 auto 2rem;
  padding: 0;
}

body[data-hoho-nova-auth] #app svg[aria-label='Horsens Holder'] {
  display: block;
  width: 8rem !important;
  height: 6rem !important;
}

body[data-hoho-nova-auth] #app form {
  width: 100%;
  max-width: 28rem;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  border: 1px solid var(--hh-ink);
  border-top: 4px solid var(--hh-blue);
  border-radius: 0;
  background: var(--hh-white);
  box-shadow: none;
}

body[data-hoho-nova-auth] #app form h2 {
  margin-bottom: 1.75rem;
  color: var(--hh-ink);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
  text-align: left;
}

body[data-hoho-nova-auth] #app form > svg {
  display: none;
}

body[data-hoho-nova-auth] #app label {
  color: var(--hh-ink);
  font-weight: 700;
}

body[data-hoho-nova-auth] #app input {
  min-height: 3rem;
  padding: .75rem;
  border: 1px solid color-mix(in srgb, var(--hh-ink) 48%, transparent);
  border-radius: 0;
  color: var(--hh-ink);
  background: var(--hh-control);
  font-size: 1rem;
  box-shadow: none;
}

body[data-hoho-nova-auth] #app input.form-control-bordered-error {
  border: 2px solid var(--hh-red);
}

body[data-hoho-nova-auth] #app form > .flex {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem .75rem;
}

body[data-hoho-nova-auth] #app form .ml-auto {
  margin-left: 0;
}

body[data-hoho-nova-auth] #app [role='checkbox'],
body[data-hoho-nova-auth] #app form a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

body[data-hoho-nova-auth] #app [role='checkbox'] {
  color: var(--hh-ink);
}

body[data-hoho-nova-auth] #app [role='checkbox'] > span:first-child {
  border-color: var(--hh-muted);
  border-radius: 0;
  background: var(--hh-control);
}

body[data-hoho-nova-auth] #app [role='checkbox'][data-state='checked'] > span:first-child {
  border-color: var(--hh-action-bg);
  background: var(--hh-action-bg);
  color: var(--hh-action-text);
}

body[data-hoho-nova-auth] #app form a {
  color: var(--hh-link);
  text-decoration: underline;
  text-underline-offset: .2em;
}

body[data-hoho-nova-auth] #app form a:hover {
  color: var(--hh-ink);
}

body[data-hoho-nova-auth] #app button[type='submit'] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid var(--hh-action-bg);
  border-radius: 0;
  background: var(--hh-action-bg);
  color: var(--hh-action-text);
  font-weight: 800;
  box-shadow: none;
}

body[data-hoho-nova-auth] #app button[type='submit']:hover:not(:disabled) {
  border-color: var(--hh-pink);
  background: var(--hh-pink);
  color: var(--hh-on-accent);
}

body[data-hoho-nova-auth] #app :is(input, button, a, [role='checkbox']):focus-visible {
  outline: 3px solid var(--hh-blue);
  outline-offset: 3px;
  box-shadow: none;
}

body[data-hoho-nova-auth] #app .help-text,
body[data-hoho-nova-auth] #app .text-gray-500:not(a) {
  color: var(--hh-muted);
  line-height: 1.5;
}

body[data-hoho-nova-auth] #app .text-red-500 {
  color: #b42332;
}

html.dark body[data-hoho-nova-auth] #app .text-red-500 {
  color: var(--hh-red);
}

/* Shell */
#nova {
  min-width: 0;
  background: var(--hh-canvas) !important;
  color: var(--hh-ink);
  font-family: Arial, Helvetica, sans-serif;
}

#nova header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--hh-header-height);
  background: var(--hh-white) !important;
  border-bottom: 1px solid var(--hh-ink) !important;
  box-shadow: none !important;
}

#nova header > div.hidden {
  width: var(--hh-sidebar-width) !important;
  flex: 0 0 var(--hh-sidebar-width);
  background: var(--hh-white) !important;
  border-right: 1px solid var(--hh-ink);
}

#nova header > div.hidden > a:first-child {
  display: flex;
  width: 100%;
  height: var(--hh-header-height);
  align-items: center;
  padding: 0.3rem 1rem;
}

#nova header > div.hidden > a:first-child svg {
  width: 6rem !important;
  height: 2.75rem !important;
}

#nova header a[href*='nova.laravel.com/licenses'] {
  display: none !important;
}

#nova header input[type='search'],
#nova header [role='search'] input {
  height: 2.5rem !important;
  min-height: 2.5rem !important;
  border: 1px solid var(--hh-ink) !important;
  border-radius: 0 !important;
  background: var(--hh-control) !important;
  color: var(--hh-ink) !important;
  font-size: .85rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

#nova header input[dusk='global-search'] {
  width: min(22rem, 34vw) !important;
  padding-right: .85rem !important;
}

#nova header input[dusk='global-search']::placeholder {
  color: var(--hh-muted) !important;
  opacity: 1;
}

#nova .hoho-organizer-registration-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.25rem;
  margin-right: .75rem;
  padding: 0 .7rem;
  border: 1px solid var(--hh-ink);
  border-radius: 0;
  background: transparent;
  color: var(--hh-ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .15s ease, color .15s ease;
}

#nova .hoho-organizer-registration-link:hover {
  background: var(--hh-ink);
  color: var(--hh-white);
}

#nova .hoho-organizer-registration-link__indicator {
  font-size: .95rem;
  line-height: 1;
}

#nova [dusk='content'] {
  min-height: calc(100vh - var(--hh-header-height));
  min-width: 0;
  background: var(--hh-canvas);
}

#nova [dusk='content'] > div:first-child {
  z-index: 30;
  background: var(--hh-paper);
}

#nova [dusk='content'] > div:nth-child(2) {
  min-width: 0;
  max-width: none;
}

/* Shared operator workspace -------------------------------------------------
   Every Nova resource inherits the same hierarchy: strong page context,
   compact tools, readable data tables and calm form surfaces. */
#nova main h1,
#nova [dusk$='-index-component'] > div > h1,
#nova [dusk$='-detail-component'] > div > h1,
#nova [dusk$='-create-component'] > div > h1,
#nova [dusk$='-edit-component'] > div > h1 {
  color: var(--hh-ink) !important;
  font-size: clamp(1.35rem, 2vw, 1.85rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

#nova [dusk$='-index-component'] > .flex,
#nova [dusk$='-detail-component'] > .flex,
#nova [dusk$='-create-component'] > .flex,
#nova [dusk$='-edit-component'] > .flex {
  align-items: center;
  gap: 1rem;
}

#nova .card,
#nova .bg-white.rounded-lg,
#nova .bg-white.shadow {
  background: var(--hh-white) !important;
  border: 1px solid color-mix(in srgb, var(--hh-ink) 78%, transparent) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#nova [dusk$='-index-component'] .card {
  overflow: hidden;
}

#nova table {
  border-collapse: separate;
  border-spacing: 0;
}

#nova table thead {
  background: var(--hh-paper) !important;
}

#nova table th {
  height: 3rem;
  padding: .65rem .85rem !important;
  color: var(--hh-muted) !important;
  font-size: .68rem !important;
  font-weight: 800 !important;
  letter-spacing: .075em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--hh-line) !important;
}

#nova table td {
  min-height: 3.25rem;
  padding: .75rem .85rem !important;
  color: var(--hh-ink) !important;
  font-size: .84rem !important;
  line-height: 1.4;
  vertical-align: middle !important;
  border-bottom-color: color-mix(in srgb, var(--hh-line) 75%, transparent) !important;
  background: var(--hh-white) !important;
}

#nova table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--hh-canvas) 42%, var(--hh-white));
}

#nova table tbody tr:hover td {
  background: color-mix(in srgb, var(--hh-yellow) 18%, var(--hh-white)) !important;
}

#nova table tbody tr:focus-within td {
  background: color-mix(in srgb, var(--hh-blue) 10%, var(--hh-white)) !important;
}

#nova table a:not(.no-underline) {
  color: var(--hh-link) !important;
  font-weight: 750;
  text-underline-offset: .18em;
}

#nova table a:hover {
  color: var(--hh-ink) !important;
}

#nova [dusk$='-index-component'] input[type='search'],
#nova [dusk$='-index-component'] [role='search'] input {
  min-height: 2.75rem;
  background: var(--hh-white) !important;
  border: 1px solid var(--hh-ink) !important;
  font-size: .9rem;
}

#nova .bg-primary-500,
#nova a.bg-primary-500,
#nova button.bg-primary-500 {
  background: var(--hh-action-bg) !important;
  border: 1px solid var(--hh-action-bg) !important;
  color: var(--hh-action-text) !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  transition: background 130ms ease, transform 130ms ease, box-shadow 130ms ease;
}

#nova .bg-primary-500:hover,
#nova a.bg-primary-500:hover,
#nova button.bg-primary-500:hover {
  background: var(--hh-pink) !important;
  border-color: var(--hh-pink) !important;
  color: var(--hh-on-accent) !important;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--hh-shadow-ink) !important;
}

#nova button:focus-visible,
#nova a:focus-visible,
#nova input:focus-visible,
#nova select:focus-visible,
#nova textarea:focus-visible,
#nova [role='button']:focus-visible {
  outline: 3px solid var(--hh-blue) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

#nova [dusk$='-create-component'] > [dusk$='-panel'],
#nova [dusk$='-edit-component'] > [dusk$='-panel'],
#nova [dusk$='-detail-component'] > [dusk$='-panel'] {
  --hh-panel-accent: var(--hh-blue);
  margin-bottom: 1.6rem !important;
}

#nova [dusk$='-create-component'] > [dusk$='-panel'] > .flex.items-center,
#nova [dusk$='-edit-component'] > [dusk$='-panel'] > .flex.items-center,
#nova [dusk$='-detail-component'] > [dusk$='-panel'] > .flex.items-center {
  min-height: 3.3rem;
  padding: .8rem 1rem !important;
  background: var(--hh-paper) !important;
  border: 1px solid var(--hh-ink) !important;
  border-top: 4px solid var(--hh-panel-accent) !important;
}

#nova [dusk$='-create-component'] > [dusk$='-panel'] > .flex.items-center h1,
#nova [dusk$='-edit-component'] > [dusk$='-panel'] > .flex.items-center h1,
#nova [dusk$='-detail-component'] > [dusk$='-panel'] > .flex.items-center h1 {
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .105em;
  text-transform: uppercase;
}

#nova [dusk$='-create-component'] > [dusk$='-panel'] > .card,
#nova [dusk$='-edit-component'] > [dusk$='-panel'] > .card,
#nova [dusk$='-detail-component'] > [dusk$='-panel'] > .card {
  border-top: 0 !important;
}

#nova [dusk$='-create-component'] .card > div,
#nova [dusk$='-edit-component'] .card > div,
#nova [dusk$='-detail-component'] .card > div {
  border-color: color-mix(in srgb, var(--hh-ink) 13%, transparent) !important;
}

#nova label,
#nova .form-control > div:first-child {
  color: var(--hh-ink) !important;
  font-weight: 700;
}

#nova input:not([type='checkbox']):not([type='radio']):not([type='range']),
#nova select,
#nova textarea {
  min-height: 2.75rem;
  background: var(--hh-control) !important;
  border: 1px solid color-mix(in srgb, var(--hh-ink) 48%, transparent) !important;
  color: var(--hh-ink) !important;
  font-size: .9rem !important;
}

#nova textarea {
  min-height: 7.5rem;
  line-height: 1.55;
}

#nova .help-text,
#nova p.text-xs.text-gray-500,
#nova .text-gray-500 {
  color: var(--hh-muted) !important;
  line-height: 1.5;
}

#nova [role='alert'] {
  border: 1px solid currentColor;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 color-mix(in srgb, currentColor 24%, transparent) !important;
  font-weight: 700;
}

#nova .badge,
#nova [class*='rounded-full'] {
  border-radius: 999px !important;
  font-weight: 800;
  letter-spacing: .01em;
}

#nova .text-center.py-8,
#nova .text-center.py-12 {
  padding-block: 4rem !important;
  color: var(--hh-muted);
}

#nova [dusk$='-index-component'] nav {
  min-height: 3rem;
  padding-inline: .85rem;
  background: var(--hh-paper);
  border-top: 1px solid var(--hh-line);
}

/* Event image cropper: a focused, editorial working surface. */
.hoho-event-image-panel { margin:1.75rem 0; border:1px solid var(--hh-ink); border-top:5px solid var(--hh-pink); background:var(--hh-white); font-family:Arial, Helvetica, sans-serif; }
[dusk='billede-tab-content'] .hoho-event-image-panel { margin:0; border:0; border-top:5px solid var(--hh-pink); }
.hoho-event-image-panel__heading { display:flex; justify-content:space-between; gap:1.5rem; align-items:center; padding:1.25rem 1.5rem; border-bottom:1px solid var(--hh-ink); }
.hoho-event-image-panel__heading p, .hoho-event-image-dialog header p { margin:0; color:var(--hh-muted); font-size:.7rem; font-weight:800; letter-spacing:.13em; line-height:1; }
.hoho-event-image-panel__heading h3, .hoho-event-image-dialog h3 { margin:.4rem 0 0; color:var(--hh-ink); font-size:1.35rem; font-weight:800; line-height:1.1; }
.hoho-event-image-panel__body { display:grid; grid-template-columns:minmax(220px,320px) minmax(0,1fr); gap:1.75rem; padding:1.5rem; }
.hoho-event-image-preview { aspect-ratio:1; display:grid; place-items:center; overflow:hidden; background:var(--hh-canvas); border:1px solid var(--hh-ink); color:var(--hh-muted); font-size:.9rem; }
.hoho-event-image-preview img { width:100%; height:100%; object-fit:cover; }
.hoho-event-image-controls { display:grid; align-content:start; gap:1rem; }
.hoho-event-image-controls label { display:grid; gap:.45rem; color:var(--hh-ink); font-size:.85rem; font-weight:800; line-height:1.25; }
.hoho-event-image-controls label em { color:var(--hh-muted); font-size:.78rem; font-style:normal; font-weight:600; }
.hoho-event-image-controls input:not([type='file']) { min-height:2.75rem; border:1px solid var(--hh-ink); border-radius:0; padding:.65rem .75rem; background:var(--hh-control); color:var(--hh-ink); font-size:.95rem; }
.hoho-event-image-controls p { max-width:42rem; margin:.15rem 0 0; color:var(--hh-muted); font-size:.85rem; line-height:1.5; }
.hoho-event-image-file-row { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem 1rem; }
.hoho-event-image-controls .hoho-event-image-file { position:relative; isolation:isolate; display:inline-flex; width:max-content; min-height:2.9rem; align-items:center; justify-content:center; gap:.6rem; overflow:hidden; border:1px solid var(--hh-ink); cursor:pointer; background:var(--hh-action-bg); color:var(--hh-action-text) !important; padding:.8rem 1rem; letter-spacing:.02em; transition:background 140ms ease, border-color 140ms ease, transform 140ms ease; }
.hoho-event-image-controls .hoho-event-image-file > span { position:relative; z-index:1; display:block; color:var(--hh-action-text) !important; font-size:.9rem; font-weight:800; line-height:1; white-space:nowrap; pointer-events:none; }
.hoho-event-image-controls .hoho-event-image-file > span[aria-hidden='true'] { font-size:1.15rem; line-height:.7; }
.hoho-event-image-controls .hoho-event-image-file:hover { border-color:var(--hh-pink); background:var(--hh-pink); color:var(--hh-on-accent) !important; transform:translateY(-1px); }
.hoho-event-image-controls .hoho-event-image-file:hover > span { color:var(--hh-on-accent) !important; }
.hoho-event-image-controls .hoho-event-image-file:has(input:focus-visible) { outline:3px solid var(--hh-blue); outline-offset:3px; }
.hoho-event-image-file input { position:absolute; inset:0; z-index:2; width:100%; height:100%; min-height:0; margin:0; padding:0; border:0; cursor:pointer; opacity:0; }
.hoho-event-image-file-name { max-width:min(28rem,100%); overflow:hidden; color:var(--hh-muted); font-size:.85rem; font-weight:700; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.hoho-event-image-file-name.has-file { color:var(--hh-ink); }
.hoho-event-image-panel [data-image-state] { color:var(--hh-green); font-size:.82rem; font-weight:800; line-height:1.35; text-align:right; }
.hoho-event-image-panel [data-image-state].is-error { color:var(--hh-red); }
.ck-editor .ck-editor__editable_inline { min-height:16rem; padding:1rem 1.15rem !important; color:var(--hh-ink); background:var(--hh-control); line-height:1.65; }
.ck-editor .ck-content ol { margin:.75rem 0; padding-left:1.75rem; list-style-type:decimal; }
.ck-editor .ck-content ul { margin:.75rem 0; padding-left:1.75rem; list-style-type:disc; }
.ck-editor .ck-content ol ol { list-style-type:lower-alpha; }
.ck-editor .ck-content ul ul { list-style-type:circle; }
.ck-editor .ck-content li { margin:.3rem 0; padding-left:.15rem; }
[dusk='event-editor-tabs-tab-panel'] { margin-top:.5rem; }
[dusk='event-editor-tabs-tab-panel'] .tab-card { overflow:visible; border:1px solid var(--hh-ink); border-radius:0; background:var(--hh-white); box-shadow:none; }
.hoho-event-context { display:grid; grid-template-columns:minmax(0,2fr) minmax(12rem,.75fr) minmax(12rem,.75fr); gap:1rem 2rem; align-items:end; min-height:4.35rem; padding:.85rem 1rem .95rem; border-bottom:1px solid var(--hh-ink); background:var(--hh-canvas); color:var(--hh-ink); animation:hoho-context-in 180ms ease-out both; }
.hoho-event-context > div { min-width:0; }
.hoho-event-context span { display:block; margin-bottom:.35rem; color:var(--hh-muted); font-size:.64rem; font-weight:800; letter-spacing:.12em; line-height:1; }
.hoho-event-context strong { display:block; overflow:hidden; color:var(--hh-ink); font-size:.9rem; font-weight:800; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.hoho-event-context__title strong { display:flex; align-items:center; gap:.4rem; font-size:1.08rem; letter-spacing:-.01em; }
.hoho-event-context__title .hoho-release-stopwatch { flex:0 0 auto; margin:0; letter-spacing:0; }
@keyframes hoho-context-in { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
[dusk='event-editor-tabs-tab-panel'] .tab-menu { position:sticky; top:calc(var(--hh-header-height) + .5rem); z-index:30; display:flex; width:100%; overflow-x:auto; overscroll-behavior-inline:contain; border:0 !important; border-bottom:1px solid var(--hh-ink) !important; background:var(--hh-white); scrollbar-color:var(--hh-muted) transparent; scrollbar-width:thin; }
[dusk='event-editor-tabs-tab-panel'] .tab-item { flex:0 0 auto; min-height:3.25rem; border:0 !important; border-right:1px solid var(--hh-line) !important; border-bottom:4px solid transparent !important; padding:.8rem 1rem; color:var(--hh-muted); font-size:.78rem; font-weight:800; letter-spacing:.015em; line-height:1.2; white-space:nowrap; transition:background 140ms ease, color 140ms ease, border-color 140ms ease; }
[dusk='event-editor-tabs-tab-panel'] .tab-item:hover { background:var(--hh-canvas); color:var(--hh-ink); }
[dusk='event-editor-tabs-tab-panel'] .tab-item.active { border-bottom-color:var(--hh-pink) !important; background:var(--hh-white); color:var(--hh-ink) !important; }
[dusk='event-editor-tabs-tab-panel'] .tab-item:focus-visible { position:relative; z-index:1; outline:3px solid var(--hh-blue); outline-offset:-4px; }
[dusk='event-editor-tabs-tab-panel'] .fields-tab { min-height:24rem; }
.hoho-event-image-dialog { width:min(760px, calc(100vw - 2rem)); max-height:calc(100dvh - 2rem); overflow:auto; border:1px solid var(--hh-ink); border-top:6px solid var(--hh-pink); padding:0; background:var(--hh-paper); color:var(--hh-ink); font-family:Arial, Helvetica, sans-serif; box-shadow:10px 10px 0 color-mix(in srgb, var(--hh-shadow-ink) 55%, transparent); }
.hoho-event-image-dialog::backdrop { background:rgba(23,33,29,.72); backdrop-filter:blur(3px); }
.hoho-event-image-dialog form { padding:1.75rem; }
.hoho-event-image-dialog header { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; padding-bottom:1.25rem; border-bottom:1px solid var(--hh-ink); }
.hoho-event-image-dialog canvas { display:block; width:min(100%,600px); aspect-ratio:1; margin:1.5rem auto; background:#d5d9d6; border:1px solid var(--hh-ink); cursor:grab; touch-action:none; }
.hoho-event-image-dialog canvas:active { cursor:grabbing; }
.hoho-event-image-dialog label { display:grid; gap:.5rem; color:var(--hh-ink); font-size:.85rem; font-weight:800; }
.hoho-event-image-dialog input[type='range'] { width:100%; accent-color:var(--hh-pink); }
.hoho-event-image-dialog form > p { margin:.65rem 0 1.5rem; color:var(--hh-muted); font-size:.88rem; font-weight:600; line-height:1.45; }
.hoho-event-image-dialog footer { display:flex; justify-content:space-between; gap:1rem; align-items:center; padding-top:1.25rem; border-top:1px solid var(--hh-line); }
.hoho-event-image-dialog button { min-height:2.75rem; border:1px solid var(--hh-ink); padding:.65rem 1rem; background:var(--hh-control); color:var(--hh-ink); font-size:.9rem; font-weight:800; line-height:1; cursor:pointer; transition:background 140ms ease, color 140ms ease, transform 140ms ease; }
.hoho-event-image-dialog button:hover { background:var(--hh-action-bg); color:var(--hh-action-text); transform:translateY(-1px); }
.hoho-event-image-dialog [data-image-confirm] { background:var(--hh-pink); color:var(--hh-on-accent); border-color:var(--hh-pink); }
.hoho-event-image-dialog [data-image-confirm]:hover { background:#cb1855; border-color:#cb1855; }
@media (max-width:900px) { .hoho-event-context { grid-template-columns:1fr 1fr; } .hoho-event-context__title { grid-column:1 / -1; } }
@media (max-width:640px) { .hoho-event-context { grid-template-columns:1fr; gap:.85rem; padding:1rem; } .hoho-event-context__title { grid-column:auto; } .hoho-event-context strong { white-space:normal; } .hoho-event-image-panel__body { grid-template-columns:1fr; } .hoho-event-image-panel__heading { align-items:flex-start; padding:1.1rem; } .hoho-event-image-panel [data-image-state] { text-align:left; } .hoho-event-image-file-row, .hoho-event-image-controls .hoho-event-image-file { width:100%; } .hoho-event-image-dialog form { padding:1.1rem; } .hoho-event-image-dialog footer { align-items:stretch; flex-direction:column-reverse; } .hoho-event-image-dialog footer button { width:100%; } }

@media (min-width: 1024px) {
  #nova [dusk='content'] > div:first-child {
    position: fixed !important;
    top: var(--hh-header-height) !important;
    bottom: 0 !important;
    left: 0 !important;
    width: var(--hh-sidebar-width) !important;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1.25rem 0.75rem 2rem !important;
    border-right: 1px solid var(--hh-ink);
  }

  #nova [dusk='content'] > div:nth-child(2) {
    margin-left: var(--hh-sidebar-width) !important;
    padding: 2rem clamp(1.5rem, 3vw, 3.25rem) !important;
  }
}

/* Navigation */
#nova [dusk='sidebar-menu'] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#nova .sidebar-menu {
  gap: 0 !important;
  padding-bottom: 2rem !important;
}

#nova .sidebar-menu > .relative {
  margin-bottom: 0.45rem;
}

#nova .sidebar-menu > .relative > a,
#nova .sidebar-menu > .relative > button {
  position: relative;
  min-height: 2.75rem;
  align-items: center !important;
  padding: 0.55rem 0.55rem 0.55rem 0.75rem !important;
  overflow: hidden;
  border-radius: 0 !important;
  color: var(--hh-ink) !important;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

#nova .sidebar-menu > .relative > a::before,
#nova .sidebar-menu > .relative > button::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0.25rem;
  background: var(--hh-pink);
  transform: scaleY(0.35);
  transform-origin: center;
  transition: transform 140ms ease;
}

#nova .sidebar-menu > .relative:nth-child(2) > button::before {
  background: var(--hh-blue);
}

#nova .sidebar-menu > .relative:nth-child(3) > button::before {
  background: var(--hh-orange);
}

#nova .sidebar-menu > .relative:nth-child(4) > button::before {
  background: var(--hh-purple);
}

#nova .sidebar-menu > .relative > a:hover,
#nova .sidebar-menu > .relative > button:hover {
  background: color-mix(in srgb, var(--hh-ink) 7%, transparent) !important;
  transform: translateX(2px);
}

#nova .sidebar-menu > .relative > a:hover::before,
#nova .sidebar-menu > .relative > button:hover::before,
#nova .sidebar-menu > .relative > a.font-bold.text-primary-500::before {
  transform: scaleY(1);
}

#nova .sidebar-menu > .relative > a.font-bold.text-primary-500 {
  background: var(--hh-action-bg) !important;
  color: var(--hh-action-text) !important;
}

#nova .sidebar-menu > .relative > a > span:first-of-type,
#nova .sidebar-menu > .relative > button > span:first-of-type {
  width: 1.5rem !important;
  height: 1.5rem !important;
}

#nova .sidebar-menu > .relative > a > span:nth-of-type(2),
#nova .sidebar-menu > .relative > button > span:nth-of-type(2) {
  padding: 0 0.65rem !important;
  font-size: 0.875rem !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#nova .sidebar-menu > .relative > div.mt-1 {
  position: relative;
  margin: 0.25rem 0 0.65rem 1.45rem !important;
  padding-left: 0.8rem;
  border-left: 1px solid color-mix(in srgb, var(--hh-ink) 25%, transparent);
}

#nova .sidebar-menu > .relative > div.mt-1 a {
  min-height: 2rem !important;
  padding: 0.25rem 0.35rem !important;
  border-radius: 0 !important;
  color: var(--hh-muted) !important;
  transition: color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

#nova .sidebar-menu > .relative > div.mt-1 a > span:first-child {
  display: none;
}

#nova .sidebar-menu > .relative > div.mt-1 a > span:nth-child(2) {
  padding: 0 0.35rem !important;
  font-size: 0.88rem !important;
  font-weight: 500;
}

#nova .sidebar-menu > .relative > div.mt-1 a:hover {
  background: transparent !important;
  color: var(--hh-ink) !important;
  transform: translateX(2px);
}

#nova .sidebar-menu > .relative > div.mt-1 a[data-active-link='true'] {
  background: var(--hh-yellow) !important;
  color: var(--hh-on-yellow) !important;
  font-weight: 700;
}

#nova .sidebar-menu > .relative > div.mt-1 a[data-active-link='true'] span {
  color: var(--hh-on-yellow) !important;
}

/* Event-edition controls are shared by the event index and map and follow the
   active Nova theme instead of injecting a light-only island. */
#nova .hoho-event-edition-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .75rem;
  margin: 0 0 1rem;
  padding: .875rem 1rem;
  background: var(--hh-white);
  border: 1px solid var(--hh-ink);
  border-top: 4px solid var(--hh-blue);
  color: var(--hh-ink);
  font-weight: 700;
}

#nova .hoho-event-edition-bar__group {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

#nova .hoho-event-edition-bar__group + .hoho-event-edition-bar__group {
  padding-top: .15rem;
}

#nova .hoho-event-edition-bar__label {
  min-width: 7.5rem;
  margin-right: .25rem;
  font-size: .72rem;
  letter-spacing: .08em;
}

#nova .hoho-event-edition-bar__button {
  min-height: 2.25rem;
  padding: .4rem .75rem;
  background: var(--hh-control) !important;
  border: 1px solid var(--hh-ink) !important;
  color: var(--hh-ink) !important;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

#nova .hoho-event-edition-bar__button[aria-pressed='true'] {
  background: var(--hh-pink) !important;
  border-color: var(--hh-pink) !important;
  color: var(--hh-on-accent) !important;
}

#nova .hoho-event-edition-bar__button:hover {
  border-color: var(--hh-blue) !important;
}

#nova .hoho-event-edition-bar__group--status {
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  scrollbar-color: var(--hh-muted) transparent;
  scrollbar-width: thin;
}

#nova .hoho-event-edition-bar__group--status .hoho-event-edition-bar__label {
  position: sticky;
  left: 0;
  z-index: 1;
  flex: 0 0 auto;
  background: var(--hh-white);
}

#nova .hoho-event-edition-bar__button--status {
  flex: 0 0 auto;
  min-height: 1.9rem;
  padding: .25rem .05rem;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  color: var(--hh-muted) !important;
}

#nova .hoho-event-edition-bar__button--status[aria-pressed='true'] {
  background: transparent !important;
  border-bottom-color: var(--hh-pink) !important;
  color: var(--hh-ink) !important;
}

#nova .hoho-event-edition-bar__button--status:hover {
  border-bottom-color: var(--hh-blue) !important;
  color: var(--hh-ink) !important;
}

/* Dashboard */
#nova [dusk^='dashboard-'] .grid {
  gap: 1rem !important;
}

#nova [dusk^='dashboard-'] .grid > div.relative.overflow-hidden.bg-white {
  --hh-card-accent: var(--hh-blue);
  min-height: 9.25rem !important;
  padding: 1.55rem 1.35rem 1.15rem !important;
  overflow: hidden;
  background: var(--hh-white) !important;
  border: 1px solid var(--hh-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

#nova [dusk^='dashboard-'] .grid > div.relative.overflow-hidden.bg-white::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.38rem;
  background: var(--hh-card-accent);
}

#nova [dusk^='dashboard-'] .grid > div.relative.overflow-hidden.bg-white:nth-child(2) { --hh-card-accent: var(--hh-orange); }
#nova [dusk^='dashboard-'] .grid > div.relative.overflow-hidden.bg-white:nth-child(3) { --hh-card-accent: var(--hh-green); }
#nova [dusk^='dashboard-'] .grid > div.relative.overflow-hidden.bg-white:nth-child(4) { --hh-card-accent: var(--hh-yellow); }
#nova [dusk^='dashboard-'] .grid > div.relative.overflow-hidden.bg-white:nth-child(5) { --hh-card-accent: var(--hh-pink); }
#nova [dusk^='dashboard-'] .grid > div.relative.overflow-hidden.bg-white:nth-child(6) { --hh-card-accent: var(--hh-purple); }
#nova [dusk^='dashboard-'] .grid > div.relative.overflow-hidden.bg-white:nth-child(7) { --hh-card-accent: var(--hh-red); }
#nova [dusk^='dashboard-'] .grid > div.relative.overflow-hidden.bg-white:nth-child(8) { --hh-card-accent: var(--hh-blue); }
#nova [dusk^='dashboard-'] .grid > div.relative.overflow-hidden.bg-white:last-child { --hh-card-accent: var(--hh-red); }

#nova [dusk^='dashboard-'] .grid > div.relative.overflow-hidden.bg-white:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--hh-shadow-ink) !important;
}

#nova [dusk^='dashboard-'] .grid > .hoho-dashboard-shortcut {
  cursor: pointer;
}

#nova [dusk^='dashboard-'] .grid > .hoho-dashboard-shortcut::after {
  content: '→';
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  color: var(--hh-card-accent);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 150ms ease;
}

#nova [dusk^='dashboard-'] .grid > .hoho-dashboard-shortcut:hover::after,
#nova [dusk^='dashboard-'] .grid > .hoho-dashboard-shortcut:focus-visible::after {
  transform: translateX(0.25rem);
}

#nova [dusk^='dashboard-'] .grid > .hoho-dashboard-shortcut:focus-visible {
  outline: 3px solid var(--hh-card-accent) !important;
  outline-offset: 3px;
}

#nova [dusk^='dashboard-'] .grid > div h3 {
  color: var(--hh-ink) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#nova [dusk^='dashboard-'] .grid > div .rounded-lg.bg-primary-500 {
  width: 3.25rem !important;
  height: 3.25rem !important;
  border-radius: 0 !important;
  background: var(--hh-card-accent) !important;
}

#nova [dusk^='dashboard-'] .grid > div:nth-child(4) .rounded-lg.bg-primary-500 {
  color: var(--hh-on-yellow) !important;
}

#nova [dusk^='dashboard-'] .grid > div .rounded-lg.bg-primary-500 svg {
  width: 1.45rem;
  height: 1.45rem;
  stroke-width: 1.8;
}

#nova [dusk^='dashboard-'] .grid > div .text-4xl {
  color: var(--hh-ink) !important;
  font-size: 2.5rem !important;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.07em;
}

#nova [dusk^='dashboard-'] .grid > div .text-gray-400 {
  color: var(--hh-muted) !important;
}

#nova .hoho-google-place-autocomplete {
  display: block;
  width: 100%;
  min-height: 2.5rem;
  color-scheme: inherit;
  border: 1px solid color-mix(in srgb, var(--hh-ink) 35%, transparent);
  background: var(--hh-control);
}

#nova .hoho-google-address-status {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
}

#nova .hoho-google-address-status--loading,
#nova .hoho-google-address-status--active {
  color: #1d4ed8;
}

#nova .hoho-google-address-status--success {
  color: #166534;
}

#nova .hoho-google-address-status--error {
  color: #b91c1c;
}

/* Arrangement detail: a Bauhaus programme board rather than a single data dump. */
#nova [dusk='events-detail-component'] > [dusk$='-panel'] {
  --hh-panel-accent: var(--hh-pink);
  position: relative;
  margin-bottom: 2.5rem !important;
  padding-top: 0.5rem;
}

#nova [dusk='events-detail-component'] > [dusk$='-panel']:nth-child(2) { --hh-panel-accent: var(--hh-blue); }
#nova [dusk='events-detail-component'] > [dusk$='-panel']:nth-child(3) { --hh-panel-accent: var(--hh-orange); }
#nova [dusk='events-detail-component'] > [dusk$='-panel']:nth-child(4) { --hh-panel-accent: var(--hh-purple); }
#nova [dusk='events-detail-component'] > [dusk$='-panel']:nth-child(5) { --hh-panel-accent: var(--hh-yellow); }
#nova [dusk='events-detail-component'] > [dusk$='-panel']:nth-child(6) { --hh-panel-accent: var(--hh-green); }
#nova [dusk='events-detail-component'] > [dusk$='-panel']:nth-child(7) { --hh-panel-accent: var(--hh-red); }

#nova [dusk='events-detail-component'] > [dusk$='-panel'] > .flex.items-center {
  position: relative;
  min-height: 3.5rem;
  margin: 0 !important;
  padding: 0.75rem 1rem 0.7rem 1.15rem;
  background: var(--hh-paper);
  border-top: 4px solid var(--hh-panel-accent);
  border-right: 1px solid var(--hh-ink);
  border-left: 1px solid var(--hh-ink);
}

#nova [dusk='events-detail-component'] > [dusk$='-panel'] > .flex.items-center h1 {
  color: var(--hh-ink) !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#nova [dusk='events-detail-component'] > [dusk$='-panel'] > .card {
  overflow: hidden;
  padding: 0 !important;
  background: var(--hh-white) !important;
  border: 1px solid var(--hh-ink) !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

#nova [dusk='events-detail-component'] > [dusk$='-panel']:hover > .card {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--hh-shadow-ink) !important;
}

#nova [dusk='events-detail-component'] > [dusk$='-panel'] > .card > div {
  min-height: 3.15rem;
  padding: 0.8rem 1.15rem !important;
  border-color: color-mix(in srgb, var(--hh-ink) 14%, transparent) !important;
}

#nova [dusk='events-detail-component'] > [dusk$='-panel'] > .card > div > div:first-child {
  color: var(--hh-muted) !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#nova [dusk='events-detail-component'] > [dusk$='-panel'] > .card a.link-default {
  color: var(--hh-blue) !important;
  font-weight: 800;
  text-decoration: none;
  transition: color 120ms ease, transform 120ms ease;
}

#nova [dusk='events-detail-component'] > [dusk$='-panel'] > .card a.link-default:hover {
  color: var(--hh-ink) !important;
  transform: translateX(2px);
}

#nova [dusk='events-detail-component'] > [dusk$='-panel'] .table {
  border: 0 !important;
  box-shadow: none !important;
}

#nova [dusk='events-detail-component'] > [dusk$='-panel'] .table thead {
  background: var(--hh-paper) !important;
}

#nova .hoho-primary-image {
  display: block;
  width: min(100%, 32rem);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--hh-ink);
  box-shadow: 4px 4px 0 var(--hh-panel-accent, var(--hh-blue));
}

#nova .hoho-primary-image-empty {
  color: var(--hh-muted);
  font-weight: 700;
}

/* Manual arrangement form: clear programme blocks instead of an anonymous field wall. */
#nova [dusk='events-create-component'] > [dusk$='-panel'],
#nova [dusk='events-edit-component'] > [dusk$='-panel'] {
  --hh-panel-accent: var(--hh-pink);
  margin-bottom: 1.5rem !important;
}

#nova [dusk='events-create-component'] > [dusk$='-panel']:nth-child(2),
#nova [dusk='events-edit-component'] > [dusk$='-panel']:nth-child(2) { --hh-panel-accent: var(--hh-blue); }
#nova [dusk='events-create-component'] > [dusk$='-panel']:nth-child(3),
#nova [dusk='events-edit-component'] > [dusk$='-panel']:nth-child(3) { --hh-panel-accent: var(--hh-orange); }
#nova [dusk='events-create-component'] > [dusk$='-panel']:nth-child(4),
#nova [dusk='events-edit-component'] > [dusk$='-panel']:nth-child(4) { --hh-panel-accent: var(--hh-purple); }

#nova [dusk='events-create-component'] > [dusk$='-panel'] > .flex.items-center,
#nova [dusk='events-edit-component'] > [dusk$='-panel'] > .flex.items-center {
  min-height: 3.25rem;
  padding: .75rem 1rem;
  background: var(--hh-paper);
  border: 1px solid var(--hh-ink);
  border-top: 4px solid var(--hh-panel-accent);
}

#nova [dusk='events-create-component'] > [dusk$='-panel'] > .card,
#nova [dusk='events-edit-component'] > [dusk$='-panel'] > .card {
  border: 1px solid var(--hh-ink) !important;
  border-top: 0 !important;
  box-shadow: none !important;
}

/* Common controls */
#nova button,
#nova [role='button'],
#nova input,
#nova select,
#nova textarea,
#nova .card {
  border-radius: 0 !important;
}

#nova input,
#nova select,
#nova textarea {
  border-color: color-mix(in srgb, var(--hh-ink) 35%, transparent) !important;
}

#nova tr.hoho-reopening-requested-row > td {
  background: var(--hh-warning-surface) !important;
}

#nova .hoho-event-title-with-release {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

#nova .hoho-release-stopwatch {
  display: inline-flex;
  color: var(--hh-orange);
}

#nova .hoho-release-stopwatch svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#nova .mt-8.leading-normal.text-xs.text-gray-500.space-y-1 {
  display: none !important;
}

@media (max-width: 1023px) {
  #nova [dusk='content'] > div:nth-child(2) {
    width: 100%;
    margin-left: 0 !important;
    padding: 1.25rem !important;
  }

  #nova [dusk='sidebar-menu'][data-screen='mobile'] {
    padding: 0.5rem;
    background: var(--hh-paper);
  }
}

@media (max-width: 900px) {
  #nova [dusk^='dashboard-'] .grid > div.relative.overflow-hidden.bg-white {
    grid-column: span 6 / span 6 !important;
  }
}

@media (max-width: 640px) {
  #nova [dusk^='dashboard-'] .grid > div.relative.overflow-hidden.bg-white {
    grid-column: span 12 / span 12 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #nova *,
  #nova *::before,
  #nova *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
