:root {
  --bg-top: rgb(10, 31, 46);
  --bg-mid: rgb(15, 77, 82);
  --bg-bottom: rgb(51, 41, 107);
  --tab-accent: rgb(36, 230, 214);
  --card: rgba(255, 255, 255, 0.12);
  --card-border: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.74);
  --dark-text: #071116;
  --user-green: #2db96f;
  --advisor-blue: #3c6df0;
  --system-gray: #6d7280;
  --vipps: #ff5b24;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(36, 230, 214, 0.16), transparent 26%),
    linear-gradient(135deg, var(--bg-top), var(--bg-mid) 48%, var(--bg-bottom));
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.app-stage {
  min-height: 100vh;
  display: block;
  padding: 0;
}

.phone-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: linear-gradient(135deg, var(--bg-top), var(--bg-mid) 45%, var(--bg-bottom));
  box-shadow: none;
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  height: 76px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0));
}

.top-bar__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.screen {
  position: relative;
  padding-top: 76px;
  padding-bottom: 92px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  min-height: 100vh;
}

.screen:not(.screen--active) {
  display: none;
}

.home-wrapper {
  height: 100%;
  padding: 0;
}

.home-webcard {
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.home-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.scroll-screen {
  height: 100%;
  overflow: auto;
  padding: 20px 22px;
}

.scroll-screen--chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}

.hero-label {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.glass-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(8px);
}

.glass-card + .glass-card {
  margin-top: 12px;
}

.event-card__image {
  height: 180px;
  border-radius: 12px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
}

.event-card h2,
.info-header h2,
.chat-heading,
.chat-title {
  margin: 0;
}

.event-card p,
.event-card .meta-line,
.info-header p,
.chat-copy,
.chat-subtitle,
.status-card p {
  color: var(--muted);
}

.info-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
}

.info-header p {
  margin: 4px 0 16px;
}

.info-links {
  display: grid;
  gap: 10px;
}

.info-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  font-weight: 700;
}

.chat-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-top: 8px;
}

.chat-subtitle {
  margin: 6px 0 10px;
  font-size: 1.02rem;
  line-height: 1.5;
}

.chat-heading {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.chat-copy {
  margin: 0 0 14px;
}

.info-banner {
  margin-bottom: 14px;
}

.status-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: #32d56a;
  box-shadow: 0 0 0 4px rgba(50, 213, 106, 0.18);
}

.start-chat-button {
  width: 100%;
  margin-top: 8px;
  padding: 16px 18px;
  border: 0;
  border-radius: 18px;
  background: rgb(38, 242, 217);
  color: var(--dark-text);
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.chat-room {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 420px;
  margin-top: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.message-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.message-row--user {
  align-items: flex-end;
}

.sender,
.message-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.66);
}

.message-bubble {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  max-width: min(80%, 540px);
  line-height: 1.5;
}

.message-bubble--support {
  background: var(--advisor-blue);
}

.message-bubble--user {
  background: var(--user-green);
}

.messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.composer {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
}

.composer__input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
}

.composer__send {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(31, 199, 189);
  color: white;
  cursor: pointer;
}

.tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px 10px 16px;
  background: rgba(9, 20, 30, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-bar__item {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 10px 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 0.76rem;
}

.tab-bar__item--active {
  color: var(--tab-accent);
}

.tab-icon {
  font-size: 1rem;
  line-height: 1;
}

.floating-chat {
  position: absolute;
  right: 28px;
  bottom: 112px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  color: white;
}

.floating-chat__trigger {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.floating-chat__teaser {
  display: block;
  max-width: 320px;
  padding: 22px 24px;
  border-radius: 24px 24px 24px 6px;
  background: rgba(39, 109, 140, 0.96);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.floating-chat__fab {
  display: inline-grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(33, 131, 145, 0.96), rgba(24, 96, 128, 0.96));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.floating-chat__icon {
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: white;
  font-size: 2.4rem;
  line-height: 1;
}

.vipps-link {
  position: fixed;
  left: 24px;
  top: 50%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 14px;
  border-radius: 22px;
  color: white;
  background: linear-gradient(180deg, #ff7f57, var(--vipps));
  box-shadow: 0 18px 42px rgba(255, 91, 36, 0.3);
  transform: translateY(-50%);
}

.vipps-link__small {
  font-size: 0.78rem;
  font-weight: 700;
}

.vipps-link__big {
  font-size: 1.25rem;
  font-weight: 800;
}

.store-links {
  position: fixed;
  left: 16px;
  top: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9;
  max-width: 180px;
}

.store-links__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.store-button {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.store-button__badge {
  display: block;
  height: 44px;
}

.store-button--apple .store-button__badge {
  height: 50px;
}

@media (max-width: 980px) {
  .app-stage {
    padding: 0;
  }

  .phone-shell {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .vipps-link {
    top: auto;
    bottom: 102px;
    left: 10px;
    transform: none;
    padding: 12px 12px;
  }
}


.empty-state {
  padding: 18px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.82);
}

.events-list {
  display: grid;
  gap: 12px;
}

.event-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.info-link--bright,
.staff-button {
  color: #071116;
  background: linear-gradient(90deg, rgb(43, 240, 219), rgb(31, 219, 209));
  border: 1px solid rgba(255,255,255,0.18);
}

.staff-box {
  padding-top: 18px;
}

.staff-button {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}

.staff-box p {
  margin: 10px 0 0;
  text-align: center;
  color: rgba(255,255,255,0.72);
  font-size: 0.84rem;
}

.big-title {
  margin: 0 0 16px;
  font-size: 2.5rem;
  font-weight: 800;
}

.signup-fields {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.line-input {
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.28);
  background: transparent;
  color: white;
  padding: 10px 4px;
}

.line-input::placeholder {
  color: rgba(255,255,255,0.75);
}

.quiz-title {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}

.quiz-word {
  margin-bottom: 16px;
  font-size: 2.8rem;
  font-weight: 800;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;
}

.closed-view,
.game-done {
  text-align: center;
  padding-top: 20px;
}

.closed-view h2,
.game-done h2 {
  margin: 0 0 10px;
}



.chat-room[hidden] {
  display: none !important;
}

.chat-room--live {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.chat-room--live .messages {
  margin-top: 8px;
}

@media (min-width: 981px) {
  .screen[data-screen="chat"] .scroll-screen {
    max-width: 760px;
    margin: 0 auto;
  }

  .screen[data-screen="events"] .scroll-screen,
  .screen[data-screen="spill"] .scroll-screen,
  .screen[data-screen="info"] .scroll-screen {
    max-width: 760px;
    margin: 0 auto;
  }
}


.top-bar--tablet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 26px 0;
  height: 96px;
}

.segmented-nav {
  display: inline-grid;
  grid-template-columns: repeat(5, auto);
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(196, 238, 244, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}

.segmented-nav__item {
  min-width: 88px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #101820;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.segmented-nav__item--active {
  color: rgb(19, 203, 194);
  background: rgba(19, 203, 194, 0.18);
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 116px;
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  background: rgba(199, 231, 255, 0.95);
  color: rgb(38, 242, 217);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.screen {
  padding-top: 80px;
  padding-bottom: 12px;
  overflow-y: auto;
}

.chat-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: min(1080px, 100%);
  margin: 0 auto;
  padding: 6px 20px 18px;
}

.chat-system-wrap {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 0;
}

.system-label,
.system-time {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.system-bubble {
  max-width: min(1120px, 100%);
  padding: 16px 22px;
  border-radius: 22px;
  background: rgba(170, 164, 170, 0.88);
  color: white;
  font-size: clamp(1.1rem, 2vw, 1.2rem);
  line-height: 1.45;
}

.chat-room {
  flex: 1;
  min-height: 0;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.messages {
  gap: 18px;
  padding: 0 4px 12px;
}

.message-row {
  margin-bottom: 0;
}

.sender,
.message-time {
  font-size: 0.88rem;
  font-weight: 700;
}

.message-row--support {
  align-items: center;
}

.message-row--support .sender,
.message-row--support .message-time {
  align-self: center;
}

.message-row--support .message-bubble {
  background: rgba(170, 164, 170, 0.88);
  color: white;
}

.message-row--user {
  align-items: flex-end;
}

.message-bubble {
  max-width: min(780px, 88%);
  padding: 16px 22px;
  border-radius: 22px;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.message-bubble--user {
  background: #34c86f;
}

.composer--fixed {
  position: relative;
  margin: 0;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(110, 72, 173, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.composer__input {
  background: white;
  font-size: 1rem;
}

.composer__send {
  width: 58px;
  height: 58px;
  background: rgba(160, 154, 163, 0.92);
}

.tab-bar,
.chat-title,
.chat-subtitle,
.chat-heading,
.chat-copy,
.info-banner,
.status-card,
.start-chat-button {
  display: none !important;
}

@media (max-width: 980px) {
  .top-bar--tablet {
    gap: 10px;
    padding: 10px 12px 0;
    height: 92px;
  }

  .segmented-nav {
    gap: 4px;
    padding: 6px;
    width: calc(100% - 120px);
  }

  .segmented-nav__item {
    min-width: 0;
    padding: 10px 8px;
    font-size: 0.95rem;
  }

  .close-button {
    min-width: 92px;
    min-height: 56px;
    font-size: 0.95rem;
  }

  .chat-shell {
    padding: 14px 12px 12px;
  }

  .system-bubble,
  .message-bubble {
    max-width: 100%;
  }
}


.message-row--advisor {
  align-items: flex-start;
}

.message-row--advisor .sender,
.message-row--advisor .message-time {
  align-self: flex-start;
}

.message-row--advisor .message-bubble {
  background: #456fe8;
  color: white;
}

.message-row--system {
  align-items: center;
}

.message-row--system .sender,
.message-row--system .message-time {
  align-self: center;
}

.message-row--system .message-bubble {
  background: rgba(170, 164, 170, 0.88);
  color: white;
}


.close-button {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.screen[data-screen="chat"].screen--active ~ .top-bar .close-button,
.phone-shell:has(.screen[data-screen="chat"].screen--active) .close-button {
  opacity: 1;
  pointer-events: auto;
}


.floating-chat {
  display: inline-flex;
}

.screen[data-screen="chat"] .floating-chat,
.screen[data-screen="events"] .floating-chat,
.screen[data-screen="spill"] .floating-chat,
.screen[data-screen="info"] .floating-chat {
  display: none;
}

.staff-login-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.staff-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 18, 0.68);
  backdrop-filter: blur(8px);
}

.staff-login-card {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  margin: 10vh auto 0;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(10,31,46,0.97), rgba(15,77,82,0.96), rgba(51,41,107,0.95));
  box-shadow: 0 24px 90px rgba(0,0,0,0.35);
}

.staff-login-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.staff-login-card__header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
}

.staff-login-close {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;
}

.staff-login-form {
  display: grid;
  gap: 12px;
}

.staff-login-input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  color: white;
}

.staff-login-input::placeholder {
  color: rgba(255,255,255,0.68);
}

.staff-login-submit {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, rgb(43, 240, 219), rgb(31, 219, 209));
  color: #071116;
  font-weight: 800;
  cursor: pointer;
}

.staff-login-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.staff-login-status {
  min-height: 20px;
  margin: 0;
  color: rgba(255,255,255,0.82);
}

.staff-login-status--error {
  color: #ffb3b3;
}

.staff-login-status--success {
  color: #9effc9;
}

.staff-portal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.staff-portal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 11, 19, 0.68);
  backdrop-filter: blur(8px);
}

.staff-portal__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1280px, calc(100vw - 48px));
  height: min(900px, calc(100vh - 48px));
  margin: 24px auto;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(10,31,46,0.98), rgba(15,77,82,0.97), rgba(51,41,107,0.96));
  box-shadow: 0 34px 110px rgba(0,0,0,0.42);
  overflow: hidden;
}

.staff-portal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.staff-portal__header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
}

