html[data-olavsfest-portal],
html[data-olavsfest-portal] body,
html[data-olavsfest-portal][data-eventos-theme="light"],
html[data-olavsfest-portal] body[data-eventos-theme="light"] {
  color-scheme: light;
  --olavsfest-plum: #5c0860;
  --bg: #faf7fa;
  --panel: #fff;
  --panel-2: #f4edf4;
  --line: #e0d5e2;
  --line-soft: var(--line);
  --text: #352a39;
  --strong: #261a28;
  --muted: #65586a;
  --brand: var(--olavsfest-plum);
  --brand-text: #fff;
  --brand-border: #bc98c1;
  --brand-soft: #f4e9f5;
  --brand-hover: #ead9ed;
  --green: #2f6747;
  --orange: #7f4f00;
  --danger: #a32e40;
  --blue: #235f7d;
  background: var(--bg);
  color: var(--text);
}

html[data-olavsfest-portal][data-eventos-theme="dark"],
html[data-olavsfest-portal] body[data-eventos-theme="dark"] {
  color-scheme: dark;
  --bg: #19131c;
  --panel: #211923;
  --panel-2: #2d2231;
  --line: #49394d;
  --text: #ece2ed;
  --strong: #fff5ff;
  --muted: #c9b8cc;
  --brand: #eab7ed;
  --brand-text: #241126;
  --brand-border: #98689d;
  --brand-soft: #352339;
  --brand-hover: #47304b;
  --green: #9bd6b3;
  --orange: #f1c482;
  --danger: #f29c9f;
  --blue: #9cc8e0;
}

html[data-olavsfest-portal] body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
}

html[data-olavsfest-portal] .olavsfest-wordmark {
  display: block;
  width: clamp(100px, 19vw, 151px);
  flex: none;
  aspect-ratio: 283.3 / 57.3;
  background: var(--brand);
  -webkit-mask: url("/assets/olavsfest-loading-wordmark.svg") center / contain no-repeat;
  mask: url("/assets/olavsfest-loading-wordmark.svg") center / contain no-repeat;
}

html[data-olavsfest-portal] :is(.eventos-topbar-shell, .byscenen-crew-topbar-shell) {
  box-shadow: inset 0 3px var(--olavsfest-plum);
}

html[data-olavsfest-portal] :is(.eventos-topbar, .byscenen-design-topbar) {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  width: min(100%, 1340px);
  min-height: 68px;
  padding: 12px clamp(14px, 3vw, 28px);
  box-sizing: border-box;
}

html[data-olavsfest-portal] .eventos-topbar-meta {
  margin-inline-start: auto;
}

html[data-olavsfest-portal] .eventos-workspace-brand {
  order: -1;
  width: auto;
  margin: 0;
}

html[data-olavsfest-portal] :is(.eventos-topbar-actions, .olavsfest-crew-actions) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

html[data-olavsfest-portal] :is(.export-button, .topbar-action-button, .byscenen-crew-report-button) {
  min-width: 0;
  min-height: 34px;
  padding: 6px 12px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 6px;
}

html[data-olavsfest-portal] :is(.export-button, .topbar-action-button, .byscenen-crew-report-button):hover {
  background: var(--brand-hover);
}

html[data-olavsfest-portal] body.eventos-portal .dashboard {
  width: min(100%, 1340px);
  margin: 0 auto;
  padding: clamp(14px, 3vw, 28px);
}

html[data-olavsfest-portal] :is(.dashboard .welcome-card, .olavsfest-crew-hero) {
  display: block;
  margin: 0 0 20px;
  padding: clamp(20px, 5vw, 44px);
  border: 0;
  border-radius: 12px;
  background: var(--olavsfest-plum);
  color: #fff;
}

