/* Phone-only layout. TV, desktop and tablet presentation remains unchanged. */
@media (max-width: 680px) {
  .message-tv,
  .shift-tv,
  .demo-info-tv {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: visible;
    padding: max(12px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  }

  .message-header {
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 0;
    min-height: 0;
    margin-bottom: 14px;
    padding: 10px 12px 10px 36px;
  }

  .message-kicker,
  .message-meta {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 10px;
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.2;
  }

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

  .message-header-department,
  .shift-header-department {
    position: static;
    max-width: 100%;
    overflow-wrap: anywhere;
    transform: none;
  }

  .shift-header-title,
  .shift-header-department {
    flex: 1 1 100%;
  }

  .demo-label {
    flex: 0 0 auto;
  }

  .status-badge {
    max-width: 100%;
    color: rgba(244, 248, 251, 0.82);
    font-size: 0.72rem;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
  }

  .tv-logout {
    top: max(15px, env(safe-area-inset-top));
    left: 14px;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.76);
  }

  .message-alert {
    position: static;
    max-width: none;
    margin: 0 0 12px;
  }

  .postit-board {
    display: block;
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
  }

  .postit {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    max-height: none;
    margin: 0 0 14px;
    padding: 24px 66px 20px 20px;
  }

  .postit time {
    font-size: 0.9rem;
  }

  .postit h2 {
    font-size: clamp(1.45rem, 8vw, 2rem);
    line-height: 1.08;
  }

  .postit p {
    margin-top: 12px;
    font-size: clamp(1.08rem, 5.2vw, 1.35rem);
    line-height: 1.38;
    overflow-wrap: anywhere;
  }

  .postit-symbol {
    top: 46px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 9px;
  }

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

  .weather-strip {
    flex: 0 0 auto;
    gap: 10px !important;
    min-height: 106px;
    margin: 0 -12px 14px;
    padding: 0 12px 7px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .weather-tile {
    box-sizing: border-box;
    flex: 0 0 116px;
    min-width: 116px;
    min-height: 96px;
    scroll-snap-align: start;
  }

  .weather-tile + .weather-tile {
    margin-left: 0;
  }

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

  .weather-icon {
    flex-basis: 44px;
    width: 44px;
  }

  .weather-tile b {
    min-width: 36px;
    font-size: 1.45rem;
  }

  .saying-bar {
    flex: 0 0 auto;
    min-height: 64px;
    padding: 12px 16px;
  }

  .saying-bar span {
    overflow: visible;
    font-size: clamp(1.08rem, 5.7vw, 1.4rem);
    line-height: 1.22;
    text-overflow: clip;
  }

  .shift-board,
  .shift-column {
    display: block;
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
  }

  .shift-column + .shift-column {
    margin: 10px 0 0;
  }

  .shift-card {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 78px;
    margin: 0;
    padding: 12px 12px 12px 11px;
  }

  .shift-card + .shift-card {
    margin-top: 8px;
  }

  .shift-placeholder {
    display: none;
  }

  .shift-card-top {
    flex-wrap: wrap;
    gap: 5px 10px;
  }

  .shift-card strong {
    max-width: 100%;
    font-size: clamp(1.15rem, 5.8vw, 1.5rem);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .shift-meta {
    flex: 1 1 100%;
    gap: 8px;
    margin-left: 0;
  }

  .shift-meta b {
    margin-left: 0;
  }

  .shift-time,
  .shift-card p {
    font-size: 1rem;
  }

  .shift-card b {
    font-size: 1.08rem;
  }

  .shift-card p {
    margin-top: 7px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .learner-badge {
    position: static;
    display: inline-flex;
    width: 1.65em;
    height: 1.65em;
    margin-left: 8px;
    border-width: 3px;
    transform: none;
    vertical-align: middle;
  }

  .boss-badge,
  .best-badge {
    width: 64px;
    height: 64px;
  }

  .shift-empty,
  .shift-empty-sleepy {
    box-sizing: border-box;
    min-height: 58vh;
    padding: 28px 18px;
  }

  .shift-empty-sleepy {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .shift-empty-sleepy img {
    width: min(72vw, 280px);
    max-width: 100%;
    max-height: 38vh;
    margin: 0;
  }

  .shift-empty-sleepy strong {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .shift-empty-sleepy span {
    margin-top: 12px;
    font-size: clamp(1.15rem, 6vw, 1.6rem);
  }

  .demo-info-hero {
    box-sizing: border-box;
    height: auto;
    min-height: 390px;
    padding: 58px 22px 24px;
    background:
      linear-gradient(180deg, rgba(244, 246, 248, 0.98) 0%, rgba(244, 246, 248, 0.9) 52%, rgba(244, 246, 248, 0.28) 100%),
      url("visma-light-vaktrom-hero.png") center / cover no-repeat;
  }

  .demo-info-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
    line-height: 1;
  }

  .demo-info-hero p {
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .demo-info-grid {
    margin: 12px 0 0;
  }

  .demo-info-grid article {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    margin: 0 0 10px;
    padding: 16px;
  }

  .demo-info-grid strong {
    font-size: 1.3rem;
  }

  .demo-info-grid p {
    font-size: 1rem;
  }

  .demo-info-footer {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    margin-top: 4px;
    padding: 16px;
    overflow-wrap: anywhere;
  }

  .demo-info-footer strong,
  .demo-info-footer a {
    display: block;
    margin: 6px 0 0;
    font-size: 1.08rem;
  }
}