.staff-portal__header p {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.72);
}

.staff-portal__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-portal__ghost,
.staff-portal__close,
.staff-jump-button,
.staff-thread__send,
.staff-portal__tab {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.staff-portal__ghost,
.staff-portal__close {
  min-height: 46px;
  padding: 0 18px;
  background: rgba(255,255,255,0.12);
  color: white;
  font-weight: 700;
}

.staff-portal__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.staff-portal__tab {
  min-height: 42px;
  padding: 0 16px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-weight: 700;
}

.staff-portal__tab--active {
  background: rgb(43, 240, 219);
  color: #071116;
}

.staff-panel {
  min-height: 0;
  flex: 1;
}

.staff-panel[hidden],
.staff-portal[hidden],
.staff-login-modal[hidden] {
  display: none !important;
}

.staff-panel--simple {
  display: grid;
  place-items: center;
}

.staff-simple-card {
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.09);
  text-align: center;
}

.staff-simple-card h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.staff-simple-card p {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.76);
}

.staff-jump-button,
.staff-thread__send {
  min-height: 50px;
  padding: 0 20px;
  background: linear-gradient(90deg, rgb(43, 240, 219), rgb(31, 219, 209));
  color: #071116;
  font-weight: 800;
}

.staff-panel:not([hidden]) {
  display: grid;
}

.staff-conversation-panel,
#staff-conversation-panel {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
}

.staff-sidebar,
.staff-thread {
  min-height: 0;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.09);
}

.staff-sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.staff-sidebar__header {
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.staff-sidebar__header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.staff-sidebar__header p {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.72);
}

.staff-queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 14px;
}

.staff-queue-item {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  color: white;
  text-align: left;
  cursor: pointer;
}

.staff-queue-item--active {
  border-color: rgba(43,240,219,0.55);
  background: rgba(43,240,219,0.12);
}

.staff-queue-item__top,
.staff-queue-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.staff-queue-item__top {
  margin-bottom: 8px;
  font-weight: 700;
}

.staff-queue-item__meta {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}

.staff-thread {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.staff-thread__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.staff-thread__header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.staff-thread__header p {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.72);
}

.staff-thread__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-thread__messages {
  overflow: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.staff-message {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.staff-message--user {
  align-items: flex-end;
}

.staff-message--system {
  align-items: center;
}

.staff-message--advisor {
  align-items: flex-start;
}

.staff-message__sender,
.staff-message__time {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.68);
  font-weight: 700;
}

.staff-message__bubble {
  max-width: min(720px, 88%);
  padding: 14px 18px;
  border-radius: 18px;
  line-height: 1.5;
}

.staff-message--user .staff-message__bubble {
  background: #34c86f;
  color: white;
}

.staff-message--advisor .staff-message__bubble {
  background: #456fe8;
  color: white;
}

.staff-message--system .staff-message__bubble {
  background: rgba(170, 164, 170, 0.88);
  color: white;
}

.staff-thread__composer {
  display: flex;
  gap: 10px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.staff-thread__input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: white;
}

@media (max-width: 980px) {
  .staff-portal__card {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    margin: 10px auto;
    padding: 16px;
    border-radius: 24px;
  }

  #staff-conversation-panel {
    grid-template-columns: 1fr;
  }

  .staff-thread__header {
    flex-direction: column;
  }

  .staff-thread__composer {
    flex-direction: column;
  }

  .staff-thread__send {
    width: 100%;
  }
}

