:root {
  --cream: #f4eee4;
  --ivory: #ebe3d4;
  --paper: #f8f3ea;
  --linen: #f2e6d0;
  --banner: #faf6ee;
  --poche: #e3d0b4;
  --well: #fffdf8;
  --search-strip: var(--ivory);
  --ink: #12110f;
  --ink-soft: #3a342c;
  --gold: #c4a46a;
  --gold-soft: #d8c39a;
  --gold-line: rgba(154, 122, 68, 0.64);
  --gold-rule: rgba(140, 108, 58, 0.78);
  --grid-line: rgba(154, 122, 68, 0.36);
  --wash: #2a241c;
  --slot: #e7dfd0;
  --danger: #8b3a32;
  --ok: #3d5a45;
  --shadow: 0 18px 50px rgba(18, 17, 15, 0.12);
  --shadow-card: 0 8px 22px rgba(18, 17, 15, 0.07);
  --shadow-lift: 0 12px 32px rgba(42, 36, 28, 0.1);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 164, 106, 0.12), transparent 50%),
    var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.01em;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 16px 56px;
  gap: 20px;
}

.login-sticky {
  position: sticky;
  top: 0;
  z-index: 8;
  width: min(720px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(248, 243, 234, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-line);
  box-shadow: 0 8px 24px rgba(18, 17, 15, 0.06);
}

.login-sticky-brand {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.08em;
}

.login-card {
  width: min(440px, 100%);
  background: var(--paper);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow);
  padding: 36px 32px 28px;
  text-align: center;
}

.login-explainer {
  width: min(720px, 100%);
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.explainer-hero,
.explainer-card {
  background: var(--paper);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow);
}

.explainer-hero {
  padding: 24px 24px 22px;
}

.explainer-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.login-explainer h2,
.explainer-card-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.login-explainer h2 {
  margin: 0 0 12px;
  font-size: 36px;
}

.explainer-card-title {
  position: sticky;
  top: 52px;
  z-index: 3;
  margin: 0;
  padding: 14px 22px 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--gold-line);
  font-size: 24px;
}

.explainer-lead {
  margin: 0;
  max-width: 36em;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.explainer-card .explainer-lead {
  padding: 14px 22px 0;
}

.explainer-steps {
  list-style: none;
  margin: 0;
  padding: 10px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: explain-step;
}

.explainer-steps li {
  counter-increment: explain-step;
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 36em);
  column-gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--gold-line);
}

.explainer-steps li:first-child {
  border-top: 0;
}

.explainer-steps li::before {
  content: counter(explain-step);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  color: var(--gold);
}

.explainer-steps strong {
  display: block;
  grid-column: 2;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.02em;
}

