@media screen and (max-width: 720px) {
  body { padding-bottom: env(safe-area-inset-bottom, 0px) }
  .staff-bar { padding-top: max(8px, env(safe-area-inset-top)); }
  .staff-bar, .c-shell, .staff-main {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .c-head .participant-actions { flex-wrap: wrap; }
  .c-search, input[type=search], dialog input:not([type=checkbox],[type=radio]), dialog select, dialog textarea { font-size: 16px }
  dialog[open] { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
  .c-tabs { overflow-x: auto; white-space: nowrap; }
  .tariff-bar { flex-wrap: wrap; gap: 8px 14px; padding: 12px 14px }
  .tariff-bar small { margin-left: 0 }
  .c-scroll, .c-scroll .c-table, .c-table tbody { display:block; width:100%; min-width:0; }
  .c-scroll { overflow:visible }
  .c-table thead { display:block }
  .c-table thead tr { display:flex; justify-content:flex-end }
  .c-table thead th { display:none }
  .c-table thead th:has(.ticket-heading) { display:block; border:0; padding:0 14px }
  .c-table tbody tr {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 8px;
    padding:16px 14px; border-top:1px solid #d9e3e9;
  }
  .c-scroll .c-table tbody td, .c-scroll .c-table:has(.vn-headings) tbody tr>td {
    display:block; min-width:0; padding:0; border:0; text-align:left; white-space:normal;
  }
  .c-table tbody td {grid-column:1/-1}
  .c-table tbody td.amount {grid-column:span 1; font-variant-numeric:tabular-nums}
  .c-table tbody td:empty {display:none}
  .c-table td[data-label]::before {content:attr(data-label); display:block; margin-bottom:2px; color:#536a7a; font:500 12px/1.4 var(--body,system-ui)}
  .c-table .vn-person {display:flex; flex-direction:column; align-items:flex-start; gap:2px; width:100%}
  .c-table .vn-person .vn-name {order:-1; max-width:100%; white-space:normal; font-size:19px; line-height:1.32}
  .c-table .vn-person .roster-note {margin:0; max-width:100%}
  .vn-control, .ticket-choice, .ticket-heading, .participant-actions button { min-height:44px }
  .vn-active-icons {display:flex; flex-wrap:wrap}
  .ticket-choice { max-width:100%; text-align:left }
  .c-table td.amount .c-action {min-height:36px}
  .c-table .base-caption {white-space:normal}
  .c-search {max-width:100%}
}

.staff-tools { display:flex; justify-self:end; align-items:center; gap:8px }
.staff-tools .push-test { display:grid; place-items:center; width:44px; height:44px; padding:0; color:#e6eff5; background:transparent; border:1px solid #ffffff32; border-radius:12px; cursor:pointer }
.push-test:hover, .push-test:focus-visible { background:#ffffff12 }
.push-test:disabled { opacity:.55 }
.push-test svg { width:21px; height:21px }
.push-status:not([hidden]) { position:fixed; z-index:30; inset:auto 12px max(18px,env(safe-area-inset-bottom)); width:fit-content; max-width:min(430px,calc(100% - 24px)); margin:0 auto; padding:12px 16px; border-radius:12px; background:#103b55; color:white; box-shadow:0 4px 18px #103b552b; font:500 15px/1.4 system-ui }
@media (max-width:720px) { .staff-tools {grid-area:1 / 2} }

.staff-access-list{padding:0 20px 16px}
.staff-access-row{display:grid;gap:4px;padding:14px 0;border-bottom:1px solid #dce5e8}
.staff-access-row small{color:#4b6574;font-variant-numeric:tabular-nums}
.staff-access-dialog summary{cursor:pointer;color:#165675;padding:8px 0}
.staff-access-actions{display:flex;gap:8px;flex-wrap:wrap}
.staff-access-add{padding-top:8px}
.staff-access-add form,.staff-access-add label{display:grid;gap:6px}
.staff-access-add form{gap:12px}
.staff-access-add input{box-sizing:border-box;width:100%;font:inherit;border:1px solid #aabecc;border-radius:8px;padding:9px}
.staff-access-status{margin:0;padding:0 20px 16px;color:#435e70;font-size:.9rem}
.staff-access-status:empty{display:none}

.bell-dialog{width:min(32rem,calc(100vw - 1.5rem));max-height:85dvh;overflow:auto}
.bell-head,.bell-foot{padding:16px 20px;background:#fbfdfe}.bell-head{position:sticky;top:0;border-bottom:1px solid #dce5e8}
.bell-entries{padding:12px 20px;color:#295164}.bell-entries>*{display:grid;grid-template-columns:1fr auto;gap:5px 10px;padding:12px 0;color:inherit;text-decoration:none;border-bottom:1px solid #e1e9ed}.bell-entries time{font-size:.77rem;color:#516975}.bell-entries span{grid-column:1/-1;white-space:pre-line;overflow-wrap:anywhere}.bell-foot{display:flex;flex-wrap:wrap;gap:12px}.bell-feedback{margin:0 20px 12px}.bell-entries>a:hover{text-decoration:underline}

.bell-foot .bell-clear{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px}
.bell-clear svg{width:17px;height:17px;flex:none}
.bell-clear:disabled{opacity:.4;cursor:default}
.bell-foot .bell-more:not([hidden]){flex-basis:100%}