.chat-entry {
  display: grid;
  gap: 18px;
  align-content: start;
  width: 100%;
  max-width: 100%;
  padding-top: 0;
}

.chat-entry__copy h1,
.chat-entry__privacy h2 {
  margin: 0;
}

.chat-entry__copy h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 800;
}

.chat-entry__copy p,
.chat-entry__privacy p,
.chat-entry__status p {
  margin: 0;
  color: rgba(255,255,255,0.78);
}

.chat-entry__copy {
  display: grid;
  gap: 10px;
}

.chat-entry__privacy {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 20px;
}

.chat-entry__status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.chat-entry__status strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
}

.chat-entry__status-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #32d56a;
  box-shadow: 0 0 0 8px rgba(50, 213, 106, 0.14);
}

.start-chat-button--entry {
  display: block !important;
  width: 100%;
  min-height: 66px;
  margin-top: 4px;
  border-radius: 22px;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.start-chat-button--entry:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-conversation[hidden] {
  display: none !important;
}


.chat-conversation {
  display: grid;
  gap: 14px;
  min-height: 0;
  flex: 1;
}

@media (min-width: 1400px) {
  .chat-shell {
    max-width: 1180px;
  }
}

@media (max-width: 1200px) {
  .phone-shell {
    width: min(100vw - 24px, 1280px);
    height: min(100vh - 12px, 1080px);
  }

  .chat-shell {
    max-width: 1120px;
    padding: 4px 20px 20px;
  }
}

@media (max-width: 820px) {
  .app-stage {
    padding: 0;
  }

  .phone-shell {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .top-bar--tablet {
    padding: 10px 12px 0;
  }

  .segmented-nav {
    width: auto;
    max-width: calc(100vw - 120px);
    overflow-x: auto;
    white-space: nowrap;
  }

  .chat-shell {
    max-width: none;
    padding: 0 12px 14px;
  }

  .chat-entry {
    gap: 14px;
  }

  .chat-entry__copy h1 {
    font-size: 2.1rem;
  }

  .chat-entry__privacy,
  .chat-entry__status {
    padding: 16px;
  }

  .start-chat-button--entry {
    min-height: 58px;
    font-size: 1rem;
  }

  .system-bubble,
  .message-bubble {
    max-width: 100%;
  }

  .composer--fixed {
    padding: 12px;
  }

  .composer__send {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 560px) {
  .screen {
    padding-top: 88px;
  }

  .top-bar--tablet {
    height: 88px;
    gap: 8px;
  }

  .segmented-nav__item {
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .close-button {
    min-width: 84px;
    min-height: 50px;
    font-size: 0.9rem;
  }

  .chat-shell {
    padding: 0 10px 12px;
  }

  .chat-entry__copy p {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .chat-entry__privacy h2 {
    font-size: 1.55rem;
    line-height: 1.2;
  }
}

.floating-chat-panel {
  position: absolute;
  right: 28px;
  bottom: 184px;
  z-index: 5;
  width: min(380px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 180px));
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(10,31,46,0.98), rgba(15,77,82,0.97), rgba(51,41,107,0.96));
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}

.floating-chat-panel[hidden] {
  display: none !important;
}

.floating-chat-panel__entry,
.floating-chat-panel__conversation {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
}

.floating-chat-panel__entry[hidden],
.floating-chat-panel__conversation[hidden] {
  display: none !important;
}

.floating-chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.floating-chat-panel__close {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;
}

.floating-chat-panel__copy {
  margin: 0;
  color: rgba(255,255,255,0.78);
}

.floating-chat-panel__status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
}

.floating-chat-panel__status p,
.floating-chat-panel__status strong {
  margin: 0;
}

.floating-chat-panel__system {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(170, 164, 170, 0.88);
  color: white;
  font-size: 0.95rem;
  line-height: 1.45;
}

.floating-chat-panel__messages {
  min-height: 200px;
  max-height: 290px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.message-row--compact .sender,
.message-row--compact .message-time {
  font-size: 0.74rem;
}

.message-row--compact .message-bubble {
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.floating-chat-panel__composer {
  display: flex;
  gap: 8px;
}

.floating-chat-panel__input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: white;
}

.floating-chat-panel__send {
  min-width: 74px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, rgb(43, 240, 219), rgb(31, 219, 209));
  color: #071116;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 820px) {
  .floating-chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 92px;
    max-height: calc(100vh - 180px);
  }

  .floating-chat {
    right: 12px;
    left: 12px;
    bottom: 20px;
    gap: 10px;
  }

  .floating-chat__teaser {
    max-width: none;
    flex: 1;
    padding: 18px 18px;
    font-size: 0.92rem;
  }

  .floating-chat__fab {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
  }

  .floating-chat__icon {
    width: 56px;
    height: 56px;
    font-size: 1.9rem;
  }
}

.staff-crud-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.staff-crud-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
}

