@charset "UTF-8";
@font-face {
  font-family: 'Lexend Deca';
  src: url('/assets/fonts/lexend-deca-latin.3cad1d144b87.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --primary: #713c83;
  --primary-hover: #582e67;
  --amber: #f2ab27;
  --ink: #282330;
  --muted: #62596a;
  --line: #ded6e4;
  --page: #faf8fb;
  --success: #246747;
  font-family: 'Lexend Deca', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
button,
input,
select {
  font: inherit;
}
a {
  color: var(--primary);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
  scroll-margin-block: 130px 24px;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
[tabindex='-1']:focus {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
::selection {
  background: #e4c9ed;
  color: var(--ink);
}
input {
  caret-color: var(--primary);
}
[hidden] {
  display: none !important;
}
button,
.link-button {
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
}
button:disabled {
  background: #ebe6ee;
  color: #62596a;
  border-color: #c5bacc;
  cursor: not-allowed;
}
.primary {
  background: var(--primary);
  color: white;
}
.primary:hover:not(:disabled) {
  background: var(--primary-hover);
}
.secondary {
  background: white;
  color: var(--primary);
  border-color: #9a82a5;
}
.secondary:hover:not(:disabled) {
  background: #f2edf5;
}
.danger {
  background: #9b2338;
  color: white;
}
.danger:hover:not(:disabled) {
  background: #74182a;
}
.text-button {
  background: transparent;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
input,
select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #92849d;
  border-radius: 6px;
  background: white;
  color: var(--ink);
}
input::placeholder {
  color: #6c6275;
  opacity: 1;
}
input[type='checkbox'] {
  width: 24px;
  min-height: 24px;
  flex-shrink: 0;
  accent-color: var(--primary);
}
input[type='file'] {
  padding: 8px;
}
input::file-selector-button {
  font: inherit;
  background: #f0eaf3;
  color: var(--primary);
  border: 0;
  padding: 8px;
  margin-right: 10px;
  cursor: pointer;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 16px;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
  max-width: 72ch;
}
.muted,
.field-hint,
.small {
  color: var(--muted);
}
.field-hint,
.small {
  font-size: 14px;
}
.field-hint {
  margin: 8px 0 16px;
}
.skip {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 10;
  background: white;
  padding: 14px;
  clip-path: inset(50%);
}
.skip:focus {
  top: 12px;
  clip-path: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: white;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1440px;
  margin: auto;
  min-height: 72px;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  width: 119px;
  height: 36px;
  object-fit: contain;
}
.product-name {
  font-size: 16px;
  color: var(--muted);
}
.main-nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.workspace {
  max-width: 1440px;
  padding: 24px 32px 48px;
  margin: auto;
}
.event-context {
  position: sticky;
  top: 72px;
  z-index: 2;
  background: var(--page);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.event-select-field {
  flex: 1;
  max-width: 650px;
  min-width: 240px;
}
.event-select-field label {
  font-size: 14px;
  margin-bottom: 4px;
}
.context-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
#context-sync {
  width: 100%;
  margin: 0;
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 4px;
  background: #eee6f2;
  color: #59306a;
  font-size: 14px;
  font-weight: 600;
}
.badge[data-status='active'] {
  background: #e7f2eb;
  color: #215a3e;
}
.badge[data-status='closed'] {
  background: #eee9ef;
  color: #514658;
}
.workspace-grid {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 36px;
}
.task-content {
  min-width: 0;
}
.process-nav p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.process-nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.process-nav a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
}
.process-nav a:hover {
  background: #f0eaf3;
}
.process-nav a[aria-current='step'] {
  background: #ede3f2;
  border-color: #cbb4d5;
}
.stage-number {
  font-weight: 600;
  width: 25px;
  flex-shrink: 0;
}
.stage-label {
  font-size: 16px;
  line-height: 1.4;
}
.stage-state {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  color: var(--muted);
}
.process-nav a[aria-current='step'] .stage-state {
  color: #59306a;
  font-weight: 600;
}
.utility-nav {
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  padding-block: 8px;
  display: block;
}
.utility-nav a {
  padding: 10px 12px;
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  overflow-wrap: normal;
}
.checkin-history {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.checkin-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checkin-history-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.checkin-history-list li span:last-child {
  flex-shrink: 0;
  max-width: 45%;
  font-weight: 600;
}
.delete-event-panel {
  border-color: #c4858f;
}
.utility-nav a[aria-current='page'] {
  font-weight: 600;
  color: white;
  background: var(--primary);
}
.utility-nav a:hover {
  background: #eee6f2;
  color: var(--primary);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin: 0 0 12px;
}
.page-heading p {
  margin-bottom: 0;
}
.view-location {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}
.return-action {
  margin-bottom: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  margin-bottom: 24px;
}
.form-panel {
  max-width: 800px;
}
.stack-form {
  max-width: 620px;
}
.stack-form > input,
.stack-form > select {
  margin-bottom: 20px;
}
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 22px;
}
.form-actions > a:not(.link-button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.advanced,
details {
  margin-top: 20px;
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  color: var(--primary);
  font-weight: 600;
}
.summary {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr);
  gap: 8px 20px;
  margin: 0 0 24px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.section-heading h2 {
  margin: 0;
}
.search-wrap {
  display: flex;
  gap: 8px;
}
.search-wrap input {
  min-height: 56px;
  font-size: 18px;
}
.search-wrap button {
  flex-shrink: 0;
}
.connection {
  font-size: 14px;
  color: var(--muted);
}
#search-state {
  margin: 20px 0 12px;
}
.guest-card {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
}
.guest-identity h3,
.arrival-name {
  font-size: 24px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.guest-identity p {
  margin: 0;
  overflow-wrap: anywhere;
}
.guest-table,
.arrival-table {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}
.guest-reference,
.arrival-meta {
  font-size: 14px;
}
.arrival-name,
.arrival-table,
.arrival-meta {
  display: block;
  margin-top: 6px;
}
.group-tools {
  margin: 20px 0;
}
.group-panel,
.group-review,
.group-result {
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
  margin-top: 16px;
}
.group-list {
  list-style: none;
  padding: 0;
}
.group-list > li {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  overflow-wrap: anywhere;
}
.group-list > li > span,
.group-list > li > strong {
  display: block;
}
.group-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
}
.group-choice input {
  width: 24px;
}
.guest-card > a {
  font-size: 14px;
  grid-column: 1/-1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.guest-attendance {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-direction: column;
}
.guest-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.guest-checkin-feedback {
  flex-basis: 100%;
}
.guest-attendance .status {
  margin: 0;
  font-weight: 600;
}
.checkin-button {
  max-width: 240px;
}
.search-footer {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}
.search-footer > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
#last-sync {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 0;
}
.attendance-summary {
  margin: 24px 0;
}
.stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.stats > div {
  flex: 1;
  min-width: 90px;
}
.stat-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.stats strong {
  font-size: 28px;
  display: block;
}
.attendance-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 14px;
}
progress {
  width: 100%;
  height: 8px;
  accent-color: var(--primary);
}
.attendance-progress span {
  white-space: nowrap;
}
.feedback,
.notice,
.error-summary {
  padding: 16px;
  background: #f0eaf4;
  border: 1px solid #c8b4d2;
  border-radius: 6px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.feedback.success {
  background: #e9f4ed;
  border-color: #80ab91;
  color: #194e31;
}
.feedback.warning,
.notice {
  background: #fff6e4;
  border-color: #bb8c36;
  color: #62420c;
}
.feedback.error,
.error-summary {
  background: #fff0f1;
  border-color: #c4858f;
  color: #841c30;
}
.field-error {
  color: #841c30;
  margin: 8px 0 16px;
}
[aria-invalid='true'] {
  border: 2px solid #9b2338;
}
.filter-form {
  display: grid;
  grid-template-columns: minmax(160px, 2fr) minmax(120px, 1fr) minmax(110px, 1fr);
  align-items: start;
  gap: 16px;
}
.filter-form > button {
  justify-self: start;
}
.filter-search {
  min-width: 0;
}
.export-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.table-scroll {
  max-width: 100%;
  overflow: auto;
  margin: 20px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
th {
  background: #f1ebf5;
  color: #51405a;
  font-weight: 600;
}
td {
  max-width: 320px;
}
td button {
  font-size: 14px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}
.activity-list {
  padding: 0;
  list-style: none;
}
.activity-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.activity-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.activity-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.activity-item time {
  font-size: 14px;
  color: var(--muted);
}
.activity-reason {
  overflow-wrap: anywhere;
}
.event-list {
  margin-top: 24px;
}
.event-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.event-list-row h2,
.event-list-row p {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.import-steps {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 16px;
  font-size: 14px;
  flex-wrap: wrap;
}
.import-steps li {
  padding: 8px 0;
  border-bottom: 2px solid var(--line);
}
.import-steps [aria-current] {
  border-color: var(--primary);
  font-weight: 600;
  color: var(--primary);
}
.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.6;
  padding-block: 12px;
}
.checkbox input {
  margin: 2px 0 0;
}
dialog {
  width: min(760px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #a793b2;
  border-radius: 8px;
  padding: 28px;
  background: white;
  color: var(--ink);
}
dialog::backdrop {
  background: rgb(40 35 48 / 45%);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dialog-heading > div {
  min-width: 0;
}
.dialog-heading > button {
  flex-shrink: 0;
  white-space: nowrap;
}
.dialog-heading h2 {
  overflow-wrap: anywhere;
}
.dialog-open {
  overflow: hidden;
}
.inline-decision {
  border: 2px solid var(--primary);
  border-radius: 6px;
  padding: 18px;
  margin-top: 24px;
}
.help-panel {
  background: #f0e7f5;
  border: 1px solid #aa8ab7;
  border-radius: 8px;
  padding: 22px;
  margin-top: 24px;
}
.help-panel h2 {
  font-size: 20px;
}
.help-target {
  outline: 3px dashed var(--primary) !important;
  outline-offset: 5px;
}
.help-panel button {
  font-size: 14px;
}
footer {
  max-width: 1376px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 1000px) {
  .workspace-grid {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
  }
  .filter-form {
    grid-template-columns: 1fr 1fr;
  }
  .filter-search {
    grid-column: 1/-1;
  }
  .guest-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .guest-attendance {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .product-name {
    display: none;
  }
  footer {
    margin: 0 32px;
  }
}
@media (max-width: 700px) {
  .event-context {
    top: 64px;
  }
  .topbar-inner {
    padding: 8px 16px;
    min-height: 64px;
    gap: 12px;
  }
  .main-nav {
    gap: 12px;
  }
  .main-nav a,
  .main-nav button {
    font-size: 14px;
  }
  .main-nav button {
    padding: 9px 12px;
  }
  .brand-logo {
    width: 105px;
    height: auto;
  }
  .workspace {
    padding: 16px 16px 32px;
  }
  .workspace-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .workspace-grid > aside {
    display: contents;
  }
  .process-nav {
    order: 0;
  }
  .task-content {
    order: 1;
  }
  .event-context {
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  .event-select-field {
    max-width: none;
    min-width: 0;
    flex-basis: 100%;
  }
  .event-select-field label {
    font-size: 14px;
  }
  .event-select-field select {
    font-size: 16px;
  }
  .context-meta {
    font-size: 14px;
    gap: 8px;
  }
  .badge {
    font-size: 14px;
  }
  #context-sync {
    font-size: 14px;
  }
  .process-nav p {
    margin-bottom: 8px;
    font-size: 14px;
  }
  .process-nav ol {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .process-nav li:last-child {
    grid-column: 1/-1;
  }
  .process-nav a {
    padding: 8px;
    gap: 6px;
    min-height: 52px;
  }
  .stage-number {
    width: 18px;
  }
  .stage-label {
    font-size: 14px;
    line-height: 1.35;
  }
  .stage-state {
    font-size: 14px;
    margin-top: 3px;
  }
  .page-heading {
    margin-bottom: 8px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 16px;
  }
  .view-location {
    margin-bottom: 16px;
    font-size: 14px;
  }
  .return-action {
    margin-bottom: 16px;
  }
  .panel {
    padding: 18px;
    margin-bottom: 20px;
  }
  h2 {
    font-size: 20px;
  }
  .search-panel {
    padding: 16px;
  }
  .search-panel .section-heading {
    margin-bottom: 12px;
  }
  .search-panel .section-heading h2 {
    font-size: 20px;
  }
  .search-panel .connection {
    font-size: 14px;
  }
  .search-wrap {
    flex-wrap: wrap;
  }
  .search-wrap input {
    font-size: 18px;
  }
  .search-wrap button {
    padding: 8px 0;
  }
  .search-panel .field-hint {
    font-size: 16px;
  }
  .guest-card {
    padding: 18px 0;
  }
  .guest-attendance {
    flex-direction: column;
    align-items: stretch;
  }
  .checkin-button {
    max-width: none;
    width: 100%;
  }
  .guest-card > a {
    font-size: 16px;
  }
  .stats {
    gap: 12px;
  }
  .stats strong {
    font-size: 26px;
  }
  .stats > div {
    min-width: 70px;
  }
  .stat-label {
    font-size: 14px;
  }
  .attendance-progress {
    flex-wrap: wrap;
  }
  .summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .summary dd {
    margin-bottom: 10px;
  }
  .filter-form,
  .export-filters {
    grid-template-columns: 1fr;
  }
  .filter-search {
    grid-column: auto;
  }
  .form-actions {
    gap: 12px;
  }
  .form-actions .primary {
    width: 100%;
  }
  .event-list-row {
    flex-direction: column;
    align-items: stretch;
  }
  .event-list-row .link-button {
    align-self: flex-start;
  }
  .guest-table {
    overflow: visible;
  }
  .guest-table table,
  .guest-table tbody {
    display: block;
  }
  .guest-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .guest-table tr {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }
  .guest-table td {
    display: block;
    border: 0;
    max-width: none;
    padding: 5px 0;
    font-size: 16px;
  }
  .guest-table td::before {
    content: attr(data-label) ': ';
    font-weight: 600;
  }
  .guest-table td:last-child::before {
    content: '';
  }
  dialog {
    padding: 20px;
    width: calc(100% - 20px);
    max-height: 94dvh;
  }
  .dialog-heading {
    gap: 10px;
  }
  .dialog-heading button {
    padding: 10px;
  }
  .help-panel {
    padding: 18px;
  }
  footer {
    margin: 0 16px;
    flex-wrap: wrap;
    font-size: 14px;
  }
}
@media (max-width: 380px) {
  .main-nav {
    gap: 8px;
  }
  .brand-logo {
    width: 95px;
  }
  .topbar-inner {
    padding-inline: 12px;
  }
  .workspace {
    padding-inline: 12px;
  }
  .process-nav a {
    padding: 6px;
  }
  .stage-label,
  .stage-state {
    font-size: 14px;
  }
}
/* The arrival desk keeps totals, search and navigation visible; only results scroll. */
body[data-view='checkin'] {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body[data-view='checkin'] > footer {
  display: none;
}
.checkin-workspace {
  width: 100%;
  flex: 1;
  min-height: 0;
  padding-block: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checkin-workspace .attendance-summary {
  margin: 0;
}
.checkin-workspace .stats {
  flex-wrap: nowrap;
}
.checkin-workspace .stats > div {
  min-width: 0;
}
.checkin-workspace .attendance-progress {
  flex-wrap: nowrap;
  margin-top: 4px;
}
.desk-context {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 2px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  font-size: 14px;
}
.desk-context strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desk-context time {
  grid-column: 1;
  grid-row: 2;
  color: var(--muted);
}
.desk-context .badge {
  grid-column: 2;
  grid-row: 1 / 3;
  max-width: 150px;
}
.desk-context #context-sync {
  width: 1px;
}
.checkin-workspace .help-panel {
  position: fixed;
  z-index: 4;
  inset-inline: 16px;
  bottom: 24px;
  max-width: 720px;
  max-height: 50dvh;
  overflow-y: auto;
  margin-inline: auto;
}
.checkin-workspace .search-panel {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 20px 24px 0;
  display: flex;
  flex-direction: column;
}
.checkin-workspace .search-wrap {
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.checkin-workspace .search-wrap button {
  padding-inline: 8px;
}
.search-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding: 0 6px 16px;
  margin: 8px -6px 0;
}
.checkin-workspace .utility-nav {
  flex-shrink: 0;
  margin: 0;
  padding: 4px 0;
  border: 0;
  display: block;
  overflow: visible;
}
.checkin-workspace .utility-nav a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 0;
  padding: 10px 6px;
  font-size: 14px;
  line-height: 1.35;
}
@media (max-width: 767px) {
  .checkin-workspace .search-panel {
    padding: 12px 14px 0;
  }
  .checkin-workspace .section-heading {
    margin-bottom: 8px;
  }
  .checkin-workspace .stat-label {
    font-size: 12px;
  }
  .checkin-workspace .stats strong {
    font-size: 24px;
  }
  .checkin-workspace .attendance-progress {
    font-size: 12px;
  }
  .checkin-workspace .desk-context .badge {
    max-width: 126px;
    font-size: 12px;
  }
  .checkin-workspace .field-hint {
    font-size: 14px;
  }
}
/* Keep every control reachable with an enlarged font, landscape or an open keyboard. */
@media (max-height: 500px) {
  body[data-view='checkin'] {
    overflow-y: auto;
  }
  .checkin-workspace {
    min-height: 500px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Shared shell sizes keep every phone workflow clear of the app navigation. */
:root {
  --app-nav-height: 72px;
  --app-nav-space: calc(var(--app-nav-height) + env(safe-area-inset-bottom, 0px));
}
.desktop-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
}
.mobile-nav-links {
  display: none;
}
#setup-progress {
  display: none;
}
.more-menu {
  display: grid;
  gap: 0;
}
.more-menu > a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
}
.history-time {
  display: block;
  flex-basis: 100%;
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.checkin-history-list li:has(.history-time) {
  flex-wrap: wrap;
  gap: 4px 16px;
}
.checkin-history-list li span:first-child {
  flex: 1;
  min-width: 0;
}
.trash-event .summary {
  margin-top: 20px;
}
@media (max-width: 767px) {
  body .utility-nav {
    position: fixed;
    z-index: 5;
    inset: auto 0 0;
    margin: 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    background: white;
    height: var(--app-nav-space);
    padding: 0 8px env(safe-area-inset-bottom, 0px);
    display: block;
    overflow: visible;
  }
  .desktop-nav-links {
    display: none;
  }
  .mobile-nav-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: var(--app-nav-height);
    gap: 2px;
    align-items: stretch;
    padding: 6px 0;
  }
  body .utility-nav .mobile-nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 4px 2px;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
  }
  body:not([data-view='checkin']) {
    padding-bottom: calc(var(--app-nav-space) + 16px);
  }
  .checkin-workspace {
    gap: 8px;
    padding: 10px 12px calc(var(--app-nav-space) + 8px);
  }
  html {
    scroll-padding-bottom: calc(var(--app-nav-space) + 16px);
  }
  .checkin-workspace .help-panel {
    bottom: calc(var(--app-nav-space) + 8px);
  }
  .workspace:not(.checkin-workspace) {
    padding: 16px 16px 24px;
  }
  .workspace-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .workspace-grid > aside {
    display: contents;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 15px;
    line-height: 1.6;
  }
  .view-location {
    display: none;
  }
  body:is([data-view='home'], [data-view='history'], [data-view='more']) #return-task {
    display: none;
  }
  body[data-view='home'] .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .event-context:not(.desk-context) {
    position: static;
    gap: 6px;
    padding-bottom: 12px;
  }
  .event-select-field label strong {
    display: none;
  }
  .context-meta {
    font-size: 13px;
  }
  .return-action {
    min-height: 44px;
    font-size: 14px;
    margin-bottom: 14px;
  }
  .panel {
    border-radius: 8px;
    padding: 16px;
  }
  #setup-progress {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 12px;
  }
  #setup-progress[aria-expanded='false'] + .process-nav {
    display: none;
  }
  .filter-form {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .filter-form .filter-search,
  .filter-form > button {
    grid-column: 1/-1;
  }
  .export-filters {
    grid-template-columns: 1fr;
  }
  .stack-form,
  .form-panel {
    max-width: none;
  }
  .form-actions > button,
  .form-actions > .link-button {
    flex-grow: 1;
  }
  .pagination {
    gap: 8px;
  }
  .pagination button {
    padding-inline: 12px;
  }
  .keyboard-open .utility-nav {
    display: none;
  }
  body.keyboard-open:not([data-view='checkin']) {
    padding-bottom: 16px;
  }
  body.keyboard-open[data-view='checkin'] {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }
  .keyboard-open .checkin-workspace {
    padding-bottom: 12px;
    min-height: 500px;
  }
  .keyboard-open .help-panel {
    bottom: 12px;
  }
}