.explainer-steps p {
  grid-column: 2;
  margin: 6px 0 0;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.explainer-card--before {
  background: #f3ece0;
}

.explainer-card--before .explainer-card-title {
  background: #f3ece0;
}

.explainer-card--why {
  background: #f8f4ea;
  box-shadow: var(--shadow-lift);
}

.explainer-card--why .explainer-card-title {
  background: #f8f4ea;
}

.explainer-card--next {
  background: #f6efe2;
}

.explainer-card--next .explainer-card-title {
  background: #f6efe2;
}

.explainer-steps--next {
  margin: 0;
  padding: 10px 22px 8px;
  border: none;
  background: transparent;
}

.explainer-steps--next li::before {
  content: none;
  display: none;
}

.explainer-steps--next li {
  grid-template-columns: minmax(0, 36em);
}

.explainer-steps--next strong,
.explainer-steps--next p {
  grid-column: 1 / -1;
}

.explainer-later {
  margin: 0;
  padding: 4px 22px 18px;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.explainer-foot {
  margin: 4px 4px 0;
  padding: 14px 8px 0;
  border-top: 1px solid var(--gold-line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand--login {
  justify-content: center;
  flex-direction: column;
  margin-bottom: 8px;
}

.logo-img {
  display: block;
  max-width: 190px;
  height: auto;
  object-fit: contain;
  filter: contrast(1.05);
}

.logo-img--banner {
  max-width: 132px;
}

.wordmark img {
  display: block;
}

.login-kicker,
.poche-lead,
.brand-place,
.footer {
  color: var(--ink-soft);
}

.login-kicker {
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.login-title,
.poche-block h2,
.brand-name,
.date-label,
.col-name,
.hours-card strong {
  font-family: var(--serif);
  font-weight: 500;
}

.login-title {
  margin: 6px 0 10px;
  font-size: 46px;
  letter-spacing: 0.06em;
}

.login-lead,
.login-hint {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.login-form {
  margin-top: 22px;
  text-align: left;
}

.login-hint {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.pin-list-caption {
  margin: 18px 0 0;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
}

.pin-list {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  max-height: 160px;
  overflow: auto;
}

.pin-list div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--gold-line);
  padding: 3px 0;
}

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px 10px;
  border-bottom: 1px solid var(--gold-rule);
  background: var(--banner);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(18, 17, 15, 0.07);
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: wrap;
}

.banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1 1 280px;
  min-width: min(100%, 280px);
}

.banner-exits {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-exit {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--gold-soft);
  cursor: pointer;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-exit:hover {
  background: #1c1914;
  border-color: var(--gold);
  color: var(--gold-soft);
}

.nav-exit--ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--gold);
}

.nav-exit--ghost:hover {
  background: var(--ink);
  color: var(--gold-soft);
  border-color: var(--ink);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-place {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.banner-mid,
.banner-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  border: 1px solid var(--gold-line);
  padding: 4px 9px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.badge-demo {
  background: var(--ink);
  color: var(--gold-soft);
  border-color: var(--ink);
}

.badge-jarvis.is-live {
  border-color: var(--gold);
  color: var(--ink);
}

.badge-jarvis.is-off {
  opacity: 0.55;
}

.picker select,
.field select,
.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gold-line);
  border-radius: 0;
  padding: 8px 2px;
  outline: none;
}

.picker select {
  min-width: 150px;
  max-width: 220px;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-label {
  margin: 0;
  min-width: 168px;
  text-align: center;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.icon-btn,
.text-btn,
.btn {
  background: none;
  border: none;
  cursor: pointer;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold-line);
  font-size: 18px;
}

.text-btn {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 4px;
}

.text-btn:hover,
.icon-btn:hover {
  color: var(--ink);
  border-color: var(--gold);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--gold-line);
  padding: 2px;
  gap: 2px;
}

.lang-switch--login {
  margin: 0;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  min-width: 36px;
  padding: 5px 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.lang-btn.is-active {
  background: var(--ink);
  color: var(--gold-soft);
}

.clock {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 0;
  background: var(--cream);
}

.board {
  padding: 16px 16px 22px 18px;
  min-width: 0;
  background: var(--cream);
}

.hours-card {
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid var(--gold-line);
  border-left: 3px solid var(--gold);
  background: var(--ivory);
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.hours-card strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hours-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.stylist-picker {
  display: none;
}

.stylist-picker-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  flex-shrink: 0;
}

.stylist-picker-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  min-width: 0;
  padding: 2px 2px 4px;
}

.stylist-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--gold-line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.2;
}

.stylist-chip:hover {
  border-color: var(--gold);
}

.stylist-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold-soft);
}

.stylist-chip.is-all {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--paper);
  box-shadow: 6px 0 10px var(--ivory);
}

.stylist-chip.is-all.is-active {
  background: var(--ink);
}

.agenda-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.grid-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gold-line);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.agenda-grid {
  --row-h: 84px;
  --hours: 9;
  --cols: 10;
  --col-min: 152px;
  display: grid;
  grid-template-columns: 52px repeat(var(--cols), minmax(var(--col-min), 1fr));
  min-width: calc(52px + (var(--cols) * var(--col-min)));
}

