:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #171a2b;
  background: #f7f8fc;
  --green: #242940;
  --action: #4b42d1;
  --muted: #565d73;
  --line: #dce0eb;
  --surface: #fff;
  --orange: #9b5127;
}

h1, .service-top h2, .client-card h2, .client-status strong {
  font-family: inherit;
  font-weight: 650;
  letter-spacing: -.035em;
}

button, .secondary, input, select { border-radius: 7px; }
.primary { background: var(--action); color: #fff; border-color: transparent; }
.primary:hover:not(:disabled) { background: #3931ad; }
.secondary, input, select { background: var(--surface); }
/* Proportions and back button from the portfolio's subpage-bar.css. */
body header.tableflow-top {
  display: block;
  height: auto;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--green);
}
.subpage-bar {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 25px);
  max-width: 1600px;
  margin-inline: auto;
  padding: 15px 4vw;
  font-family: "Segoe UI", Arial, sans-serif;
}
.subpage-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}
.subpage-mark { display: block; flex: none; width: 48px; height: 36px; }
.subpage-brand strong { font-size: 20px; letter-spacing: -.035em; }
.subpage-brand span { color: var(--muted); font-size: 15px; white-space: normal; overflow-wrap: anywhere; }
.subpage-section::before { content: "/"; margin-inline-end: .55em; }
.subpage-bar .subpage-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-inline-start: auto;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--action);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.subpage-back:hover { background: color-mix(in srgb, var(--action) 8%, transparent); }
.subpage-bar a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.subpage-bar .language-picker { flex: none; }
.subpage-bar .language-picker summary { height: 44px; min-height: 44px; }
.staff-main { width: min(100%, 560px); padding: clamp(24px, 6vw, 48px) 4vw; }
.staff-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 5vw, 32px); }
.staff-card + .staff-card { margin-top: 12px; }
.staff-card h1 { margin: 0; font-size: clamp(26px, 6vw, 36px); }
.staff-card p:not(.eyebrow), .staff-status { color: var(--muted); }
.staff-status:empty { display: none; }
.staff-card :is(input, select) { font-size: 16px; }
.staff-card .service-top { align-items: center; flex-direction: row; }
.staff-card .service-top button { flex: none; }
.staff-card #staff-reports { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.staff-accounts { margin: 12px 0 20px; padding: 0; list-style: none; }
.staff-account-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center;
  gap: 6px; min-height: 52px; padding: 4px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere;
}
.staff-account-row select { width: auto; max-width: 100%; min-height: 44px; padding: 4px 6px; font-size: 16px; }
.staff-account-role { color: var(--muted); text-align: end; font-size: 13px; max-width: 120px; }
.staff-remove-account { min-height: 44px; width: 44px; padding: 0; font-size: 24px; color: #9c272a; background: #fff1f1; border-color: #dfa6a8; }
.staff-reactivate-account { grid-column: 2 / -1; justify-self: end; }
.manager-account-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.manager-account-counts div { background: #f0efff; border-radius: 8px; padding: 8px; }
.manager-account-counts dt { font-size: 12px; }
.manager-account-counts dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; }
.manager-main { width: min(100%, 1100px); }
.manager-heading { margin-bottom: 18px; }
.manager-heading h1 { margin: 0; font-size: clamp(28px, 5vw, 42px); }
.manager-heading .service-top { flex-direction: row; align-items: center; }
.manager-overview, .manager-team { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
.manager-team { gap: clamp(24px, 5vw, 54px); margin-top: 14px; align-items: start; }
.manager-team form { padding: clamp(14px, 3vw, 24px); background: #f8f8fc; border: 1px solid var(--line); border-radius: 12px; }
.manager-overview { margin-bottom: 14px; }
.manager-overview .staff-card { margin: 0; }
.manager-operation { background: #f0efff; }
.manager-operation dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.manager-operation dl div { padding: 8px; background: white; border-radius: 8px; }
.manager-operation dt { font-size: 12px; }
.manager-operation dd { margin: 4px 0 0; font-size: 23px; font-weight: 700; }
.manager-team h3 { margin: 0; }
#manager-invite-result { margin-top: 16px; padding: 12px; border-radius: 8px; background: #f0efff; }
#manager-invite-result label { margin: 0; }
.staff-action-link { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; text-decoration: none; }
.pilot-shift-management:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.pilot-shift-management small { color: var(--muted); }
.pilot-shift-management .shift-delete-action { color: #9c272a; background: #fff1f1; border-color: #dfa6a8; }
.pilot-period-report { width: min(900px, calc(100% - 24px)); }
.period-report-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.35fr); gap: 12px; }
.period-report-filters label { min-width: 0; }
.period-report-filters :is(input, select) { min-width: 0; width: 100%; }
.period-report-filters input { -webkit-appearance: none; appearance: none; }
.period-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.period-legend span::before { content: ''; display: inline-block; width: .7em; height: .7em; margin-inline-end: 6px; border-radius: 2px; background: #498375; }
.period-legend span:last-child::before { background: #5851b7; }
.period-chart { display: grid; grid-template-columns: repeat(var(--report-days), minmax(24px, 1fr)); gap: 4px; list-style: none; padding: 0; overflow-x: auto; }
.period-chart li { display: grid; grid-template-rows: 150px auto; text-align: center; }
.period-chart small { padding: 4px 0; }
.period-bar { display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; border-bottom: 1px solid var(--line); }
.period-bar i { display: block; height: var(--part); width: 65%; max-width: 38px; background: #498375; }
.period-bar i:last-of-type { background: #5851b7; }
.period-chart-monthly { padding-top: 20px; }
.period-chart-monthly .period-bar { position: relative; }
.period-weekday {
  position: absolute;
  inset-inline: 0;
  bottom: calc(var(--bar-total) + 3px);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}
@media (max-width: 650px) {
  .manager-overview, .manager-team { grid-template-columns: minmax(0, 1fr); }
  .period-report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .period-report-filters label:last-child { grid-column: 1 / -1; margin-top: 0; }
}
@media (min-width: 900px) {
  .pilot-host-page #host-view.preparing-shift { padding-block: clamp(18px, 4vh, 44px); }
  .pilot-host-page #host-view.preparing-shift .page-heading { margin-block: 0; zoom: 1.1; }
}
.demo-view-bar {
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: 1600px;
  margin-inline: auto;
  padding: 6px 4vw;
  color: var(--muted);
}
.demo-view-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 12px;
  text-align: center;
}
.demo-view-bar > .leave-test-lab {
  margin-block: 3px;
  border-color: #0b6457;
  background: #0b6457;
  color: #fff;
  font-weight: 700;
}
.demo-view-bar > .leave-test-lab:hover { background: #084f46; }
@media (max-width: 650px) {
  .subpage-bar { padding: 9px 4vw; }
  .subpage-mark { width: 37px; height: 32px; }
  .subpage-brand { gap: 4px; }
  .subpage-brand strong { font-size: 16px; }
  .subpage-brand span { font-size: 12px; }
  .subpage-bar .subpage-back { gap: 4px; padding: 0 7px; font-size: 11px; }
  .subpage-bar .language-picker summary { padding-inline: 7px; }
  .subpage-bar .language-picker summary span { display: none; }
}
@media (max-width: 390px) {
  .subpage-mark { width: 26px; height: 26px; }
  .subpage-brand { flex-wrap: wrap; column-gap: 4px; row-gap: 0; }
  .subpage-brand strong { font-size: clamp(13px, 4.5vw, 16px); }
  .subpage-brand .subpage-section { flex-basis: 100%; padding-inline-start: 6px; }
}
@media (max-width: 350px) {
  .subpage-bar { padding-inline: 8px; gap: 4px; }
  .subpage-mark { display: none; }
  .subpage-brand .subpage-section { padding-inline-start: 0; }
  .subpage-bar .language-picker summary { gap: 3px; padding-inline: 5px; }
}
@media (max-width: 650px) {
  .tableflow-top .subpage-bar .subpage-mark { display: block; width: 38px; height: 38px; }
  .tableflow-top .subpage-brand strong { font-size: 18px; }
  .tableflow-top .subpage-bar .subpage-back { font-size: 14px; padding-inline: 4px; }
  .tableflow-top .subpage-bar .language-picker summary { min-width: 44px; justify-content: center; }
  .tableflow-top .language-picker summary .language-flag { width: 28px; height: 19px; }
}
.demo-strip {
  background: #eff1f8;
  color: var(--muted);
  padding-block: 6px;
}

.demo-entry .guest-main {
  max-width: 1160px;
  margin: clamp(28px, 6vw, 76px) auto 26px;
  padding-inline: clamp(18px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
}
.demo-panel h1 {
  font-size: clamp(39px, 5.7vw, 76px);
  max-width: 12ch;
  line-height: 1.02;
  letter-spacing: -.06em;
}
.demo-panel p { color: var(--muted); max-width: 42ch; }
.demo-panel p + p { font-size: 14px; }
.demo-panel form .primary {
  width: auto;
  min-height: 54px;
  padding-inline: 24px;
  font-weight: 700;
  margin-top: 12px;
  box-shadow: 0 5px 14px #4b42d126;
}
.demo-panel .demo-erase {
  display: block;
  width: auto;
  margin-top: 8px;
  padding-inline: 0;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
}
.demo-brand-art {
  min-width: 0;
}
.demo-brand-art img { display: block; width: 100%; height: auto; }
.walk-in-intro {
  grid-column: 1 / -1;
  border-bottom: 1px solid #e2dff9;
  padding-bottom: 8px;
  color: #302894;
}
.walk-in-intro p { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.walk-in-banner:has(.walk-in-status[hidden]) .walk-in-intro { display: none; }

body:has(> .tableflow-footer) {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body:has(> .tableflow-footer) > :is(header, main) { width: 100%; }
.tableflow-footer {
  display: block;
  max-width: none;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  background: var(--action);
  color: #fff;
}
.tableflow-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  max-width: 1600px;
  margin-inline: auto;
  padding: 8px 4vw;
}
.tableflow-footer-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; }
.tableflow-footer a, .tableflow-footer button { color: #e5e2ff; font-size: 13px; text-underline-offset: 3px; }
.tableflow-footer .tableflow-footer-credit { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: #fff; text-decoration: none; }
.tableflow-footer .tableflow-footer-credit:hover { text-decoration: underline; }
.tableflow-footer-credit strong { font-size: 18px; font-weight: 750; letter-spacing: -.06em; }
.tableflow-footer .tableflow-contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 7px;
  background: #fff;
  color: var(--action);
  font-weight: 700;
  text-decoration: none;
}
.tableflow-footer .tableflow-contact:hover { background: #eeedfc; }
.tableflow-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

#host-view .page-heading { margin-bottom: 10px; }
#host-view .page-heading .eyebrow { display: none; }
#host-view .operational-panel:not([open]) { padding-block: 0; margin-bottom: 12px; }
#host-view .workspace { gap: 16px; }
#host-view .queue-area { min-width: 0; }
#host-view .stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 12px;
  border-radius: 7px;
}
#host-view .stats > div { padding: 8px 10px; }
#host-view .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
#host-view .stats > div:nth-child(3)::before { display: none; }
#host-view .stats strong { font-size: 23px; }
#host-view .walk-in-banner {
  padding: 8px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  margin-top: 0;
}
#host-view .walk-in-options summary { color: var(--muted); }
#host-view #floor-plan { background: #fff; }
#host-view .floor-plan-heading { padding-block: 10px; }
#host-view .floor-plan-body { padding-top: 8px; }
#host-view .walk-in-join-suggestions { background: #f1f0fd; }
.demo-view-bar nav { background: #e8eaf2; }
.demo-view-bar[hidden] { display: none; }
.demo-view-bar nav :is(a, span).nav-button {
  display: grid;
  place-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}
#table-result { background: #e8eaf2; }
.nav-button.active, .filters button.selected { background: #eeedfc; color: #382fae; }
.walk-in-join-choices button[aria-pressed="true"], .people-buttons button[aria-pressed="true"] {
  background: #eeedfc;
  border-color: #736bdf;
  color: #302894;
}
.client-card, .service-panel, dialog { background: #fff; border-radius: 10px; }
.client-status.called { position: relative; }
.guest-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.guest-confetti i {
  position: absolute;
  top: 42%;
  width: 6px;
  height: 4px;
  border-radius: 1px;
}
.guest-main .client-card { padding: clamp(20px, 5vw, 32px); }
.guest-main .menu-link { min-height: 44px; align-content: center; }

@media (min-width: 1180px) {
  #host-view .workspace { grid-template-columns: minmax(0, 1fr) minmax(340px, .49fr); }
}
@media (max-width: 720px) {
  .demo-entry .guest-main { grid-template-columns: minmax(0, 1fr); }
  #host-view { padding-top: 12px; }
  #host-view .page-actions > button { min-height: 44px; padding: 6px; font-size: 14px; }
  #host-view .page-heading h1 { font-size: 28px; }
  #host-view .page-heading p:last-child { display: none; }
  #host-view .operational-panel:not([open]) { margin-bottom: 8px; }
  #host-view .walk-in-size-heading { min-height: 30px; }
  #host-view:not(.preparing-shift) .page-actions {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr) minmax(0, 1fr) 44px;
    gap: 5px;
    align-items: stretch;
  }
  #host-view.preparing-shift .host-more-actions { justify-self: start; }
  #host-view:not(.preparing-shift) .host-more-actions { grid-column: auto; }
  #host-view:not(.preparing-shift) .host-more-actions summary {
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  #host-view:not(.preparing-shift) .host-more-actions[open] summary { background: #eeecff; }
  #host-view:not(.preparing-shift) .host-more-actions summary span { display: none; }
  #host-view:not(.preparing-shift) .host-more-actions summary::after {
    width: 16px;
    height: 2px;
    border: 0;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 0 -5px currentColor, 0 5px currentColor;
    transform: none;
  }
  #host-view:not(.preparing-shift) .host-more-actions > div {
    inset-inline-start: auto;
    inset-inline-end: 0;
  }
}
@media (max-width: 390px) {
  .demo-entry .guest-main { margin-top: 24px; }
  .demo-panel h1 { font-size: clamp(32px, 10vw, 39px); max-width: none; }
  .demo-panel form .primary { width: 100%; }
}
