:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #607080;
  --line: #dce3ea;
  --accent: #146c94;
  --danger: #a83a32;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page,
.message-tv,
.shift-tv {
  cursor: none;
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 4rem;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.auth-page {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  padding-top: 32px;
}

.auth-hero {
  min-height: 440px;
  min-height: clamp(380px, 52vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 8px;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(244, 246, 248, 0.98) 0%, rgba(244, 246, 248, 0.9) 34%, rgba(244, 246, 248, 0.26) 62%, rgba(244, 246, 248, 0) 100%),
    url("visma-light-vaktrom-hero.png") center / cover no-repeat;
  overflow: hidden;
}

.auth-hero h1 {
  max-width: 650px;
  font-size: 4.8rem;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.auth-hero p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 1.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.42;
}

.auth-hero a {
  color: var(--accent);
  font-weight: 750;
}

h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

h2 span {
  color: var(--muted);
  font-size: 0.95rem;
}

.refresh {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.summary div,
.target,
.section,
.notice,
.department-banner {
  background: var(--surface);
}

.summary div {
  padding: 14px;
}

.summary span,
.target span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.summary strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

.target,
.section,
.notice,
.department-banner {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.department-banner span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.department-banner strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(1.9rem, 6vw, 3.8rem);
  line-height: 1.05;
}

.target strong {
  display: block;
  margin-top: 3px;
  font-size: 1.3rem;
}

.target p {
  margin-top: 6px;
  color: var(--muted);
}

.target small {
  margin-left: 8px;
  color: var(--accent);
  font-weight: 700;
}

.notice {
  display: grid;
  gap: 4px;
}

.onboarding-page {
  padding-bottom: 80px;
}

.onboarding-page.security-pending > .target,
.onboarding-page.security-pending > .notice,
.onboarding-page.security-pending > .onboarding-form {
  visibility: hidden;
}

.onboarding-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.onboarding-no-form {
  margin-top: 8px;
  border: 0;
  background: transparent;
  padding: 0 16px;
}

.onboarding-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.onboarding-form input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
}

.location-field {
  position: relative;
  display: block;
}

.location-field input {
  padding-right: 54px;
}

.location-field button {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #187b9d;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.onboarding-form button,
.trial-button,
.trial-overlay button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 850;
  padding: 10px 14px;
}

.onboarding-form .location-field button {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #187b9d;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 900;
  padding: 0;
  transform: translateY(-50%);
}

.secondary-button,
.trial-overlay button.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
}

.security-note {
  border: 1px solid rgba(47, 111, 84, 0.28);
  border-radius: 8px;
  background: #f1f8f4;
  padding: 12px;
  color: #274f3f;
}

.security-note p {
  margin-top: 4px;
  color: #425466;
  font-size: 0.92rem;
  line-height: 1.45;
}

.onboarding-email {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.trial-button {
  width: 100%;
  margin-top: 12px;
  background: #2f6f54;
}

.trial-overlay,
.security-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  background: rgba(23, 32, 42, 0.58);
  padding: 18px;
}

.trial-overlay.is-open,
.security-intro-overlay.is-open {
  display: grid;
}

.trial-overlay > div,
.security-intro-overlay > div {
  display: grid;
  gap: 12px;
  width: min(460px, 100%);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.trial-overlay h1,
.security-intro-overlay h1 {
  font-size: 1.8rem;
}

.security-intro-overlay {
  z-index: 30;
}

.notice.error {
  border-color: rgba(168, 58, 50, 0.35);
  color: var(--danger);
}

.notice.success {
  border-color: rgba(20, 108, 148, 0.28);
  color: var(--accent);
}

.demo-info-tv {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 246, 248, 0.94)),
    #edf1f4;
}

.demo-info-hero {
  display: block;
  height: 38vh;
  min-height: 300px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(244, 246, 248, 0.98) 0%, rgba(244, 246, 248, 0.9) 38%, rgba(244, 246, 248, 0.22) 68%, rgba(244, 246, 248, 0) 100%),
    url("visma-light-vaktrom-hero.png") center / cover no-repeat;
  padding: 38px 52px;
}

