.attendance-toolbar {
  gap: 12px;
  margin: 8px 0 18px;
  display: grid;
}
.attendance-toolbar .row {
  flex-wrap: wrap;
}
.attendance-toolbar button.active {
  color: #fff;
  background: #3c83ee;
}
.attendance-search {
  width: 100%;
  max-width: 680px;
}
.attendance-total {
  margin-left: auto;
  font-size: 13px;
}
.attendance-table-wrap {
  background: #ffffff60;
  border: 1px solid #ffffffc9;
  border-radius: 16px;
  overflow: auto;
}
.attendance-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1100px;
  font-size: 13px;
}
.attendance-table th,
.attendance-table td {
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #657a9419;
  padding: 13px 12px;
}
.attendance-table th {
  color: #687c96;
  white-space: nowrap;
  background: #f5f9fdc7;
  font-size: 12px;
}
.attendance-table td small {
  color: #8a739d;
  margin-top: 4px;
  display: block;
}
.attendance-table td button {
  font: inherit;
}
.attendance-rejected {
  opacity: 0.5;
}
.attendance-drawer.dialog {
  background: linear-gradient(150deg, #f6fafff5, #e9f0faf5);
  border-radius: 20px 0 0 20px;
  width: min(650px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 22px;
  overflow: auto;
}
.attendance-drawer label {
  color: #63758c;
  gap: 6px;
  font-size: 12px;
  display: grid;
}
.attendance-drawer h3 {
  margin: 22px 0 10px;
  font-size: 14px;
}
.attendance-drawer input,
.attendance-drawer select {
  width: 100%;
  min-width: 0;
  padding: 10px;
}
.attendance-punches {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
}
.attendance-punches td,
.attendance-punches th {
  text-align: left;
  border-bottom: 1px solid #62758d20;
  padding: 10px;
  font-size: 13px;
}
.attendance-time-fields {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  display: grid;
}
.attendance-correction,
.attendance-event {
  gap: 12px;
  display: grid;
}
.attendance-event {
  background: #ffffff65;
  border: 1px solid #fffa;
  border-radius: 12px;
  margin: 18px 0;
  padding: 14px;
}
.attendance-audit article {
  background: #ffffff65;
  border-radius: 12px;
  margin: 10px 0;
  padding: 12px;
  font-size: 12px;
}
.attendance-audit article small {
  float: right;
  color: #75869b;
}
.attendance-audit p {
  margin: 7px 0;
}
.attendance-audit p span {
  color: #8490a0;
}
.live-upgrade {
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
}
.operational-live {
  flex-direction: column;
  height: 100%;
  min-height: 0;
  display: flex;
}
.operational-live .prototype-frame {
  flex: 1;
  min-height: 0;
}
@media (width<=600px) {
  .attendance-drawer.dialog {
    border-radius: 0;
    padding: 16px;
  }
  .attendance-time-fields {
    grid-template-columns: 1fr;
  }
  .attendance-audit article small {
    float: none;
    margin-top: 4px;
    display: block;
  }
  .attendance-total {
    width: 100%;
    margin-left: 0;
  }
}
.attendance-table-wrap {
  background: #ffffff85;
  border-radius: 6px;
}
.attendance-table {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.attendance-table th,
.attendance-table td {
  white-space: nowrap;
  height: 34px;
  padding: 5px 10px;
  line-height: 1.35;
}
.attendance-table th {
  font-size: 11px;
  font-weight: 600;
}
.attendance-table td strong {
  font-weight: 400;
}
.attendance-table td .text-link {
  height: auto;
  min-height: 0;
  box-shadow: none;
  color: #347ad9;
  background: 0 0;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
}
.attendance-table td .text-link:hover {
  background: 0 0;
  text-decoration: underline;
}
.attendance-drawer.dialog {
  background: #f5f8fc;
  border-radius: 8px 0 0 8px;
  width: min(520px, 100vw);
  padding: 20px;
}
.attendance-drawer .dialog-heading {
  margin-bottom: 10px;
}
.attendance-drawer .dialog-heading h2 {
  font-size: 16px;
}
.attendance-drawer h3 {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 500;
}
.attendance-drawer input,
.attendance-drawer select {
  min-height: 30px;
  padding: 6px;
  font-size: 12px;
}
.attendance-punches {
  margin: 8px 0;
}
.attendance-punches td,
.attendance-punches th {
  padding: 7px 6px;
  font-size: 12px;
  font-weight: 400;
}
.attendance-punches th {
  color: #65738a;
  background: #e8edf4;
}
.attendance-time-fields,
.attendance-correction,
.attendance-event {
  gap: 8px;
}
.attendance-event {
  border-radius: 4px;
  margin: 8px 0;
  padding: 8px;
}
.attendance-actions {
  justify-content: flex-end;
  gap: 8px;
  margin: 16px 0;
  display: flex;
}
.attendance-drawer button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}
.attendance-audit article {
  background: 0 0;
  border-bottom: 1px solid #dce3ed;
  border-radius: 0;
  padding: 8px 0;
  font-size: 11px;
}
.attendance-toolbar {
  gap: 8px;
  margin-bottom: 12px;
}
.attendance-toolbar button,
.attendance-toolbar input {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}
.attendance-total {
  font-size: 12px;
  font-weight: 400;
}
.attendance-audit {
  overflow-x: auto;
}
.attendance-audit .attendance-punches {
  font-variant-numeric: tabular-nums;
}
.attendance-audit td,
.attendance-audit th {
  white-space: nowrap;
  padding: 6px 5px;
  font-size: 11px;
}
.audit-field {
  color: #7e8b9b;
  margin-top: 2px;
  font-size: 10px;
  display: block;
}
.attendance-toolbar .attendance-period {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}
.attendance-toolbar .attendance-period input {
  flex: 0 0 145px;
  width: 145px;
  max-width: 145px;
  margin: 0;
}
.attendance-toolbar .row {
  gap: 6px;
}
.attendance-toolbar .attendance-search {
  max-width: 420px;
}
.attendance-drawer .muted {
  font-size: 10px;
  line-height: 1.4;
}
.own-shift .speech-warning {
  background: #fff1db;
  border-radius: 8px;
  padding: 9px;
  font-size: 12px;
}
.own-shift .speech-warning p {
  margin: 5px 0;
}
.attendance-section-head {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  display: flex;
}
.attendance-section-head h3 {
  margin: 0;
}
.attendance-section-head button {
  min-height: 28px;
  padding: 4px 9px;
}
.attendance-punch-wrap {
  overflow-x: auto;
}
.attendance-punch-wrap .attendance-punches {
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
  min-width: 300px;
}
.attendance-punch-wrap th:first-child {
  width: 54px;
}
.attendance-punch-wrap th:nth-child(2) {
  width: 128px;
}
.attendance-punch-wrap th:last-child {
  width: 42px;
}
.attendance-punch-wrap td {
  vertical-align: top;
  overflow-wrap: anywhere;
}
.attendance-punch-wrap th {
  white-space: nowrap;
  font-size: 11px;
}
.punch-correction {
  gap: 2px;
  display: grid;
}
.punch-correction-line {
  align-items: center;
  gap: 3px;
  display: flex;
}
.attendance-drawer .punch-correction-line select {
  font-variant-numeric: tabular-nums;
  flex: 1;
  width: 78px;
  min-height: 30px;
  padding: 4px;
}
.attendance-drawer .punch-save {
  color: #1b60b1;
  background: #e2edff;
  border: 1px solid #bdcee8;
  place-items: center;
  width: 27px;
  min-width: 27px;
  padding: 3px;
  display: grid;
}
.punch-date summary {
  color: #71839a;
  cursor: pointer;
  min-height: 0;
  padding: 0;
  font-size: 10px;
  line-height: 16px;
}
.attendance-drawer .punch-date input {
  min-height: 28px;
  margin-top: 3px;
  padding: 3px;
  font-size: 11px;
}
.attendance-add-actions {
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 12px;
  display: flex;
}
.attendance-add-actions button {
  color: #225b9d;
  background: #e7effb;
  border-color: #cedaeb;
  padding: 5px 9px;
}
.attendance-event-start {
  grid-template-columns: minmax(0, 1.5fr) minmax(80px, 1fr);
  gap: 8px;
  display: grid;
}
.attendance-event-duration {
  align-items: flex-end;
  gap: 14px;
  display: flex;
}
.attendance-event-duration label {
  width: 140px;
}
.attendance-event-duration > span {
  padding-bottom: 7px;
  font-size: 12px;
}
.attendance-event .attendance-actions,
.attendance-correction .attendance-actions {
  margin: 4px 0 0;
}
.attendance-correction {
  margin-top: 12px;
}
.attendance-correction .checkbox {
  align-items: center;
  gap: 6px;
  display: flex;
}
.attendance-correction input[type="checkbox"] {
  width: 15px;
  min-height: 15px;
}
.attendance-saved {
  color: #297548;
  margin: 6px 0;
  font-size: 11px;
}
.work-report {
  font-size: 12px;
}
.report-controls {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  display: flex;
}
.report-controls input,
.report-controls select {
  width: auto;
  max-width: 180px;
}
.work-report button,
.work-report input,
.work-report select {
  min-height: 29px;
  padding: 5px 8px;
  font-size: 12px;
}
.report-scroll {
  overflow: auto;
}
.work-report table {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  background: #ffffff60;
  width: 100%;
  font-size: 12px;
}
.work-report th,
.work-report td {
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #758ba322;
  height: 32px;
  padding: 6px 8px;
}
.work-report th {
  background: #edf3fa;
  font-size: 11px;
  font-weight: 500;
}
.work-report .report-link {
  color: #2674ca;
  background: 0 0;
  border: 0;
  min-height: 0;
  padding: 0;
  font-weight: 400;
}
.report-footer {
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 12px 0;
  display: flex;
}
.report-detail {
  white-space: pre-line;
  gap: 5px;
  padding: 6px;
  font-size: 11px;
  display: grid;
}
.report-detail button {
  justify-self: start;
}
.report-warning {
  background: #fff4dc;
  border-radius: 4px;
  padding: 8px;
  font-size: 12px;
}
.work-report summary {
  padding: 8px 0;
  font-size: 12px;
}
.work-report .muted {
  margin: 8px 0;
  font-size: 11px;
}
.work-report .report-visit {
  margin: 2px 0;
  display: block;
}
.work-report .attendance-punch-wrap td {
  white-space: normal;
  height: auto;
}
.work-report .attendance-punches th,
.work-report .attendance-punches td {
  height: auto;
}
:root {
  --red: #b5122c;
  --ink: #222733;
  --muted: #677080;
  --canvas: #f5f6f8;
  --line: #e2e5eb;
  --warning: #b77b00;
  --critical: #b5122c;
  --success: #22794f;
}
.shift-columns {
  grid-template-areas: "context own tasks";
  align-items: start;
}
.own-column {
  flex-direction: column;
  grid-area: own;
  gap: 6px;
  min-width: 0;
  display: flex;
}
.restaurant-context {
  grid-area: context;
}
.shift-task-column {
  grid-area: tasks;
}
.panel.own-shift {
  isolation: isolate;
  background: #f1f5fa;
  border-color: #c7d4e1;
  padding: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 16px #6d89a111;
}
.own-heading {
  z-index: 1;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  display: flex;
  position: relative;
}
.own-heading h2 {
  margin: 0 !important;
}
.own-state-label {
  color: #596b7e;
  margin-top: 4px;
  font-size: 11px;
  display: block;
}
.own-heading .quiet {
  min-width: 28px;
  min-height: 28px;
  padding: 3px 6px;
}
.own-layout {
  z-index: 1;
  flex-direction: column;
  gap: 8px;
  display: flex;
  position: relative;
}
.own-data {
  order: 20;
}
.own-actions {
  order: 40;
  gap: 6px;
  display: grid;
}
.own-events {
  order: 50;
}
.own-next {
  order: 60;
}
.own-history {
  order: 80;
}
.own-footer {
  order: 90;
}
.panel.own-shift p {
  margin: 5px 0;
  font-size: 12px;
  line-height: 1.55;
}
.panel.own-shift .own-no-plan {
  color: #415669;
  margin: 0;
  font-weight: 600;
}
.own-data:not(:empty) {
  background: #ffffff91;
  border: 1px solid #d3dfe766;
  border-radius: 9px;
  padding: 8px 10px;
}
.panel.own-shift .shift-clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  font-size: 32px;
  font-weight: 750;
  line-height: 1.2;
  display: block;
}
.own-shift .hour-layers {
  color: #687c90;
  margin: 3px 0 5px;
  font-size: 11px;
  display: block;
}
.shift-coming strong {
  font-size: 13px;
}
.own-shift .pending-note {
  color: #795695;
  font-size: 11px;
}
.own-shift .own-main-action {
  width: 100%;
  min-height: 35px;
  margin: 0;
  font-size: 12px;
}
.own-remind {
  background: #ffffffba;
  min-height: 34px;
  font-size: 12px;
}
.own-shift .own-break {
  align-items: center;
  gap: 6px;
  margin: 0;
  display: flex;
}
.own-shift .own-break select {
  background: #ffffffae;
  flex: 0 0 79px;
  width: 79px;
  min-height: 33px;
  padding: 7px;
  font-size: 11px;
}
.own-shift .own-break button {
  color: #425970;
  background: #e8edf2;
  border-color: #c6d3df;
  flex: 1;
  min-height: 33px;
  font-size: 12px;
}
.own-shift .break-inactive button {
  color: #62768a;
  background: #e9eef363;
}
.own-shift .break-inactive select {
  opacity: 0.65;
}
.own-events .self-activity {
  background: #ffffffb8;
  border: 1px solid #d2dee9;
  border-radius: 8px;
  margin: 0 0 7px;
  padding: 7px 9px;
}
.own-events .self-activity strong,
.own-events .self-activity small {
  display: block;
}
.own-events details {
  padding: 4px 0;
}
.own-events details label {
  margin-top: 8px;
}
.own-events details button {
  margin-top: 7px;
}
.own-shift .own-next {
  border-top: 1px solid #c9d6e3;
  margin: 0;
  padding: 8px 0 0;
}
.own-shift .own-next p {
  font-size: 11px;
  line-height: 1.7;
}
.own-next > small {
  color: #536b83;
  font-size: 11px;
}
.own-history {
  margin: 2px 0 0;
  padding-top: 4px;
}
.own-history summary {
  font-size: 12px;
}
.own-history p {
  font-size: 11px !important;
}
.own-footer {
  border-top: 1px solid #cedae766;
  gap: 5px;
  padding-top: 5px;
  display: grid;
}
.own-footer .quiet {
  color: #546c82;
  justify-content: flex-start;
  min-height: 25px;
  padding: 3px 0;
  font-size: 11px;
}
.own-footer > small {
  font-size: 10px;
}
.own-shift .own-save {
  color: #426e56;
  margin: 0;
  font-size: 11px;
}
.own-strip-wrap {
  margin: 8px 0 0;
}
.own-strip-labels {
  justify-content: space-between;
  display: flex;
}
.own-strip-labels small {
  color: #567089;
  font-size: 10px;
}
.own-strip {
  background: #dfe7f0;
  border-radius: 6px;
  height: 25px;
  margin-top: 3px;
  position: relative;
  overflow: hidden;
}
.own-strip-plan {
  border: 1px dashed #688aa8;
  border-radius: 4px;
  height: 19px;
  position: absolute;
  top: 3px;
}
.own-strip-fact {
  background: #9fc7b1;
  border-radius: 3px;
  height: 15px;
  position: absolute;
  top: 5px;
}
.own-strip-fact.extra {
  background: #bda6d5;
}
.own-strip-event {
  background: #c8b586;
  border-radius: 2px;
  height: 8px;
  position: absolute;
  top: 14px;
}
.own-strip-event.break {
  background: repeating-linear-gradient(
    135deg,
    #8496a5,
    #8496a5 3px,
    #e4ebf1 3px 6px
  );
}
.own-strip-wrap > small {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.5;
  display: block;
}
.own-atmosphere {
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(145deg, #f4f7fa, #edf1f6);
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.own-atmosphere svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.atmosphere-light {
  background: linear-gradient(
    110deg,
    #0000 34%,
    #ffffffba 47%,
    #c9dae875 58%,
    #0000 74%
  );
  width: 220%;
  height: 120%;
  animation: 12s ease-in-out infinite alternate column-light;
  position: absolute;
  top: -30%;
  left: -100%;
}
.atmosphere-wave {
  transform-box: fill-box;
  transform-origin: 50%;
  will-change: transform;
}
.wave-one {
  fill: #aac8d9;
  opacity: 0.35;
  animation: 10s ease-in-out infinite alternate column-wave-one;
}
.wave-two {
  fill: #b4bfd4;
  opacity: 0.32;
  animation: 13s ease-in-out infinite alternate column-wave-two;
}
.atmosphere-morning {
  background: linear-gradient(145deg, #fbf8f0, #eff3f8);
}
.atmosphere-morning .wave-one {
  fill: #d1c3a6;
  opacity: 0.3;
}
.atmosphere-evening {
  background: linear-gradient(140deg, #f2eef4, #e4ebf4);
}
.atmosphere-evening .wave-one {
  fill: #c5b8ce;
}
.atmosphere-night {
  background: linear-gradient(145deg, #ecedf6, #dce5f0);
}
.atmosphere-night .wave-one {
  fill: #a9b8d4;
  opacity: 0.4;
}
.atmosphere-stars {
  fill: #637893;
  opacity: 0;
}
.atmosphere-night .atmosphere-stars {
  opacity: 0.6;
  animation: 7s ease-in-out infinite alternate column-stars;
}
.atmosphere-work {
  background: linear-gradient(140deg, #f4f7f9, #e6eef3);
}
.shift-scene {
  --tail-x: 42%;
  order: 10;
  min-width: 0;
  position: relative;
}
.scene-position-middle {
  order: 30;
}
.scene-position-bottom {
  order: 65;
}
.scene-speech {
  z-index: 2;
  padding-bottom: 8px;
  position: relative;
}
.panel.own-shift .speech-cloud {
  color: #30465c;
  overflow-wrap: anywhere;
  background: #fffefcf5;
  border: 1.5px solid #71869d;
  border-radius: 14px;
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.55;
  position: relative;
  box-shadow: 0 2px #637e9714;
}
.speech-cloud:after {
  content: "";
  width: 13px;
  height: 13px;
  left: var(--tail-x, 42%);
  background: #fffefc;
  border-bottom: 1.5px solid #71869d;
  border-right: 1.5px solid #71869d;
  position: absolute;
  bottom: -8px;
  transform: skew(-18deg) rotate(45deg);
}
.panel.own-shift .speech-aside {
  background: #f5f8fc;
  margin: 8px 0 0 12%;
  font-size: 11px;
}
.speech-aside:after {
  background: #f5f8fc;
  left: 25%;
}
.panel.own-shift .speech-warning {
  background: #fff7e8;
  border-color: #b18a50;
  margin: 7px 0 10px;
  font-size: 11px;
}
.speech-warning:after {
  background: #fff7e8;
  border-color: #b18a50;
}
.shift-scene-drawing {
  color: #354c63;
  width: 100%;
  height: 156px;
  margin: 0;
  display: block;
  overflow: visible;
}
.scene-floor {
  stroke: #819bb0;
  stroke-width: 1.5px;
  opacity: 0.65;
}
.scene-room-line {
  stroke: #8195ab;
  stroke-width: 2px;
  opacity: 0.8;
}
.scene-bed {
  stroke: #405b76;
  stroke-width: 3px;
}
.stick-sleeper {
  transform-origin: 72px 96px;
  animation: 4s ease-in-out infinite scene-breath;
}
.sleep-mouth {
  fill: #405b76;
  stroke: none;
}
.scene-sleep {
  --tail-x: 32%;
}
.scene-brush {
  --tail-x: 56%;
}
.scene-calendar {
  --tail-x: 35%;
}
.scene-tea {
  --tail-x: 50%;
}
.scene-done {
  --tail-x: 56%;
}
.sleep-z {
  fill: #344c66;
  stroke: none;
  opacity: 0;
  transform-origin: 85px 90px;
  font:
    700 14px Arial,
    sans-serif;
  animation: 3.6s linear -0.9s infinite scene-sleep-z;
}
.z-two {
  animation-delay: -2.1s;
}
.z-three {
  animation-delay: -3.3s;
}
.stick-brush-hand {
  animation: 1.1s ease-in-out infinite scene-brush-hand;
}
.brush-head {
  stroke: #517a98;
  stroke-width: 4px;
}
.brush-foam {
  fill: #d8e8f4;
  stroke: #52708c;
  stroke-width: 1px;
}
.tea-steam,
.pan-steam {
  stroke: #64879f;
  stroke-width: 2px;
  animation: 2.6s ease-in-out infinite scene-steam;
}
.steam-two {
  animation-delay: 1.3s;
}
.cook-hand {
  transform-origin: 124px 81px;
  animation: 3.4s ease-in-out infinite scene-pan-hand;
}
.scene-pan {
  stroke-width: 3.5px;
}
.flying-cutlet {
  transform-origin: 219px 81px;
  animation: 3.4s ease-in-out infinite scene-cutlet;
}
.flying-cutlet ellipse {
  fill: #bb9371;
  stroke: #79624f;
  stroke-width: 1.8px;
}
.flying-cutlet path {
  stroke: #79624f;
  stroke-width: 1.5px;
}
.order-bag {
  animation: 4.5s ease-in-out infinite scene-order;
}
.admin-list .list-check,
.board-check,
.pack-tick,
.done-spark {
  stroke: #537864;
  stroke-dasharray: 60;
  animation: 5s ease-in-out infinite scene-check;
}
.clean-mop {
  transform-origin: 153px 57px;
  animation: 3.4s ease-in-out infinite scene-mop;
}
.clean-sparkle {
  stroke: #7a96ab;
  animation: 3.4s ease-in-out infinite scene-sparkle;
}
.stick-walker {
  animation: 4s ease-in-out infinite scene-walk;
}
.walker-leg-one {
  transform-origin: 177px 111px;
  animation: 1.2s ease-in-out infinite alternate scene-step;
}
.walker-leg-two {
  transform-origin: 177px 111px;
  animation: 1.2s ease-in-out infinite alternate-reverse scene-step;
}
.done-person {
  animation: 7s ease-in-out infinite scene-leave;
}
.done-wave {
  transform-origin: 186px 84px;
  animation: 3.8s ease-in-out infinite scene-wave;
}
.stretch-person {
  transform-origin: 121px 112px;
  animation: 5s ease-in-out infinite scene-stretch;
}
.calendar-pencil {
  transform-origin: 127px 77px;
  animation: 4s ease-in-out infinite scene-pencil;
}
.packed-bag {
  animation: 5s ease-in-out infinite scene-bag;
}
@keyframes column-wave-one {
  0% {
    transform: translate(-85px, -12px);
  }
  to {
    transform: translate(80px, 22px);
  }
}
@keyframes column-wave-two {
  0% {
    transform: translate(85px, 16px);
  }
  to {
    transform: translate(-70px, -20px);
  }
}
@keyframes column-light {
  0% {
    transform: translate(-10%);
  }
  to {
    transform: translate(40%);
  }
}
@keyframes column-stars {
  0% {
    opacity: 0.3;
    transform: translateY(-4px);
  }
  to {
    opacity: 0.75;
    transform: translateY(6px);
  }
}
@keyframes scene-breath {
  50% {
    transform: translateY(-1.5px);
  }
}
@keyframes scene-sleep-z {
  0% {
    opacity: 0;
    transform: translate(0) scale(0.75);
  }
  12% {
    opacity: 1;
  }
  78% {
    opacity: 0.8;
  }
  to {
    opacity: 0;
    transform: translate(55px, -62px) scale(1.2);
  }
}
@keyframes scene-brush-hand {
  50% {
    transform: translate(-4px) translateY(1px);
  }
}
@keyframes scene-steam {
  0%,
  to {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-5px);
  }
}
@keyframes scene-pan-hand {
  0%,
  20%,
  85%,
  to {
    transform: rotate(0);
  }
  30% {
    transform: rotate(-6deg);
  }
  65% {
    transform: rotate(3deg);
  }
}
@keyframes scene-cutlet {
  0%,
  20%,
  85%,
  to {
    transform: translate(0) rotate(0);
  }
  45% {
    transform: translate(4px, -46px) rotate(120deg);
  }
  65% {
    transform: translate(7px, -28px) rotate(250deg);
  }
}
@keyframes scene-order {
  0%,
  20%,
  to {
    transform: translate(0);
  }
  45%,
  70% {
    transform: translate(42px);
  }
}
@keyframes scene-check {
  0%,
  12% {
    stroke-dashoffset: 60px;
    opacity: 0.2;
  }
  35%,
  90% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  to {
    opacity: 0.2;
  }
}
@keyframes scene-mop {
  50% {
    transform: rotate(9deg);
  }
}
@keyframes scene-sparkle {
  0%,
  20%,
  to {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}
@keyframes scene-walk {
  50% {
    transform: translate(10px) translateY(-1px);
  }
}
@keyframes scene-step {
  0% {
    transform: rotate(-7deg);
  }
  to {
    transform: rotate(7deg);
  }
}
@keyframes scene-wave {
  15%,
  30% {
    transform: rotate(-10deg);
  }
  22%,
  37% {
    transform: rotate(8deg);
  }
}
@keyframes scene-leave {
  0%,
  30% {
    opacity: 1;
    transform: translate(0);
  }
  80% {
    opacity: 1;
    transform: translate(65px);
  }
  95%,
  to {
    opacity: 0;
    transform: translate(65px);
  }
}
@keyframes scene-stretch {
  50% {
    transform: scaleY(1.04);
  }
}
@keyframes scene-pencil {
  50% {
    transform: rotate(-9deg);
  }
}
@keyframes scene-bag {
  50% {
    transform: translateY(-3px);
  }
}
@media (width<=1100px) {
  .shift-columns {
    grid-template-areas: "own tasks" "context context";
  }
}
@media (width<=760px) {
  .shift-columns {
    grid-template-areas: "own" "tasks" "context";
    grid-template-columns: 1fr !important;
  }
  .panel.own-shift {
    padding: 12px;
  }
  .shift-scene-drawing {
    height: 146px;
  }
  .panel.own-shift .speech-cloud {
    font-size: 12px;
  }
  .panel.own-shift .speech-aside {
    font-size: 11px;
  }
  .own-column {
    width: 100%;
  }
  .own-shift .own-break button {
    min-height: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .own-shift *,
  .own-shift :before,
  .own-shift :after {
    animation: none !important;
  }
  .sleep-z {
    opacity: 1;
    transform: translate(12px, -14px);
  }
  .z-two {
    transform: translate(32px, -36px);
  }
  .z-three {
    transform: translate(52px, -56px);
  }
  .list-check,
  .board-check,
  .pack-tick,
  .done-spark {
    stroke-dashoffset: 0;
  }
  .atmosphere-night .atmosphere-stars {
    opacity: 0.6;
  }
}
.panel.own-shift .own-layout {
  gap: 6px;
}
.own-scene-kitchen .shift-scene-drawing,
.own-scene-cash .shift-scene-drawing,
.own-scene-admin .shift-scene-drawing,
.own-scene-tea .shift-scene-drawing {
  height: 125px;
}
.panel.own-shift .own-actions .error {
  color: #a43f39;
  margin: 3px 0;
  font-size: 11px;
}
.dialog.task-chat-dialog {
  background: #f7faff;
  border-radius: 20px;
  width: min(96vw, 760px);
  padding: 0;
  overflow: auto;
  box-shadow: 0 24px 80px #253b612b;
}
.task-chat-dialog .dialog-heading {
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: #f7fafff5;
  flex-wrap: nowrap;
  margin: 0;
  padding: 16px 18px 12px;
  position: sticky;
  top: 0;
}
.task-chat-dialog .dialog-heading h2 {
  overflow-wrap: anywhere;
  flex: 1;
  font-size: 16px;
  line-height: 1.4;
}
.dialog-heading > .quiet {
  color: #6d7d92;
  background: #eaf0f7;
  border-radius: 10px;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
}
.task-chat {
  flex-direction: column;
  gap: 10px;
  padding: 12px 18px 16px;
  display: flex;
}
.task-chat .chat-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}
.task-chat .chat-toolbar > select {
  background: #edf3fc;
  border-color: #d9e3f2;
  max-width: 140px;
  min-height: 32px;
  font-size: 12px;
}
.task-chat .chat-assignee {
  color: #4c627e;
  flex: 1;
  align-items: center;
  gap: 6px;
  min-width: 130px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
}
.task-chat .chat-assignee select {
  box-shadow: none;
  background: 0 0;
  border: 0;
  width: 100%;
  max-width: 290px;
  min-height: 32px;
  padding: 5px 4px;
  font-size: 12px;
}
.chat-actions {
  gap: 4px;
  margin-left: auto;
  display: flex;
}
.icon-button {
  color: #536b89;
  width: 32px;
  height: 32px;
  box-shadow: none;
  background: #fff;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  flex: none;
  padding: 0;
}
.icon-button:hover {
  color: #246cc9;
  background: #eaf2ff;
  border-color: #bed2f0;
}
.icon-button.danger-icon {
  color: #a77680;
  background: 0 0;
  border-color: #0000;
}
.icon-button.danger-icon:hover {
  color: #b33a4d;
  background: #fff0f1;
}
.task-chat .chat-context {
  padding: 0;
  font-size: 11px;
}
.chat-facts {
  color: #74849a;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin-top: 6px;
  display: flex;
}
.chat-facts > span {
  align-items: center;
  gap: 4px;
  display: inline-flex;
}
.task-chat .chat-description {
  border-bottom: 1px solid var(--line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #35465d;
  background: 0 0;
  border-radius: 0;
  max-height: 180px;
  margin: 0;
  padding: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  overflow: auto;
}
.chat-shift {
  color: #365e94;
  background: #e9f2ff;
  border: 1px solid #d5e4fa;
  border-radius: 12px;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
}
.chat-shift > svg {
  flex: none;
  margin-top: 2px;
}
.chat-shift strong {
  font-size: 12px;
}
.chat-shift p {
  margin: 3px 0;
}
.chat-shift a {
  color: #236bc7;
  font-size: 11px;
  font-weight: 600;
}
.chat-shift small {
  margin-top: 5px;
  font-size: 10px;
  display: block;
}
.task-chat .chat-messages {
  scrollbar-width: thin;
  overscroll-behavior: contain;
  background: linear-gradient(145deg, #eef3fb, #f3f5fb);
  border: 1px solid #e3eaf3;
  border-radius: 14px;
  height: auto;
  min-height: 120px;
  max-height: min(43dvh, 410px);
  margin: 0;
  padding: 10px 13px;
  overflow: auto;
}
.task-chat .chat-empty {
  text-align: center;
  color: #8a97aa;
  max-width: 290px;
  margin: 22px auto;
  font-size: 12px;
}
.task-chat .chat-date {
  color: #8390a3;
  background: #ffffffb3;
  border-radius: 20px;
  width: fit-content;
  margin: 4px auto 12px;
  padding: 3px 9px;
  font-size: 10px;
}
.task-chat .chat-system {
  color: #8b99ab;
  margin: 6px 0;
  font-size: 10px;
}
.task-chat .bubble {
  border-radius: 12px;
  max-width: 85%;
  margin: 7px 0;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 2px 4px #263c5910;
}
.task-chat .bubble.mine {
  background: #dceaff;
  border-bottom-right-radius: 3px;
}
.task-chat .bubble.theirs {
  background: #fff;
  border-bottom-left-radius: 3px;
}
.task-chat .bubble.mine:after {
  border-bottom-color: #dceaff;
  border-left-color: #dceaff;
}
.task-chat .bubble time {
  opacity: 0.75;
  margin: 3px -2px -2px 10px;
  font-size: 9px;
}
.task-chat .chat-compose {
  align-items: flex-end;
  gap: 8px;
  margin: 0;
}
.task-chat .chat-compose textarea {
  resize: vertical;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  min-height: 58px;
  max-height: 150px;
  padding: 9px 12px;
  font-size: 13px;
}
.task-chat .chat-compose button {
  border-radius: 11px;
  flex: none;
  height: 38px;
  margin-bottom: 1px;
  padding: 8px 12px;
  font-size: 12px;
}
.task-chat .confirm-strip {
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 10px;
  font-size: 11px;
}
.confirm-strip strong {
  flex: 1;
  min-width: 200px;
}
.chat-deleted {
  background: #edf0f4;
  border-radius: 10px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  font-size: 11px;
  display: flex;
}
.chat-deleted span {
  flex: 1;
  min-width: 170px;
}
.operational-live {
  flex-direction: column;
  height: 100%;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.operational-live > .prototype-frame {
  flex: 1;
  height: auto;
  min-height: 0;
}
.live-review-strip {
  scrollbar-width: thin;
  background: #f5f9fff2;
  border-bottom: 1px solid #d6e3f3;
  flex: none;
  max-height: 35dvh;
  overflow: auto;
}
.live-review-strip > summary {
  color: #506b8f;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
}
.live-review-strip > summary:after {
  content: "⌄";
  margin-left: auto;
}
.live-review-row {
  border-top: 1px solid #e2eaf5;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 11px;
  display: flex;
}
.live-review-row > div {
  flex: 1;
  min-width: 0;
}
.live-review-row strong {
  font-weight: 650;
}
.live-review-row small {
  color: #8191a7;
  margin-top: 2px;
  font-size: 10px;
  display: block;
}
.review-confirm {
  color: #26725b;
  background: #e7f5ef;
  border-color: #d1eadd;
  border-radius: 10px;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}
.task-shift-fields {
  background: #eef5ff;
  border: 1px solid #d4e3f8;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
}
.task-shift-fields p {
  margin: 5px 0 10px;
}
@media (width<=650px) {
  .dialog.task-chat-dialog {
    border-radius: 16px;
    width: calc(100vw - 16px);
    max-height: 94dvh;
  }
  .task-chat-dialog .dialog-heading {
    padding: 12px;
  }
  .task-chat-dialog .dialog-heading h2 {
    font-size: 14px;
  }
  .task-chat {
    gap: 9px;
    padding: 10px 12px 12px;
  }
  .task-chat .chat-assignee {
    flex-basis: 130px;
    min-width: 120px;
  }
  .task-chat .chat-assignee select {
    font-size: 11px;
  }
  .task-chat .chat-toolbar {
    gap: 5px;
  }
  .task-chat .chat-messages {
    min-height: 100px;
    max-height: 38dvh;
    padding: 9px 10px;
  }
  .task-chat .chat-compose button {
    width: 38px;
    padding: 0;
  }
  .task-chat .chat-compose button span {
    display: none;
  }
  .task-chat .bubble {
    max-width: 91%;
  }
  .task-chat .chat-description {
    max-height: 130px;
    font-size: 12px;
  }
  .live-review-row {
    gap: 6px;
    padding: 7px 9px;
  }
  .review-confirm {
    font-size: 10px;
  }
}
* {
  box-sizing: border-box;
}
body {
  background: var(--canvas);
  color: var(--ink);
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  display: inline-flex;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  width: 100%;
  color: var(--ink);
  background: #fff;
  border-radius: 7px;
  padding: 10px;
  display: block;
}
label {
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  display: grid;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
:focus-visible {
  outline-offset: 3px;
  outline: 3px solid #338bce;
}
h1 {
  letter-spacing: -0.7px;
  margin: 6px 0 12px;
  font-size: 28px;
  line-height: 1.2;
}
.muted,
small {
  color: var(--muted);
}
.eyebrow {
  letter-spacing: 1.8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 22px;
}
.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 700;
}
.quiet {
  background: 0 0;
  border-color: #0000;
}
.error {
  color: #9d1624;
  background: #fff0f0;
  border-radius: 8px;
  margin: 12px 0;
  padding: 14px;
}
.empty {
  border: 1px dashed var(--line);
  color: var(--muted);
  background: #fff;
  border-radius: 12px;
  padding: 32px;
}
.login {
  background: #f0f1f3;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  min-height: 100dvh;
  padding: 22px;
  display: flex;
}
.login-brand,
.brand {
  color: var(--red);
  letter-spacing: -1px;
  font-size: 31px;
  font-weight: 900;
}
.login-brand span,
.brand span {
  letter-spacing: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  display: block;
}
.login-form {
  gap: 18px;
  width: min(100%, 420px);
  padding: 32px;
  display: grid;
}
.login-form p,
.login-form h1 {
  margin: 0;
}
.app-shell {
  min-height: 100dvh;
  display: flex;
}
.sidebar {
  border-right: 1px solid var(--line);
  z-index: 10;
  background: #fff;
  flex-direction: column;
  width: 232px;
  padding: 28px 18px 18px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  padding: 0 12px;
}
.restaurant-label {
  padding: 24px 12px;
  font-size: 14px;
  font-weight: 700;
}
.restaurant-label small {
  margin-top: 3px;
  font-weight: 400;
  display: block;
}
.sidebar nav {
  gap: 5px;
  display: grid;
}
.nav-link {
  color: var(--muted);
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
}
.dev-role {
  background: #f4f5f8;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 10px;
  font-size: 12px;
}
.dev-role small {
  margin-top: 8px;
  display: block;
}
.workspace {
  flex: 1;
  min-width: 0;
  margin-left: 232px;
}
.topbar {
  border-bottom: 1px solid var(--line);
  height: 66px;
  color: var(--muted);
  background: #fff;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  font-size: 14px;
  display: flex;
}
.main {
  max-width: 1500px;
  margin: auto;
  padding: 28px 32px;
}
.subnav {
  border-bottom: 1px solid var(--line);
  background: #fff;
  gap: 22px;
  padding: 0 32px;
  display: flex;
  overflow-x: auto;
}
.subnav a {
  white-space: nowrap;
  color: var(--muted);
  border-bottom: 2px solid #0000;
  padding: 16px 0;
  font-size: 14px;
}
.subnav a.active {
  color: var(--red);
  border-color: var(--red);
  font-weight: 700;
}
.page-heading {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  display: flex;
}
.grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  display: grid;
}
.stack {
  gap: 16px;
  display: grid;
}
.row {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}
.badge {
  color: #475367;
  background: #edf1f5;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 12px;
}
.badge.warning {
  color: #795200;
  background: #fff1ce;
}
.badge.critical {
  color: #a1192c;
  background: #ffe5e8;
}
.badge.success {
  color: #17643c;
  background: #e5f4eb;
}
.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  display: grid;
}
.divider {
  background: var(--line);
  height: 1px;
  margin: 16px 0;
}
@media (width<=760px) {
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    padding: 10px 12px;
    display: block;
    position: sticky;
    top: 0;
  }
  .app-shell {
    display: block;
  }
  .brand {
    padding: 0;
    font-size: 23px;
    display: inline-block;
  }
  .brand span {
    font-size: 9px;
  }
  .restaurant-label {
    display: none;
  }
  .sidebar nav {
    gap: 4px;
    margin-top: 10px;
    display: flex;
    overflow-x: auto;
  }
  .nav-link {
    white-space: nowrap;
    gap: 6px;
    padding: 10px;
    font-size: 13px;
  }
  .nav-link svg {
    width: 16px;
  }
  .sidebar-bottom {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 8px;
    right: 10px;
  }
  .sidebar-bottom .dev-role {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 44px;
    padding: 0 16px;
    font-size: 12px;
  }
  .main {
    padding: 20px 16px;
  }
  .subnav {
    gap: 20px;
    padding: 0 16px;
  }
  h1 {
    font-size: 25px;
  }
  .panel {
    padding: 18px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .login-form {
    padding: 24px;
  }
}
fieldset {
  border: 0;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
}
.dialog {
  border: 1px solid var(--line);
  width: min(94vw, 680px);
  max-height: 90dvh;
  color: var(--ink);
  border-radius: 14px;
  padding: 24px;
}
.dialog-heading {
  justify-content: space-between;
  margin-bottom: 16px;
}
.dialog-heading h2 {
  margin: 0;
}
.checkbox {
  align-items: center;
  margin: 12px 0;
  display: flex;
}
.checkbox input,
.check-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
  flex-shrink: 0;
}
.success-text {
  color: var(--success);
}
.person-card {
  text-align: left;
  background: #fff;
  border-radius: 12px;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 132px;
  padding: 18px;
}
.person-card strong {
  margin-bottom: 4px;
  display: block;
}
.person-card small {
  margin: 3px 0;
  display: block;
}
.person-card .badge {
  margin-top: 7px;
  display: inline-block;
}
.avatar {
  width: 42px;
  height: 42px;
  color: var(--muted);
  background: #f0f1f5;
  border-radius: 10px;
  flex-shrink: 0;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  display: grid;
}
.live-summary {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}
.live-summary h2 {
  margin: 10px 0 6px;
}
.live-summary p {
  margin: 0;
}
.countdown strong {
  font-variant-numeric: tabular-nums;
  font-size: 27px;
  display: block;
}
.countdown small {
  display: block;
}
.event-row {
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 0;
  font-size: 14px;
  display: flex;
}
.training-row {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.shift-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}
.shift-grid .eyebrow {
  margin-bottom: 8px;
}
.check-item {
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 400;
  display: flex;
}
.check-item small {
  margin-top: 4px;
  font-size: 12px;
  display: block;
}
.check-group + .check-group {
  margin-top: 24px;
}
.check-group .row {
  justify-content: space-between;
}
.check-group h3 {
  margin: 0;
}
.check-group p {
  margin-top: 12px;
  font-size: 14px;
}
.compact-form {
  margin-top: 14px;
}
summary {
  cursor: pointer;
  font-size: 14px;
}
.text-link,
.button-link {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}
.text-link {
  margin-top: 14px;
  display: inline-block;
}
.other-notices {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
}
.section-title h2 {
  margin: 0;
}
@media (width<=1050px) {
  .shift-grid {
    grid-template-columns: 1fr;
  }
}
@media (width<=760px) {
  .dialog {
    padding: 18px;
  }
  .page-heading .button-link {
    max-width: 110px;
  }
  .main {
    padding-bottom: 100px;
  }
  .sidebar-bottom {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    display: flex;
    position: static;
  }
  .sidebar-bottom .dev-role {
    width: 220px;
    max-height: none;
    box-shadow: none;
    margin: 0;
    padding: 6px;
    display: block;
    position: static;
  }
  .dev-role label {
    align-items: center;
    gap: 8px;
    font-size: 12px;
    display: flex;
  }
  .dev-role select {
    min-width: 115px;
    padding: 6px;
  }
  .dev-role small {
    display: none;
  }
  .topbar {
    gap: 10px;
    height: auto;
    min-height: 44px;
  }
  .topbar time {
    white-space: nowrap;
  }
}
.task-card {
  text-align: left;
  display: block;
}
.map-scroll {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  overflow: auto;
}
.floor-map {
  background-image: radial-gradient(#dfe3e9 1px, #0000 1px);
  background-size: 20px 20px;
  position: relative;
}
.map-zone {
  background: #f5f7fa99;
  border: 2px solid #cbd3de;
  border-radius: 8px;
  padding: 8px;
  position: absolute;
}
.map-zone > strong {
  color: var(--muted);
  font-size: 13px;
}
.map-object {
  background: #fff;
  border: 1px solid #9ba8b9;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
  font-size: 13px;
  display: flex;
  position: absolute;
  overflow: hidden;
}
.map-object.has-issue {
  background: #fff8df;
  border-color: #cb941d;
}
pre {
  white-space: pre-wrap;
  max-width: 100%;
  font-size: 12px;
  overflow: auto;
}
.schedule-days {
  grid-template-columns: repeat(7, minmax(95px, 1fr));
  gap: 8px;
  margin-top: 16px;
  display: grid;
  overflow: auto;
}
.schedule-day {
  align-content: start;
  gap: 6px;
  font-size: 13px;
  display: grid;
}
.schedule-day button {
  padding: 8px 4px;
  font-size: 13px;
  display: block;
}
.schedule-day small {
  display: block;
}
.rejected {
  color: #98152b;
  background: #fff0f0;
  text-decoration: line-through;
}
.stats {
  margin-bottom: 24px;
}
.warning-text {
  color: #9c6900;
}
@media (width<=760px) {
  .schedule-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
}
.compact-table-wrap {
  margin: 10px 0;
  overflow: auto;
}
.compact-table-wrap table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.compact-table-wrap th,
.compact-table-wrap td {
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #dbe3ed;
  padding: 6px 8px;
}
.compact-table-wrap th {
  background: #edf3fa;
  font-size: 11px;
}
.shift-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}
.shift-columns .panel {
  padding: 10px;
}
.shift-columns h2 {
  margin: 0 0 8px;
  font-size: 14px;
}
.shift-columns h3 {
  font-size: 12px;
}
.shift-columns p {
  margin: 7px 0;
  font-size: 12px;
}
.shift-columns .row {
  flex-wrap: wrap;
  gap: 5px;
}
.shift-clock {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
}
.self-activity {
  border-top: 1px solid #dce4ef;
  padding: 7px 0;
}
.shift-columns button {
  padding: 6px 8px;
  font-size: 11px;
}
.shift-columns input,
.shift-columns select,
.shift-columns textarea {
  width: 100%;
  font-size: 12px;
}
.employee-list .panel {
  align-items: center;
  gap: 10px;
  padding: 8px;
  display: flex;
}
.employee-list {
  flex-direction: column;
  gap: 5px;
  display: flex;
}
@media (width<=1100px) {
  .shift-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width<=650px) {
  .shift-columns {
    grid-template-columns: 1fr;
  }
}
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  display: inline-flex;
}
.profile-grid {
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  display: grid;
}
.profile-grid .panel {
  padding: 14px;
}
.profile-grid h2 {
  font-size: 16px;
}
.hour-layers {
  opacity: 0.7;
  font-size: 11px;
  display: block;
}
.task-list {
  gap: 6px;
  display: grid;
}
.task-card {
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  display: grid;
}
.task-card strong {
  font-size: 13px;
}
.task-deleted {
  opacity: 0.48;
}
.task-editor fieldset {
  gap: 9px;
}
.task-editor textarea {
  min-height: 85px;
}
.keyword-tags {
  flex-wrap: wrap;
  gap: 5px;
  display: flex;
}
.keyword-tags span {
  color: #376aa6;
  background: #e2ecff;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
}
.keyword-tags span:nth-child(2n) {
  color: #387857;
  background: #e1f4ec;
}
.deadline-help {
  font-size: 11px;
  font-weight: 400;
}
.deadline-help a {
  text-decoration: underline;
}
.guide-list {
  gap: 10px;
  margin-top: 12px;
  display: grid;
}
.guide-article {
  scroll-margin-top: 30px;
}
.guide-article li {
  margin: 10px 0;
  line-height: 1.7;
}
.guide-article h2 {
  font-size: 18px;
}
.guide-article img {
  object-fit: contain;
  max-width: 100%;
  max-height: 300px;
}
.guide-article figure {
  margin: 10px 0;
}
.guide-article figcaption {
  color: var(--muted);
  font-size: 11px;
}
@media (width<=760px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .task-card {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .bubble {
    max-width: 90%;
  }
  .guide-article {
    padding: 13px;
  }
  .chat-toolbar small {
    font-size: 10px;
  }
}
.task-preview {
  text-align: left;
  width: 100%;
  box-shadow: none;
  margin: 4px 0;
  padding: 8px 10px;
  display: block !important;
}
.task-preview-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 7px;
  display: flex;
}
.task-preview strong {
  font-size: 12px;
  line-height: 1.4;
}
.task-preview small {
  font-size: 9px;
  display: block;
}
.task-preview p {
  margin: 4px 0 !important;
  font-size: 11px !important;
}
.task-excerpt {
  -webkit-line-clamp: 2;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}
.task-preview .keyword-tags {
  gap: 3px;
  margin: 4px 0;
}
.task-preview .keyword-tags span {
  padding: 1px 5px;
  font-size: 9px;
}
.task-time-options,
.task-extra-options {
  border-top: 1px solid var(--line);
  padding: 7px 0;
}
.task-time-options > label,
.task-extra-options > label {
  margin-top: 7px;
}
.task-time-options summary,
.task-extra-options summary {
  font-size: 11px;
}
.priority-critical {
  color: #99424d;
  background: #f5d9dc;
}
.priority-high {
  color: #91713e;
  background: #f2e6ce;
}
.priority-low {
  color: #687b92;
  background: #e3e8ef;
}
.history-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0;
  overflow: auto;
}
.history-inner {
  min-width: 950px;
}
.history-axis,
.history-person {
  grid-template-columns: 140px 1fr;
  display: grid;
}
.history-axis {
  background: #e9eff7;
  height: 25px;
}
.history-axis > div {
  position: relative;
}
.history-axis small {
  white-space: nowrap;
  font-size: 9px;
  position: absolute;
  transform: translate(-50%);
}
.history-axis small:last-child {
  transform: translate(-100%);
}
.history-axis > span,
.history-person > strong {
  padding: 7px;
  font-size: 10px;
}
.history-person {
  border-top: 1px solid var(--line);
}
.history-track {
  background: repeating-linear-gradient(
    90deg,
    #0000,
    #0000 calc(6.66% - 1px),
    #b5c4d233 calc(6.66% - 1px) 6.66%
  );
  height: 48px;
  position: relative;
}
.history-plan {
  background: #dce5f233;
  border: 1px dashed #8ba5c1;
  border-radius: 5px;
  height: 40px;
  position: absolute;
  top: 3px;
}
.history-fact {
  white-space: nowrap;
  background: #bbdaca;
  border-color: #93bba5;
  justify-content: flex-start;
  min-width: 2px;
  height: 19px;
  padding: 2px 5px;
  font-size: 8px;
  position: absolute;
  overflow: hidden;
}
.history-fact.pending {
  background: repeating-linear-gradient(
    135deg,
    #dfd1ec,
    #dfd1ec 5px,
    #f1eafa 5px 10px
  );
  border-color: #b29cca;
}
.history-fact.rejected {
  opacity: 0.4;
  text-decoration: line-through;
}
.pending-row {
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  display: flex;
}
.pending-row > div {
  flex: 1;
  min-width: 160px;
}
.pending-row p,
.pending-row button {
  font-size: 10px;
}
@media (width<=650px) {
  .task-preview {
    padding: 7px;
  }
  .own-strip-wrap > small {
    font-size: 8px;
  }
}
:root {
  --ink: #172235;
  --muted: #6f7f95;
  --line: #6c819d2e;
  --red: #2f7df4;
  --canvas: #edf4fb;
  --success: #23a66e;
  --warning: #d79216;
  --critical: #d95454;
}
body {
  background-color: #0000;
  background-image:
    radial-gradient(circle at 8% 8%, #5499ff57, #0000 26%),
    radial-gradient(circle at 78% 10%, #a06fff38, #0000 24%),
    radial-gradient(circle at 92% 74%, #3dd1be2b, #0000 28%),
    radial-gradient(circle at 25% 92%, #75b0ff29, #0000 27%),
    linear-gradient(145deg, #f7fbff 0%, #edf4fb 52%, #f5f8fd 100%);
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0;
  background-repeat: repeat, repeat, repeat, repeat, repeat;
  background-size: auto, auto, auto, auto, auto;
  background-attachment: fixed;
  background-origin:
    padding-box, padding-box, padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box, border-box, border-box;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    sans-serif;
  font-size: 11px;
}
.sidebar,
.topbar,
.panel,
.dialog,
.subnav,
.other-notices {
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  backdrop-filter: blur(28px) saturate(145%);
  background: linear-gradient(#ffffff91, #ffffff63);
  border: 1px solid #ffffffb8;
  box-shadow: 0 8px 24px #4a608412;
}
.sidebar {
  width: 150px;
  padding: 14px 8px;
}
.brand {
  letter-spacing: 0;
  padding: 0 7px;
  font-size: 18px;
}
.brand span {
  letter-spacing: 1px;
  font-size: 7px;
}
.restaurant-label {
  padding: 14px 7px;
  font-size: 10px;
}
.restaurant-label small {
  font-size: 9px;
}
.nav-link {
  gap: 7px;
  padding: 8px;
  font-size: 11px;
}
.nav-link.active {
  color: #2f7df4;
  background: #2f7df41a;
}
.workspace {
  width: calc(100% - 150px);
  min-width: 0;
  margin-left: 150px;
}
.topbar {
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 9px;
}
.subnav {
  white-space: nowrap;
  gap: 14px;
  min-height: 28px;
  padding: 0 12px;
  overflow-x: auto;
}
.subnav a {
  padding: 7px 0;
  font-size: 10px;
}
.main {
  max-width: none;
  padding: 10px 12px;
}
.main.prototype-host {
  height: calc(100dvh - 58px);
  padding: 0;
  overflow: hidden;
}
.prototype-frame {
  background: 0 0;
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.prototype-host:has(+ .person-overlay) {
  overflow: hidden;
}
h1 {
  letter-spacing: 0;
  margin: 4px 0 8px;
  font-size: 15px;
}
h2 {
  margin: 0 0 8px;
  font-size: 12px;
}
h3 {
  margin: 0 0 6px;
  font-size: 11px;
}
p {
  margin: 0 0 7px;
}
small,
.muted {
  font-size: 10px;
}
.eyebrow {
  letter-spacing: 1px;
  font-size: 9px;
}
.page-heading {
  margin-bottom: 10px;
}
.panel {
  border-radius: 16px;
  padding: 10px;
}
.grid,
.stack,
.row {
  gap: 8px;
}
.filters,
.stats {
  margin-bottom: 10px;
}
.stats h1 {
  font-size: 18px;
}
.empty {
  background: #fff5;
  padding: 14px;
  font-size: 11px;
}
.error {
  margin: 6px 0;
  padding: 8px;
  font-size: 11px;
}
button {
  background: #ffffff80;
  border-radius: 8px;
  gap: 5px;
  padding: 5px 8px;
  font-size: 11px;
}
button.primary,
.primary {
  color: #fff;
  background: linear-gradient(135deg, #438cff, #2670e1);
  border: 1px solid #ffffffa6;
  box-shadow: 0 3px 8px #2f7df420;
}
.quiet {
  background: 0 0;
}
.badge {
  padding: 3px 6px;
  font-size: 9px;
}
input,
select,
textarea {
  background: #ffffff87;
  border-radius: 8px;
  min-height: 26px;
  padding: 5px 7px;
  font-size: 11px;
}
label {
  gap: 3px;
  font-size: 10px;
}
textarea {
  min-height: 50px;
}
fieldset {
  gap: 8px;
}
.checkbox {
  margin: 5px 0;
}
.checkbox input,
.check-item input {
  width: 14px;
  height: 14px;
}
.event-row {
  gap: 8px;
  padding: 6px 0;
  font-size: 11px;
}
.schedule-days {
  gap: 5px;
  margin-top: 8px;
}
.schedule-day,
.schedule-day button {
  font-size: 10px;
}
.schedule-day button {
  padding: 5px 3px;
}
.check-item {
  padding: 6px 0;
  font-size: 11px;
}
.dialog {
  max-height: 94dvh;
  padding: 12px;
}
.dialog-heading {
  margin-bottom: 8px;
}
.dialog::backdrop {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #50607835;
}
.task-card h2 {
  margin: 6px 0;
}
.task-card p {
  margin-bottom: 5px;
}
.section-title {
  margin: 6px 0 3px;
}
.employee-list {
  background: #ffffff48;
  border: 1px solid #ffffffa0;
  border-radius: 16px;
  display: block;
  overflow: hidden;
}
.employee-list > .panel {
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  background: 0 0;
  border-radius: 0;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  display: flex;
}
.employee-list > .panel p {
  flex: 1;
  margin: 0;
}
.employee-list > .panel strong {
  font-size: 11px;
}
.person-overlay {
  z-index: 80;
  background: #eef4fb;
  border: 1px solid #ffffffc0;
  border-radius: 16px;
  grid-template-rows: 30px minmax(0, 1fr);
  display: grid;
  position: fixed;
  inset: 8px;
  overflow: hidden;
  box-shadow: 0 18px 52px #4a608c30;
}
.person-overlay-head {
  background: #ffffff70;
  justify-content: space-between;
  align-items: center;
  padding: 2px 10px;
  font-size: 10px;
  display: flex;
}
.day-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  display: flex;
}
.day-toolbar input {
  width: 140px;
}
.day-toolbar select {
  width: 130px;
}
.day-board {
  padding: 8px;
  overflow: auto;
}
.day-board-inner {
  min-width: 1220px;
}
.day-axis,
.day-row {
  grid-template-columns: 150px minmax(0, 1fr);
  display: grid;
}
.day-axis {
  z-index: 2;
  background: #f1f6fbd9;
  height: 34px;
  position: sticky;
  top: 0;
}
.day-name {
  z-index: 1;
  background: #eef4fbbf;
  align-items: center;
  gap: 4px;
  padding: 8px;
  font-size: 10px;
  display: flex;
  position: sticky;
  left: 0;
}
.day-name > .quiet {
  text-align: left;
  flex: 1;
  justify-content: flex-start;
  padding: 0;
  font-size: 10px;
}
.day-add {
  padding: 1px 4px;
}
.day-track {
  background: repeating-linear-gradient(
    90deg,
    #0000 0 calc(6.25% - 1px),
    #6c819d21 calc(6.25% - 1px) 6.25%
  );
  position: relative;
}
.day-hour {
  white-space: nowrap;
  font-size: 9px;
  position: absolute;
  top: 9px;
  transform: translate(-50%);
}
.day-hour:first-child {
  transform: none;
}
.day-hour:last-child {
  transform: translate(-100%);
}
.day-row {
  border-bottom: 1px solid var(--line);
  height: 61px;
}
.day-station {
  background: #fff5;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
}
.day-station span {
  color: var(--muted);
  font-weight: 400;
}
.day-bar {
  cursor: grab;
  touch-action: none;
  color: #234566;
  border: 1px solid #ffffffc0;
  border-radius: 8px;
  min-width: 4px;
  height: 39px;
  padding: 0;
  font-size: 10px;
  position: absolute;
  top: 11px;
  overflow: hidden;
}
.day-bar.cash {
  background: linear-gradient(#bad9fe, #96c4f6);
}
.day-bar.kitchen {
  background: linear-gradient(#c3e9d2, #a2d8b9);
}
.day-handle {
  cursor: ew-resize;
  z-index: 1;
  width: 9px;
  position: absolute;
  top: 0;
  bottom: 0;
}
.day-handle.start {
  left: 0;
}
.day-handle.end {
  right: 0;
}
.coverage-row {
  height: 30px;
}
.coverage-row .day-name {
  padding: 5px 8px;
}
.day-coverage {
  text-align: center;
  background: #bde0cc66;
  border: 1px solid #ffffffa0;
  height: 20px;
  font-size: 9px;
  position: absolute;
  top: 5px;
  overflow: hidden;
}
.day-coverage.gap {
  color: #a34b4b;
  background: #f0cccc88;
}
@media (width<=760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    width: 100%;
    padding: 8px;
    position: relative;
    inset: auto;
  }
  .sidebar nav {
    gap: 4px;
    margin-top: 5px;
  }
  .nav-link {
    gap: 4px;
    padding: 6px;
    font-size: 10px;
  }
  .brand {
    font-size: 15px;
  }
  .sidebar-bottom {
    display: none;
  }
  .workspace {
    width: 100%;
    margin: 0;
  }
  .topbar {
    height: 26px;
    min-height: 26px;
    padding: 0 8px;
    font-size: 8px;
  }
  .subnav {
    gap: 12px;
    padding: 0 8px;
  }
  .main {
    padding: 8px;
  }
  .main.prototype-host {
    height: calc(100dvh - 135px);
    min-height: 500px;
  }
  .dialog {
    padding: 10px;
  }
  .person-overlay {
    inset: 4px;
  }
  .day-toolbar,
  .employee-list > .panel {
    gap: 6px;
  }
  .employee-list > .panel p {
    font-size: 9px;
  }
}
.day-track {
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: var(--hour-step, 6.25%) 100%;
}
.cloud-save {
  white-space: normal;
  max-width: 40%;
  margin-left: auto;
  font-size: 9px;
}
.cloud-save.saved {
  color: #17875b;
}
.cloud-save.error {
  color: #b74951;
  background: #fff0f0;
  margin: 0;
  padding: 3px 6px;
}
.cloud-save.pending,
.cloud-save.saving {
  color: #9b6918;
}
.cloud-save button {
  padding: 2px 5px;
  font-size: 9px;
}
.brand,
.login-brand {
  align-items: center;
  gap: 7px;
  display: flex;
}
.brand img,
.login-brand img {
  flex: none;
}
@media (width<=760px) {
  html,
  body,
  #root {
    height: 100%;
    min-height: 0;
  }
  body {
    overflow: hidden;
  }
  body:not(:has(.app-shell)) {
    overflow: auto;
  }
  .app-shell {
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    display: flex;
    overflow: hidden;
  }
  .app-shell > .sidebar {
    border-radius: 0;
    flex: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    width: 100%;
    padding: 6px 8px 0;
    display: grid;
    position: relative;
    inset: auto;
  }
  .app-shell .brand {
    min-width: 0;
    min-height: 30px;
    padding: 0;
    font-size: 14px;
    display: flex;
  }
  .app-shell .brand img {
    width: 24px;
    height: 24px;
  }
  .app-shell .restaurant-label {
    display: none;
  }
  .app-shell .sidebar-bottom {
    grid-area: 1/2;
    align-items: center;
    margin: 0;
    padding: 0;
    display: flex;
    position: static;
  }
  .app-shell .sidebar-bottom button {
    min-height: 32px;
    padding: 4px 7px;
    font-size: 12px;
  }
  .app-shell .sidebar-bottom .dev-role {
    display: none;
  }
  .app-shell .sidebar nav {
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    grid-column: 1/-1;
    gap: 2px;
    min-width: 0;
    margin: 0;
    display: flex;
    overflow-x: auto;
  }
  .app-shell .nav-link {
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
    flex: none;
    gap: 5px;
    min-height: 40px;
    padding: 7px 9px;
    font-size: 12px;
  }
  .app-shell > .workspace {
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-height: 0;
    margin: 0;
    display: flex;
    overflow: hidden;
  }
  .app-shell .topbar {
    height: 24px;
    min-height: 24px;
    box-shadow: none;
    flex: none;
    gap: 5px;
    padding: 2px 8px;
    font-size: 10px;
  }
  .app-shell .topbar > span:first-child {
    display: none;
  }
  .app-shell .cloud-save {
    max-width: 65%;
    margin: 0;
    font-size: 10px;
  }
  .app-shell .topbar time {
    white-space: nowrap;
    margin-left: auto;
    font-size: 10px;
  }
  .app-shell .subnav {
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    flex: none;
    gap: 16px;
    min-height: 38px;
    padding: 0 10px;
  }
  .app-shell .subnav a {
    align-items: center;
    padding: 8px 0;
    font-size: 12px;
    display: flex;
  }
  .app-shell .main {
    width: 100%;
    min-height: 0;
    padding: 8px 8px max(12px, env(safe-area-inset-bottom));
    overscroll-behavior-y: contain;
    flex: 1;
    margin: 0;
    overflow: hidden auto;
  }
  .app-shell .main.prototype-host {
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 0;
    display: flex;
    overflow: hidden;
  }
  .app-shell .prototype-host > .prototype-frame {
    flex: 1;
    height: auto;
    min-height: 0;
  }
  .app-shell .operational-live {
    flex: 1;
    min-height: 0;
  }
  .app-shell .page-heading {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }
  .app-shell h1 {
    margin: 3px 0;
    font-size: 17px;
  }
  .app-shell h2 {
    font-size: 14px;
  }
  .app-shell .page-heading .button-link {
    max-width: none;
    padding: 6px 0;
    font-size: 12px;
  }
  .app-shell .panel {
    min-width: 0;
    padding: 10px;
  }
  .app-shell .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .app-shell button,
  .app-shell .button {
    min-height: 30px;
    font-size: 12px;
  }
  .app-shell input,
  .app-shell select,
  .app-shell textarea {
    min-width: 0;
    max-width: 100%;
    min-height: 38px;
    font-size: 16px;
  }
  .app-shell input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 0;
  }
  .app-shell label {
    font-size: 12px;
  }
  .app-shell summary {
    min-height: 36px;
    padding: 8px 0;
    font-size: 13px;
  }
  .app-shell .filters {
    gap: 5px;
    margin-bottom: 9px;
  }
  .app-shell .filters button {
    padding: 6px 8px;
    font-size: 12px;
  }
  .app-shell .shift-columns {
    grid-template-areas: "own" "tasks" "context";
    align-items: start;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .app-shell .own-column {
    grid-area: own;
  }
  .app-shell .shift-task-column {
    grid-area: tasks;
  }
  .app-shell .restaurant-context {
    grid-area: context;
  }
  .app-shell .own-shift .shift-scene-drawing {
    height: 120px;
  }
  .app-shell .own-shift .speech-cloud {
    padding: 10px;
    font-size: 13px;
  }
  .app-shell .own-shift .own-break {
    gap: 6px;
    display: flex;
  }
  .app-shell .own-shift .own-break select {
    flex: none;
    width: 96px;
  }
  .app-shell .own-shift .own-break button {
    flex: 1;
    min-width: 0;
  }
  .app-shell .task-preview {
    padding: 9px !important;
  }
  .app-shell .task-preview strong {
    overflow-wrap: anywhere;
    font-size: 13px;
  }
  .app-shell .task-preview small {
    font-size: 11px;
  }
  .app-shell .task-preview .badge {
    flex: none;
    font-size: 10px;
  }
  .app-shell .task-preview .keyword-tags span {
    font-size: 10px;
  }
  .app-shell .employee-list > .panel {
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
    display: grid;
  }
  .app-shell .employee-list > .panel p {
    grid-column: 1/-1;
    font-size: 12px;
  }
  .app-shell .employee-list > .panel strong {
    font-size: 13px;
  }
  .app-shell .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-shell .dialog {
    overscroll-behavior: contain;
    border-radius: 12px;
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    padding: 12px;
    overflow: auto;
  }
  .app-shell .dialog-heading {
    z-index: 3;
    background: #f5f9fe;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 0;
    position: sticky;
    top: -12px;
  }
  .app-shell .dialog-heading h2 {
    overflow-wrap: anywhere;
    min-width: 0;
    font-size: 15px;
  }
  .app-shell .dialog-close {
    flex: none;
    width: 38px;
    height: 38px;
  }
  .app-shell .person-overlay {
    border-radius: 0;
    grid-template-rows: 44px minmax(0, 1fr);
    inset: 0;
  }
  .app-shell .person-overlay-head {
    padding: 3px 8px;
    font-size: 12px;
  }
  .app-shell .person-overlay > .prototype-frame {
    min-height: 0;
  }
  .app-shell .task-chat-dialog {
    padding: 0;
  }
  .app-shell .task-chat-dialog .dialog-heading {
    margin: 0;
    padding: 10px 12px;
    top: 0;
  }
  .app-shell .task-chat {
    gap: 8px;
    min-width: 0;
    padding: 10px;
  }
  .app-shell .task-chat .chat-toolbar {
    grid-template-columns: minmax(100px, 1fr) auto;
    gap: 6px;
    display: grid;
  }
  .app-shell .task-chat .chat-toolbar > select {
    grid-column: 1;
    max-width: 100%;
    font-size: 16px;
  }
  .app-shell .task-chat .chat-assignee {
    grid-area: 2/1;
    min-width: 0;
  }
  .app-shell .task-chat .chat-assignee select {
    max-width: 100%;
    font-size: 16px;
  }
  .app-shell .task-chat .chat-actions {
    grid-area: 1/2 / span 2;
    align-self: start;
    margin: 0;
  }
  .app-shell .icon-button {
    width: 38px;
    height: 38px;
  }
  .app-shell .task-chat .chat-description {
    max-height: 120px;
    font-size: 13px;
  }
  .app-shell .task-chat .chat-messages {
    min-height: 100px;
    max-height: 35dvh;
  }
  .app-shell .task-chat .chat-compose {
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    z-index: 2;
    background: #f7faff;
    flex-wrap: nowrap;
    display: flex;
    position: sticky;
    bottom: -10px;
  }
  .app-shell .task-chat .chat-compose textarea {
    resize: vertical;
    flex: 1;
    min-width: 0;
    min-height: 42px;
    max-height: 100px;
    font-size: 16px;
  }
  .app-shell .task-chat .chat-compose button {
    width: 40px;
    height: 40px;
    padding: 0;
  }
  .app-shell .task-chat .chat-compose button span {
    display: none;
  }
  .app-shell .attendance-toolbar .attendance-period {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    display: grid;
  }
  .app-shell .attendance-period > button:nth-child(-n + 3) {
    grid-column: span 2;
  }
  .app-shell .attendance-period input {
    grid-column: span 4;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
  }
  .app-shell .attendance-period > small {
    grid-column: 1/-1;
    font-size: 11px;
  }
  .app-shell .attendance-toolbar .attendance-search {
    max-width: none;
    font-size: 16px;
  }
  .app-shell .attendance-toolbar button {
    min-height: 38px;
    font-size: 12px;
  }
  .app-shell .attendance-table-wrap,
  .app-shell .report-scroll,
  .app-shell .compact-table-wrap {
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    max-width: 100%;
    overflow: auto;
  }
  .app-shell .attendance-table th,
  .app-shell .attendance-table td {
    height: 38px;
    padding: 5px 8px;
  }
  .app-shell .attendance-table td .text-link {
    align-items: center;
    min-height: 32px;
    font-size: 12px;
    display: inline-flex;
  }
  .app-shell .attendance-drawer.dialog {
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 12px;
    inset: 0;
  }
  .app-shell .attendance-time-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-shell .attendance-drawer input,
  .app-shell .attendance-drawer select {
    min-height: 32px;
    font-size: 16px;
  }
  .app-shell .attendance-drawer button {
    min-height: 38px;
  }
  .app-shell .attendance-drawer .punch-date summary {
    min-height: 0;
    padding: 1px 0;
    font-size: 11px;
    line-height: 19px;
  }
  .app-shell .attendance-drawer .punch-correction-line select {
    width: 78px;
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
  }
  .app-shell .attendance-drawer .punch-save {
    width: 32px;
    min-width: 32px;
    padding: 3px;
  }
  .app-shell .attendance-drawer .punch-date input {
    max-width: 115px;
    min-height: 32px;
    font-size: 12px;
  }
  .app-shell .attendance-event-start {
    grid-template-columns: minmax(0, 1.5fr) minmax(80px, 1fr);
  }
  .app-shell .attendance-event-duration {
    flex-wrap: wrap;
    gap: 8px;
  }
  .app-shell .attendance-add-actions button {
    padding: 5px 8px;
    font-size: 12px;
  }
  .app-shell .attendance-punches td,
  .app-shell .attendance-punches th {
    padding: 6px 4px;
    font-size: 11px;
  }
  .app-shell .report-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    display: grid;
  }
  .app-shell .report-controls > * {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .app-shell .report-controls > span {
    display: none;
  }
  .app-shell .report-controls input,
  .app-shell .report-controls select {
    min-height: 38px;
    font-size: 16px;
  }
  .app-shell .report-controls button {
    min-height: 38px;
    font-size: 12px;
  }
  .app-shell .report-footer {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    font-size: 11px;
    display: grid;
  }
  .app-shell .report-footer b {
    grid-column: 1/-1;
    font-size: 14px;
  }
  .app-shell .report-detail {
    white-space: normal;
    max-width: calc(100vw - 40px);
  }
  .app-shell .report-link {
    font-size: 12px;
    min-height: 32px !important;
  }
  .app-shell .login {
    height: 100dvh;
    overflow: auto;
  }
}
/* Mobile navigation and attendance use complete labels and touch-sized controls. */
@media(max-width:760px){
.app-shell .sidebar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;gap:2px;width:100%}.app-shell .nav-link{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;padding:5px 2px;min-height:46px;font-size:10px;line-height:1.15;white-space:normal;text-align:center;border-radius:7px}.app-shell .nav-link span{max-width:100%;overflow-wrap:anywhere}.app-shell .subnav{gap:12px;min-height:44px}.app-shell .subnav a{min-height:44px;font-size:13px;white-space:nowrap}.app-shell .cloud-save{font-size:11px}.app-shell .main button,.app-shell .main select{min-height:29px}.app-shell .main input,.app-shell .main select,.app-shell .main textarea{font-size:16px;max-width:100%;box-sizing:border-box}.app-shell .report-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.app-shell .report-controls>button:nth-child(3){grid-column:1/-1}.app-shell .report-controls>span{display:none}.app-shell .report-controls>input,.app-shell .report-controls>select{min-width:0;width:100%;min-height:44px}.app-shell .attendance-toolbar .row{flex-wrap:wrap}.app-shell .attendance-total{width:100%;font-size:14px}.app-shell .attendance-table-wrap{overflow:visible}.app-shell .attendance-drawer .attendance-actions{flex-wrap:wrap}.app-shell .attendance-drawer input,.app-shell .attendance-drawer select{min-height:32px}.app-shell .dialog{max-width:100vw;box-sizing:border-box}.app-shell .form-grid{grid-template-columns:minmax(0,1fr)}
}
.crm-report-field{display:grid;gap:4px;font-size:12px;color:#53677e}.crm-report-field input,.crm-report-field select{width:100%;min-width:0}.report-controls{align-items:end}
@media(max-width:760px){.app-shell .report-controls .crm-report-field{min-width:0;max-width:100%;font-size:12px}.app-shell .report-controls .crm-report-field input,.app-shell .report-controls .crm-report-field select{width:100%;min-height:44px;min-width:0;font-size:16px}}

@media(max-width:760px){.app-shell .attendance-punches th,.app-shell .attendance-punches td{font-size:13px;line-height:1.4;padding:7px 5px;white-space:normal}.app-shell .attendance-add-actions{flex-wrap:wrap}.app-shell .attendance-add-actions button{min-height:44px;font-size:13px}}

/* Compact mobile header: one section switcher instead of two rows of tabs. */
.crm-mobile-section{display:none}
@media(max-width:760px){
.app-shell>.sidebar{grid-template-columns:104px minmax(0,1fr) auto;gap:6px;padding:4px 8px;align-items:center;min-height:48px}
.app-shell .brand{font-size:12px;gap:4px;white-space:nowrap;min-height:36px}.app-shell .brand img{width:22px;height:22px}
.app-shell .sidebar nav{display:none}.app-shell .crm-mobile-section{display:block;grid-area:1/2;min-width:0;width:100%;min-height:40px;font-size:14px;font-weight:650;border:1px solid #c9d7e8;background:#fff;border-radius:8px;padding:6px;color:#244368}
.app-shell .sidebar-bottom{grid-area:1/3}.app-shell .sidebar-bottom button{min-height:40px;padding:4px;font-size:11px}.app-shell .sidebar-bottom button svg{display:none}
.app-shell .topbar{min-height:20px;height:20px;padding:0 8px}.app-shell .topbar time{display:none}.app-shell .cloud-save{max-width:100%;font-size:10px}
.app-shell .subnav{min-height:36px;padding:0 8px;gap:16px}.app-shell .subnav a{min-height:36px;font-size:12px;padding:6px 0}
}

.app-shell .topbar{position:absolute!important;right:14px;top:12px;width:12px!important;height:12px!important;min-height:0!important;padding:0!important;background:none!important;border:0!important;z-index:100}.app-shell .topbar>*:not(.cloud-dot){display:none!important}.app-shell .cloud-dot{display:block!important;min-height:12px!important;width:12px!important;height:12px!important;border:0!important;border-radius:50%!important;padding:0!important;background:#e5ad2d!important;font-size:0!important;box-shadow:0 0 0 3px #ffffffb0}.app-shell .cloud-dot.saved{background:#26a875!important}.app-shell .cloud-dot.error{background:#df4651!important}.own-finish{width:100%;min-height:52px;font-size:17px!important;background:#287cec!important;color:white!important}

.global-save-status{position:fixed;right:14px;top:12px;width:12px;height:12px;z-index:1200}.attendance-compact{min-width:0!important;width:100%}.attendance-compact tbody tr{cursor:pointer}.attendance-compact tbody tr:hover,.attendance-compact tbody tr:focus-visible{background:#dfeafa;outline:2px solid #4789ef;outline-offset:-2px}.attendance-code-summary{line-height:1.7;color:#526981;font-size:12px;overflow-wrap:anywhere}@media(max-width:760px){.app-shell .attendance-table.attendance-compact td:nth-child(n){grid-column:auto;order:0;font-size:14px}.app-shell .attendance-table.attendance-compact td:nth-child(2),.app-shell .attendance-table.attendance-compact td:nth-child(4){grid-column:1/-1}.app-shell .attendance-table.attendance-compact td:nth-child(2){font-size:17px;order:-1}.app-shell .attendance-table.attendance-compact td:nth-child(3)::before{display:block}.app-shell .attendance-table.attendance-compact td:nth-child(2)::before{display:none}.global-save-status{top:5px;right:5px}}
.app-shell .cloud-dot{min-width:12px!important;max-width:none!important;aspect-ratio:1;margin:0!important;flex:none!important}