.agenda-grid.is-compact {
  --row-h: 76px;
  --col-min: 140px;
}

.agenda-grid.cols-1 {
  --cols: 1;
  grid-template-columns: 52px minmax(0, 1fr);
  min-width: 0;
}

.time-col,
.stylist-col {
  position: relative;
}

.head-cell,
.time-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.head-cell {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ivory);
  border-bottom: 1px solid var(--gold-line);
  padding: 10px 8px;
  text-align: center;
  overflow: visible;
}

.col-name {
  display: block;
  font-size: 16px;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: none;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.agenda-grid.is-compact .col-name {
  font-size: 15px;
}

.col-hours {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}

.time-col {
  border-right: 1px solid var(--gold-line);
  background: var(--ivory);
}

.time-label {
  height: var(--row-h);
  padding: 8px 10px 0 0;
  text-align: right;
  border-bottom: 1px dashed var(--grid-line);
}

.stylist-col {
  border-right: 1px solid var(--gold-line);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent calc(var(--row-h) - 1px),
    var(--grid-line) calc(var(--row-h) - 1px),
    var(--grid-line) var(--row-h)
  );
  min-height: calc(var(--row-h) * var(--hours));
}

.stylist-col:last-child {
  border-right: none;
}

.lane {
  position: relative;
  height: calc(var(--row-h) * var(--hours));
}