.demo-info-hero div {
  max-width: 760px;
}

.demo-info-hero span,
.demo-info-footer span {
  display: block;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-info-hero h1 {
  margin-top: 8px;
  max-width: 760px;
  font-size: clamp(3rem, 4.6vw, 5.15rem);
  line-height: 0.98;
}

.demo-info-hero p {
  margin-top: 16px;
  max-width: 720px;
  color: #405060;
  font-size: clamp(1.25rem, 1.45vw, 1.55rem);
  line-height: 1.25;
}

.demo-info-grid {
  display: block;
  margin: 16px -7px 0;
  font-size: 0;
}

.demo-info-grid article {
  display: inline-block;
  width: 48%;
  width: calc(50% - 14px);
  min-height: 112px;
  margin: 0 7px 14px;
  vertical-align: top;
  border: 1px solid rgba(40, 74, 95, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(31, 41, 55, 0.08);
  padding: 18px 22px;
  font-size: 1rem;
}

.demo-info-grid strong {
  color: #173c4c;
  font-size: clamp(1.28rem, 1.55vw, 1.7rem);
  line-height: 1.05;
}

.demo-info-grid p {
  color: #435466;
  font-size: clamp(0.98rem, 1.08vw, 1.2rem);
  line-height: 1.32;
}

.demo-info-footer {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  min-height: 66px;
  border-radius: 8px;
  background: #2f6f54;
  color: #f4f8fb;
  padding: 14px 26px;
}

.demo-info-footer span {
  color: rgba(255, 255, 255, 0.78);
}

.demo-info-footer strong {
  display: inline-block;
  margin-left: 22px;
  font-size: 1.55rem;
}

.demo-info-footer a {
  float: right;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .demo-info-tv {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .demo-info-grid,
  .demo-info-footer {
    position: static;
  }

  .demo-info-grid article {
    display: block;
    width: auto;
  }

  .demo-info-footer a {
    float: none;
    display: block;
  }
}

.admin-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.admin-header span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-header h1 {
  margin-top: 4px;
  font-size: 2.4rem;
}

.admin-header p {
  margin-top: 4px;
  color: var(--muted);
}

.admin-header a,
.admin-user a {
  color: var(--accent);
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.admin-card h2 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.admin-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-form input,
.admin-form select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font: inherit;
}

.admin-form button,
.admin-user button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 8px 12px;
}

.admin-form .check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.admin-form .check-row input {
  min-height: 0;
  width: auto;
}

.admin-users {
  display: grid;
  gap: 8px;
}

.admin-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.admin-user strong,
.admin-user span,
.admin-user small {
  display: block;
}

.admin-user span,
.admin-user small {
  color: var(--muted);
}

.admin-user > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user button {
  background: #a83a32;
}

@media (max-width: 840px) {
  .admin-page {
    width: min(100% - 28px, 560px);
    padding-top: 18px;
  }

  .admin-header,
  .admin-user {
    display: grid;
  }

  .admin-header {
    gap: 8px;
  }

  .admin-header h1 {
    font-size: 2rem;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-card {
    padding: 14px;
  }

  .admin-form {
    gap: 12px;
  }

  .admin-form label,
  .admin-form input,
  .admin-form select,
  .admin-form button {
    min-width: 0;
    width: 100%;
  }

  .admin-user > div:last-child {
    justify-content: start;
  }
}

.qr-panel {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.qr-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.qr-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.qr-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 2.7rem;
  font-size: clamp(1.6rem, 5vw, 2.7rem);
  line-height: 1.05;
}

.qr-copy p {
  margin-top: 10px;
  color: var(--muted);
}

.qr-copy .challenge {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.qr-copy .challenge b {
  color: var(--accent);
}

.qr-copy a {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 800;
}

.qr-box {
  display: grid;
  place-items: center;
  flex: 0 0 320px;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.qr-box img {
  display: block;
  width: min(280px, 100%);
  height: auto;
}

@media (min-width: 900px) and (max-height: 820px) {
  .auth-page {
    width: calc(100% - 96px);
    max-width: 1080px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .auth-hero {
    min-height: 285px;
    margin-bottom: 0;
    padding: 28px 40px;
    background:
      linear-gradient(90deg, rgba(244, 246, 248, 0.98) 0%, rgba(244, 246, 248, 0.9) 36%, rgba(244, 246, 248, 0.28) 66%, rgba(244, 246, 248, 0) 100%),
      url("visma-light-vaktrom-hero.png") center / cover no-repeat;
  }

  .auth-hero h1 {
    max-width: 540px;
    font-size: 3.6rem;
  }

  .auth-hero p:not(.eyebrow) {
    max-width: 570px;
    margin-top: 24px;
    font-size: 1.05rem;
    line-height: 1.34;
  }

  .qr-panel {
    position: relative;
    min-height: 178px;
    display: block;
    gap: 18px;
    margin-top: 12px;
    padding: 18px 300px 18px 22px;
  }

  .qr-copy strong {
    font-size: 2rem;
  }

  .qr-copy p {
    margin-top: 7px;
  }

  .qr-box {
    position: absolute;
    top: -72px;
    right: 18px;
    width: 252px;
    min-height: 252px;
    flex-basis: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .qr-box img {
    width: 228px;
  }
}

.approve-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 12px 26px rgba(23, 32, 42, 0.06);
}

.approve-form label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-title {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.approve-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
}

.approve-form button {
  cursor: pointer;
}

.button-link,
.approve-form button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  text-decoration: none;
}

.provider-button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 13px 14px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.06);
}

.provider-button:active {
  transform: translateY(1px);
}

.provider-button > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.provider-button strong {
  color: #17202a;
  font-size: 1.08rem;
  line-height: 1.1;
}

.provider-button small {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.provider-icon {
  position: relative;
  display: inline-grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
}

.google-icon {
  border-radius: 999px;
  background:
    conic-gradient(from -38deg, #4285f4 0 25%, #34a853 0 48%, #fbbc05 0 74%, #ea4335 0 100%);
}

.google-icon::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 999px;
  background: #fff;
}

.google-icon::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 17px;
  width: 20px;
  height: 8px;
  border-radius: 0 6px 6px 0;
  background: #4285f4;
}

.microsoft-icon {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  padding: 3px;
}

.microsoft-icon i {
  display: block;
  width: 100%;
  height: 100%;
}

.microsoft-icon i:nth-child(1) {
  background: #f25022;
}

.microsoft-icon i:nth-child(2) {
  background: #7fba00;
}

.microsoft-icon i:nth-child(3) {
  background: #00a4ef;
}

.microsoft-icon i:nth-child(4) {
  background: #ffb900;
}

.inline-error {
  border: 1px solid rgba(168, 58, 50, 0.25);
  border-radius: 8px;
  background: rgba(168, 58, 50, 0.06);
  color: var(--danger);
  padding: 10px 12px;
}

.mobile-page {
  max-width: 520px;
}

.mobile-hero {
  margin-bottom: 14px;
}

.mobile-hero p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1.05rem;
}

.shift-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shift-list li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.shift-list li:first-child {
  border-top: 0;
}

.shift-list time {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.shift-list strong,
.shift-list span {
  display: block;
  min-width: 0;
}

.shift-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.shift-list b {
  padding: 4px 8px;
  border-radius: 7px;
  background: #e7f3f8;
  color: var(--accent);
  font-size: 0.86rem;
}

.empty {
  color: var(--muted);
}

.message-tv {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100vh;
  overflow: hidden;
  padding: 22px 22px 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 246, 248, 0.92)),
    #edf1f4;
}

.message-header {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
  border: 1px solid rgba(16, 83, 56, 0.72);
  border-radius: 8px;
  background: #2f6f54;
  box-shadow: 0 10px 22px rgba(20, 83, 58, 0.18);
  margin-bottom: 14px;
  padding: 4px 16px 4px 28px;
}

.message-kicker,
.message-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #f4f8fb;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.message-kicker span + span,
.message-meta > * + * {
  margin-left: 18px;
}

.message-meta {
  justify-items: end;
}

.message-header-department {
  font-weight: 400;
  text-transform: none;
}

.demo-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 2px 9px;
  color: #fff;
  font-size: 0.78em;
  font-weight: 800;
  text-transform: uppercase;
}

