:root {
  --ef-ink: #172235;
  --ef-muted: #526477;
  --ef-blue: #175f87;
  --ef-blue-dark: #10263b;
  --ef-gold: #e8a317;
  --ef-bg: #f4f7fa;
  --ef-border: #cbd5df;
  --ef-focus: #0a66c2;
  --ef-radius: 1rem;
}

body {
  background: var(--ef-bg);
  color: var(--ef-ink);
  overflow-wrap: anywhere;
}

a, button, input, select, textarea, summary {
  scroll-margin-top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--ef-focus);
  outline-offset: 3px;
}

.ef-public-nav {
  align-items: center;
  background: var(--ef-blue-dark);
  color: #fff;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 3.75rem;
  padding: .65rem max(1rem, calc((100vw - 1320px) / 2));
}

.ef-public-nav > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ef-public-nav a,
.ef-public-nav button {
  color: #fff;
}

.ef-public-nav form { display: inline; }
.ef-public-nav button { background: transparent; border: 1px solid #b9cbd9; border-radius: .4rem; padding: .25rem .6rem; }
.ef-public-brand { font-size: 1.2rem; font-weight: 750; text-decoration: none; }

.ef-mobile-top-actions { display: none !important; }
.ef-mobile-tabs { display: none; }

.ef-page-banner {
  align-items: end;
  background: linear-gradient(125deg, var(--ef-blue-dark), var(--ef-blue));
  border-bottom: .35rem solid var(--ef-gold);
  border-radius: var(--ef-radius);
  color: #fff;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.ef-page-banner h1 { margin: .15rem 0 .35rem; }
.ef-page-banner p { color: #e4edf4; }
.ef-page-banner form { flex: 0 1 22rem; min-width: min(100%, 16rem); }
.ef-page-banner .form-label { color: #fff; font-weight: 700; }
.ef-page-banner-kicker {
  color: #ffd36b;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ef-task-team { color: var(--ef-muted); font-size: .8rem; margin-top: .4rem; }

.ef-workday-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: .75rem;
}

.ef-workday-choice {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .8rem;
  border: 1px solid var(--ef-border);
  border-radius: .6rem;
  cursor: pointer;
}

.ef-workday-choice:has(input:checked) {
  border-color: var(--ef-blue);
  background: #e8f3f9;
}

.ef-workday-choice small {
  display: block;
  color: var(--ef-muted);
}

.ef-event-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1rem;
}

.ef-event-day.is-today {
  border: 3px solid var(--ef-gold);
}

.ef-event-day .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ef-event-day .card-header strong,
.ef-event-day .card-header small {
  display: block;
}

.ef-event-task {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--ef-border);
  color: inherit;
  text-decoration: none;
}

.ef-event-task:last-child {
  border-bottom: 0;
}

.ef-event-task small {
  display: block;
  color: var(--ef-muted);
}

.ef-filter-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.ef-filter-panel > summary::marker {
  color: var(--ef-blue);
}

.ef-mobile-bar {
  align-items: center;
  background: var(--ef-blue-dark);
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 3.75rem;
  padding: .65rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1040;
}

.ef-sidebar {
  background: var(--ef-blue-dark);
  min-height: 100vh;
}

.ef-sidebar .nav-link {
  border-radius: .5rem;
  color: #dce8f1;
  margin: .15rem 0;
  padding: .65rem .75rem;
}

.ef-sidebar .nav-link:hover,
.ef-sidebar .nav-link.active {
  background: #fff;
  color: var(--ef-blue-dark);
}

.ef-user-context {
  color: #fff;
  display: flex;
  flex-direction: column;
}

.ef-user-context span,
.ef-page-context {
  color: #b9cbd9;
  font-size: .875rem;
}

.ef-page-context {
  align-items: center;
  display: flex;
  gap: .45rem;
  margin-bottom: 1rem;
}

.ef-metric-link {
  color: inherit;
  text-decoration: none;
}

.ef-metric-link:hover {
  box-shadow: 0 .4rem 1.3rem rgba(13, 38, 59, .16);
  color: var(--ef-blue);
  transform: translateY(-1px);
}

.ef-card,
.presentation-card {
  border: 0;
  border-radius: var(--ef-radius);
  box-shadow: 0 .25rem 1rem rgba(13, 38, 59, .09);
}

.ef-card .table {
  --bs-table-bg: transparent;
}

.metric {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 750;
  line-height: 1;
}

.metric-small {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.progress {
  background: #dfe6ec;
  height: .95rem;
}

.progress-bar {
  background-color: var(--ef-blue);
  min-width: 0;
}

.ef-empty {
  border: 2px dashed #aebdca;
  border-radius: var(--ef-radius);
  color: var(--ef-muted);
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.ef-filter-chips {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.ef-quick-edit > summary {
  display: inline-block;
  list-style: none;
}

.ef-quick-edit > summary::-webkit-details-marker {
  display: none;
}

.ef-quick-form {
  background: #fff;
  border: 1px solid var(--ef-border);
  border-radius: .75rem;
  box-shadow: 0 .4rem 1rem rgba(13, 38, 59, .12);
  display: grid;
  gap: .65rem;
  margin-top: .5rem;
  min-width: min(21rem, 80vw);
  padding: .9rem;
  position: absolute;
  right: 1rem;
  text-align: left;
  z-index: 20;
}

.task-mobile .ef-quick-form {
  min-width: 0;
  position: static;
}

.ef-hierarchy > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style-position: inside;
}

.ef-hierarchy > summary small {
  display: block;
  font-weight: normal;
}

.ef-hierarchy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ef-hierarchy-task {
  align-items: center;
  border-top: 1px solid #e5ebf0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .55rem 0;
}

.task-mobile {
  display: none;
}

.presentation-wrap {
  min-height: 100vh;
}

.presentation-card {
  margin-bottom: 1rem;
}

.presentation-area {
  margin-bottom: 1rem;
}

.presentation-area.is-clickable {
  background: transparent;
  border: 1px solid transparent;
  border-radius: .65rem;
  color: inherit;
  display: block;
  padding: .65rem;
  text-align: left;
  transition: background-color .15s ease, border-color .15s ease;
  width: 100%;
}

.presentation-area.is-clickable:hover {
  background: #f4f7fa;
  border-color: var(--ef-border);
}

.ef-area-accordions { display: grid; gap: .75rem; }
.ef-area-accordion { border: 1px solid var(--ef-border); border-radius: .75rem; overflow: hidden; scroll-margin-top: 1rem; }
.ef-area-accordion.is-overdue { border-color: #dc3545; box-shadow: inset .3rem 0 #dc3545; }
.ef-area-accordion.is-performed { border-color: #8bd0a3; box-shadow: inset .3rem 0 #8bd0a3; }
.ef-area-accordion.is-done { border-color: #198754; box-shadow: inset .3rem 0 #198754; }
.ef-area-accordion > summary { align-items: center; background: linear-gradient(to right,#d9f2e2 0,#d9f2e2 var(--ef-area-progress,0%),#fff var(--ef-area-progress,0%),#fff 100%); cursor: pointer; display: flex; justify-content: space-between; list-style: none; padding: 1rem; }
.ef-area-accordion.is-done > summary { background: #c7ead4; }
.ef-area-accordion > summary::-webkit-details-marker { display: none; }
.ef-area-accordion > summary span:first-child { display: flex; flex-direction: column; }
.ef-area-accordion > summary small { color: var(--ef-muted); font-weight: 400; }
.ef-area-blocked-warning { display: inline-block; margin-left: .25rem; }
.ef-area-accordion-body { background: #fff; border-top: 1px solid var(--ef-border); padding: 1rem; }

.ef-message-thread {
  background: #f4f7fa;
  border: 1px solid var(--ef-border);
  border-radius: .75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-height: 55vh;
  min-height: 15rem;
  overflow-y: auto;
  padding: 1rem;
}

.ef-message {
  border-radius: .85rem;
  cursor: pointer;
  max-width: min(85%, 34rem);
  padding: .65rem .85rem;
  position: relative;
  transition: background-color .15s ease,box-shadow .15s ease;
}

.ef-message p { margin-bottom: 0; }
.ef-message time { display: block; font-size: .75rem; opacity: .7; }
.ef-message.is-mine { align-self: flex-end; background: var(--ef-blue); color: #fff; }
.ef-message.is-theirs { align-self: flex-start; background: #fff; border: 1px solid var(--ef-border); }
.ef-message.is-mine.is-selected { background: #365f80; box-shadow: 0 0 0 .2rem rgba(232,163,23,.3); }
.ef-message.is-theirs.is-selected { background: #fff5d9; border-color: var(--ef-gold); box-shadow: 0 0 0 .15rem rgba(232,163,23,.18); }
.ef-message.is-hidden-message { opacity: .62; outline: 2px dashed var(--ef-muted); }
.ef-message-details { margin-top: .4rem; }
.ef-message-id { font-size: .72rem; margin-top: .4rem; opacity: .75; }
.ef-message-id code { color: inherit; font-weight: 700; }
.ef-message-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.ef-message-actions form { display: inline; }
.ef-message-actions button,.ef-message-forward button {
  background: rgba(255,255,255,.18);
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: .75rem;
  padding: .2rem .55rem;
}
.ef-message.is-theirs .ef-message-actions button,.ef-message.is-theirs .ef-message-forward button { background: #fff; color: var(--ef-blue); }
.ef-message-forward { align-items: end; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.ef-message-forward[hidden] { display: none; }
.ef-message-forward label { font-size: .75rem; }
.ef-message-forward select { border: 1px solid var(--ef-border); border-radius: .4rem; display: block; max-width: 13rem; padding: .25rem; }
.ef-message-reactions { display: flex; gap: .3rem; margin-top: .5rem; }
.ef-message-reactions button {
  background: rgba(255,255,255,.2);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  height: 2rem;
  line-height: 1;
  padding: 0;
  width: 2rem;
}
.ef-message-reactions button.active { background: #fff3bf; border-color: var(--ef-gold); transform: scale(1.12); }
.ef-message-reaction-summary {
  bottom: -.65rem;
  display: flex;
  gap: .2rem;
  position: absolute;
  right: .4rem;
}
.ef-message-reaction-summary:empty { display: none; }
.ef-message-reaction-summary span { background: #fff; border: 1px solid var(--ef-border); border-radius: 999px; box-shadow: 0 .1rem .25rem rgba(16,38,59,.15); color: #172b3a; font-size: .8rem; padding: .05rem .3rem; }

.ef-new-conversation { position: relative; }
.ef-new-conversation > summary { align-items: center; display: flex; font-size: 1.7rem; height: 2.5rem; justify-content: center; list-style: none; line-height: 1; padding: 0; width: 2.5rem; }
.ef-new-conversation > summary::-webkit-details-marker { display: none; }
.ef-new-conversation-menu { background: #fff; border: 1px solid var(--ef-border); border-radius: .75rem; box-shadow: 0 .5rem 1.5rem rgba(16,38,59,.18); max-height: 22rem; min-width: min(20rem,80vw); overflow-y: auto; padding: .75rem; position: absolute; right: 0; top: 3rem; z-index: 30; }
.ef-conversation-list { gap: .4rem; }
.ef-conversation-list .list-group-item { background: #eef3f7; border: 1px solid var(--ef-border); border-radius: .55rem !important; }
.ef-conversation-list .list-group-item.active { background: var(--ef-blue); border-color: var(--ef-blue); }
.ef-conversation-heading { align-items: center; display: flex; gap: .5rem; }
.ef-conversation-alias-button {
  align-items: center;
  background: #eef3f7;
  border: 1px solid var(--ef-border);
  border-radius: 50%;
  color: var(--ef-muted);
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}
.ef-conversation-alias-button svg { fill: none; height: 1.05rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 1.05rem; }
.ef-conversation-alias-button:hover,.ef-conversation-alias-button:focus-visible { background: #fff; border-color: var(--ef-blue); color: var(--ef-blue); }
.ef-conversation-alias-form { align-items: center; display: flex; gap: .5rem; max-width: 28rem; }
.ef-conversation-alias-form[hidden] { display: none; }

.ef-announcement-board { background: linear-gradient(145deg,#fffdf7,#fff7df); overflow: hidden; }
.ef-announcement-heading { align-items: center; display: flex; gap: .75rem; }
.ef-announcement-heading .small { color: #9a6500; letter-spacing: .08em; }
.ef-announcement-icon { align-items: center; background: var(--ef-gold); border-radius: 50%; color: #332100; display: inline-flex; height: 2.8rem; justify-content: center; width: 2.8rem; }
.ef-announcement-icon svg { fill: none; height: 1.55rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 1.55rem; }
.ef-announcement-add { align-items: center; background: var(--ef-blue); border: 1px solid var(--ef-blue); border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 auto; font-size: 1.65rem; height: 2.5rem; justify-content: center; line-height: 1; text-decoration: none; width: 2.5rem; }
.ef-announcement-add:hover,.ef-announcement-add:focus-visible { background: #fff; color: var(--ef-blue); }
.ef-announcement-empty { align-items: center; background: rgba(255,255,255,.72); border: 1px dashed #d8b35e; border-radius: .8rem; color: var(--ef-muted); display: flex; gap: .7rem; padding: 1rem; }
.ef-announcement-empty span { font-size: 1.5rem; }
.ef-public-messages { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,20rem),1fr)); }
.ef-public-message { background: #fff; border: 1px solid #d9e0e6; border-radius: .85rem; box-shadow: 0 .25rem .8rem rgba(16,38,59,.12); min-width: 0; padding: 1rem; position: relative; }
.ef-public-message:nth-child(3n+2) { border-top: .25rem solid #6aa4c8; }
.ef-public-message:nth-child(3n+3) { border-top: .25rem solid #78b88b; }
.ef-public-message:nth-child(3n+4) { border-top: .25rem solid #e29a74; }
.ef-public-message.is-latest { background: #eef7ff; border: 2px solid #6aa4c8; grid-column: 1/-1; padding: 1.15rem; }
.ef-public-message-meta { align-items: center; display: flex; gap: .65rem; padding-right: 3.5rem; }
.ef-public-message-meta strong,.ef-public-message-meta time { display: block; }
.ef-public-message time { color: var(--ef-muted); font-size: .78rem; }
.ef-public-message-avatar { align-items: center; background: var(--ef-blue); border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 auto; font-weight: 800; height: 2.25rem; justify-content: center; width: 2.25rem; }
.ef-public-message p { font-size: 1.03rem; line-height: 1.5; margin: .8rem 0 0; overflow-wrap: anywhere; }
.ef-public-message-latest { background: var(--ef-gold); border-radius: 999px; color: #332100; font-size: .7rem; font-weight: 800; padding: .2rem .55rem; position: absolute; right: .75rem; text-transform: uppercase; top: .75rem; }

.ef-shopping-groups { display: grid; gap: 1.5rem; }
.ef-shopping-group-heading { align-items: center; border-bottom: 2px solid var(--ef-border); display: flex; gap: .5rem; padding-bottom: .5rem; }
.ef-shopping-list { display: grid; gap: .75rem; }
.ef-shopping-item { align-items: center; border: 1px solid var(--ef-border); border-radius: .75rem; display: flex; gap: 1rem; justify-content: space-between; padding: 1rem; scroll-margin: 1rem 0 5.5rem; }
.ef-shopping-item:target { border-color: var(--ef-gold); box-shadow: 0 0 0 .2rem rgba(232,163,23,.18); }
.ef-shopping-item-main { min-width: 0; }
.ef-shopping-item-main .text-secondary { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.ef-shopping-item.is-purchased { background: #f4f7fa; opacity: .72; }
.ef-shopping-item.is-purchased h4 { text-decoration: line-through; }

.ef-photo-grid { columns: 3 18rem; column-gap: 1rem; }
.ef-photo-card { break-inside: avoid; margin-bottom: 1rem; overflow: hidden; }
.ef-photo-card > img { cursor: zoom-in; display: block; height: auto; max-height: 38rem; object-fit: cover; width: 100%; }
.ef-photo-lightbox {
  align-items: center;
  background: rgba(0,0,0,.94);
  border: 0;
  display: flex;
  inset: 0;
  justify-content: center;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: 1rem;
  position: fixed;
  width: 100%;
}
.ef-photo-lightbox:not([open]) { display: none; }
.ef-photo-lightbox::backdrop { background: rgba(0,0,0,.94); }
.ef-photo-lightbox img {
  cursor: zoom-out;
  height: auto;
  max-height: calc(100dvh - 2rem);
  max-width: 100%;
  object-fit: contain;
  touch-action: none;
  transform-origin: center;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
.ef-photo-lightbox img.is-zoomed { cursor: grab; }
.ef-photo-lightbox img.is-panning { cursor: grabbing; }

.ef-kickoff-interest { align-items: center; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.ef-kickoff-attendees { display: flex; flex-wrap: wrap; gap: .35rem; }
.ef-kickoff-attendee-list { min-width: min(100%,20rem); }
.ef-kickoff-attendee-list > summary { align-items: center; cursor: pointer; display: flex; font-weight: 700; gap: .65rem; list-style: none; }
.ef-kickoff-attendee-list > summary::-webkit-details-marker { display: none; }
.ef-kickoff-attendee-list > summary::before { border-bottom: .3rem solid transparent; border-left: .45rem solid currentColor; border-top: .3rem solid transparent; content: ""; transition: transform .15s ease; }
.ef-kickoff-attendee-list[open] > summary::before { transform: rotate(90deg); }

.badge.ef-status-performed {
  background: #b7e4c7;
  color: #163b24;
}

.badge.ef-status-done {
  background: #198754;
  color: #fff;
}

.btn.ef-status-action-performed {
  background: #b7e4c7;
  border-color: #8bd0a3;
  color: #163b24;
}

.btn.ef-status-action-performed:hover {
  background: #9ed9b3;
  border-color: #70c58e;
  color: #102b1a;
}

.ef-collapse-task {
  border-left: .35rem solid #adb5bd;
}

.ef-collapse-task-not_started {
  background: #f5f6f7;
}

.ef-collapse-task-in_progress {
  background: #e4f1ff;
  border-left-color: #0d6efd;
}

.ef-collapse-task-blocked {
  background: #fde8ea;
  border-left-color: #dc3545;
}

.ef-collapse-task-performed {
  background: #e5f6eb;
  border-left-color: #8bd0a3;
}

.ef-collapse-task-done {
  background: #c7ead4;
  border-left-color: #198754;
}

.ef-collapse-task-cancelled {
  background: #e2e3e5;
  border-left-color: #343a40;
}
.ef-reactions { display: flex; flex-wrap: wrap; gap: .35rem; }
.ef-reactions button { background: #f4f7fa; border: 1px solid var(--ef-border); border-radius: 999px; font-size: 1.15rem; padding: .25rem .55rem; }
.ef-reactions button.active { background: #fff1bd; border-color: var(--ef-gold); }
.ef-reactions small { margin-left: .2rem; }

.ef-attendance-row { border: 0; border-bottom: 1px solid var(--ef-border); margin: 0 0 .75rem; padding: 0 0 .75rem; }
.ef-attendance-row legend { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.ef-attendance-buttons { display: flex; flex-wrap: wrap; gap: .35rem; }
.ef-attendance-buttons input { position: absolute; opacity: 0; }
.ef-attendance-buttons span { border: 1px solid var(--ef-border); border-radius: .5rem; cursor: pointer; display: block; padding: .4rem .65rem; }
.ef-attendance-buttons input:checked + span { background: var(--ef-blue); border-color: var(--ef-blue); color: #fff; }
.ef-attendance-buttons input:focus-visible + span { outline: 3px solid var(--ef-focus); }

@media (max-width: 575.98px) {
  .ef-shopping-item { align-items: stretch; flex-direction: column; }
}

.presentation-card .list-group-item {
  border-color: var(--ef-border);
}

.menu-presentation-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit,minmax(15rem,1fr));
}

.menu-presentation-item {
  border: 1px solid var(--ef-border);
  border-radius: .75rem;
  padding: 1rem;
}

.menu-presentation-item p:last-child { margin-bottom: 0; }

.tv-panel {
  margin-bottom: 1rem;
}

.calendar-grid {
  display: grid;
  gap: .25rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-head {
  margin-bottom: .25rem;
  text-align: center;
}

.calendar-day {
  background: #fff;
  border: 1px solid var(--ef-border);
  min-height: 8rem;
  padding: .4rem;
}

.calendar-day.is-outside { opacity: .45; }
.calendar-day.is-today { border: 3px solid var(--ef-blue); }
.calendar-event, .calendar-workday { display: block; font-size: .78rem; margin-top: .25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event { background: #e3f1f8; border-left: 3px solid var(--ef-blue); color: var(--ef-ink); padding: .2rem; text-decoration: none; }
.calendar-workday { color: var(--ef-muted); }
.calendar-list-item { align-items: center; border-top: 1px solid var(--ef-border); color: inherit; display: flex; justify-content: space-between; padding: .75rem 0; text-decoration: none; }
.calendar-list-item small { display: block; color: var(--ef-muted); }

.timeline-scroll { overflow-x: auto; }
.timeline-board { min-width: 70rem; padding: 1rem; position: relative; }
.timeline-group { background: #e7edf2; cursor: pointer; font-weight: 700; padding: .65rem; position: sticky; left: 0; z-index: 3; }
.timeline-subgroup { background: #f4f7fa; border-bottom: 1px solid var(--ef-border); cursor: pointer; font-weight: 650; padding: .45rem .75rem .45rem 1.5rem; position: sticky; left: 0; z-index: 3; }
.timeline-row { display: grid; grid-template-columns: 18rem 1fr; min-height: 3.5rem; }
.timeline-name { background: #fff; border-bottom: 1px solid var(--ef-border); color: inherit; left: 0; padding: .55rem; position: sticky; text-decoration: none; z-index: 2; }
.timeline-name small { display: block; color: var(--ef-muted); }
.timeline-track { background: repeating-linear-gradient(90deg,#fff 0,#fff calc(12.5% - 1px),#dce4eb 12.5%); border-bottom: 1px solid var(--ef-border); position: relative; }
.timeline-bar { background: #b8c8d5; border-radius: .35rem; height: 2rem; min-width: .5rem; overflow: hidden; position: absolute; top: .7rem; }
.timeline-bar > span { background: var(--ef-blue); display: block; height: 100%; }
.timeline-bar > b { color: #fff; font-size: .75rem; left: .35rem; position: absolute; top: .4rem; }
.timeline-bar > i { border-left: 3px solid var(--ef-gold); height: 100%; position: absolute; top: 0; }
.timeline-bar.status-blocked { outline: 3px solid #b02a37; }
.timeline-marker { border-left: 2px dashed var(--ef-blue); bottom: 0; position: absolute; top: 0; z-index: 1; }
.timeline-marker.event { border-color: var(--ef-gold); border-left-width: 4px; }
.timeline-mobile { display: none; }

@media (max-width: 767.98px) {
  .ef-public-nav.has-mobile-tabs {
    align-items: center;
    flex-direction: row;
    min-height: 3.75rem;
    padding: .55rem 1rem;
  }

  .ef-public-nav.has-mobile-tabs > .ef-public-links { display: none; }

  .ef-public-nav .ef-mobile-top-actions {
    align-items: center;
    display: flex !important;
    gap: .35rem;
    margin-left: auto;
  }

  .ef-mobile-top-actions a {
    align-items: center;
    border-radius: .55rem;
    display: flex;
    height: 2.65rem;
    justify-content: center;
    position: relative;
    width: 2.65rem;
  }

  .ef-mobile-top-actions a:active {
    background: rgba(255,255,255,.14);
  }

  .ef-mobile-top-actions svg {
    fill: none;
    height: 1.55rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 1.55rem;
  }

  .ef-mobile-top-actions .ef-mobile-tab-badge {
    border-color: var(--ef-blue-dark);
    left: auto;
    right: -.2rem;
    top: -.15rem;
  }

  body:has(.ef-mobile-tabs) {
    padding-bottom: calc(4.6rem + env(safe-area-inset-bottom));
  }

  .ef-mobile-tabs {
    align-items: stretch;
    background: #fff;
    border-top: 1px solid var(--ef-border);
    bottom: 0;
    box-shadow: 0 -.35rem 1rem rgba(16, 38, 59, .14);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(4.25rem, 1fr);
    left: 0;
    padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
    overflow-x: auto;
    position: fixed;
    right: 0;
    z-index: 1200;
  }

  .ef-mobile-tabs a {
    align-items: center;
    border-radius: .55rem;
    color: var(--ef-muted);
    display: flex;
    flex-direction: column;
    font-size: .68rem;
    font-weight: 650;
    gap: .1rem;
    justify-content: center;
    min-height: 3.55rem;
    padding: .25rem .1rem;
    position: relative;
    text-decoration: none;
  }

  .ef-mobile-tabs a.active {
    background: #eaf2f7;
    color: var(--ef-blue-dark);
  }

  .ef-mobile-tabs svg {
    height: 1.5rem;
    width: 1.5rem;
  }

  .ef-mobile-tab-badge {
    align-items: center;
    background: #dc3545;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: .62rem;
    font-weight: 800;
    height: 1.25rem;
    justify-content: center;
    left: calc(50% + .35rem);
    line-height: 1;
    min-width: 1.25rem;
    padding: 0 .22rem;
    position: absolute;
    top: .15rem;
  }

  .ef-page-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 1.25rem;
  }
  .ef-page-banner form { flex-basis: auto; }
  .ef-public-nav { align-items: flex-start; flex-direction: column; }
  .ef-public-nav > div { gap: .65rem; }
  .ef-sidebar {
    box-shadow: .6rem 0 1.5rem rgba(0, 0, 0, .25);
    display: none;
    height: calc(100vh - 3.75rem);
    left: 0;
    min-height: 0;
    overflow-y: auto;
    position: fixed;
    top: 3.75rem;
    width: min(19rem, 88vw);
    z-index: 1035;
  }

  .ef-sidebar.is-open {
    display: block;
  }

  .task-table {
    display: none;
  }

  .task-mobile {
    display: block;
  }

  .ef-hierarchy-task {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .presentation-header {
    align-items: flex-start !important;
  }

  .calendar-month { display: none; }
  .calendar-list-item { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .timeline-scroll { display: none; }
  .timeline-mobile { display: block; }
}

@media (min-width: 768px) {
  .ef-mobile-bar {
    display: none;
  }
}

/* TV-läget är avsett för en 16:9-skärm på avstånd. */
.tv,
.tv body {
  background: #07131e;
  color: #fff;
}

.tv body {
  overflow: hidden;
}

.tv .presentation-wrap {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 2.5vh 3vw !important;
}

.tv .presentation-header {
  align-items: center !important;
  flex: 0 0 auto;
  margin-bottom: 2vh !important;
}

.tv .presentation-header > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.tv .presentation-header > div:last-child {
  flex: 0 0 auto;
}

.tv h1 {
  font-size: clamp(2.5rem, 4vw, 4.75rem);
  line-height: 1.05;
  white-space: nowrap;
}

.tv h2 {
  font-size: clamp(1.6rem, 2.5vw, 3rem) !important;
}

.tv .metric {
  font-size: clamp(3rem, 6vw, 7rem);
}

.tv #content {
  flex: 1 1 auto;
  min-height: 0;
}

.tv .tv-panel {
  display: none;
  height: 100%;
  margin: 0;
}

.tv .tv-panel.is-active {
  animation: ef-fade .45s ease-out;
  display: block;
}

.tv .card {
  background: #10263b;
  border: 2px solid #54718c;
  color: #fff;
}

.tv .card-body {
  padding: clamp(1.25rem, 2vw, 2.5rem);
}

.tv .list-group-item,
.tv .text-secondary {
  color: #e0e8ef !important;
}

.tv .list-group-item {
  border-color: #54718c;
  font-size: clamp(1.2rem, 2vw, 2.25rem);
  padding-bottom: 1.1rem !important;
  padding-top: 1.1rem !important;
}

.tv .progress {
  height: clamp(1.4rem, 2.3vw, 2.5rem);
}

.tv .presentation-area {
  font-size: clamp(1.15rem, 2vw, 2.2rem);
  margin-bottom: clamp(1rem, 2vh, 2rem);
}

.tv .menu-presentation-item {
  border-color: #54718c;
  font-size: clamp(1.15rem,1.8vw,2rem);
  padding: clamp(1rem,2vw,2rem);
}

.tv-page-indicator {
  bottom: 1.2vh;
  color: #bfd0de;
  font-size: 1rem;
  position: fixed;
  right: 2vw;
}

.tv-menu-ticker {
  position: fixed;
  z-index: 1100;
  inset: auto 0 0;
  display: flex;
  align-items: stretch;
  min-height: 5.75rem;
  overflow: hidden;
  color: #fff;
  background: #101010;
  border-top: .3rem solid #ffc107;
  box-shadow: 0 -.5rem 1.5rem rgb(0 0 0 / 35%);
}

.tv-public-message-ticker {
  align-items: stretch;
  background: #101010;
  border-bottom: .25rem solid #ffc107;
  color: #fff;
  display: flex;
  inset: 0 0 auto;
  min-height: 4.5rem;
  overflow: hidden;
  position: fixed;
  z-index: 1100;
}

.tv-public-message-label {
  align-items: center;
  background: #ffc107;
  color: #101010;
  display: flex;
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 0 1.5rem;
  text-transform: uppercase;
  z-index: 1;
}

.tv-public-message-window { align-items: center; display: flex; min-width: 0; overflow: hidden; }
.tv-public-message-track { animation: tv-public-message-scroll 32s linear infinite; display: flex; width: max-content; will-change: transform; }
.tv-public-message-text { flex: none; font-size: 1.5rem; font-weight: 650; min-width: calc(100vw - 13rem); padding: 0 3rem; white-space: nowrap; }
.tv-public-message-author { color: #ffc107; font-weight: 850; }
.tv-public-message-body { color: #f8f9fa; }
.tv-public-message-separator { color: #8d99a6; padding: 0 1.25rem; }

@keyframes tv-public-message-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tv:has(.tv-public-message-ticker) .presentation-wrap {
  padding-top: 6rem !important;
}

.tv-daily-dashboard {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 1.25rem;
  height: 100%;
}

.tv-daily-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 1.25rem;
  min-width: 0;
}

.tv #kickoffCountdown .ef-kickoff-interest,
.tv #topProgress,
.tv .tv-status-summary {
  display: none !important;
}

.tv-status-text {
  margin-top: .25rem;
  font-size: 2.25rem;
  font-weight: 800;
}

.tv-status-summary {
  width: min(34rem, 100%);
  justify-self: center;
}

.tv-status-summary .card-body {
  justify-content: center !important;
  text-align: center;
}

.tv-today-card,
.tv-today-card .card-body {
  min-height: 0;
}

.tv-today-card .card-body {
  display: flex;
  flex-direction: column;
}

.tv-today-tasks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  overflow: hidden;
}

.tv-today-task {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .9rem 1.1rem;
  border: 2px solid #5d6670;
  border-radius: .7rem;
  background: #171b20;
}

.tv-today-task.is-overdue {
  border-color: #ffb020;
}

.tv-today-task.is-due-today {
  border-color: #ffc107;
  background: #24200f;
}

.tv-task-due-today {
  flex: none;
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: .35rem;
  background: #ffc107;
  color: #111;
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.tv-task-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .65rem;
}

.tv-task-heading h3 {
  min-width: 0;
}

.tv-today-task.is-blocked {
  border-color: #ff5c68;
}

.tv-today-task h3 {
  margin: 0;
  overflow: hidden;
  font-size: 1.45rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-task-meta {
  color: #d6d9dd;
  font-size: 1rem;
}

.tv-task-progress {
  flex: none;
  font-size: 1.65rem;
}

.tv-all-clear {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 2px solid #78d69a;
  border-radius: .75rem;
  font-size: 1.6rem;
}

.tv-project-progress {
  width: 100%;
}

.tv-project-progress-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .45rem;
  font-size: 1.5rem;
}

.tv-project-progress-heading span {
  color: #ffc107;
  font-size: 2.4rem;
  font-weight: 900;
}

.tv .tv-project-progress-bar {
  width: 100%;
  height: 3.5rem;
  overflow: hidden;
  border: .2rem solid #fff;
  border-radius: .6rem;
  background: #1c2731;
}

.tv .tv-project-progress-bar .progress-bar {
  width: 0;
  height: 100%;
  background: #ffc107;
  transition: width .6s ease;
}

.tv #content > .tv-panel {
  display: none;
}

.tv-menu-ticker-label {
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 2rem;
  color: #101010;
  background: #ffc107;
  font-size: 1.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tv-menu-ticker-window {
  display: flex;
  min-width: 0;
  overflow: hidden;
  align-items: center;
}

.tv-menu-ticker-track {
  display: flex;
  width: max-content;
  animation: tv-menu-scroll 24s linear infinite;
  will-change: transform;
}

.tv-menu-ticker-text {
  flex: none;
  min-width: calc(100vw - 13rem);
  padding-left: 4rem;
  padding-right: 4rem;
  white-space: nowrap;
  font-size: 2.15rem;
  font-weight: 700;
}

@keyframes tv-menu-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tv:has(.tv-menu-ticker:not(.d-none)) .presentation-wrap {
  padding-bottom: 8rem !important;
}

@media (prefers-reduced-motion: reduce) {
  .tv-menu-ticker-track,
  .tv-public-message-track {
    animation: none;
  }
}

@keyframes ef-fade {
  from { opacity: 0; transform: translateY(.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto;
    transition-duration: .01ms;
  }

  .tv .tv-panel.is-active {
    animation: none;
  }
}

@media (min-width: 1600px) {
  .presentation-wrap {
    font-size: 1.2rem;
  }
}
