:root {
  color-scheme: dark;
  --bg: #111113;
  --surface: #1d1d21;
  --raised: #27272c;
  --line: #34343b;
  --text: #ededf0;
  --muted: #96969f;
  --soft: #70707b;
  --white: #e9e9e6;
  --green: #9bbe9d;
  --red: #cf938d;
  --amber: #c5ac73;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input {
  outline-offset: 3px;
}
button {
  border: 0;
  color: inherit;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  letter-spacing: -0.7px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  font-weight: 600;
}
h3 {
  font-size: 12px;
  font-weight: 600;
}
small {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
input,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--raised);
  color: var(--text);
}
input:focus {
  border-color: #9999a2;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--white);
}
input[type="date"] {
  width: 160px;
  max-width: 160px;
  min-height: 39px;
  font-size: 12px;
  color: #b9b9c2;
  padding: 9px 12px;
  background: #222226;
}
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.banner {
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #171719;
  color: #73737c;
  font-size: 10px;
}
main {
  padding: 24px 28px 32px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  min-height: 42px;
}
.page-heading,
.page-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.page-heading h1 {
  white-space: nowrap;
}
.page-tools {
  gap: 10px;
}
.back-icon,
.exit-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #222226;
  color: #c4c4ce;
  font-size: 21px;
}
.back-icon:hover {
  border-color: #888;
}
.menu-button {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 39px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #222226;
  font-size: 17px;
}
.menu-button span {
  font-size: 12px;
}
.menu-button:hover {
  border-color: #888;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.padded {
  padding: 20px;
}
.primary {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 13px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--white);
  color: #1c1c20;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.primary:hover {
  background: #fff;
}
.primary:disabled {
  background: #59595f;
  color: #b3b3bc;
  opacity: 1;
}
.ghost {
  display: inline-block;
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #29292f;
  color: #c6c6ce;
  font-size: 12px;
}
.ghost:hover {
  border-color: #777;
}
.linkbutton {
  padding: 8px;
  background: none;
  color: var(--muted);
  font-size: 12px;
}
.note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.warn {
  color: var(--amber);
}
.empty {
  padding: 36px 18px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.footer {
  text-align: center;
  color: var(--soft);
  font-size: 11px;
  margin-top: 28px;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  margin-top: 14px;
}
.form-error:empty {
  display: none;
}
.setup-link {
  display: block;
  text-align: center;
  margin-top: 24px;
}
.auth-navigation {
  display: block;
  text-align: center;
  color: #b5b5c0;
  font-size: 13px;
  margin-top: 22px;
}
.auth-navigation:hover {
  text-decoration: underline;
}
.avatar {
  display: block;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #2b2b31;
}
.no-photo {
  display: grid;
  place-items: center;
  color: #888894;
}
.no-photo svg {
  width: 48%;
  height: 48%;
  opacity: 0.7;
}
.auth {
  max-width: 400px;
  margin: 75px auto 40px;
  padding: 28px;
}
.auth h1 {
  margin-bottom: 24px;
}
.auth label {
  display: block;
  font-size: 12px;
  color: #b5b5be;
  margin: 16px 0 8px;
}
.auth input {
  min-height: 46px;
}
.auth .primary {
  margin-top: 18px;
}
.auth .avatar {
  width: 64px;
  height: 64px;
  margin: 18px 0;
}
.auth > .note {
  margin-top: 20px;
}
.auth > .linkbutton {
  margin-bottom: 10px;
}
.photo-team {
  max-width: 760px;
  margin: 0 auto;
  padding: 35px 28px;
}
.photo-team > .top {
  margin-bottom: 28px;
}
.photo-team h1 {
  font-size: 23px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 25px;
}
.photo-choice {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0;
  aspect-ratio: 1;
  min-height: 44px;
  border-radius: 50%;
}
.photo-choice .avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 2px solid #36363f;
}
.photo-choice:hover .avatar {
  border-color: #ddd;
}
.photo-choice:active {
  transform: scale(0.97);
}
/* Fixed booking rows. The sidebar never owns service selection. */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 23px;
  align-items: start;
}
.staffpanel {
  grid-column: 1/-1;
  min-width: 0;
  padding: 0 0 5px;
}
.stafflist {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #424249 transparent;
}
.stafflist::-webkit-scrollbar {
  height: 4px;
}
.stafflist::-webkit-scrollbar-thumb {
  background: #424249;
  border-radius: 4px;
}
.staff {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 50%;
  scroll-snap-align: start;
}
.staff .avatar {
  width: 60px;
  height: 60px;
}
.staff.selected {
  border-color: #e4e4e2;
}
.staff:hover {
  background: #25252a;
}
.layout > section {
  min-width: 0;
}
#appointments {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.appt.inline-booking {
  display: grid;
  grid-template-columns: minmax(175px, 0.95fr) minmax(240px, 1.45fr) 108px;
  grid-template-rows: 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  height: 78px;
  min-height: 78px;
  max-height: 78px;
  padding: 10px 15px;
  border: 1px solid #34343c;
  border-left: 3px solid #8b7746;
  border-radius: 11px;
  background: #1d1d22;
  overflow: hidden;
}
.appt.payment-paid {
  border-left-color: #5e805f;
}
.appt.cancelled {
  background: #211c1f;
  border-left-color: #945c58;
}
.appt.chosen {
  background: #29292f;
  border-color: #bbbcc0;
  border-left-color: #e4e4e3;
}
.appttop {
  display: grid;
  grid-template-columns: 22px 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  text-align: left;
  background: none;
}
.appttop:disabled {
  opacity: 1;
}
.check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #666671;
  border-radius: 6px;
  font-size: 13px;
  flex-shrink: 0;
}
.chosen .check {
  background: #ededeb;
  border-color: #ededeb;
  color: #222;
}
.payment-paid .check {
  background: #344d39;
  border-color: #5c7a5e;
  color: #c9dcca;
}
.cancelled .check {
  visibility: hidden;
}
.time {
  font-size: 12px;
  color: #9797a0;
  white-space: nowrap;
}
.name {
  font-size: 14px;
  line-height: 19px;
  font-weight: 600;
  min-width: 0;
  max-height: 54px;
  overflow: hidden;
}
.payment-label {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 3px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  line-height: 13px;
}
.pending-label {
  background: #383120;
  color: #c3aa72;
}
.paid-label {
  background: #28392c;
  color: #a3c5a2;
}
.cancelled-label {
  background: #40282a;
  color: #d0938c;
}
.inline-options {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 44px;
}
.inline-service-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 10px 13px;
  background: #25252a;
  border: 1px solid #37373e;
  border-radius: 8px;
  font-size: 14px;
  text-align: left;
}
.inline-service-button span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inline-service-button span:last-child {
  color: #85858f;
}
.inline-service-button:hover {
  background: #2b2b31;
  border-color: #74747e;
}
.inline-addons {
  align-self: center;
  flex-shrink: 0;
  min-height: 36px;
  height: 36px;
  padding: 8px 10px;
  border: 1px solid #3d3d46;
  border-radius: 7px;
  background: #25252b;
  color: #b7b7c1;
  font-size: 11px;
  white-space: nowrap;
}
.inline-addons:hover {
  background: #37373f;
  color: #fff;
}
.closed-service {
  font-size: 14px;
  color: #9999a3;
  line-height: 20px;
}
.inline-amount {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 44px;
  min-width: 0;
  text-align: right;
}
.inline-amount label {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  height: 44px;
  font-size: 11px;
  color: #83838d;
}
.inline-amount input {
  height: 44px;
  padding: 9px 8px;
  background: #25252b;
  border-color: #37373f;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}
.inline-amount > b {
  align-self: flex-end;
  font-size: 14px;
  line-height: 44px;
  white-space: nowrap;
}
.price-change-flag {
  position: absolute;
  right: 13px;
  bottom: -13px;
  padding: 1px 4px;
  border-radius: 3px;
  background: #443624;
  color: #d1ad78;
  font-size: 8px;
  line-height: 12px;
  white-space: nowrap;
}
.checkout {
  position: sticky;
  top: 20px;
  min-width: 0;
}
.summary {
  padding: 22px;
}
.due {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.due small {
  font-size: 12px;
  color: #9c9ca6;
}
.due strong {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin-top: 12px;
}
.summary .primary {
  min-height: 52px;
  font-size: 15px;
}
.leave-total {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.leave-total > small {
  font-size: 12px;
  color: #aaaab3;
}
.leave-total > strong {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.leave-total > span {
  font-size: 10px;
  color: #83838e;
  line-height: 1.5;
}
/* Modal steps: services, add-ons, price reason, navigation. */
dialog {
  width: 400px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 25px;
  border: 1px solid #34343c;
  border-radius: 18px;
  background: #1e1e23;
  color: var(--text);
  box-shadow: 0 25px 100px #0007;
  overflow: auto;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(7px);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
}
.dialog-head h2 {
  font-size: 22px;
  letter-spacing: -0.4px;
}
.dialog-head small {
  display: block;
  color: #96969f;
  font-size: 12px;
  margin-top: 7px;
}
.dialog-head .avatar {
  width: 60px;
  height: 60px;
}
.picker-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #2a2a31;
  color: #a4a4ae;
  font-size: 19px;
}
.picker-close:hover {
  background: #3b3b44;
  color: #fff;
}
.picker-back {
  float: left;
  min-height: 30px;
  margin-right: 12px;
  padding: 0;
  background: none;
  color: #b6b6c0;
  font-size: 23px;
}
#service-picker-dialog {
  width: 740px;
}
#service-picker-dialog.addons-modal {
  width: 480px;
}
.service-picker-body section + section {
  margin-top: 25px;
}
.service-picker-body h3 {
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #9696a0;
}
.service-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.service-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-height: 116px;
  padding: 15px;
  border: 1px solid #3b3b43;
  border-radius: 11px;
  background: #28282e;
  text-align: left;
}
.service-tile:hover {
  background: #33333b;
  border-color: #94949e;
}
.service-tile b {
  font-size: 14px;
  line-height: 1.4;
}
.service-tile small {
  font-size: 11px;
  line-height: 1.4;
  color: #9696a1;
}
.service-tile strong {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
}
.picker-addons {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.picker-addon {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 77px;
  padding: 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #26262c;
  cursor: pointer;
}
.picker-addon:hover {
  background: #303038;
}
.picker-addon.on {
  background: #34343c;
  border-color: #85858f;
}
.picker-addon input {
  appearance: none;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid #bdbdc5;
  border-radius: 5px;
  background: none;
}
.picker-addon input:checked {
  background: #e9e9e6;
  border-color: #e9e9e6;
}
.picker-addon input:checked::after {
  content: "✓";
  color: #202024;
  font-size: 14px;
  font-weight: 700;
}
.picker-addon > span {
  flex: 1;
}
.picker-addon b {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.picker-addon small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #9999a4;
}
.picker-addon strong {
  font-size: 13px;
  white-space: nowrap;
}
.picker-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}
.picker-secondary {
  min-height: 49px;
  padding: 12px;
  border-radius: 8px;
  background: #2c2c33;
  color: #d4d4dc;
  font-size: 13px;
}
.picker-secondary:hover {
  background: #3b3b45;
}
dialog > .note {
  margin: 15px 0;
}
dialog form > input {
  margin: 8px 0;
}
dialog form > .primary {
  margin-top: 18px;
}
#navigation-dialog {
  width: 310px;
}
.navigation-menu {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.navigation-menu button {
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid #3d3d47;
  border-radius: 8px;
  background: #29292f;
  text-align: left;
  font-size: 14px;
}
.navigation-menu button:hover {
  background: #3b3b45;
}
/* Owner is a separate phone-first workspace. */
.owner-mobile {
  max-width: 620px;
  margin: 0 auto;
  padding: 22px 18px 35px;
}
.owner-mobile > .top h1 {
  font-size: 23px;
}
.owner-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.owner-person {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #34343b;
  border-radius: 16px;
  background: #1b1b1f;
  text-align: left;
}
.owner-person:hover {
  background: #232328;
  border-color: #666670;
}
.review-open {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.count-quick {
  width: 100%;
  min-height: 40px;
  border: 1px solid #414148;
  border-radius: 8px;
  background: #29292f;
  font-size: 11px;
}
.review-person-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.owner-person .avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.risk-label {
  font-size: 10px;
  line-height: 1.3;
  color: #9ea39e;
}
.risk-high {
  border-color: #744549;
}
.risk-high .risk-label {
  color: #e6a0a0;
}
.risk-medium .risk-label {
  color: #d4b777;
}
.risk-low .risk-label {
  color: #9fbea2;
}
.risk-inactive {
  opacity: 0.65;
}
.review-money {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.review-money > b {
  font-size: 21px;
  letter-spacing: -0.6px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.review-money small {
  font-size: 11px;
  color: #a1a1ac;
}
.review-stats {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  padding-block: 12px;
  border-block: 1px solid #303035;
}
.review-stats > span {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  color: #b5b5bd;
}
.review-stats b {
  min-width: 17px;
  font-size: 13px;
  color: #e7e7ec;
  font-variant-numeric: tabular-nums;
}
.review-stats small {
  margin-left: auto;
  font-size: 10px;
}
.review-stats .stat-warning,
.review-stats .stat-warning b {
  color: #d4b777;
}
.review-stats .stat-cancelled,
.review-stats .stat-cancelled b {
  color: #d99d9d;
}
.review-count {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}
.review-count small {
  font-size: 10px;
  color: #a1a1ac;
}
.review-count b {
  font-size: 12px;
}
.review-count em {
  width: 100%;
  color: #e6a0a0;
  font-size: 11px;
  font-style: normal;
}
.review-flags {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin-top: auto;
  font-size: 10px;
  line-height: 1.4;
  color: #c7b187;
}
.risk-high .review-flags {
  color: #daa8a8;
}
.add-walk-in {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 14px;
  border: 1px solid #494951;
  border-radius: 12px;
  background: transparent;
  color: #d3d3db;
  font-weight: 550;
  font-size: 12px;
}
.add-walk-in:hover {
  background: #222227;
  border-color: #aaaab4;
}
.remove-extra {
  border: 0;
  background: transparent;
  color: #b5a0a0;
  padding: 6px;
}
.walk-in-locations {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.owner-detail {
  padding: 18px;
}
.closeout-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 17px 0;
}
.closeout-amounts div {
  padding: 11px 9px;
  border-radius: 8px;
  background: #28282f;
}
.closeout-amounts small {
  display: block;
  font-size: 10px;
  margin-bottom: 7px;
}
.closeout-amounts b {
  font-size: 14px;
  font-weight: 600;
}
.balance {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  margin: 15px 0;
  border-radius: 8px;
  background: #29392d;
  color: #bbd2b7;
  font-size: 13px;
}
.balance.bad {
  background: #442e2b;
  color: #dbab99;
}
.balance.unknown {
  background: #383024;
  color: #c6b18c;
}
.owner-detail > .primary {
  margin: 17px 0;
}
.audit-block {
  padding-top: 17px;
  margin-top: 19px;
  border-top: 1px solid var(--line);
}
.audit-block > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  cursor: pointer;
}
.audit-entry {
  margin-top: 14px;
  font-size: 12px;
}
.audit-entry > summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}
.evidence {
  padding: 12px;
  margin-top: 12px;
  border-radius: 8px;
  background: #28282f;
  font-size: 12px;
  line-height: 1.6;
}
.evidence p + p {
  margin-top: 9px;
}
.audit-entry del {
  color: #8b8b96;
}
.recon-row {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.recon-row > summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
}
.recon-row > summary::-webkit-details-marker {
  display: none;
}
.recon-row small {
  display: block;
  color: #9797a2;
  font-size: 10px;
  margin-top: 4px;
}
.recon-row > summary > small {
  margin-top: 1px;
}
.recon-row > summary > span:last-child {
  text-align: right;
}
.recon-row > summary > span:last-child small {
  max-width: 105px;
}
.recon-cancelled {
  border-left: 2px solid #9a635d;
  padding-left: 8px;
}
.recon-paid {
  border-left: 2px solid #688b6b;
  padding-left: 8px;
}
.recon-pending {
  border-left: 2px solid #93804d;
  padding-left: 8px;
}
.candidate {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px dashed #4b4b54;
}
.candidate:first-child {
  padding-top: 0;
  margin-top: 0;
  border: 0;
}
.candidate-confirm {
  display: block;
  margin-top: 10px;
}
.settings-page form {
  display: grid;
  gap: 9px;
}
.settings-page label {
  font-size: 12px;
  color: #b5b5c0;
}
.settings-page .primary {
  margin-top: 8px;
}
.settings-team-title {
  margin-top: 28px;
  font-size: 14px;
  color: #bcbcc5;
}
.setting-photos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 12px;
  margin-top: 17px;
}
.setting-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.setting-person .avatar {
  width: 47px;
  height: 47px;
}
.setting-person input {
  margin: 0;
}
.setting-person:has(input:disabled) {
  opacity: 0.4;
}
.settings-page .setup-link {
  margin-top: 26px;
}
#toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  max-width: calc(100vw - 30px);
  padding: 13px 19px;
  border: 1px solid #575761;
  border-radius: 9px;
  background: #303039;
  color: #f3f3f5;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 5px 35px #0004;
}
@media (min-width: 721px) and (max-width: 1100px) and (orientation: landscape) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 18px;
  }
  .appt.inline-booking {
    grid-template-columns: minmax(155px, 0.9fr) minmax(170px, 1.3fr) 102px;
    gap: 10px;
    padding: 10px 12px;
  }
  .appttop {
    grid-template-columns: 20px 34px minmax(0, 1fr);
    gap: 7px;
  }
  .name {
    font-size: 13px;
  }
  .inline-service-button {
    font-size: 12px;
    padding: 9px;
  }
  .inline-addons {
    padding: 8px 6px;
    font-size: 10px;
  }
  .inline-amount input {
    font-size: 14px;
  }
  .summary {
    padding: 18px;
  }
  .due strong {
    font-size: 29px;
  }
}
@media (min-width: 721px) and (orientation: portrait) {
  .terminal-pos {
    padding-bottom: calc(180px + env(safe-area-inset-bottom));
  }
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .checkout {
    position: fixed;
    z-index: 10;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid #3b3b43;
    background: #1c1c21;
  }
  .summary {
    display: grid;
    grid-template-columns: 1fr minmax(180px, 1fr) 1fr;
    align-items: center;
    gap: 10px 22px;
    padding: 15px 28px calc(15px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }
  .summary > .primary {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .summary .add-walk-in {
    grid-column: 3;
    grid-row: 2;
    margin: 0;
  }
  .summary .due {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    margin: 0;
    border: 0;
  }
  .summary .due small {
    font-size: 10px;
    max-width: 75px;
  }
  .summary .due strong {
    font-size: 26px;
    margin: 0;
  }
  .summary .leave-total {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    padding: 0 0 0 20px;
    border: 0;
    border-left: 1px solid var(--line);
    gap: 4px;
  }
  .summary .leave-total > strong {
    font-size: 23px;
  }
  .summary .leave-total > small {
    font-size: 10px;
  }
  .summary .leave-total > span {
    font-size: 8px;
  }
}
@media (max-width: 720px) {
  main {
    padding: 17px 12px 25px;
  }
  .top {
    gap: 8px;
    margin-bottom: 18px;
  }
  .page-heading {
    gap: 8px;
  }
  .page-heading h1,
  .owner-mobile > .top h1 {
    font-size: 19px;
    letter-spacing: -0.4px;
  }
  .page-tools {
    gap: 6px;
  }
  .back-icon {
    width: 32px;
    height: 34px;
    font-size: 19px;
  }
  .menu-button {
    height: 34px;
    padding: 0 8px;
    font-size: 15px;
    gap: 5px;
  }
  .menu-button span {
    font-size: 10px;
  }
  input[type="date"] {
    width: 118px;
    max-width: 118px;
    min-height: 34px;
    font-size: 10px;
    padding: 7px 8px;
  }
  .auth {
    margin: 35px 14px;
    padding: 24px;
    max-width: none;
  }
  .photo-team {
    padding: 25px 20px;
  }
  .photo-team > .top {
    margin-bottom: 25px;
  }
  .photo-team h1 {
    font-size: 20px;
  }
  .photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 16px;
  }
  .layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .layout > * {
    width: 100%;
  }
  .stafflist {
    gap: 9px;
  }
  .staff {
    width: 61px;
    height: 61px;
  }
  .staff .avatar {
    width: 50px;
    height: 50px;
  }
  .appt.inline-booking {
    grid-template-columns: minmax(0, 1fr) 90px;
    grid-template-rows: 27px 39px;
    height: 95px;
    min-height: 95px;
    max-height: 95px;
    gap: 5px 8px;
    padding: 9px 11px;
  }
  .appttop {
    grid-column: 1/3;
    grid-row: 1;
    grid-template-columns: 18px 32px minmax(0, 1fr);
    gap: 7px;
    min-height: 27px;
  }
  .name {
    display: flex;
    align-items: center;
    gap: 7px;
    max-height: 27px;
    font-size: 12px;
    line-height: 17px;
  }
  .check {
    width: 18px;
    height: 18px;
  }
  .time {
    font-size: 10px;
  }
  .payment-label {
    margin: 0;
    font-size: 8px;
    line-height: 12px;
    flex-shrink: 0;
  }
  .inline-options {
    grid-column: 1;
    grid-row: 2;
    height: 38px;
    gap: 6px;
  }
  .inline-service-button {
    height: 38px;
    min-height: 38px;
    padding: 8px;
    font-size: 11px;
  }
  .inline-addons {
    height: 32px;
    min-height: 32px;
    padding: 6px;
    font-size: 9px;
  }
  .inline-amount {
    grid-column: 2;
    grid-row: 2;
    height: 38px;
  }
  .inline-amount label,
  .inline-amount input {
    height: 38px;
    font-size: 12px;
  }
  .inline-amount > b {
    font-size: 11px;
    line-height: 38px;
  }
  .price-change-flag {
    bottom: -11px;
    font-size: 7px;
  }
  .checkout {
    position: fixed;
    z-index: 10;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid #3b3b43;
    background: #1c1c21;
  }
  .summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }
  .summary .due {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .summary .due small {
    font-size: 10px;
  }
  .summary .due strong {
    font-size: 24px;
    margin-top: 5px;
  }
  .summary .primary {
    min-height: 44px;
    font-size: 12px;
  }
  .summary .leave-total {
    margin: 0;
    padding: 0;
    border: 0;
    gap: 3px;
  }
  .summary .leave-total > small {
    font-size: 10px;
  }
  .summary .leave-total > strong {
    font-size: 20px;
  }
  .summary .leave-total > span {
    font-size: 9px;
  }
  .summary .add-walk-in {
    margin: 0;
    align-self: stretch;
    font-size: 11px;
  }

  dialog {
    padding: 21px;
    border-radius: 15px;
  }
  #service-picker-dialog {
    max-width: calc(100vw - 22px);
  }
  .service-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .service-tile {
    min-height: 108px;
    padding: 12px;
  }
  .service-tile b,
  .service-tile strong {
    font-size: 12px;
  }
  .service-tile small {
    font-size: 10px;
  }
  .picker-addon {
    padding: 14px;
    gap: 10px;
  }
  .picker-addon b,
  .picker-addon strong {
    font-size: 12px;
  }
  .picker-footer {
    gap: 9px;
  }
  .picker-footer button {
    font-size: 12px;
  }
  .owner-mobile {
    padding: 18px 12px 30px;
  }
  .owner-person {
    padding: 12px;
    gap: 12px;
  }
  .review-money > b {
    font-size: 20px;
  }
  .closeout-amounts b {
    font-size: 12px;
  }
  .owner-detail {
    padding: 15px;
  }
  .owner-mobile input[type="date"] {
    max-width: 112px;
    width: 112px;
  }
  .owner-mobile .page-tools {
    gap: 5px;
  }
  .owner-mobile .menu-button {
    padding: 0 7px;
  }
  .setting-photos {
    gap: 17px 10px;
  }
  .setting-person .avatar {
    width: 43px;
    height: 43px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.inline-amount label {
  position: relative;
  display: block;
}
.inline-amount label > span {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  pointer-events: none;
}
.inline-amount input {
  width: 100%;
  padding-right: 29px;
}
/* Entry choices are large and explicit; a signed-in terminal never shows them. */
.entry-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 880px;
  margin: auto;
  padding: 42px 32px;
}
.entry-brand {
  margin-bottom: 38px;
  color: #eeeeef;
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1.5px;
}
.entry-brand span {
  color: #777782;
}
.entry-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.entry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  min-height: 230px;
  padding: 34px;
  border: 1px solid #3a3a43;
  border-radius: 18px;
  background: #202025;
  color: #ededf0;
  text-align: left;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.entry-card:hover {
  background: #2b2b32;
  border-color: #8e8e9a;
}
.entry-card svg {
  width: 54px;
  height: 54px;
  color: #c3c3ce;
}
.entry-card strong {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.2;
}
.entry-card > span {
  font-size: 13px;
  color: #91919d;
}
.entry-card:active {
  background: #35353e;
}
.terminal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  margin-bottom: 28px;
}
.terminal-heading h1 {
  font-size: 25px;
  letter-spacing: -0.6px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  background: none;
  color: #c0c0ca;
  font-size: 14px;
}
.back-link:hover {
  color: white;
}
.text-exit {
  min-height: 44px;
  padding: 0 8px;
  color: #8f8f9b;
  font-size: 13px;
}
.text-exit:hover {
  color: #eee;
}
.terminal-team {
  max-width: none;
  padding: 32px;
  min-height: 100dvh;
}
.terminal-team .photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 27px 30px;
}
.terminal-team .photo-choice {
  max-width: 115px;
  justify-self: center;
}
.terminal-team .photo-choice .avatar {
  border-width: 3px;
}
.terminal-pos {
  padding: 23px 28px 32px;
}
.terminal-pos > .terminal-heading {
  margin-bottom: 20px;
  min-height: 44px;
}
.profile-marker .avatar {
  width: 42px;
  height: 42px;
}
.terminal-pos .layout {
  gap: 22px;
}
.access-screen,
.pin-screen {
  max-width: 430px;
  margin: auto;
  padding: 25px 25px 60px;
  min-height: 100dvh;
}
.access-screen > .back-link,
.pin-screen > .back-link {
  margin-bottom: 32px;
}
.access-card {
  padding-top: 30px;
}
.access-symbol svg {
  width: 49px;
  height: 49px;
  color: #9898a6;
  margin-bottom: 20px;
}
.access-card h1 {
  font-size: 31px;
  font-weight: 600;
  margin-bottom: 35px;
  letter-spacing: -0.6px;
}
.access-card label {
  display: block;
  font-size: 12px;
  color: #9696a4;
  margin: 0 0 10px;
}
.access-card input {
  min-height: 52px;
  font-size: 16px;
}
.access-card .primary {
  margin-top: 18px;
  min-height: 52px;
}
.access-note {
  font-size: 14px;
  color: #9c9ca8;
  line-height: 1.6;
  margin-bottom: 25px;
}
.terminal-access {
  display: flex;
  align-items: center;
}
.terminal-access .access-card {
  width: 100%;
  padding-top: 0;
}
.pin-card {
  padding-top: 30px;
}
.pin-card > .avatar {
  width: 95px;
  height: 95px;
  margin: 0 auto 30px;
}
.pin-card h1 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 28px;
}
.pin-card input {
  text-align: center;
  letter-spacing: 14px;
  font-size: 25px;
  height: 61px;
  padding-left: 27px;
}
.pin-card .primary {
  margin-top: 20px;
}
.owner-start {
  max-width: 620px;
  margin: auto;
  padding: 22px 18px 40px;
}
.owner-start > .terminal-heading {
  margin-bottom: 28px;
}
.owner-start > h1 {
  font-size: 29px;
  margin-bottom: 27px;
}
.owner-start-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.owner-start-actions .entry-card {
  min-height: 165px;
  padding: 27px;
  gap: 14px;
  width: 100%;
}
.owner-start-actions .entry-card svg {
  width: 38px;
  height: 38px;
}
.owner-start-actions .entry-card strong {
  font-size: 22px;
  letter-spacing: -0.3px;
}
.owner-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 23px;
}
.owner-page-heading h1 {
  font-size: 23px;
  letter-spacing: -0.4px;
}
.owner-page-heading input[type="date"] {
  max-width: 145px;
}
.setup-flow {
  max-width: 660px;
}
.setup-section {
  background: #1d1d22;
  border: 1px solid #33333c;
  border-radius: 14px;
  padding: 21px;
  margin-bottom: 18px;
}
.setup-section-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}
.step-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  border: 1px solid #4b4b57;
  border-radius: 50%;
  font-size: 12px;
  color: #c7c7d3;
}
.setup-section-title h2 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.setup-section-title p {
  font-size: 12px;
  color: #90909d;
  margin-top: 5px;
  line-height: 1.5;
}
.select-all {
  margin-left: auto;
  font-size: 12px;
  color: #c4c4d0;
  padding: 7px 9px;
  border: 1px solid #484852;
  border-radius: 6px;
}
.setup-flow .setting-photos {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.setup-flow .setting-person {
  position: relative;
  padding: 12px 7px 9px;
  border: 1px solid #383841;
  border-radius: 12px;
  background: #24242a;
  gap: 9px;
  cursor: pointer;
}
.setup-flow .setting-person .avatar {
  width: 61px;
  height: 61px;
}
.setup-flow .setting-person input {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 18px;
  height: 18px;
}
.setup-flow .setting-person.is-selected {
  background: #2d3430;
  border-color: #69846c;
}
.staff-choice-state {
  font-size: 10px;
  color: #8b8b99;
}
.is-selected .staff-choice-state {
  color: #b7ccb9;
}
.setup-section > input {
  min-height: 47px;
  margin-top: 10px;
  font-size: 14px;
}
.setup-form > .primary {
  min-height: 52px;
}
.setup-form > .form-error {
  margin: 12px 0;
}
.setup-saved {
  font-size: 12px;
  text-align: center;
  color: #b6ccb5;
  margin-top: 16px;
}
.tablet-link {
  margin-top: 27px;
  padding: 21px;
  border: 1px solid #34343e;
  border-radius: 12px;
}
.tablet-link h2 {
  font-size: 14px;
  color: #a0a0ae;
  margin-bottom: 12px;
}
.tablet-link input {
  font-size: 13px;
  color: #c3c3cf;
}
.tablet-link .ghost {
  margin-top: 10px;
  width: 100%;
}
@media (max-width: 720px) {
  .entry-screen {
    padding: 32px 23px;
  }
  .entry-brand {
    font-size: 26px;
    margin-bottom: 25px;
  }
  .entry-actions {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .entry-card {
    min-height: 185px;
    padding: 27px;
    gap: 14px;
  }
  .entry-card svg {
    width: 45px;
    height: 45px;
  }
  .entry-card strong {
    font-size: 27px;
  }
  .entry-card > span {
    font-size: 12px;
  }
  .terminal-team {
    padding: 23px 18px;
  }
  .terminal-team .terminal-heading h1 {
    font-size: 21px;
  }
  .terminal-team .photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 23px 15px;
  }
  .terminal-pos {
    padding: 15px 12px calc(220px + env(safe-area-inset-bottom));
  }
  .terminal-pos > .terminal-heading {
    margin-bottom: 15px;
  }
  .profile-marker .avatar {
    width: 36px;
    height: 36px;
  }
  .access-screen,
  .pin-screen {
    padding: 24px 24px 40px;
  }
  .owner-start {
    padding: 20px 16px 35px;
  }
  .owner-page-heading h1 {
    font-size: 19px;
  }
  .owner-page-heading .page-heading {
    gap: 9px;
  }
  .owner-page-heading input[type="date"] {
    max-width: 125px;
  }
  .setup-section {
    padding: 17px;
  }
  .setup-flow .setting-photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .setup-flow .setting-person .avatar {
    width: 59px;
    height: 59px;
  }
  .setup-section-title {
    gap: 10px;
  }
  .setup-section-title h2 {
    font-size: 15px;
  }
  .setup-section-title p {
    font-size: 11px;
  }
  .select-all {
    font-size: 11px;
    padding: 6px;
  }
  .tablet-link {
    padding: 17px;
  }
}
