:root {
  --blue: #43b3dd;
  --blue-dark: #177fa7;
  --ink: #1c2a33;
  --muted: #6d7a82;
  --line: #dce6eb;
  --paper: #fff;
  --canvas: #f4f8fa;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.app-shell {
  min-height: 100dvh;
  max-width: 1180px;
  margin: auto;
  background: var(--paper);
  box-shadow: 0 0 32px #b9c9d144;
}
.topbar {
  height: 66px;
  padding: 12px clamp(18px, 4vw, 42px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-wordmark {
  display: block;
  width: 214px;
  height: auto;
}
.profile {
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 50%;
  background: #d8f1fa;
  color: var(--blue-dark);
  font-weight: 700;
}
.view-switcher {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.view-switcher p { margin: 0; }
.view-switcher a,
.view-current {
  display: block;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-decoration: none;
}
.view-switcher a:hover { border-color: var(--blue); }
.view-current { background: #eaf8fd; color: var(--blue-dark); font-weight: 700; }
main {
  padding: 28px clamp(18px, 4vw, 42px) 100px;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.eyebrow {
  color: var(--blue-dark);
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: 1.05rem;
  margin: 0;
}
.icon-button {
  border: 1px solid var(--line);
  background: white;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--blue-dark);
}
.status-card {
  background: linear-gradient(145deg, #e9f8fc, #f6fcfe);
  border: 1px solid #cfeaf4;
  border-radius: 18px;
  padding: 22px;
}
.status-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-dark);
  font-size: 0.83rem;
  font-weight: 700;
}
.status-head p {
  margin: 0;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aabb3;
}
.status-card h2 {
  margin: 16px 0 4px;
  font-size: 1.25rem;
}
.muted {
  color: var(--muted);
  margin: 0;
}
.primary-action {
  margin-top: 20px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-weight: 750;
  font-size: 1rem;
  box-shadow: 0 5px 12px #36add34a;
}
.primary-action span {
  margin-right: 8px;
  font-size: 0.8rem;
}
.section-block {
  margin-top: 32px;
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.section-title a {
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.assignment {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--blue-dark);
  width: 42px;
}
.assignment strong {
  font-size: 0.96rem;
}
.assignment p {
  margin: 3px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.assignment-mark {
  width: 10px;
  height: 36px;
  margin-left: auto;
  border-radius: 5px;
  background: var(--blue);
}
.assignment-mark.secondary {
  background: #82d5ed;
}
.primary-small {
  border: 0;
  border-radius: 9px;
  min-height: 38px;
  padding: 0 13px;
  color: white;
  background: var(--blue);
  font-weight: 700;
}
.calendar-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.calendar-controls > button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  height: 34px;
  min-width: 34px;
}
.today-button {
  padding: 0 10px;
}
.view-switch {
  margin-left: auto;
  display: flex;
  padding: 3px;
  border-radius: 9px;
  background: #eef4f6;
}
.view-switch button {
  padding: 5px 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
}
.view-switch .selected {
  background: white;
  border-radius: 6px;
  color: var(--ink);
  box-shadow: 0 1px 3px #9eb3bd66;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.weekday {
  padding: 8px;
  text-align: right;
  background: #f7fafb;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}
.day,
.weekday {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.day {
  min-height: 92px;
  padding: 7px;
  text-align: right;
  font-size: 0.82rem;
}
.day.current {
  background: #eaf8fc;
  color: var(--blue-dark);
  font-weight: 800;
}
.muted-day {
  color: #aebbc1;
  background: #fbfcfc;
}
.weekend {
  background: #fafcfd;
}
.event {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  padding: 3px;
  border-left: 3px solid;
  border-radius: 3px;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.67rem;
  font-weight: 650;
  background: #f0fbff;
  color: #287a95;
}
.event.blue {
  border-color: #3eb3dc;
}
.event.cyan {
  border-color: #7ad8ed;
}
.event.purple {
  border-color: #8c86d8;
  background: #f3f2ff;
  color: #5f5a9d;
}
.search {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.search span {
  color: var(--muted);
  font-size: 1.4rem;
}
.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
}
.hint {
  color: var(--muted);
  font-size: 0.88rem;
}
.empty-state {
  padding: 48px 12px;
  text-align: center;
  color: var(--muted);
}
.empty-state img {
  width: 62px;
  opacity: 0.65;
}
.empty-state h2 {
  margin: 16px 0 7px;
  color: var(--ink);
}
.bottom-nav {
  position: fixed;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  background: #fffffff2;
  backdrop-filter: blur(13px);
  border-top: 1px solid var(--line);
}
.nav-link {
  width: min(16.6667%, 150px);
  min-height: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.66rem;
}
.nav-link span {
  font-size: 1.2rem;
  line-height: 1;
}
.nav-link.active {
  color: var(--blue-dark);
  font-weight: 800;
}
@media (min-width: 720px) {
  .bottom-nav {
    position: static;
    order: -1;
    padding: 0 clamp(18px, 4vw, 42px);
    justify-content: flex-start;
  }
  .app-shell {
    min-height: 100vh;
  }
  .nav-link {
    width: auto;
    min-width: 88px;
    flex-direction: row;
    gap: 7px;
    min-height: 52px;
    font-size: 0.82rem;
  }
  .nav-link.active {
    border-bottom: 3px solid var(--blue);
  }
  .calendar-heading {
    margin-bottom: 16px;
  }
  .day {
    min-height: 112px;
  }
  main {
    padding-bottom: 42px;
  }
}
@media (max-width: 520px) {
  .calendar {
    margin: 0 -18px;
  }
  .weekday {
    padding: 6px 3px;
    font-size: 0.62rem;
  }
  .day {
    min-height: 64px;
    padding: 5px 3px;
    font-size: 0.72rem;
  }
  .event {
    border-left-width: 2px;
    font-size: 0;
    height: 5px;
    padding: 0;
  }
  .calendar-controls .view-switch {
    order: 2;
    margin-left: 0;
  }
  .calendar-controls {
    justify-content: space-between;
  }
}
/* Live application: existing light blue branding and navigation are retained. */
[hidden] {
  display: none !important;
}
body {
  overflow-wrap: anywhere;
}
.app-shell {
  display: flex;
  flex-direction: column;
}
.topbar {
  flex-shrink: 0;
}
main {
  flex: 1;
  width: 100%;
}
.bottom-nav {
  order: 0;
}
button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 14px;
  background: white;
  color: var(--ink);
}
button:hover {
  border-color: var(--blue);
  background: #f0faff;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button.primary-action:hover,
button.primary-small:hover {
  background: var(--blue-dark);
  color: white;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px;
  border: 1px solid #b8cbd5;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  height: 20px;
  flex-shrink: 0;
}
textarea {
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
form {
  display: grid;
  gap: 16px;
}
a {
  color: var(--blue-dark);
}
:focus-visible {
  outline: 3px solid #187ba7;
  outline-offset: 3px;
}
.login-card {
  max-width: 430px;
  margin: 32px auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.login-card p {
  margin: 0;
  color: var(--muted);
}
.action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.action-grid .primary-action {
  margin-top: 0;
  flex-basis: 100%;
}
.action-grid > * {
  flex: 1 1 auto;
}
.status-dot.running {
  background: #239b63;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.metrics > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #f8fbfd;
}
.metrics span,
.metrics strong {
  display: block;
}
.metrics span {
  font-size: 0.77rem;
  color: var(--muted);
}
.metrics strong {
  font-size: 1.2rem;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.employee-filter {
  max-width: 280px;
  margin-bottom: 18px;
}
.notice,
.form-error:not(:empty) {
  padding: 14px;
  margin: 12px 0;
  border-radius: 10px;
  background: #fff5dc;
  color: #73500a;
}
.form-error button {
  margin-top: 10px;
}
.empty-message {
  color: var(--muted);
  padding: 18px 0;
}
.assignment {
  width: 100%;
  text-align: left;
  border-radius: 0;
  background: white;
}
.assignment-text {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}
.assignment-text > span {
  font-size: 0.85rem;
  color: var(--muted);
}
.assignment .time small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
}
.assignment-mark {
  flex-shrink: 0;
}
.day {
  border-radius: 0;
  display: block;
  font-weight: 400;
  min-width: 0;
  width: 100%;
}
.calendar-controls input {
  width: 155px;
}
.calendar-controls > button {
  min-height: 44px;
  min-width: 44px;
}
.view-switch button {
  min-height: 40px;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.week-grid > section {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.week-grid .assignment {
  display: block;
  padding: 8px 0;
}
.week-grid .assignment .time {
  display: block;
  width: auto;
  margin-bottom: 6px;
}
.week-grid .assignment-mark {
  display: none;
}
.week-date {
  width: 100%;
  font-size: 0.82rem;
  padding: 5px;
}
.day-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 16px 0;
}
.day-card .section-title {
  gap: 8px;
}
.time-list {
  display: grid;
  gap: 8px;
}
.time-list button {
  text-align: left;
}
.form-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}
.form-row > *,
.filter-row > * {
  flex: 1 1 180px;
  min-width: 0;
}
.filter-row > .form-error:empty {
  display: none;
}
.filter-row .quicksearch {
  align-self: start;
}
.master-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 4px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.master-card > span {
  color: var(--muted);
  font-size: 0.85rem;
}
.master-card > span:last-child {
  margin-left: auto;
  white-space: nowrap;
}
.note {
  border-left: 3px solid var(--blue);
  padding: 12px 16px;
  margin: 14px 0;
  background: #f5fafd;
}
.note p {
  white-space: pre-wrap;
}
.note small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.photo-grid figure {
  margin: 0;
}
.photo-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
}
.photo-grid small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.table-scroll {
  max-width: 100%;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
th,
td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
}
td:last-child {
  white-space: pre-wrap;
}
dialog {
  width: min(600px, calc(100% - 24px));
  max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  color: var(--ink);
}
dialog::backdrop {
  background: #142b3a77;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.dialog-head button {
  font-size: 1.4rem;
}
.employee-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.employee-checks label,
.check-label {
  flex-direction: row;
  align-items: center;
  padding: 7px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
}
legend {
  font-weight: 600;
  padding: 0 5px;
}
.quicksearch {
  position: relative;
}
.search-results:not(:empty) {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 5px;
  max-height: 230px;
  overflow: auto;
  background: #f8fcff;
}
.search-results button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
}
.search-results button:hover {
  background: #def2fa;
}
.search-results .create-result {
  color: var(--blue-dark);
  font-weight: 700;
}
.selection {
  font-size: 0.8rem;
  color: var(--blue-dark);
  margin: 5px 0 0;
}
.selection:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #183444;
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  box-shadow: 0 6px 24px #0003;
}
@media (min-width: 720px) {
  .bottom-nav {
    order: 0;
  }
  .topbar {
    order: -2;
  }
  .bottom-nav {
    order: -1;
  }
  #offline {
    order: -1;
  }
}
@media (max-width: 719px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .week-grid {
    grid-template-columns: 1fr;
  }
  .week-grid .assignment {
    display: flex;
  }
  .week-grid .assignment .time {
    width: 48px;
  }
  .day-card {
    padding: 14px;
  }
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .primary-small {
    flex-shrink: 0;
  }
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.day-photo {
  display: inline-block;
  margin: 12px 12px 0 0;
}
.day-photo img {
  width: 140px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}
.profile {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Daily overview: time first, assignment context second. */
.day-card-head,
.day-card-meta,
.site-overview li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.day-card-head h2 {
  margin: 0;
  overflow-wrap: anywhere;
}
.net-time {
  font-size: 1.5rem;
  white-space: nowrap;
}
.net-time small {
  font-size: 0.75rem;
  font-weight: normal;
  margin-left: 5px;
}
.day-card-meta {
  flex-wrap: wrap;
  margin: 8px 0 14px;
  font-size: 0.9rem;
}
.day-status {
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 600;
}
.day-status.ended {
  background: #e9f5ef;
  color: #256345;
}
.day-status.active {
  background: #e5f4fb;
  color: #086282;
}
.day-status.attention {
  background: #fff0d5;
  color: #825100;
}
.site-overview {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  color: #526978;
  font-size: 0.9rem;
}
.site-overview li {
  margin: 7px 0;
}
.site-overview li span:first-child {
  overflow-wrap: anywhere;
}
.site-overview li span:last-child {
  white-space: nowrap;
}
.day-details {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 10px;
}
summary {
  cursor: pointer;
  padding: 8px 0;
}
.day-details summary {
  color: #526978;
  font-size: 0.9rem;
}
.day-details .time-list {
  margin-top: 10px;
}
.daily-status {
  line-height: 1.6;
}

/* 2.5-second launch screen; separate from actual network loading. */
#launch-screen {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 24px;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: #f8fcff;
  color: #123a63;
  overflow: hidden;
}
#launch-screen[open] {
  display: grid;
  place-items: center;
  animation: launch-reveal 2.5s ease both;
}
#launch-screen::backdrop {
  background: #f8fcff;
}
.launch-content {
  display: grid;
  justify-items: center;
  gap: 26px;
}
.launch-compass {
  width: min(62vw, 44vh, 320px);
  height: auto;
  filter: drop-shadow(0 12px 30px #43aef51c);
}
.launch-wordmark {
  width: min(65vw, 250px);
  height: auto;
}
#launch-screen[open] .launch-minute {
  transform-origin: 256px 256px;
  animation: launch-hands 2.5s cubic-bezier(0.3, 0, 0.2, 1) both;
}
#launch-screen[open] .launch-hour {
  transform-origin: 256px 256px;
  animation: launch-hour-hands 2.5s cubic-bezier(0.3, 0, 0.2, 1) both;
}
@keyframes launch-hands {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(720deg);
  }
}
@keyframes launch-reveal {
  0% {
    opacity: 0;
  }
  12%,
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #launch-screen[open],
  #launch-screen[open] .launch-minute,
  #launch-screen[open] .launch-hour {
    animation: none;
  }
}