.staff-crud-card h3 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.staff-form-grid {
  display: grid;
  gap: 12px;
}

.staff-text-input,
.staff-textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  color: white;
}

.staff-textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.staff-text-input::placeholder,
.staff-textarea::placeholder {
  color: rgba(255,255,255,0.62);
}

.staff-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.staff-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.staff-item-list {
  display: grid;
  gap: 12px;
}

.staff-item-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}

.staff-item-card--active {
  border-color: rgba(43,240,219,0.55);
  box-shadow: 0 0 0 1px rgba(43,240,219,0.18) inset;
}

.staff-item-card__body {
  padding: 16px;
}

.staff-item-card__body h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.staff-item-card__body p,
.staff-item-meta,
.staff-help {
  margin: 0;
  color: rgba(255,255,255,0.72);
}

.staff-item-meta {
  margin-top: 6px;
}

.staff-item-image-button,
.event-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.staff-item-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.staff-inline-link,
.event-signup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(43, 240, 219), rgb(31, 219, 209));
  color: #071116;
  font-weight: 800;
}

.staff-portal__ghost--danger {
  background: rgba(255, 95, 95, 0.16);
  color: #ffd1d1;
}

.event-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.event-lightbox[hidden] {
  display: none !important;
}

.event-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.82);
  backdrop-filter: blur(6px);
}

.event-lightbox__card {
  position: relative;
  width: min(1100px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  padding: 18px;
  border-radius: 26px;
  background: rgba(9, 20, 30, 0.96);
}

.event-lightbox__close {
  margin-bottom: 12px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;
}

.event-lightbox__image {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 18px;
}

@media (max-width: 820px) {
  .staff-inline-actions {
    flex-direction: column;
  }

  .staff-inline-link,
  .event-signup-button,
  .staff-jump-button,
  .staff-portal__ghost {
    width: 100%;
  }
}

.floating-chat {
  right: 24px;
  bottom: 24px;
  gap: 12px;
  align-items: flex-end;
}

.floating-chat__trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: rgba(11, 20, 32, 0.9);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, background 180ms ease;
}

.floating-chat__trigger:hover {
  transform: translateY(-1px);
}

.floating-chat__label {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  color: white;
}

.floating-chat__fab {
  width: 58px;
  height: 58px;
  box-shadow: none;
}

.floating-chat__icon {
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
}

.floating-chat__teaser {
  transition: opacity 180ms ease, transform 180ms ease, max-width 180ms ease, padding 180ms ease, margin 180ms ease;
}

.floating-chat--open .floating-chat__teaser {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  max-width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.floating-chat-panel {
  right: 24px;
  bottom: 96px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 150px));
  display: flex;
  flex-direction: column;
}

.floating-chat-panel__entry {
  grid-template-rows: auto auto auto auto;
  align-content: start;
}

.floating-chat-panel__conversation {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: min(460px, calc(100vh - 220px));
}

.floating-chat-panel__messages {
  min-height: 0;
  max-height: none;
}

.floating-chat-panel__composer {
  padding-top: 8px;
}

@media (max-width: 820px) {
  .floating-chat {
    right: 12px;
    left: auto;
    bottom: 16px;
    max-width: calc(100vw - 24px);
  }

  .floating-chat__teaser {
    max-width: 220px;
    padding: 18px 20px;
  }

  .floating-chat__trigger {
    padding: 6px 14px 6px 6px;
    gap: 10px;
  }

  .floating-chat__fab {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
  }

  .floating-chat__icon {
    width: 38px;
    height: 38px;
    font-size: 1.35rem;
  }

  .floating-chat-panel {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 86px;
    max-height: min(500px, calc(100vh - 116px));
  }

  .floating-chat-panel__conversation {
    min-height: 380px;
  }
}

.floating-chat__trigger {
  padding: 10px 20px 10px 10px;
  background: linear-gradient(180deg, rgba(10, 68, 78, 0.96), rgba(8, 44, 56, 0.96));
  border: 1px solid rgba(70, 198, 190, 0.18);
  box-shadow: 0 16px 34px rgba(3, 16, 24, 0.28);
}

.floating-chat__label {
  color: rgba(255, 255, 255, 0.96);
}