.shift-tv .message-header {
  position: relative;
}

.shift-header-title {
  font-weight: 800;
  text-transform: uppercase;
}

.shift-header-department {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 400;
  text-transform: none;
}

.tv-logout {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: rgba(42, 54, 69, 0.34);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.tv-logout:hover {
  background: rgba(23, 32, 42, 0.08);
  color: #17202a;
}

.message-alert {
  position: absolute;
  right: 22px;
  top: 124px;
  z-index: 2;
  display: grid;
  gap: 2px;
  max-width: 420px;
  border: 1px solid rgba(168, 58, 50, 0.35);
  border-radius: 8px;
  background: #fff7f5;
  color: var(--danger);
  padding: 12px 14px;
}

.postit-board {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 auto;
  gap: 0;
  align-items: flex-start;
  align-content: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.postit {
  position: relative;
  flex: 0 0 calc(23vw - 18px);
  width: calc(23vw - 18px);
  max-width: calc(23vw - 18px);
  min-width: 280px;
  height: auto;
  max-height: none;
  margin: 9px;
  overflow: hidden;
  border: 1px solid rgba(30, 40, 50, 0.08);
  border-radius: 6px;
  background: #ffe983;
  box-shadow: 0 14px 24px rgba(31, 41, 55, 0.12);
  padding: 26px 86px 18px 18px;
}

.postit::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: rgba(255, 255, 255, 0.45);
}

.postit::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 14px;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #d93030;
  box-shadow:
    inset -2px -2px 0 rgba(0, 0, 0, 0.18),
    0 2px 4px rgba(23, 32, 42, 0.24);
}