html[data-olavsfest-portal] :is(.dashboard .welcome-card h1, .olavsfest-crew-hero h1) {
  color: inherit;
  font-size: clamp(1.8rem, 4.9vw, 3.55rem);
  font-weight: 690;
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

html[data-olavsfest-portal] :is(.dashboard .welcome-eyebrow, .olavsfest-crew-hero p) {
  margin: 0 0 9px;
  color: #f1d9f0;
  font-size: .85rem;
  font-weight: 600;
}

html[data-olavsfest-portal] .dashboard .facts-cta {
  background: #fff;
  color: #5c0860;
  border-color: #fff;
}

html[data-olavsfest-portal] :is(.dashboard .panel, .dashboard .info-card, .dashboard .byscenen-calendar, .dashboard .byscenen-arrangement-section) {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(12px, 2vw, 20px);
}

html[data-olavsfest-portal] :is(.dashboard .panel-header, .dashboard .info-grid) {
  border: 0;
}

html[data-olavsfest-portal] .dashboard .panel-header {
  padding: 0 0 12px;
}

html[data-olavsfest-portal] .dashboard .olav-booking-item.is-selected {
  border-color: var(--brand-border);
  background: var(--brand-soft);
}

html[data-olavsfest-portal] .dashboard .footer-eventos-logo {
  display: none;
}

html[data-olavsfest-portal] .olavsfest-status {
  box-sizing: border-box;
  max-width: 36rem;
  margin: clamp(36px, 15vh, 132px) auto 32px;
  padding: clamp(22px, 6vw, 46px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--olavsfest-plum);
  border-radius: 12px;
  text-align: left;
}

html[data-olavsfest-portal] .olavsfest-status .olavsfest-wordmark {
  width: min(154px, 100%);
  margin-bottom: 28px;
}

html[data-olavsfest-portal] .olavsfest-status h1 {
  margin: 0 0 10px;
  color: var(--strong);
  font-size: clamp(1.7rem, 4.5vw, 2.35rem);
  line-height: 1.13;
  letter-spacing: -0.025em;
}

html[data-olavsfest-portal] .olavsfest-status p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

@media (max-width: 660px) {
  html[data-olavsfest-portal] .olavsfest-status {
    margin-inline: 16px;
  }

  html[data-olavsfest-portal] :is(.eventos-topbar-actions, .olavsfest-crew-actions) {
    margin-inline-start: auto;
  }
}

@media print {
  html[data-olavsfest-portal] :is(.dashboard .welcome-card, .olavsfest-crew-hero) {
    color: #261a28;
    background: transparent;
  }

  html[data-olavsfest-portal] :is(.dashboard .welcome-eyebrow, .olavsfest-crew-hero p) {
    color: #5c0860;
  }
}

html[data-olavsfest-portal] .olavsfest-background-loading {
  margin: 12px 0 20px;
  color: var(--muted);
}

html[data-olavsfest-portal] [data-crew-form-actions] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-olavsfest-portal] [data-crew-form-actions]:empty {
  display: none;
}

html[data-olavsfest-portal="project"] *,
html[data-olavsfest-portal="project"] *::before,
html[data-olavsfest-portal="project"] *::after {
  box-sizing: border-box;
}

html[data-olavsfest-portal="project"] body {
  font-size: 13px;
}

html[data-olavsfest-portal="project"] .eventos-topbar-shell {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

html[data-olavsfest-portal="project"] .eventos-topbar {
  margin: 0 auto;
}

html[data-olavsfest-portal="project"] .eventos-theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}

html[data-olavsfest-portal="project"] .eventos-theme-toggle[hidden] {
  display: none;
}

html[data-olavsfest-portal="project"] :is(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

html[data-olavsfest-portal="project"] .olavsfest-project {
  width: min(100%, 1340px);
  margin: 0 auto;
  padding: clamp(14px, 3vw, 28px);
}

.olavsfest-project :is(h1, h2, h3, p) {
  margin: 0;
}

.olavsfest-project h2 {
  margin-bottom: 14px;
  color: var(--strong);
  font-size: 16px;
  font-weight: 650;
}

.olavsfest-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 18px 0 0;
}

.olavsfest-project-meta dt {
  margin-bottom: 3px;
  color: #f1d9f0;
  font-size: 12px;
}

.olavsfest-project-meta dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.olavsfest-project .panel {
  margin: 0 0 16px;
  scroll-margin-top: 14px;
}

.olavsfest-project-nav,
.olavsfest-project-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.olavsfest-project-form-actions {
  margin-bottom: 0;
}

.olavsfest-project-nav a,
.olavsfest-project .olavsfest-project-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--brand);
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
}

.olavsfest-project :is(.olavsfest-project-nav a, .olavsfest-project-action):hover {
  background: var(--brand-hover);
  border-color: var(--brand-border);
}

.olavsfest-project-bookings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 10px;
}

.olavsfest-project-booking {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  overflow-wrap: anywhere;
}

.olavsfest-project-booking h3 {
  color: var(--strong);
  font-size: 15px;
}

.olavsfest-project-booking p:not(:empty) {
  margin-top: 6px;
  color: var(--muted);
}

.olavsfest-project-booking a {
  margin-top: 10px;
}

.olavsfest-project-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.olavsfest-project-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.olavsfest-project-table :is(th, td) {
  min-width: 72px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.olavsfest-project-table th {
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.olavsfest-project-table td {
  white-space: pre-line;
}

.olavsfest-project :is(.olavsfest-project-empty, footer) {
  color: var(--muted);
}

.olavsfest-project footer {
  font-size: 12px;
}

@media print {
  .olavsfest-project-meta dt {
    color: #5c0860;
  }
}