.floating-chat__fab {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, rgba(31, 112, 121, 0.98), rgba(20, 89, 101, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.floating-chat__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 820px) {
  .floating-chat__trigger {
    padding: 8px 16px 8px 8px;
  }

  .floating-chat__fab {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
  }

  .floating-chat__icon {
    width: 40px;
    height: 40px;
  }
}

.floating-chat {
  right: 28px;
  bottom: 28px;
  gap: 18px;
}

.floating-chat__trigger {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.floating-chat__label {
  display: none;
}

.floating-chat__fab {
  width: 122px;
  height: 122px;
  background: linear-gradient(180deg, rgba(33, 122, 137, 0.98), rgba(25, 102, 118, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.floating-chat__icon {
  width: 76px;
  height: 76px;
  background: transparent;
  font-size: 2.4rem;
}

.floating-chat__teaser {
  max-width: 390px;
  padding: 24px 26px;
  border-radius: 0 24px 24px 0;
  background: rgba(38, 112, 137, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  font-size: 0;
  line-height: 1.5;
}

.floating-chat__teaser::before {
  content: "Hei, her kan du chatte med\Aoss om hva du vil.";
  white-space: pre-line;
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

@media (max-width: 820px) {
  .floating-chat {
    right: 12px;
    bottom: 18px;
    gap: 12px;
  }

  .floating-chat__fab {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
  }

  .floating-chat__icon {
    width: 58px;
    height: 58px;
    font-size: 1.9rem;
  }

  .floating-chat__teaser {
    max-width: min(250px, calc(100vw - 128px));
    padding: 18px 18px;
  }

  .floating-chat__teaser::before {
    font-size: 0.92rem;
  }
}


.floating-chat__icon {
  display: inline-grid;
  place-items: center;
  color: #fff;
}

.floating-chat__icon svg {
  display: block;
  width: 76px;
  height: 76px;
}
@media (max-width: 820px) {
  .floating-chat__icon svg {
    width: 58px;
    height: 58px;
  }
}

.chat-shell {
  max-width: min(860px, 100%);
  gap: 18px;
}

.chat-entry,
.chat-conversation {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.chat-entry {
  gap: 14px;
}

.chat-entry__copy h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.chat-entry__status strong {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.chat-conversation {
  gap: 12px;
  min-height: 0;
}

.chat-system-wrap {
  width: 100%;
}

.system-bubble {
  max-width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border-radius: 18px;
}

.chat-room {
  margin-top: 0;
  min-height: 220px;
  max-height: 320px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  background: rgba(7, 22, 33, 0.16);
}

.messages {
  gap: 12px;
  padding: 0;
}

.message-bubble {
  max-width: min(100%, 560px);
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 1rem;
}

.composer--fixed {
  position: sticky;
  bottom: 0;
  padding: 12px;
  border-radius: 18px;
  background: rgba(8, 28, 41, 0.9);
  backdrop-filter: blur(8px);
}

.composer__input {
  min-height: 52px;
}

.composer__send {
  width: 52px;
  height: 52px;
}

@media (max-width: 820px) {
  .chat-shell {
    max-width: none;
    gap: 14px;
  }

  .chat-entry,
  .chat-conversation {
    max-width: none;
  }

  .chat-room {
    max-height: 280px;
    padding: 12px;
  }
}

.floating-chat {
  right: 20px;
  bottom: 112px;
  gap: 14px;
  z-index: 9;
}

.floating-chat__fab {
  width: 92px;
  height: 92px;
}

.floating-chat__icon,
.floating-chat__icon svg {
  width: 58px;
  height: 58px;
}

.floating-chat__teaser {
  max-width: 300px;
  padding: 18px 20px;
}

.floating-chat__teaser::before {
  font-size: 0.92rem;
}

.floating-chat-panel {
  right: 20px;
  bottom: 186px;
  width: min(340px, calc(100vw - 24px));
  max-height: min(500px, calc(100vh - 220px));
}

.floating-chat-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.floating-chat-panel__secondary,
.floating-chat-panel__close {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  cursor: pointer;
}

.floating-chat-panel__close {
  background: rgba(255,255,255,0.12);
}

.floating-chat-panel__secondary {
  background: rgba(235, 91, 91, 0.88);
}

.floating-chat-panel__header {
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .floating-chat {
    right: 16px;
    bottom: 104px;
  }

  .floating-chat-panel {
    right: 16px;
    bottom: 174px;
  }
}

@media (max-width: 820px) {
  .floating-chat {
    right: 12px;
    bottom: 118px;
    gap: 10px;
    max-width: calc(100vw - 24px);
  }

  .floating-chat__fab {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
  }

  .floating-chat__icon,
  .floating-chat__icon svg {
    width: 46px;
    height: 46px;
  }

  .floating-chat__teaser {
    max-width: min(220px, calc(100vw - 110px));
    padding: 14px 16px;
  }

  .floating-chat-panel {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 200px;
    max-height: min(420px, calc(100vh - 260px));
  }

  .floating-chat-panel__actions {
    width: 100%;
    justify-content: space-between;
  }
}

.floating-chat--teaser-hidden .floating-chat__teaser {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  max-width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.chat-entry__status,
.floating-chat-panel__status {
  padding: 20px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(57, 129, 131, 0.34), rgba(83, 93, 146, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.chat-entry__status-dot {
  width: 28px;
  height: 28px;
  box-shadow: 0 0 0 12px rgba(50, 213, 106, 0.14);
}

.start-chat-button--entry {
  min-height: 74px;
  padding: 18px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(45, 232, 214), rgb(57, 221, 207));
  color: #071116;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.2rem;
  box-shadow: 0 18px 34px rgba(25, 219, 198, 0.2);
}

.start-chat-button--entry[data-state="open"] {
  background: linear-gradient(90deg, rgb(45, 232, 214), rgb(57, 221, 207));
  color: #071116;
}

.start-chat-button--entry[data-state="closed"] {
  background: linear-gradient(90deg, rgba(126, 140, 150, 0.82), rgba(108, 121, 136, 0.82));
  color: rgba(255, 255, 255, 0.96);
  opacity: 1;
}

.start-chat-button--entry:disabled {
  cursor: not-allowed;
}

@media (max-width: 820px) {
  .chat-entry__status,
  .floating-chat-panel__status {
    padding: 16px 18px;
  }

  .start-chat-button--entry {
    min-height: 64px;
    font-size: 1rem;
  }
}

.chat-shell--live {
  justify-content: center;
}

.chat-conversation {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 18px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(7, 24, 36, 0.52), rgba(10, 35, 51, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: min(620px, calc(100vh - 180px));
}

.chat-system-wrap {
  justify-items: start;
  gap: 10px;
}

.system-label {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.system-bubble {
  max-width: 100%;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(184, 181, 193, 0.92);
  font-size: 1rem;
  line-height: 1.55;
}

.system-time {
  padding-left: 4px;
  font-size: 0.82rem;
}

.chat-room {
  margin-top: 10px;
  min-height: 280px;
  max-height: none;
  padding: 6px 2px 2px;
  overflow: hidden;
}

.messages {
  height: 100%;
  gap: 12px;
  padding: 0 6px 8px 0;
}

.sender,
.message-time {
  font-size: 0.76rem;
}

.message-bubble {
  max-width: min(82%, 500px);
  padding: 14px 16px;
  border-radius: 20px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.composer--fixed {
  position: static;
  margin-top: 8px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(8, 24, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.composer__input {
  min-height: 56px;
  border-radius: 20px;
  padding: 0 18px;
  font-size: 1rem;
}

.composer__send {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgb(45, 232, 214), rgb(74, 214, 206));
  color: #062028;
  font-size: 1.05rem;
  font-weight: 800;
}

@media (max-width: 820px) {
  .chat-conversation {
    width: 100%;
    min-height: calc(100vh - 220px);
    padding: 14px;
    border-radius: 24px;
  }

  .system-bubble {
    font-size: 0.96rem;
  }

  .chat-room {
    min-height: 240px;
  }

  .message-bubble {
    max-width: 90%;
  }

  .composer--fixed {
    padding: 8px;
    border-radius: 20px;
  }

  .composer__input,
  .composer__send {
    min-height: 52px;
    height: 52px;
  }
}

.chat-conversation__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 6px;
}

.chat-conversation__ghost,
.chat-conversation__danger {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.chat-conversation__ghost {
  background: rgba(255, 255, 255, 0.12);
}

.chat-conversation__danger {
  background: rgba(229, 83, 83, 0.9);
}

@media (max-width: 820px) {
  .chat-conversation__actions {
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }

  .chat-conversation__ghost,
  .chat-conversation__danger {
    flex: 1 1 160px;
    text-align: center;
  }
}

.staff-queue-item {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.staff-queue-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

.staff-queue-item--active {
  box-shadow: 0 18px 34px rgba(20, 228, 211, 0.08);
}

.staff-thread {
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.07));
}

.staff-thread__messages {
  padding: 20px;
  background: rgba(7, 22, 33, 0.12);
}

.staff-thread__composer {
  padding: 14px 18px 18px;
  background: rgba(8, 24, 36, 0.18);
}

.staff-thread__input {
  border-radius: 18px;
  padding: 0 18px;
}

.staff-thread__send {
  min-width: 124px;
}

@media (max-width: 980px) {
  .staff-sidebar,
  .staff-thread {
    min-height: 320px;
  }

  .staff-thread__send {
    min-width: 0;
  }
}

.staff-thread .empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.staff-file-picker {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}

.staff-file-picker__input {
  width: 100%;
  color: rgba(255,255,255,0.78);
}

.game-signup {
  display: grid;
  gap: 18px;
}

.game-prize-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.game-submit-button {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(45, 232, 214), rgb(57, 221, 207));
  color: #071116;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}

.staff-panel {
  overflow: auto;
  padding-right: 6px;
}

.staff-crud-grid {
  align-content: start;
  padding-bottom: 28px;
}

.staff-crud-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.staff-inline-actions {
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(18, 57, 72, 0), rgba(18, 57, 72, 0.96) 38%);
}

.staff-item-meta--link {
  margin-top: 10px;
  word-break: break-all;
}

@media (max-width: 980px) {
  .staff-panel {
    padding-right: 0;
  }

  .staff-inline-actions {
    position: static;
    background: transparent;
    padding-top: 0;
  }
}

.staff-panel {
  overflow: auto;
  padding-right: 6px;
}

.staff-crud-grid {
  align-content: start;
  padding-bottom: 28px;
}

.staff-crud-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.staff-inline-actions {
  margin-top: 14px;
}

.staff-item-meta--link {
  margin-top: 10px;
  word-break: break-all;
}

@media (max-width: 980px) {
  .staff-panel {
    padding-right: 0;
  }
}

.staff-panel {
  overflow: auto;
  max-height: 100%;
}

#staff-events-panel,
#staff-games-panel {
  overflow: auto;
}

.staff-crud-grid {
  align-content: start;
  padding-bottom: 40px;
}

.staff-crud-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.staff-inline-actions {
  margin-top: 14px;
}

.game-state {
  display: grid;
  align-content: start;
  min-height: 100%;
}

.screen[data-screen="spill"] .scroll-screen {
  padding-bottom: 148px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.game-signup {
  padding-bottom: 28px;
}

.game-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  bottom: 12px;
  z-index: 3;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 18px 34px rgba(25, 219, 198, 0.22);
}

@media (max-width: 820px) {
  .game-prize-image {
    max-height: 220px;
  }

  .big-title {
    font-size: 2rem;
  }

  .screen[data-screen="spill"] .scroll-screen {
    padding-bottom: 170px;
  }

  .game-submit-button {
    min-height: 58px;
    bottom: 8px;
    font-size: 1rem;
  }
}

/* --- WhatsApp/Messenger inspired chat overrides --- */
.chat-room {
  background: linear-gradient(180deg, #e5ddd5 0%, #d1c4a6 18%, #cfd8dc 100%);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  max-height: 420px;
}

.messages {
  padding: 10px 8px;
  gap: 10px;
}

.message-row {
  align-items: flex-start;
}

.message-row--user {
  align-items: flex-end;
}

.message-bubble {
  position: relative;
  padding: 12px 14px 18px;
  border-radius: 18px 18px 18px 6px;
  background: #ffffff;
  color: #0b141a;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.message-bubble--support {
  background: #ffffff;
  color: #0b141a;
}

.message-bubble--user {
  background: #25d366;
  color: #ffffff;
  border-radius: 18px 18px 6px 18px;
  box-shadow: 0 8px 14px rgba(37, 211, 102, 0.25);
}

.message-time {
  display: block;
  margin-top: 6px;
  text-align: right;
  font-size: 0.75rem;
  opacity: 0.7;
}

.composer--fixed {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  padding: 12px 12px;
}

.composer__input {
  background: #f3f3f3;
  border: none;
  border-radius: 18px;
  padding: 14px 16px;
  color: #0b141a;
}

.composer__input::placeholder {
  color: #8b8b8b;
}

.composer__send {
  background: #25d366;
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 12px rgba(37,211,102,0.35);
}

/* Floating chat compact list */
.floating-chat-panel__messages .message-row {
  align-items: flex-start;
}
.floating-chat-panel__messages .message-row--user {
  align-items: flex-end;
}
.floating-chat-panel__messages .message-bubble {
  max-width: 90%;
}


/* --- Chat theme: blue/gray --- */
.chat-room {
  background: linear-gradient(180deg, #e7ecf4 0%, #dfe6f0 50%, #f6f8fb 100%);
  border: 1px solid rgba(0,0,0,0.05);
}
.message-bubble {
  background: #ffffff;
  color: #0f172a;
}
.message-bubble--support {
  background: #e5e9f0;
  color: #0f172a;
}
.message-bubble--user {
  background: #2f6df7;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(47, 109, 247, 0.25);
}
.message-time { color: rgba(15,23,42,0.6); }
.composer--fixed { background: #ffffff; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.composer__input { background: #eef2f8; color: #0f172a; }
.composer__send { background: #2f6df7; color: #ffffff; }
.floating-chat-panel__messages .message-bubble--user { background: #2f6df7; color: #ffffff; }

/* --- Final chat bubble color unify (blue) --- */
.message-bubble--support,
.message-bubble--user {
  background: #2f6df7;
  color: #ffffff;
}
.floating-chat-panel__messages .message-bubble--support,
.floating-chat-panel__messages .message-bubble--user {
  background: #2f6df7;
  color: #ffffff;
}
.composer__send { background: #2f6df7; color: #ffffff; }

/* Compact chat bubble: hide teaser and label */
.floating-chat__teaser { display: none !important; }
.floating-chat__label { display: none !important; }
.floating-chat { right: 18px; bottom: 90px; }
.floating-chat__fab { width: 64px; height: 64px; }
.floating-chat__icon, .floating-chat__icon svg { width: 36px; height: 36px; }