.postit h2::before {
  content: "";
  position: absolute;
  top: 19px;
  right: 21px;
  width: 2px;
  height: 20px;
  background: rgba(78, 48, 35, 0.62);
  transform: rotate(22deg);
  transform-origin: top center;
}

.postit time {
  display: inline-block;
  margin-bottom: 7px;
  color: rgba(23, 32, 42, 0.66);
  font-size: 1rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.postit h2 {
  display: block;
  margin: 0 0 7px;
  color: #19212b;
  font-size: 2rem;
  font-size: clamp(1.55rem, 2vw, 2.25rem);
  line-height: 1.05;
}

.postit-symbol {
  position: absolute;
  right: 24px;
  top: 50px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(23, 32, 42, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 14px rgba(31, 41, 55, 0.12);
  color: #17202a;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.postit-symbol img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.postit-symbol span:not([hidden]) {
  display: grid;
  place-items: center;
}

.postit p {
  color: #26323f;
  font-size: 1.35rem;
  font-size: clamp(1.2rem, 1.45vw, 1.55rem);
  line-height: 1.32;
}

.postit-small {
  align-self: flex-start;
  height: auto;
}

.postit-medium {
  min-height: 0;
  height: auto;
}

.postit-large {
  min-height: 0;
  height: auto;
}

.tone-0 {
  background: #ffe36b;
}

.tone-1 {
  background: #95e5b8;
}

.tone-2 {
  background: #98d7ff;
}

.tone-3 {
  background: #f4aeca;
}

.tone-4 {
  background: #ffc277;
}

.postit-empty {
  width: 100%;
  max-width: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: rgba(244, 248, 251, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: right;
  text-transform: uppercase;
}

.status-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 999px;
  background: var(--status-dot, #d93a2f);
  box-shadow: none;
}

.status-badge.status-green {
  --status-dot: #1f9d45;
}

.status-badge.status-yellow {
  --status-dot: #f2c94c;
}

.status-badge.status-red {
  --status-dot: #d93a2f;
}

.status-badge.is-refreshing {
  opacity: 0.72;
}

.weather-strip {
  display: flex;
  flex: 0 0 118px;
  gap: 12px;
  margin-bottom: 16px;
  min-height: 0;
  overflow: hidden;
}

.weather-tile {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 108, 148, 0.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.08);
  padding: 6px 8px;
}

.weather-tile:nth-child(1),
.weather-tile:nth-child(5) {
  background: #fff;
}

.weather-tile:nth-child(2),
.weather-tile:nth-child(6) {
  background: #fff;
}

.weather-tile:nth-child(3),
.weather-tile:nth-child(7) {
  background: #fff;
}

.weather-tile:nth-child(4),
.weather-tile:nth-child(8) {
  background: #fff;
}

.weather-tile span {
  color: #536273;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1;
}

.weather-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.weather-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 48px;
  width: 48px;
  height: 40px;
  margin: 0;
  font-size: 0;
  line-height: 1;
}

.weather-icon::before,
.weather-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.weather-sun .weather-icon::before,
.weather-partly .weather-icon::before {
  left: 9px;
  top: 1px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #ffcf33;
  box-shadow: 0 0 0 4px rgba(255, 207, 51, 0.24);
}

.weather-cloud .weather-icon::before,
.weather-partly .weather-icon::after,
.weather-rain .weather-icon::before,
.weather-snow .weather-icon::before,
.weather-thunder .weather-icon::before,
.weather-fog .weather-icon::before {
  left: 7px;
  top: 14px;
  width: 34px;
  height: 16px;
  border-radius: 999px;
  background: #87a7bf;
  box-shadow:
    -7px 5px 0 -1px #87a7bf,
    8px 4px 0 1px #87a7bf,
    0 -8px 0 4px #a9c4d6;
}

.weather-partly .weather-icon::after {
  left: 13px;
  top: 17px;
  width: 30px;
  height: 14px;
  background: #8fb0c7;
  box-shadow:
    -6px 4px 0 -1px #8fb0c7,
    7px 3px 0 1px #8fb0c7,
    0 -7px 0 3px #bdd4e3;
}

.weather-rain .weather-icon::after {
  left: 12px;
  top: 30px;
  width: 5px;
  height: 11px;
  border-radius: 999px;
  background: #168bd1;
  box-shadow: 11px 0 0 #168bd1, 22px 0 0 #168bd1;
  transform: rotate(14deg);
}

.weather-snow .weather-icon::after {
  left: 12px;
  top: 31px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 11px 0 0 #ffffff, 22px 0 0 #ffffff;
}

.weather-thunder .weather-icon::after {
  left: 20px;
  top: 25px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 3px solid transparent;
  border-top: 18px solid #f2b51f;
  transform: skewX(-13deg);
}

.weather-fog .weather-icon::after {
  left: 6px;
  top: 31px;
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: #8794a1;
  box-shadow: 0 7px 0 #a5afb8;
}

.weather-tile b {
  color: #17202a;
  font-size: 1.72rem;
  line-height: 1;
  min-width: 42px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.saying-bar {
  display: flex;
  flex: 0 0 70px;
  margin-top: 0;
  align-items: center;
  justify-content: center;
  min-height: 0;
  border-radius: 8px;
  background: #2f80ed;
  color: #fff;
  padding: 0 28px;
  text-align: center;
}

.saying-bar span {
  overflow: hidden;
  font-size: 2.25rem;
  font-size: clamp(1.35rem, 2.3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.shift-tv {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100vh;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(244, 246, 248, 0.94)),
    #edf1f4;
}

.shift-board {
  display: flex;
  flex: 1 1 auto;
  gap: 18px;
  min-height: 0;
  overflow: visible;
}

.shift-column {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

.shift-card {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - 48px) / 9);
  height: calc((100% - 48px) / 9);
  min-height: 0;
  overflow: visible;
  border: 1px solid rgba(20, 108, 148, 0.24);
  border-left: 9px solid var(--task-group-color, rgba(20, 108, 148, 0.24));
  border-radius: 8px;
  box-shadow: inset 0 0 0 999px var(--task-group-wash, transparent);
  padding: 8px 14px 8px 12px;
}

.boss-badge-anchor {
  position: relative;
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 10px;
  overflow: visible;
  vertical-align: baseline;
}

.boss-badge {
  position: absolute;
  left: 0;
  top: 50%;
  display: block;
  width: 86px;
  height: 86px;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  transform: translateY(-50%) rotate(40deg);
  transform-origin: center;
  z-index: 3;
}

.shift-odd {
  background: #fff7ce;
}

.shift-even {
  background: #d8eef8;
}

.shift-placeholder {
  border-color: rgba(20, 108, 148, 0.18);
  border-left-color: rgba(20, 108, 148, 0.18);
  box-shadow: none;
}

.task-group-0 {
  --task-group-color: #2f80ed;
  --task-group-wash: rgba(47, 128, 237, 0.055);
}

.task-group-1 {
  --task-group-color: #27ae60;
  --task-group-wash: rgba(39, 174, 96, 0.06);
}

.task-group-2 {
  --task-group-color: #f2994a;
  --task-group-wash: rgba(242, 153, 74, 0.075);
}

.task-group-3 {
  --task-group-color: #9b51e0;
  --task-group-wash: rgba(155, 81, 224, 0.06);
}

.task-group-4 {
  --task-group-color: #eb5757;
  --task-group-wash: rgba(235, 87, 87, 0.055);
}

.task-group-5 {
  --task-group-color: #00a6a6;
  --task-group-wash: rgba(0, 166, 166, 0.06);
}

.task-group-6 {
  --task-group-color: #b7791f;
  --task-group-wash: rgba(183, 121, 31, 0.065);
}

.task-group-7 {
  --task-group-color: #4f6f52;
  --task-group-wash: rgba(79, 111, 82, 0.065);
}

.shift-placeholder-fill {
  visibility: hidden;
}

.shift-card-top {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
}

.shift-card strong {
  position: relative;
  display: inline-block;
  overflow: visible;
  color: #17202a;
  font-size: 1.85rem;
  font-size: clamp(1.38rem, 1.9vw, 2.05rem);
  line-height: 1.08;
  white-space: nowrap;
}

.music-note {
  display: inline-block;
  margin-left: 8px;
  color: #146c94;
  font-size: 0.9em;
  font-weight: 900;
  vertical-align: 0.08em;
}

.learner-badge {
  position: absolute;
  left: 100%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.95em;
  height: 1.95em;
  margin-left: 13px;
  border: 4px solid #d71920;
  border-radius: 5px;
  background: #ffffff;
  color: #d71920;
  font-size: 1em;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-50%);
}

.shift-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}