.apt {
  position: absolute;
  left: 5px;
  right: 5px;
  background: var(--linen);
  border-left: 3px solid var(--gold);
  padding: 7px 8px 6px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.apt.is-jarvis {
  background: var(--ivory);
  border-left-color: var(--ink);
}

.apt.is-selected {
  outline: 1px solid var(--gold);
}

.apt.is-flash {
  z-index: 3;
  animation: apt-flash 1.15s ease;
}

.apt-top {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.apt .when {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  line-height: 1.25;
}

.apt .who {
  min-width: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apt-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.apt .what {
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apt-price {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: #8d7040;
  white-space: nowrap;
}

.apt.is-short {
  padding: 4px 7px 3px;
  gap: 1px;
}

.apt.is-short .who {
  font-size: 14px;
  line-height: 1.15;
}

.apt.is-short .what,
.apt.is-short .apt-price {
  font-size: 11px;
  line-height: 1.2;
}

.apt.is-tight {
  padding: 3px 6px 2px;
  gap: 1px;
}

.apt.is-tight .who {
  font-size: 13px;
  line-height: 1.1;
}

.apt.is-tight .apt-body {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.apt.is-tight .what {
  flex: 1 1 auto;
  min-width: 0;
}

.apt.is-tight .what,
.apt.is-tight .apt-price {
  font-size: 11px;
  line-height: 1.1;
}

.apt.is-tight .apt-price {
  flex-shrink: 0;
}

.agenda-grid.is-compact .apt {
  padding: 6px 7px 5px;
}

.agenda-grid.is-compact .apt.is-short {
  padding: 4px 6px 3px;
}

.agenda-grid.is-compact .apt.is-tight {
  padding: 3px 6px 2px;
}

.ghost-slot {
  position: absolute;
  left: 7px;
  right: 7px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.ghost-slot:hover,
.ghost-slot:focus-visible {
  background: rgba(196, 164, 106, 0.16);
}

.soon-panel {
  margin: 48px auto;
  max-width: 420px;
  text-align: center;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.3;
}

.poche {
  border-left: 1px solid var(--gold-rule);
  background: var(--poche);
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  box-shadow: inset 10px 0 28px rgba(18, 17, 15, 0.04);
  position: sticky;
  top: var(--banner-h, 0px);
  align-self: start;
  max-height: calc(100vh - var(--banner-h, 0px));
}

.poche-block {
  background: var(--paper);
  border: 1px solid var(--gold-line);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-card);
}

.poche-block h2 {
  margin: 0 0 10px;
  padding: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--gold-line);
}

.poche-lead {
  margin: 0 0 12px;
  font-size: 12px;
}

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slip {
  background: var(--linen);
  border: 1px solid var(--gold-line);
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(18, 17, 15, 0.05);
  animation: rise 0.35s ease;
}

.slip b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
}

.slip p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.empty,
.empty-card {
  color: var(--ink-soft);
  font-size: 13px;
}

.client-card {
  padding-top: 2px;
  min-height: 88px;
}

.client-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.client-card dl {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 6px 8px;
  font-size: 13px;
}

.client-card dt {
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  padding-top: 3px;
}

.client-history-wrap {
  margin-top: 14px;
}

.client-history-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.client-history-label,
.client-history-empty {
  margin: 10px 0 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.client-history-empty {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 13px;
}

.client-history {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--gold-line);
  background: var(--paper);
}

.client-history-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--gold-line);
  padding: 9px 11px;
  cursor: pointer;
}

.client-history-row:last-child {
  border-bottom: none;
}

.client-history-row:hover,
.client-history-row:focus {
  background: #efe6d2;
}

.client-history-row.is-current {
  background: #f8e7bc;
  box-shadow: inset 3px 0 0 var(--gold);
}

.client-history-row.is-past {
  opacity: 0.78;
}

.client-history-when {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.client-history-meta {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.search-hit--client {
  background: #f7f1e6;
}

.search-hit--client .search-hit-name::after {
  content: "";
}

.poche-form {
  border-color: var(--gold);
  box-shadow: var(--shadow-lift);
  scroll-margin-top: 92px;
}

.poche-form.is-target {
  box-shadow: var(--shadow-lift), 0 0 0 3px rgba(196, 164, 106, 0.35);
}

.book-form {
  display: grid;
  gap: 10px;
}

.field span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.btn-gold {
  margin-top: 6px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--gold-soft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
}

.btn-gold:hover {
  background: #1c1914;
}

.btn-gold.btn-gold--banner {
  width: auto;
  margin-top: 0;
  padding: 8px 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.form-error {
  color: var(--danger);
  font-size: 12px;
  margin: 0;
}

.form-ok {
  color: var(--ok);
  font-size: 12px;
  margin: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 22px 14px;
  border-top: 1px solid var(--gold-rule);
  background: var(--ivory);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

.built-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
}

.built-by img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.built-by:hover {
  color: var(--ink);
}

.login-card .built-by {
  margin-top: 22px;
  justify-content: center;
}

.banner-search {
  position: relative;
  flex: 1 0 100%;
  min-width: 0;
  margin: 4px -18px -10px;
  padding: 10px 18px 12px;
  background: var(--search-strip);
  border-top: 1px solid var(--gold-line);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(520px, 100%);
  background: var(--well);
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 1px 2px rgba(18, 17, 15, 0.04);
  padding: 0 12px;
}

.search-loop {
  display: flex;
  color: var(--gold);
  flex-shrink: 0;
}

.search-label {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}

.search-field input {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 9px 2px;
  outline: none;
}

.search-field input::-webkit-search-decoration,
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-field:focus-within {
  border-color: var(--gold);
}

.search-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  width: min(520px, 100%);
  max-height: min(360px, 50vh);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow);
  z-index: 30;
}

.search-empty {
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-hit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--gold-line);
  padding: 10px 14px;
  cursor: pointer;
}

.search-hit:last-child {
  border-bottom: none;
}

.search-hit:hover,
.search-hit:focus {
  background: var(--linen);
}

.search-hit-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.search-hit-meta {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
}

@keyframes apt-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 164, 106, 0);
  }
  30% {
    background: #f8e7bc;
    box-shadow: 0 0 0 3px var(--gold);
  }
  100% {
    box-shadow: var(--shadow-card);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 520px) {
  .login-sticky-brand {
    font-size: 14px;
  }

  .login-title {
    font-size: 38px;
  }

  .banner-exits {
    margin-left: auto;
  }
}