@keyframes launch-hour-hands {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.detail-back-link {
  display: block;
  width: fit-content;
  margin-bottom: 20px;
}

/* Consistent spacing between navigation, headings and section content. */
.page-heading > div {
  flex: 1 1 180px;
  min-width: 0;
}
.page-heading > button {
  flex-shrink: 0;
}
main > h2,
.section-block > h2,
.daily-actual > h2 {
  margin-bottom: 12px;
}
.section-block > button + h2 {
  margin-top: 24px;
}

.site-date-filter {
  margin-top: 16px;
}
.master-card .master-identity {
  flex: 1;
  min-width: 0;
  color: var(--blue-dark);
  font-size: 1rem;
}
.master-identity strong,
.master-identity small {
  display: block;
}
.master-identity small {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.app-update {
  margin: 16px clamp(18px, 4vw, 42px) 0;
}
.app-update:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.offline-access {
  margin: 12px clamp(16px, 4vw, 32px);
}
.offline-capture {
  border: 1px solid var(--line, #d4e3ec);
  border-radius: 14px;
  padding: 18px;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.offline-time-row {
  border-bottom: 1px solid #d4e3ec;
  padding: 16px 0;
  margin-bottom: 16px;
}
#offline-baseline {
  margin: 16px 0;
}

/* Installation is offered in the browser, never inside the installed app. */
.pwa-install { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px clamp(18px,4vw,42px); background:#edf8fc; border-bottom:1px solid var(--line); }
.pwa-install strong,.pwa-install span { display:block; }
.pwa-install strong { font-size:.95rem; }
.pwa-install span { color:var(--muted); font-size:.85rem; margin-top:3px; }
.pwa-install button { flex-shrink:0; border:0; border-radius:10px; padding:11px 15px; background:var(--blue-dark); color:white; font-weight:650; }
.pwa-install button:disabled { opacity:.6; cursor:wait; }
.pwa-install-instructions { padding:8px 22px 22px; line-height:1.55; }
@media (max-width:520px) { .pwa-install { align-items:stretch; flex-direction:column; gap:10px; } }
@media (display-mode:standalone), (display-mode:fullscreen), (display-mode:minimal-ui), (display-mode:window-controls-overlay) { #pwa-install { display:none!important; } }

.admin-desktop-link { display: none; }
@media (any-pointer: fine), (any-hover: hover) { .admin-desktop-link { display: inline-block; padding: 12px; } }

@media (min-width: 700px) { .capo-link { display: inline-block; padding: 12px; } }

/* Conversation uses the Navigator palette and existing interaction sizes. */
.conversation{margin:28px 0;border:1px solid var(--line);border-radius:16px;background:#f4f8fa;padding:16px}.chat-messages{display:flex;flex-direction:column;gap:14px;padding:16px 0}.chat-message{width:94%;max-width:680px;align-self:flex-start;background:white;border:1px solid var(--line);border-radius:14px;padding:14px;box-shadow:0 2px 5px #b9c9d122}.chat-message.own{align-self:flex-end;background:#eaf8fd;border-color:#d0edf8}.chat-message header{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:var(--blue-dark);font-size:.85rem}.chat-message time,.chat-message small{color:var(--muted);font-size:.75rem}.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.chat-photo{display:block;width:auto;max-width:100%;max-height:440px;border-radius:10px;margin-top:12px}.chat-message footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.chat-message-actions{display:flex;align-items:center;gap:10px}.chat-message-actions button{font-size:.75rem;padding:8px;min-height:36px}.chat-message-actions a{font-size:.75rem}.chat-compose-actions{display:flex;flex-wrap:wrap;gap:10px}.chat-compose-actions button{min-height:48px;flex:1;min-width:110px}.chat-reply{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px;border-left:3px solid var(--blue);background:#f4f8fa;color:var(--blue-dark);font-size:.8rem}.chat-reply img{width:44px;height:44px;object-fit:cover;border-radius:5px}#chat-preview{margin:0}#chat-preview img{max-height:240px;max-width:100%;display:block;border-radius:12px;margin-bottom:10px}.documentation-link{display:inline-block;padding:12px 0;font-weight:700}@media(max-width:500px){.conversation{padding:10px}.chat-message{width:97%}.chat-message header{display:grid;gap:4px}}

.documentation-link.admin-desktop-link{display:none}@media(any-pointer:fine),(any-hover:hover){.documentation-link.admin-desktop-link{display:inline-block}}

.today-sites{display:grid;gap:14px;margin:18px 0}.today-site{padding:18px;background:#fff;border:1px solid var(--line);border-radius:16px}.today-site.is-running{border-color:var(--blue);background:#f0faff}.today-site h2{margin:4px 0;font-size:21px}.today-site-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}.today-site-heading p{margin:4px 0}.today-site-heading a{text-decoration:none}.today-action-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.today-action{min-height:52px;padding:12px 8px;font-weight:700;white-space:normal}.today-action:not(:disabled){border-color:var(--blue);color:var(--blue-dark);background:#eaf8fd}.today-action:disabled{opacity:.45;cursor:default}.today-work{margin-top:20px}.today-work h2{font-size:23px}.today-details{margin:18px 0}.today-details summary{min-height:44px;padding:10px 0}.today-other-site{justify-self:start}.site-directory-search{display:grid;gap:8px;margin:18px 0;max-width:640px}.site-directory-search input{width:100%}.site-directory-count{color:var(--muted);font-size:14px}.site-directory-table{width:100%;min-width:0;table-layout:fixed}.site-directory-table td{overflow-wrap:anywhere}.site-directory-table td:first-child a{display:block;padding:8px 0}.site-directory-table th,.site-directory-table td{padding:10px 7px}.site-directory-table th.table-sort-header{padding:0}.site-directory-table .table-sort-button{padding:12px 7px;gap:4px;font-size:13px;overflow-wrap:anywhere}
@media(max-width:420px){.today-site{padding:14px}.today-site-heading{display:block}.today-action{font-size:14px}.site-directory-table{font-size:13px}}
.today-unplanned{display:grid;gap:14px;margin:20px 0}.today-yard-choice{justify-self:start;min-height:52px;min-width:160px;font-weight:700}.today-yard-choice[aria-pressed=true]{background:#eaf8fd;border-color:var(--blue)}.today-unplanned label{display:grid;gap:8px}.today-unplanned select{width:100%;min-height:48px}.today-recorded{font-size:14px;color:var(--muted)}

.language-form{display:grid;gap:10px;margin:18px 0;padding-top:14px;border-top:1px solid #dce6eb}.language-form label,.login-language{display:grid;gap:8px}.language-form select,.login-language select{min-height:44px;max-width:100%}.login-language{margin-bottom:16px}.nav-link span[data-i18n]{font-size:inherit;line-height:1.2}p.employee-filter{display:grid;gap:3px}

#language-dialog{border:0;border-radius:16px;padding:24px;width:min(92vw,520px);max-height:90vh}#language-dialog::backdrop{background:#1c2a3377}#profile-language{margin-bottom:14px}#language-dialog h2{font-size:20px;overflow-wrap:anywhere}

/* Keep the close button reachable even with a long transfer queue on a phone. */
#editor[open] { display:flex; flex-direction:column; overflow:hidden; }
#editor > .dialog-head { flex:none; }
#editor > #dialog-body { overflow-y:auto; min-height:0; overscroll-behavior:contain; }

.release-notice { padding:16px; margin:12px 0; border:2px solid #247a9c; border-radius:12px; background:#eef8fc; color:#183845; overflow-wrap:anywhere; }
.release-notice strong { display:block; font-size:1.05rem; }
.release-notice p { margin:8px 0; }
.release-notice small { display:block; margin-bottom:10px; }
.release-notice button { min-height:48px; padding:10px 18px; }

.photo-batch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.photo-batch-grid figure{margin:0;padding:8px;border:1px solid var(--line);border-radius:10px;min-width:0}.photo-batch-grid figcaption{font-size:12px;overflow-wrap:anywhere;margin:6px 0}#chat-preview .photo-batch-grid img{display:block;width:100%;height:130px;object-fit:contain;margin:0;background:#f4f8fa;border-radius:6px}.photo-batch-grid button{min-height:44px;width:100%}#photo-count{font-weight:600}#feedback-form .chat-compose-actions button{white-space:normal}

/* The preview follows the complete selected-day workspace. */
.upcoming-assignments{margin-top:32px;padding-top:20px;border-top:2px solid #cbdcdf}.upcoming-day{margin:18px 0 24px}.upcoming-day>h3{font-size:1rem;margin:0 0 10px}.upcoming-empty{padding:14px 16px;border:1px dashed #afc5cb;border-radius:10px;color:#47636d;background:#f5f9fa}.upcoming-assignment h4{font-size:1.1rem;margin:8px 0}

/* Shared help dialog, opened from the profile menu. */
.navigator-help { box-sizing: border-box; width: min(600px, calc(100% - 24px)); max-height: 85dvh; overflow-y: auto; padding: 22px; border: 1px solid #ccd6dc; border-radius: 18px; color: #183543; background: #fff; }
.navigator-help::backdrop { background: #142b3a77; }
.navigator-help .dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.navigator-help button { min-height: 44px; min-width: 44px; }
.navigator-help details { border-bottom: 1px solid #ccd6dc; padding: 8px 0; }
.navigator-help summary { padding: 12px 0; cursor: pointer; font-weight: 600; }
.navigator-help p { line-height: 1.6; overflow-wrap: anywhere; }
.navigator-help-back { margin-top: 20px; }

.absence-week {display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:8px}.absence-week input {width:100%;min-width:0;box-sizing:border-box}

#pwa-install-instructions{white-space:pre-line}#pwa-install-address{overflow-wrap:anywhere}