.shift-meta b {
  margin-left: 12px;
}

.shift-time {
  color: #415465;
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.shift-card b {
  color: #146c94;
  font-size: clamp(1.1rem, 1.45vw, 1.6rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.shift-card p {
  overflow: hidden;
  margin-top: 4px;
  color: #4b5b6b;
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  font-weight: 800;
  line-height: 1.14;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shift-note {
  margin-left: 12px;
  color: #8a4a12;
  font-weight: 800;
}

.shift-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 50vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #607080;
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  font-weight: 800;
}

.shift-empty-sleepy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  min-height: calc(100vh - 130px);
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 30%, rgba(216, 238, 248, 0.84), transparent 34%),
    #f7fbfd;
  color: #17202a;
  padding: 20px 64px;
}

.shift-empty-sleepy img {
  display: block;
  width: auto;
  max-width: 38vw;
  max-height: 76vh;
  object-fit: contain;
}

.shift-empty-sleepy div {
  display: block;
  max-width: 620px;
}

.shift-empty-sleepy strong {
  display: block;
  color: #17202a;
  font-size: clamp(3.4rem, 6vw, 7rem);
  line-height: 0.95;
}

.shift-empty-sleepy span {
  display: block;
  margin-top: 22px;
  color: #415465;
  font-size: clamp(1.6rem, 2.35vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
}

@media (min-width: 2200px) and (min-height: 1200px) {
  .message-tv {
    padding: 44px 44px 72px;
  }

  .message-header {
    flex-basis: 80px;
    min-height: 80px;
    margin-bottom: 28px;
    border-radius: 16px;
    padding: 8px 32px 8px 56px;
  }

  .message-kicker,
  .message-meta {
    gap: 32px;
    font-size: 2rem;
  }

  .message-kicker span + span,
  .message-meta > * + * {
    margin-left: 32px;
  }

  .status-badge {
    gap: 9px;
    font-size: 1.25rem;
  }

  .status-badge::before {
    width: 7px;
    height: 7px;
    flex-basis: 7px;
  }

  .postit {
    margin: 18px;
    border-radius: 12px;
    padding: 52px 172px 36px 36px;
  }

  .postit::before {
    height: 18px;
  }

  .postit::after {
    top: 14px;
    right: 28px;
    width: 30px;
    height: 30px;
  }

  .postit h2::before {
    top: 38px;
    right: 42px;
    width: 4px;
    height: 40px;
  }

  .postit time {
    margin-bottom: 12px;
    font-size: 1.6rem;
  }

  .postit h2 {
    margin-bottom: 12px;
    font-size: clamp(2.5rem, 2vw, 4.2rem);
  }

  .postit p {
    font-size: clamp(2rem, 1.35vw, 3rem);
  }

  .postit-symbol {
    right: 48px;
    top: 100px;
    width: 116px;
    height: 116px;
    border-radius: 24px;
  }

  .postit-symbol img {
    width: 104px;
    height: 104px;
  }

  .weather-strip {
    flex-basis: 236px;
    gap: 24px;
    margin-bottom: 32px;
  }

  .weather-tile {
    border-radius: 28px;
    padding: 12px 16px;
  }

  .weather-tile span {
    font-size: 1.55rem;
  }

  .weather-main {
    gap: 24px;
    margin-top: 14px;
  }

  .weather-icon {
    flex-basis: 88px;
    width: 88px;
    height: 72px;
    transform: scale(1.55);
  }

  .weather-tile b {
    min-width: 82px;
    font-size: 3.2rem;
  }

  .saying-bar {
    flex-basis: 140px;
    border-radius: 16px;
    padding: 0 56px;
  }

  .saying-bar span {
    font-size: clamp(2.7rem, 2vw, 4.5rem);
  }

  .shift-tv {
    padding: 36px;
  }

  .shift-board {
    gap: 36px;
  }

  .shift-column {
    gap: 12px;
  }

  .shift-card {
    flex-basis: calc((100% - 96px) / 9);
    height: calc((100% - 96px) / 9);
    border-left-width: 18px;
    border-radius: 16px;
    padding: 16px 28px 16px 24px;
  }

  .shift-card-top {
    gap: 28px;
  }

  .shift-card strong {
    font-size: clamp(2.4rem, 1.9vw, 4rem);
  }

  .shift-time {
    font-size: clamp(1.8rem, 1.25vw, 2.55rem);
  }

  .shift-card b {
    font-size: clamp(2rem, 1.45vw, 3rem);
  }

  .shift-card p {
    margin-top: 8px;
    font-size: clamp(1.7rem, 1.25vw, 2.55rem);
  }

  .learner-badge {
    margin-left: 22px;
    border-width: 7px;
    border-radius: 10px;
  }

  .boss-badge {
    width: 172px;
    height: 172px;
  }
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 20px, 1080px);
    padding-top: 18px;
  }

  .auth-page {
    width: min(100% - 20px, 1080px);
  }

  .auth-hero {
    min-height: 520px;
    padding: 22px;
    background:
      linear-gradient(180deg, rgba(244, 246, 248, 0.98) 0%, rgba(244, 246, 248, 0.9) 45%, rgba(244, 246, 248, 0.18) 100%),
      url("visma-light-vaktrom-hero.png") center / cover no-repeat;
  }

  .topbar {
    align-items: flex-start;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  .qr-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }

  .qr-box {
    min-height: 260px;
  }

  .shift-list li {
    grid-template-columns: 1fr auto;
  }

  .shift-list time {
    grid-column: 1 / -1;
  }
}