@media (max-width: 980px) {
  .login-explainer h2 {
    font-size: 28px;
  }

  .explainer-hero,
  .explainer-card .explainer-lead,
  .explainer-steps,
  .explainer-later {
    padding-left: 16px;
    padding-right: 16px;
  }

  .explainer-card-title {
    top: 48px;
    padding: 12px 16px 10px;
    font-size: 22px;
  }

  .explainer-lead {
    font-size: 16px;
  }

  .explainer-steps strong {
    font-size: 19px;
  }

  .explainer-steps p {
    font-size: 15px;
  }

  .explainer-steps li {
    grid-template-columns: 1.4rem minmax(0, 1fr);
    padding: 12px 0;
  }

  .explainer-steps--next li {
    grid-template-columns: minmax(0, 1fr);
  }

  .banner {
    flex-wrap: wrap;
  }

  .banner-top {
    width: 100%;
    flex: 1 0 100%;
  }

  .brand {
    flex-wrap: wrap;
  }

  .nav-exit {
    padding: 9px 12px;
  }

  .search-field,
  .search-panel {
    width: 100%;
  }

  .agenda-grid,
  .agenda-grid.is-compact {
    --col-min: 140px;
  }

  .apt {
    left: 4px;
    right: 4px;
    padding: 6px 7px 5px;
  }

  .apt .who {
    font-size: 15px;
  }

  .stage {
    grid-template-columns: 1fr;
  }

  .poche {
    border-left: none;
    border-top: 1px solid var(--gold-rule);
    box-shadow: inset 0 10px 28px rgba(18, 17, 15, 0.04);
  }
}

@media (max-width: 780px) {
  /*
    Desk scroll trap on phone:
    .app is a column flex; .stage { flex:1; min-height:0 } pins the shell to
    100vh so the document never grows. .grid-wrap { overflow-x:auto } then
    computes overflow-y to auto (CSS overflow pairing) and eats vertical
    pans. .poche is sticky + max-height:100vh + overflow:auto — a second
    nested scrollport once the layout stacks. Unlock page flow here only.
    The full banner is not sticky so chrome does not eat the day grid.
  */
  .app {
    height: auto;
    min-height: 100%;
  }

  .stage {
    display: block;
    flex: none;
    min-height: auto;
    height: auto;
  }

  .banner {
    position: static;
    padding: 8px 12px 10px;
    gap: 8px;
  }

  .brand-copy,
  .badge-demo,
  #google-badge,
  .clock {
    display: none;
  }

  .logo-img--banner {
    max-width: 108px;
  }

  .date-label {
    min-width: 0;
    font-size: 17px;
  }

  .banner-mid,
  .banner-end {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .board,
  .agenda-stack {
    overflow: visible;
  }

  .poche {
    position: static;
    top: auto;
    align-self: stretch;
    max-height: none;
    overflow: visible;
  }

  .grid-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .grid-wrap:has(.cols-1) {
    overflow: visible;
  }

  .stylist-picker-chips {
    overscroll-behavior-y: auto;
  }

  .stylist-picker.is-on {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 -16px 12px -18px;
    padding: 8px 16px 8px 18px;
    position: sticky;
    top: 0;
    z-index: 15;
    background: var(--ivory);
    border-bottom: 1px solid var(--gold-line);
    box-shadow: 0 6px 16px rgba(18, 17, 15, 0.05);
  }

  .stylist-picker.is-on .stylist-chip {
    min-height: 44px;
    padding: 10px 16px;
  }

  .stylist-picker-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .agenda-grid.cols-1 {
    --col-min: 0;
  }

  .head-cell {
    top: var(--picker-h, 0px);
  }

  .poche-form {
    scroll-margin-top: 72px;
  }
}
