:root {
  --ink: #202b36;
  --muted: #7c8590;
  --line: #e8ebee;
  --bg: #f6f7f9;
  --accent: #e77858;
  --purple: #8780b7;
  --green: #557f72;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #c8a1f2;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  font-weight: 550;
  letter-spacing: -1.4px;
  line-height: 1.2;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 550;
}
h3 {
  font-weight: 600;
  font-size: 16px;
}
small {
  display: block;
}
.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  background: white;
  border-right: 1px solid var(--line);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 2px;
  padding: 0 12px;
}
.brand-mark {
  width: 38px;
  height: 39px;
  background: #25333b;
  color: white;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 550;
  letter-spacing: -5px;
  padding-right: 5px;
  line-height: 1;
}
.brand-mark span {
  color: #f1a186;
}
.brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-top: 1px;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 38px 0 31px;
  padding: 13px 10px;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.workspace strong {
  font-size: 11px;
  font-weight: 600;
}
.workspace small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.workspace-avatar {
  display: grid;
  place-items: center;
  background: #e8e4ed;
  color: #777087;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 13px;
}
.nav-label,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 650;
  color: var(--muted);
}
.nav-label {
  padding: 0 12px;
  margin-bottom: 15px;
}
nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  background: none;
  color: #78818c;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 13px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 550;
}
.nav-item > span:first-child {
  font-size: 19px;
  line-height: 1;
}
.nav-item.active {
  background: #f9eee9;
  color: #b75f43;
}
.nav-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  background: #d47754;
  border-radius: 50%;
}
.sidebar-note {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 23px 10px 0;
  font-size: 10px;
  font-weight: 550;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #69967c;
  border-radius: 50%;
  margin-right: 7px;
}
.sidebar-note p {
  color: #969da5;
  font-weight: 400;
  line-height: 1.7;
  margin: 13px 0 20px;
}
.version {
  font-size: 9px;
  color: #a0a6ad;
  letter-spacing: 1px;
}
.app-shell {
  margin-left: 238px;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 42px;
}
.breadcrumb {
  font-size: 11px;
  color: #969da5;
}
.breadcrumb span {
  margin: 0 13px;
  color: #c2c6ca;
}
.breadcrumb strong {
  font-weight: 500;
  color: #525e69;
}
.topbar-right {
  display: flex;
  gap: 19px;
  align-items: center;
}
.demo-pill,
.badge {
  padding: 7px 10px;
  border: 1px solid #dce9df;
  border-radius: 5px;
  background: #f2f7f3;
  color: #67836e;
  font-size: 10px;
  font-weight: 550;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background: #ece7e1;
  font-size: 11px;
  color: #80715e;
}
main {
  padding: 29px 42px 20px;
  max-width: 1600px;
  margin: auto;
}
.demo-notice {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: #f1f0f8;
  border: 1px solid #e8e5f0;
  color: #77718d;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.7;
}
.demo-notice > span {
  font-size: 17px;
}
.demo-notice strong {
  font-weight: 600;
}
.heading-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 35px 0 27px;
}
.heading-row .eyebrow {
  font-size: 9px;
  margin-bottom: 12px;
  color: #a08a7f;
}
.subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}
.primary {
  background: var(--accent);
  color: #fff;
  min-height: 43px;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 3px 7px #e7785817;
  white-space: nowrap;
}
.primary:hover {
  background: #ce684b;
}
.context-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 23px;
  gap: 15px;
}
.business-select {
  font-size: 9px;
  color: var(--muted);
  display: grid;
  gap: 7px;
}
.business-select select {
  min-width: 280px;
  font-size: 11px;
  background: #fff;
}
.timezone {
  font-size: 10px;
  color: #929aa4;
}
select,
input[type="date"] {
  color: var(--ink);
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  padding: 10px 12px;
  background: white;
  min-height: 40px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-bottom: 26px;
}
.stat {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  position: relative;
}
.stat p {
  font-size: 11px;
  color: #7e8790;
}
.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 12px 0 7px;
}
.stat small {
  font-size: 9px;
  color: #9ba2a9;
}
.stat-icon {
  position: absolute;
  right: 20px;
  top: 20px;
  background: #eaf1ee;
  color: #709181;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 18px;
}
.stat-icon.coral {
  background: #fcf0e9;
  color: #d99a7a;
}
.stat-icon.purple {
  background: #f0edf8;
  color: #a094c2;
}
.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 23px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 25px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}
.panel-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 9px;
}
.date-control input {
  font-size: 11px;
  max-width: 160px;
}
.agenda-panel {
  min-height: 450px;
}
.agenda-list {
  padding-top: 12px;
}
.empty {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}
.empty-symbol {
  font-size: 35px;
  color: #c7cfcf;
  background: #f6f8f7;
  border: 1px dashed #dce3df;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.empty h3 {
  font-size: 15px;
  font-weight: 550;
}
.empty p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 255px;
  margin-top: 10px;
}
.empty button {
  margin-top: 17px;
}
.text-button {
  background: none;
  color: #cb785d;
  padding: 10px 0;
  font-size: 11px;
  font-weight: 600;
}
.right-column {
  display: grid;
  gap: 18px;
  align-content: start;
}
.dark-card {
  background: #283b38;
  color: #fff;
  padding: 25px;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
}
.mini-label {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #bac9bf;
}
.orbit {
  width: 52px;
  height: 52px;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 24px 0 20px;
  font-size: 27px;
  color: #d9d6a9;
}
.dark-card h2 {
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.8px;
}
.dark-card p {
  font-size: 11px;
  color: #b6c4bf;
  line-height: 1.8;
  margin: 15px 0 21px;
}
.light-button {
  width: 100%;
  padding: 12px;
  background: #f1eee3;
  border-radius: 5px;
  text-align: left;
  color: #36433d;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.progress-card {
  padding: 22px;
}
.progress-card h3 {
  font-size: 14px;
  margin: 12px 0 18px;
}
.progress-card ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 10px;
  color: #7a838b;
}
.progress-card li span {
  color: #789a83;
  margin-right: 8px;
}
.progress-card > p:last-child {
  font-size: 9px;
  color: #a0a6ad;
  line-height: 1.8;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 19px;
}
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}
.steps {
  display: flex;
  padding: 20px 0 24px;
  list-style: none;
  gap: 40px;
  color: #aeb4ba;
  font-size: 11px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.steps .current {
  color: #cb775b;
}
.steps li span {
  font-size: 10px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 8px 0 25px;
}
legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
legend small {
  display: inline;
  color: var(--muted);
  font-weight: 400;
  font-size: 10px;
  margin-left: 8px;
}
.service-options {
  display: grid;
  gap: 10px;
}
.service-card {
  display: flex;
  gap: 13px;
  align-items: center;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px;
  transition: border 0.15s;
}
.service-card:has(input:checked) {
  border-color: #dca88e;
  background: #fffaf6;
}
.service-card input {
  accent-color: #d27f5d;
}
.service-card .service-description {
  display: block;
  font-size: 10px;
  color: #9098a0;
  line-height: 1.5;
  margin-top: 6px;
}
.service-card strong {
  font-size: 12px;
  font-weight: 550;
}
.service-price {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  color: #55635d;
  text-align: right;
}
.service-price small {
  font-size: 9px;
  color: #969ea6;
  margin-top: 6px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}
.form-row label {
  display: grid;
  gap: 10px;
  font-size: 11px;
  font-weight: 550;
}
.form-row select,
.form-row input {
  width: 100%;
  font-size: 12px;
}
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 50px;
}
.slot {
  padding: 11px 15px;
  background: #fff;
  border: 1px solid #e0e5e4;
  border-radius: 5px;
  font-size: 11px;
  color: #687971;
}
.slot.selected {
  background: #324c43;
  color: white;
  border-color: #324c43;
}
.slot:hover {
  border-color: #8faaa0;
}
.slots p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.form-footer p {
  font-size: 10px;
  line-height: 1.8;
  color: #9199a0;
  max-width: 320px;
}
.form-footer strong {
  font-weight: 550;
  color: #6c777f;
}
.booking-aside {
  display: grid;
  align-content: start;
  gap: 18px;
}
.abstract-art {
  position: relative;
  overflow: hidden;
  height: 280px;
  border-radius: 9px;
  background: #e9e3d6;
  display: flex;
  align-items: center;
  padding: 30px;
}
.abstract-art > span {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -2px;
  z-index: 1;
  color: #384e43;
}
.art-dot {
  color: #c87853;
}
.art-ring {
  position: absolute;
  border: 45px solid #c2c5aa;
  border-radius: 50%;
  width: 260px;
  height: 260px;
  right: -135px;
  top: -35px;
}
.art-caption {
  position: absolute;
  bottom: 24px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #8e9684;
}
.booking-aside h3 {
  font-size: 14px;
}
.booking-aside p {
  font-size: 11px;
  color: #858e97;
  line-height: 1.9;
  margin-top: 15px;
}
.small-rule {
  height: 1px;
  background: var(--line);
  margin-top: 20px;
}
.muted {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.success-panel {
  text-align: center;
  padding: 40px 20px;
}
.success-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  background: #edf4ef;
  color: #67846e;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  font-size: 30px;
}
.success-panel h2 {
  font-size: 27px;
  margin: 12px 0 18px;
}
.success-panel p {
  font-size: 12px;
  line-height: 1.9;
}
.success-panel .reference {
  font-family: monospace;
  color: #89948e;
  font-size: 11px;
  margin: 15px 0;
}
.success-panel button {
  display: block;
  margin: 22px auto 0;
}
.success-panel .text-button {
  margin-top: 6px;
}
.booking-row {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.booking-time {
  font-size: 12px;
  font-weight: 650;
}
.booking-time small {
  font-size: 10px;
  color: #a0a7ad;
  font-weight: 400;
  margin-top: 5px;
}
.booking-service strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.booking-service p {
  font-size: 10px;
  color: #929ba3;
  margin-top: 6px;
}
.booking-row .badge {
  font-size: 8px;
}
.service-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  margin-top: 13px;
}
.service-table th {
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #8f979e;
  font-weight: 550;
  padding: 15px 8px;
  border-bottom: 1px solid var(--line);
}
.service-table td {
  padding: 19px 8px;
  border-bottom: 1px solid var(--line);
}
.service-table td small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.team-heading {
  margin: 30px 0 17px;
  font-size: 14px;
}
.team-grid {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.team-card {
  display: flex;
  gap: 13px;
  align-items: center;
  background: #f8f9fa;
  padding: 17px;
  min-width: 200px;
  border-radius: 7px;
  font-size: 12px;
}
.team-card small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.integration-card {
  position: relative;
  min-height: 220px;
}
.integration-symbol {
  display: grid;
  place-items: center;
  background: #f4f3f7;
  color: #8f85a7;
  border-radius: 9px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  margin-bottom: 22px;
}
.integration-card .badge {
  position: absolute;
  top: 25px;
  right: 25px;
}
.pending {
  border-color: #eee3d0;
  background: #fcf8ee;
  color: #b09a6c;
}
.integration-card h2 {
  font-size: 18px;
}
.integration-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 13px;
}
.error {
  color: #a04736;
  background: #fff4f1;
  border: 1px solid #f2d8cf;
  border-radius: 6px;
  padding: 14px;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 18px;
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 0;
  margin-top: 34px;
  font-size: 9px;
  color: #a1a8af;
}
footer > span {
  margin: 0 7px;
}
.footer-right {
  float: right;
  margin: 0;
}
.loading {
  color: var(--muted);
  padding: 30px;
  font-size: 12px;
}
@media (min-width: 1450px) {
  main {
    padding-top: 35px;
  }
  .agenda-layout,
  .booking-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .dark-card {
    padding: 28px;
  }
  .abstract-art {
    height: 320px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 28px 15px;
  }
  .app-shell {
    margin-left: 200px;
  }
  main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .agenda-layout,
  .booking-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
  }
  .panel {
    padding: 20px;
  }
  h1 {
    font-size: 30px;
  }
  .heading-row {
    align-items: start;
  }
  .heading-row > .primary {
    margin-top: 25px;
  }
  .stat {
    padding: 18px;
  }
  .stat small {
    max-width: 150px;
    line-height: 1.6;
  }
  .stat-icon {
    right: 12px;
    width: 26px;
    height: 26px;
  }
  .workspace {
    padding: 10px 5px;
  }
  .workspace small {
    font-size: 8px;
  }
  .brand {
    padding-left: 8px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 15px 20px;
    display: block;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 34px;
  }
  .brand-sub {
    font-size: 8px;
  }
  .workspace,
  .nav-label,
  .sidebar-note {
    display: none;
  }
  nav {
    display: flex;
    margin-top: 17px;
    gap: 5px;
    overflow: auto;
  }
  .nav-item {
    font-size: 10px;
    padding: 10px;
    white-space: nowrap;
  }
  .nav-item > span:first-child {
    font-size: 16px;
  }
  .nav-dot {
    display: none;
  }
  .app-shell {
    margin-left: 0;
  }
  .topbar {
    height: 55px;
  }
  .agenda-layout,
  .booking-layout {
    grid-template-columns: 1fr;
  }
  .right-column {
    grid-template-columns: 1fr 1fr;
  }
  .booking-aside {
    display: none;
  }
  .dark-card h2 {
    font-size: 21px;
  }
  .orbit {
    margin: 15px 0;
  }
  .dark-card {
    padding: 22px;
  }
  .heading-row {
    margin-top: 25px;
  }
  .integration-grid {
    gap: 15px;
  }
}
@media (max-width: 520px) {
  main {
    padding: 18px;
  }
  .topbar {
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .demo-pill {
    font-size: 8px;
  }
  .demo-notice {
    font-size: 9px;
    padding: 10px;
  }
  .heading-row {
    display: block;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 29px;
  }
  .heading-row > .primary {
    margin-top: 20px;
    width: 100%;
  }
  .context-row {
    display: block;
  }
  .business-select select {
    min-width: 0;
    width: 100%;
  }
  .timezone {
    display: block;
    margin-top: 10px;
    font-size: 9px;
  }
  .stat-grid {
    gap: 7px;
    margin-bottom: 18px;
  }
  .stat {
    padding: 15px 11px;
  }
  .stat-icon {
    display: none;
  }
  .stat p {
    font-size: 9px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat small {
    font-size: 8px;
    line-height: 1.6;
  }
  .panel {
    padding: 18px;
  }
  .panel-heading {
    gap: 10px;
  }
  h2 {
    font-size: 17px;
  }
  .date-control input {
    max-width: 143px;
    font-size: 10px;
    padding: 9px;
  }
  .right-column {
    grid-template-columns: 1fr;
  }
  .progress-card {
    display: none;
  }
  .booking-panel .panel-heading {
    align-items: start;
  }
  .steps {
    gap: 23px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 12px;
  }
  .service-card .service-description {
    font-size: 9px;
  }
  .form-footer {
    display: block;
  }
  .form-footer button {
    width: 100%;
    margin-top: 18px;
  }
  .slot {
    padding: 10px 13px;
  }
  .service-table th,
  .service-table td {
    padding: 13px 5px;
    font-size: 10px;
  }
  .service-table th {
    font-size: 8px;
  }
  .service-table td small {
    font-size: 9px;
  }
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .footer-right {
    float: none;
    display: block;
    margin-top: 8px;
  }
  .booking-row {
    grid-template-columns: 52px 1fr;
  }
  .booking-row .badge {
    grid-column: 2;
    justify-self: start;
  }
  .empty {
    padding: 25px 10px;
    min-height: 260px;
  }
}
/* v0.2: clear calendars, editable services and a focused client journey. */
:root {
  --muted: #64717e;
}
body {
  font-size: 14px;
}
.nav-item {
  font-size: 14px;
  min-height: 48px;
}
.nav-label,
.eyebrow {
  font-size: 11px;
}
.subtitle {
  font-size: 15px;
}
.demo-notice {
  font-size: 12px;
}
.business-select {
  font-size: 12px;
}
.business-select select {
  font-size: 14px;
  min-width: 320px;
}
.timezone {
  font-size: 12px;
}
.primary,
.secondary,
.danger {
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  border-radius: 8px;
  padding: 12px 17px;
}
.secondary {
  background: white;
  border: 1px solid #dce2e5;
  color: #46545e;
}
.secondary:hover {
  background: #f5f7f7;
}
.danger {
  background: #b94c40;
  color: white;
}
.text-button {
  font-size: 13px;
}
.stat p {
  font-size: 13px;
  color: #5b6771;
}
.stat small {
  font-size: 11px;
  color: #71808b;
}
.stat strong {
  font-size: 32px;
}
.heading-row .eyebrow {
  font-size: 10px;
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.calendar-title h2 {
  text-transform: capitalize;
  font-size: 23px;
  margin-top: 8px;
}
.view-switch {
  display: flex;
  background: #eef1f3;
  border-radius: 9px;
  padding: 4px;
  gap: 3px;
}
.view-switch button {
  background: transparent;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 13px;
  color: #61717b;
}
.view-switch button[aria-pressed="true"] {
  background: white;
  box-shadow: 0 1px 5px #26384415;
  color: #263f37;
  font-weight: 650;
}
.calendar-controls {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.calendar-navigation {
  display: flex;
  gap: 7px;
  align-items: center;
}
.icon-button {
  width: 41px;
  height: 42px;
  border: 1px solid #dfe5e7;
  background: white;
  border-radius: 7px;
  font-size: 25px;
  color: #64737d;
  display: grid;
  place-items: center;
}
.date-control input {
  font-size: 13px;
  max-width: 175px;
  min-height: 44px;
}
.staff-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #697783;
  font-size: 12px;
}
.staff-filter select {
  font-size: 13px;
  min-height: 44px;
}
.agenda-legend {
  display: flex;
  gap: 18px;
  padding: 9px 0 17px;
}
.staff-legend {
  font-size: 12px;
  color: #68767e;
  display: flex;
  align-items: center;
  gap: 7px;
}
.staff-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tone);
}
.tone-0 {
  --tone: #648c7b;
  --tint: #edf4f0;
  --text: #345d4e;
}
.tone-1 {
  --tone: #a080c2;
  --tint: #f3eef8;
  --text: #765793;
}
.tone-2 {
  --tone: #ce9064;
  --tint: #fcf1e8;
  --text: #9a653f;
}
.tone-3 {
  --tone: #6e9bbf;
  --tint: #eef5fb;
  --text: #486e90;
}
.calendar-hint {
  font-size: 12px;
  color: #71808a;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 18px;
}
.agenda-list {
  padding-top: 0;
}
.agenda-layout:has(.expanded-calendar) > .right-column {
  display: none;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid #e2e7e9;
  border-radius: 10px;
  overflow: hidden;
  min-height: 365px;
}
.week-day {
  border-right: 1px solid var(--line);
  background: white;
  min-width: 0;
}
.week-day:last-child {
  border: 0;
}
.day-heading {
  background: #fafbfc;
  padding: 17px 6px;
  width: 100%;
  border-bottom: 1px solid var(--line);
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #70808b;
}
.day-heading > span {
  text-transform: capitalize;
  font-size: 12px;
}
.day-heading strong {
  font-size: 24px;
  color: #33424d;
  font-weight: 550;
}
.day-heading small {
  font-size: 10px;
}
.is-today .day-heading {
  background: #f2f6f3;
}
.is-today .day-heading strong {
  background: #456d5b;
  color: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
}
.week-events {
  padding: 10px 7px;
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 255px;
}
.calendar-event {
  background: var(--tint);
  border-left: 3px solid var(--tone);
  color: var(--text);
  border-radius: 6px;
  padding: 11px 9px;
  text-align: left;
  width: 100%;
  display: grid;
  gap: 7px;
  min-width: 0;
}
.calendar-event:hover {
  filter: brightness(0.97);
  box-shadow: 0 2px 8px #263a3010;
}
.event-time {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.calendar-event strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.event-staff {
  font-size: 10px;
  opacity: 0.8;
}
.add-day {
  border: 1px dashed #dce5df;
  color: #9bafa3;
  background: white;
  border-radius: 6px;
  min-height: 40px;
  font-size: 21px;
}
.add-day:hover {
  background: #f5f9f6;
  color: #557d63;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.weekday-label {
  font-size: 12px;
  color: #78848d;
  text-align: center;
  padding: 12px;
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
}
.month-day {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 130px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.month-day:nth-child(7n) {
  border-right: 0;
}
.month-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  text-align: left;
  font-size: 13px;
  padding: 5px;
  color: #475a63;
  min-height: 28px;
}
.month-date small {
  font-size: 10px;
  border-radius: 50%;
  background: #edf1ee;
  padding: 3px 6px;
  color: #5c7a67;
}
.month-date small:empty {
  display: none;
}
.outside-month {
  background: #fafbfc;
}
.outside-month .month-date {
  color: #b4bdc3;
}
.is-today .month-date {
  color: #426c57;
  font-weight: 750;
}
.is-today .month-date:before {
  content: "•";
  margin-right: 5px;
}
.calendar-event.compact {
  padding: 6px;
  gap: 3px;
  border-left-width: 2px;
}
.compact .event-time {
  font-size: 10px;
}
.compact strong {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact .event-staff {
  display: none;
}
.more-events {
  font-size: 10px;
  background: none;
  text-align: left;
  color: #728b7c;
  padding: 4px;
}
.day-event-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.day-hour {
  font-size: 14px;
  font-weight: 650;
}
.day-hour small {
  font-size: 12px;
  color: #8a969e;
  font-weight: 400;
  margin-top: 8px;
}
.day-event-row .calendar-event {
  padding: 17px;
}
.day-event-row .calendar-event strong {
  font-size: 15px;
}
.day-event-row .event-staff,
.day-event-row .event-time {
  font-size: 12px;
}
.service-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0;
}
.search-field {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #70808a;
}
.search-field input {
  padding: 12px;
  border: 1px solid #dfe5e8;
  border-radius: 8px;
  font-size: 14px;
  min-width: 280px;
}
.archive-toggle {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #71818b;
}
.archive-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #557f68;
}
.service-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.admin-service {
  border: 1px solid #e2e7e9;
  border-radius: 11px;
  padding: 21px;
  display: flex;
  flex-direction: column;
}
.admin-service.is-archived {
  background: #f8f9fa;
}
.admin-service-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.service-visual {
  background: var(--tint, #f2f0ea);
  color: var(--text, #7b786b);
  width: 42px;
  height: 44px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.category-chip {
  font-size: 11px;
  color: #86939b;
}
.admin-service h3 {
  font-size: 18px;
  line-height: 1.4;
}
.admin-service > p {
  font-size: 13px;
  line-height: 1.7;
  color: #7b8991;
  margin-top: 10px;
  min-height: 44px;
}
.service-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 19px 0;
  font-size: 12px;
  color: #71808a;
}
.service-facts b {
  font-weight: 600;
  color: #42545e;
}
.service-facts span:last-child {
  font-size: 11px;
}
.service-people {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  margin-bottom: 22px;
  color: #8c989f;
}
.person-chip {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 5px;
  background: var(--tint);
  color: var(--text);
}
.service-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: auto;
}
.service-actions .secondary {
  font-size: 12px;
  padding: 10px 12px;
}
.remove-service {
  background: none;
  color: #b5847b;
  font-size: 12px;
  padding: 10px;
}
.person-avatar {
  background: var(--tint);
  color: var(--text);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
}
.team-grid {
  gap: 18px;
}
.team-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 19px;
  min-width: 240px;
}
.team-card strong {
  font-size: 15px;
}
.team-card small {
  font-size: 12px;
  line-height: 1.5;
}
.team-heading {
  font-size: 18px;
}
.field-help {
  font-size: 13px;
  line-height: 1.7;
  color: #73828d;
  margin-top: 9px;
}
.service-card {
  padding: 19px;
  gap: 15px;
  border-radius: 10px;
}
.service-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.service-card:has(input:focus-visible) {
  outline: 3px solid #c8a1f2;
}
.service-card strong {
  font-size: 16px;
}
.service-card .service-description {
  font-size: 13px;
  line-height: 1.6;
  color: #78868f;
  max-width: 330px;
}
.service-meta {
  display: block;
  font-size: 12px;
  color: #81918a;
  margin-top: 8px;
}
.service-price {
  font-size: 15px;
}
.card-arrow {
  color: #bb9b88;
  font-size: 19px;
}
.service-card:has(input:checked) {
  background: #f5f9f6;
  border: 2px solid #749b82;
  padding: 18px;
}
.form-row {
  margin-top: 24px;
  margin-bottom: 24px;
  gap: 20px;
}
.form-row label,
#service-form > label {
  font-size: 14px;
  font-weight: 550;
  display: grid;
  gap: 9px;
}
.form-row input,
.form-row select {
  font-size: 15px;
  min-height: 48px;
  border-radius: 8px;
}
legend {
  font-size: 18px;
  margin-bottom: 15px;
}
.field-help + div {
  margin-top: 18px;
}
.steps {
  padding: 25px 0 30px;
  gap: 35px;
}
.steps li {
  font-size: 16px;
}
.steps li span {
  font-size: 14px;
}
.steps li.current {
  font-weight: 650;
  color: #48705c;
}
.steps .current {
  border-bottom: 2px solid #71947c;
  padding-bottom: 8px;
}
.step-footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.step-footer > span {
  font-size: 12px;
  color: #829098;
}
.chosen-service {
  background: #f3f7f4;
  color: #54705e;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
}
.quick-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin: 0 0 28px;
}
.date-chip {
  display: grid;
  gap: 7px;
  padding: 12px 5px;
  border: 1px solid #e2e8e4;
  background: white;
  border-radius: 8px;
  color: #778a7d;
}
.date-chip span {
  font-size: 11px;
  text-transform: capitalize;
}
.date-chip strong {
  font-size: 19px;
  font-weight: 550;
}
.date-chip.selected {
  background: #3c6550;
  color: white;
  border-color: #3c6550;
}
.slots {
  display: block;
}
.slot-section {
  margin-bottom: 23px;
}
.slot-section > p {
  font-size: 12px;
  color: #8b979f;
  margin-bottom: 12px;
}
.slot-section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.slot {
  min-width: 75px;
  font-size: 14px;
  padding: 13px 16px;
}
.booking-summary {
  border: 1px solid #e3e9e5;
  border-radius: 10px;
  padding: 25px;
  margin: 20px 0;
}
.booking-summary h2 {
  margin-top: 17px;
  font-size: 23px;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 16px;
  font-size: 14px;
  margin: 24px 0 0;
}
.detail-list dt {
  color: #7b8b95;
}
.detail-list dd {
  margin: 0;
  color: #40545f;
  line-height: 1.5;
}
.form-footer p {
  font-size: 13px;
  max-width: 330px;
}
.success-panel p {
  font-size: 15px;
}
.booking-aside p {
  font-size: 13px;
}
.booking-aside h3 {
  font-size: 17px;
}
.empty p {
  font-size: 14px;
  max-width: 330px;
}
.empty h3 {
  font-size: 18px;
}
.empty-copy {
  font-size: 15px;
  color: #72848b;
  padding: 25px 0;
  line-height: 1.7;
}
.client-mode .sidebar {
  display: none;
}
.client-mode .app-shell {
  margin-left: 0;
}
.client-mode main {
  max-width: 1190px;
}
.client-mode .context-row {
  display: none;
}
.client-mode #new-booking {
  display: none;
}
.client-mode .booking-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.client-mode .heading-row {
  margin: 30px 0;
}
.client-mode .demo-notice {
  margin-bottom: 15px;
}
.client-mode .topbar {
  padding-left: max(30px, calc((100vw - 1110px) / 2));
  padding-right: max(30px, calc((100vw - 1110px) / 2));
}
.client-mode .breadcrumb {
  font-size: 14px;
}
.booking-panel {
  padding: 30px;
}
.booking-panel .panel-heading h2 {
  font-size: 24px;
}
.booking-panel .panel-heading .eyebrow {
  font-size: 10px;
}
dialog {
  border: 1px solid #e2e7e9;
  border-radius: 15px;
  padding: 28px;
  max-width: min(590px, calc(100vw - 30px));
  width: 590px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 100px #172e3325;
  color: var(--ink);
}
dialog::backdrop {
  background: #1b303e65;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.dialog-header h2 {
  font-size: 24px;
}
.dialog-header .eyebrow {
  font-size: 10px;
  margin-bottom: 10px;
}
.dialog-header .icon-button {
  border: 0;
  background: #f4f6f7;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
#service-form > label {
  margin-bottom: 20px;
}
#service-form input:not([type="checkbox"]),
#service-form textarea {
  font-size: 15px;
  border: 1px solid #dbe2e5;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  color: #3f535c;
}
#service-form small {
  font-size: 11px;
  color: #89969e;
  font-weight: 400;
}
#service-form .form-row {
  margin: 0 0 20px;
}
.assign-field {
  margin-top: 25px;
}
.assign-field legend {
  font-size: 15px;
}
.staff-checkboxes {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}
.staff-choice {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid #e1e7e3;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.staff-choice:has(input:checked) {
  background: #f4f8f5;
  border-color: #8da997;
}
.staff-choice input {
  width: 18px;
  height: 18px;
  accent-color: #507f66;
}
.staff-choice small {
  margin-top: 5px;
}
#service-error,
#archive-error {
  font-size: 13px;
  color: #af4b3b;
  line-height: 1.7;
}
#archive-description {
  font-size: 16px;
  line-height: 1.6;
}
.appointment-service {
  padding: 20px;
  background: var(--tint);
  border-radius: 9px;
  color: var(--text);
}
.appointment-service h3 {
  font-size: 22px;
}
.appointment-service p {
  font-size: 13px;
  margin-top: 8px;
}
footer {
  font-size: 11px;
}
@media (max-width: 1100px) {
  .week-grid {
    min-width: 800px;
  }
  .mode-week {
    overflow-x: auto;
  }
  .month-grid {
    min-width: 660px;
  }
  .mode-month {
    overflow-x: auto;
  }
  .calendar-controls {
    align-items: start;
  }
  .client-mode .booking-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
}
@media (max-width: 850px) {
  .nav-item {
    font-size: 13px;
  }
  .client-mode .booking-layout {
    grid-template-columns: 1fr;
  }
  .client-mode .booking-aside {
    display: none;
  }
  .calendar-title h2 {
    font-size: 20px;
  }
  .client-mode .topbar {
    padding: 0 20px;
  }
  .calendar-toolbar {
    gap: 12px;
  }
  .service-admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}
@media (max-width: 520px) {
  .nav-item {
    font-size: 12px;
    padding: 10px;
  }
  .nav-item > span:first-child {
    font-size: 15px;
  }
  .demo-notice {
    font-size: 11px;
  }
  .demo-notice > span {
    display: none;
  }
  .subtitle {
    font-size: 14px;
  }
  .business-select select {
    min-width: 0;
    width: 100%;
    font-size: 13px;
  }
  .stat p {
    font-size: 11px;
  }
  .stat small {
    font-size: 9px;
  }
  .stat strong {
    font-size: 26px;
  }
  .calendar-toolbar {
    display: grid;
  }
  .view-switch {
    justify-self: start;
  }
  .view-switch button {
    padding: 10px 20px;
  }
  .calendar-navigation {
    gap: 4px;
    flex-wrap: wrap;
  }
  .calendar-navigation .secondary {
    padding: 10px;
  }
  .date-control input {
    max-width: 145px;
  }
  .staff-filter {
    width: 100%;
    justify-content: space-between;
  }
  .staff-filter select {
    flex: 1;
    margin-left: 10px;
  }
  .calendar-title h2 {
    font-size: 21px;
  }
  .calendar-hint {
    font-size: 11px;
  }
  .service-tools {
    display: grid;
    gap: 15px;
  }
  .search-field input {
    min-width: 0;
    width: 100%;
  }
  .service-admin-grid {
    grid-template-columns: 1fr;
  }
  .panel-heading {
    align-items: start;
    flex-wrap: wrap;
  }
  .panel-heading .primary {
    width: 100%;
  }
  .field-help {
    font-size: 13px;
  }
  .team-card {
    width: 100%;
  }
  .booking-panel {
    padding: 20px;
  }
  .booking-panel .panel-heading h2 {
    font-size: 21px;
  }
  .booking-panel .panel-heading .eyebrow {
    font-size: 9px;
  }
  .steps {
    gap: 21px;
  }
  .steps li {
    font-size: 14px;
    gap: 6px;
  }
  .steps li span {
    font-size: 12px;
  }
  .service-card {
    padding: 14px;
    gap: 10px;
  }
  .service-card:has(input:checked) {
    padding: 13px;
  }
  .service-card .service-description {
    font-size: 12px;
  }
  .service-card strong {
    font-size: 15px;
  }
  .service-meta {
    font-size: 11px;
  }
  .service-price {
    font-size: 13px;
  }
  .service-visual {
    width: 33px;
    height: 38px;
    font-size: 16px;
  }
  .card-arrow {
    display: none;
  }
  .step-footer {
    flex-wrap: wrap;
  }
  .step-footer > .primary {
    margin-left: auto;
  }
  .step-footer > span {
    font-size: 12px;
  }
  .client-mode h1 {
    font-size: 28px;
  }
  .client-mode .heading-row {
    margin: 25px 0;
  }
  .client-mode .topbar-right {
    gap: 9px;
  }
  .client-mode .topbar .demo-pill,
  .client-mode .topbar .avatar {
    display: none;
  }
  .client-mode #return-studio {
    font-size: 12px;
    min-height: 38px;
    padding: 9px;
  }
  .slot {
    min-width: 65px;
    padding: 12px;
    font-size: 14px;
  }
  .quick-dates {
    gap: 4px;
  }
  .date-chip {
    padding: 10px 3px;
  }
  .date-chip span {
    font-size: 10px;
  }
  .date-chip strong {
    font-size: 17px;
  }
  .detail-list {
    font-size: 13px;
    gap: 15px;
    grid-template-columns: 1fr 1.3fr;
  }
  .booking-summary {
    padding: 20px;
  }
  .day-event-row {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }
  .day-event-row > .badge {
    display: none;
  }
  dialog {
    padding: 22px;
  }
  .dialog-header h2 {
    font-size: 22px;
  }
  #service-form .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  #service-form .form-row label {
    font-size: 12px;
  }
  .dialog-footer {
    gap: 8px;
  }
  .dialog-footer button {
    font-size: 12px;
    padding: 11px 12px;
  }
  .month-grid {
    min-width: 620px;
  }
  .week-grid {
    min-width: 850px;
  }
  .service-actions .secondary {
    font-size: 13px;
  }
  .booking-aside {
    display: none;
  }
}
/* Keep the actual calendar above the optional metrics. */
/* Team schedules and temporary unavailability. */
.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.member-row small {
  font-size: 12px;
  color: #617567;
  margin-top: 7px;
}
#member-form {
  margin-top: 25px;
}
#member-form > label,
#payment-settings-form > label {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  font-size: 14px;
}
#member-form .check-line,
#payment-settings-form .check-line {
  display: flex;
}
#member-error,
#payment-settings-error {
  font-size: 14px;
  line-height: 1.7;
  color: #975943;
}
.integration-card > .secondary {
  margin-top: 20px;
  justify-self: start;
}
.staff-user [data-view="booking"] {
  display: none !important;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.template-card {
  padding: 22px;
  border: 1px solid #dce5df;
  border-radius: 10px;
  display: grid;
  gap: 12px;
}
.document-symbol {
  font-size: 29px;
  color: #728d7b;
}
.template-card p,
.template-card small {
  font-size: 13px;
  color: #5f7468;
  line-height: 1.7;
}
.template-card button {
  justify-self: start;
  margin-top: 8px;
}
.consent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
}
.consent-row h3 {
  font-size: 17px;
  margin: 10px 0;
}
.consent-row p {
  font-size: 13px;
  color: #617466;
}
.consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.consent-actions button,
.consent-actions a {
  font-size: 12px;
  padding: 12px 15px;
}
.template-field {
  padding: 18px;
  border: 1px solid #dce5df;
  border-radius: 9px;
  display: grid;
  gap: 12px;
  margin: 15px 0;
}
.template-field > label,
#template-form > label,
#consent-create-form > label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  margin: 16px 0;
}
.template-field .check-line,
#template-form .check-line {
  display: flex;
}
.template-field .remove-service {
  justify-self: end;
}
#template-dialog {
  width: 740px;
  max-width: calc(100vw - 30px);
}
.signature-modes {
  display: flex;
  gap: 10px;
  margin: 20px 0 14px;
}
.signature-modes button {
  font-size: 13px;
  padding: 12px;
}
.signature-canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #cbd9cf;
  border-radius: 9px;
  touch-action: none;
  background: #fff;
}
.typed-signature {
  display: grid;
  gap: 8px;
  margin: 15px 0;
  font-size: 14px;
}
.typed-signature input {
  padding: 13px;
  border: 1px solid #cbd9cf;
  border-radius: 8px;
  width: 100%;
  font: inherit;
}
.document-page {
  background: #eff3f0;
}
.sign-panel {
  max-width: 850px;
  margin: 30px auto;
  background: white;
  padding: 36px;
  border: 1px solid #dce5df;
  border-radius: 12px;
}
.sign-panel h1 {
  font-size: 28px;
  line-height: 1.5;
}
.sign-panel .subtitle {
  margin: 15px 0 25px;
}
.document-body {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 15px;
  margin: 28px 0;
  color: #405b4a;
}
.consent-question {
  padding: 22px 0;
  margin: 0;
  border: 0;
  border-top: 1px solid #e0e8e2;
}
.consent-question legend {
  font-size: 16px;
  font-weight: 550;
  line-height: 1.7;
}
.consent-question > label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 24px;
  font-size: 15px;
}
.consent-question textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbd9cf;
  border-radius: 8px;
  font: inherit;
}
.sign-panel .check-line {
  font-size: 14px;
  line-height: 1.8;
  margin: 20px 0;
}
.sign-panel .demo-notice {
  display: block;
  padding: 14px;
  font-size: 12px;
  line-height: 1.8;
}
.sign-panel #submit-sign {
  margin-top: 10px;
}
#sign-status,
#template-error,
#consent-create-error,
#staff-sign-error,
#documents-error {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 18px;
  color: #975943;
}
#sign-print {
  display: inline-block;
  margin-top: 20px;
}
#consent-link-result {
  padding: 20px;
  background: #eef6f0;
  border-radius: 9px;
}
#consent-link-result a {
  display: inline-block;
  margin-top: 17px;
}
.login-page {
  background: #f1f5f2;
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.login-panel {
  max-width: 500px;
  margin: 40px 20px;
  background: white;
  border: 1px solid #dce5df;
  border-radius: 15px;
  padding: 40px;
}
.login-panel .brand {
  padding: 0;
  margin-bottom: 40px;
  font-size: 22px;
  letter-spacing: 1px;
}
.login-panel .brand span {
  font-size: 12px;
}
.login-panel h1 {
  margin: 18px 0;
  font-size: 32px;
}
.login-panel .subtitle {
  font-size: 15px;
  line-height: 1.8;
}
.login-panel #google-signin {
  margin: 30px 0;
}
.login-panel #login-status {
  font-size: 14px;
  line-height: 1.8;
  color: #866247;
}
.login-panel .field-help {
  margin-top: 30px;
}
.staff-user [data-view="services"],
.staff-user [data-view="clients"],
.staff-user [data-view="documents"],
.staff-user [data-view="roadmap"],
.staff-user [data-view="stats"],
.staff-user [data-view="worklists"],
.staff-user [data-view="invoices"],
.staff-user #appointment-invoice,
.staff-user #new-booking,
.staff-user #add-staff,
.staff-user .business-select,
.staff-user #appointment-meta-form,
.staff-user .cancel-details {
  display: none !important;
}
@media (max-width: 650px) {
  .consent-row {
    display: grid;
  }
  .consent-actions {
    justify-content: start;
  }
  .sign-panel {
    margin: 12px;
    padding: 23px;
  }
  .sign-panel h1 {
    font-size: 24px;
  }
  .signature-modes {
    flex-wrap: wrap;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
  .login-panel {
    padding: 28px;
  }
  .template-card h3 {
    font-size: 17px;
  }
}
.timeline-scroll {
  max-height: 650px;
  overflow: auto;
  border: 1px solid #dce5df;
  border-radius: 10px;
}
.timeline-columns {
  display: grid;
  min-width: 450px;
}
.timeline-heading {
  height: 50px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f5f8f6;
  border-bottom: 1px solid #dce5df;
  padding: 16px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #3d5d4b;
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.timeline-heading i {
  width: 8px;
  height: 8px;
  background: var(--dot, #547e68);
  border-radius: 50%;
}
.timeline-person {
  border-left: 1px solid #dce5df;
}
.timeline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 59px, #e6ece8 59px, #e6ece8 60px);
}
.time-axis .timeline-grid {
  background: #fafcfb;
}
.axis-label {
  font-size: 10px;
  color: #7b8d81;
  align-self: start;
  padding: 3px 6px;
}
.timeline-event {
  grid-column: 1;
  min-height: 0;
  align-self: stretch;
  z-index: 1;
  margin: 1px 3px;
}
.timeline-event > .calendar-event {
  height: 100%;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  border-radius: 5px;
  padding: 3px 5px;
  overflow: hidden;
  text-align: left;
}
.timeline-event .event-time {
  font-size: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.timeline-event strong {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-event .event-staff {
  display: none;
}
.timeline-person .timeline-grid:empty {
  background-color: #fcfdfc;
}
.client-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.client-card,
.project-card {
  border: 1px solid #dfe6e2;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: white;
}
.client-card h3,
.project-card h3 {
  font-size: 19px;
  line-height: 1.5;
}
.client-card p,
.project-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #5b6f65;
}
.client-card small,
.project-card small {
  font-size: 12px;
  color: #6c7973;
}
.client-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #e9f1ec;
  border-radius: 50%;
  color: #426b53;
  font-size: 20px;
  margin-bottom: 5px;
}
.client-card .service-actions,
.project-card .service-actions {
  margin-top: auto;
  gap: 10px;
}
.client-card .service-actions button,
.project-card .service-actions button {
  font-size: 12px;
}
.projects-panel {
  margin-top: 24px;
}
.project-card > .badge {
  align-self: start;
  margin-bottom: 10px;
}
.history-list {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}
.history-list > article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.history-list h3 {
  font-size: 17px;
  margin: 12px 0 8px;
}
.history-list p,
.history-list small,
.history-note {
  font-size: 13px;
  line-height: 1.7;
  color: #586e62;
  white-space: pre-wrap;
}
.history-list small {
  margin-top: 8px;
}
.demo-client-link {
  padding: 18px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  display: grid;
  gap: 15px;
}
.demo-client-link label {
  font-size: 13px;
  display: grid;
  gap: 8px;
}
.demo-client-link select {
  padding: 12px;
  border: 1px solid #d8e2db;
  border-radius: 8px;
  width: 100%;
  font: inherit;
}
.demo-client-link small {
  font-size: 12px;
  line-height: 1.6;
  color: #667b6c;
}
#client-form > label,
#project-form > label,
#appointment-meta-form > label {
  display: grid;
  gap: 9px;
  margin: 17px 0;
  font-size: 14px;
}
dialog textarea {
  font: inherit;
  width: 100%;
  border: 1px solid #dbe2e5;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
}
#client-form .check-line {
  display: flex;
}
.cancel-details {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.cancel-details summary {
  font-size: 13px;
  color: #a96050;
  cursor: pointer;
}
.cancel-details button {
  margin-top: 16px;
}
#client-save-error,
#project-save-error,
#appointment-meta-error,
#clients-error {
  color: #a5372e;
  font-size: 14px;
  line-height: 1.7;
}
.category-tabs,
.subcategory-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.category-tab,
.filter-chip {
  background: white;
  border: 1px solid #cfd9d4;
  color: #3c5146;
  border-radius: 9px;
  padding: 13px 20px;
  font-size: 15px;
}
.category-tab.selected {
  background: #355d49;
  color: white;
  border-color: #355d49;
}
.filter-chip {
  font-size: 13px;
  padding: 9px 15px;
  border-radius: 22px;
}
.filter-chip.selected {
  background: #e8f1eb;
  border-color: #789d88;
}
.selection-summary {
  font-size: 14px;
  color: #486453;
  line-height: 1.7;
  background: #eff6f1;
  padding: 13px 17px;
  margin: 20px 0;
  border-radius: 8px;
}
.selection-tick {
  border: 1px solid #a4b7aa;
  color: transparent;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 5px;
}
.service-card:has(input:checked) .selection-tick {
  background: #547d65;
  color: white;
  border-color: #547d65;
}
.deposit-label {
  display: block;
  font-size: 12px;
  color: #82673e;
  margin-top: 7px;
}
.review-items {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.review-items li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  line-height: 1.6;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.review-items strong {
  font-weight: 550;
}
.review-items span {
  white-space: nowrap;
}
.payment-demo-note {
  font-size: 13px;
  color: #765b32;
  background: #fff6e6;
  border-radius: 8px;
  padding: 15px;
  margin-top: 22px;
  line-height: 1.7;
}
.category-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.category-rule-card {
  border: 1px solid #d7e2da;
  background: #f6faf7;
  border-radius: 10px;
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.category-rule-card h3 {
  font-size: 16px;
}
.category-rule-card p,
.category-rule-card small {
  font-size: 12px;
  color: #526b5d;
  line-height: 1.7;
  margin-top: 6px;
}
.category-rule-card button {
  padding: 10px 12px;
  font-size: 13px;
}
#category-form > label {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  font-size: 14px;
}
.workday {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.workday-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.workday-heading label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 550;
}
.add-shift {
  background: #edf4ef;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #426b53;
}
.day-shifts {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.shift-row {
  display: grid;
  grid-template-columns: 1fr 15px 1fr 32px;
  align-items: center;
  gap: 10px;
}
.shift-row input[type="time"] {
  font-size: 14px;
  min-width: 0;
}
.remove-shift {
  background: #faf0ee;
  color: #955748;
  border-radius: 6px;
  font-size: 21px;
  width: 32px;
  height: 36px;
}
#category-error {
  color: #a5372e;
  line-height: 1.7;
  font-size: 14px;
}
#staff-dialog {
  width: 650px;
  max-width: calc(100vw - 30px);
}
.agenda-tools,
.team-actions,
.employee-heading,
.employee-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.agenda-tools {
  margin: 8px 0 18px;
  flex-wrap: wrap;
}
.agenda-tools .agenda-legend {
  margin: 0;
}
.team-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}
.employee-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: white;
}
.employee-heading {
  align-items: flex-start;
  justify-content: flex-start;
}
.employee-heading > div {
  flex: 1;
}
.employee-heading h3 {
  font-size: 19px;
}
.employee-heading p {
  font-size: 13px;
  color: #5e6b75;
  margin-top: 6px;
  line-height: 1.5;
}
.employee-heading > .badge {
  font-size: 11px;
}
.employee-hours {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.employee-hours > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.employee-hours strong {
  font-weight: 550;
}
.employee-actions {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 15px;
  flex-wrap: wrap;
}
.employee-actions .secondary {
  font-size: 13px;
  padding: 12px;
}
.employee-actions .text-button {
  font-size: 13px;
  padding: 10px;
}
.team-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: #5e6b75;
}
.team-shortcut button {
  flex-shrink: 0;
}
.blocks-panel {
  margin-top: 24px;
}
.blocks-panel .panel-heading label {
  font-size: 13px;
  display: grid;
  gap: 8px;
}
.blocks-panel select,
dialog select,
dialog input:not([type="checkbox"]) {
  font: inherit;
  border: 1px solid #dbe2e5;
  border-radius: 8px;
  padding: 12px;
  min-height: 46px;
  width: 100%;
  color: #304650;
  background: white;
}
#staff-form > label,
#block-form > label {
  display: grid;
  gap: 9px;
  font-size: 14px;
  margin-bottom: 20px;
}
#staff-form > .check-line,
#block-form > .check-line,
.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
input[type="checkbox"] {
  accent-color: #507c65;
}
.hours-grid {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}
.hours-row {
  display: grid;
  grid-template-columns: 1fr 110px 12px 110px;
  align-items: center;
  gap: 10px;
}
.hours-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.hours-row input:disabled {
  background: #f4f5f6;
  color: #9ba4ab;
}
.hours-row input[type="time"] {
  padding: 10px;
  font-size: 13px;
}
#staff-form h3 {
  margin-top: 26px;
}
#staff-error,
#block-error,
#block-detail-error,
#team-message {
  color: #a5372d;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
}
.block-list-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #e5d7c5;
  background: #fffcf7;
  border-radius: 10px;
  padding: 18px;
  text-align: left;
  margin-top: 14px;
  color: #584833;
}
.block-list-row > span:nth-child(2) {
  flex: 1;
}
.block-list-row strong {
  font-size: 15px;
  font-weight: 600;
}
.block-list-row small {
  font-size: 13px;
  margin-top: 7px;
  line-height: 1.6;
}
.block-list-row > span:last-child {
  font-size: 13px;
}
.block-symbol {
  font-size: 27px;
}
.empty-blocks {
  text-align: center;
  padding: 35px 20px;
  color: #5f6e76;
}
.empty-blocks > span {
  font-size: 30px;
}
.empty-blocks h3 {
  margin: 10px 0;
  font-size: 17px;
}
.empty-blocks p {
  font-size: 14px;
}
.blocked-event {
  background: repeating-linear-gradient(135deg, #f6f0e6, #f6f0e6 7px, #faf7f1 7px, #faf7f1 14px) !important;
  color: #685332 !important;
  border-left-color: #b69a6d !important;
}
.blocked-event .event-time,
.blocked-event .event-staff {
  color: #756345 !important;
}
.blocked-banner {
  padding: 20px;
  border-radius: 8px;
  font-size: 20px;
  background: #f7f0e4;
  color: #685332;
}
.is-archived {
  opacity: 0.75;
}
.week-day .day-heading small {
  font-size: 10px;
  line-height: 1.6;
}
.client-mode #view-team {
  display: none;
}
.team-actions {
  flex-wrap: wrap;
}
@media (max-width: 650px) {
  .team-actions {
    width: 100%;
  }
  .team-actions button {
    flex: 1;
  }
  .team-admin-grid {
    grid-template-columns: 1fr;
  }
  .hours-row {
    grid-template-columns: 1fr 94px 8px 94px;
    gap: 6px;
  }
  .hours-row input[type="time"] {
    padding: 8px;
    font-size: 12px;
  }
  .hours-row label {
    font-size: 12px;
  }
  .team-shortcut {
    display: grid;
  }
  .agenda-tools > .secondary {
    width: 100%;
  }
  .block-list-row {
    gap: 10px;
    padding: 14px;
  }
  .block-list-row strong {
    font-size: 14px;
  }
  .employee-heading {
    gap: 8px;
  }
  .employee-heading h3 {
    font-size: 17px;
  }
  .blocks-panel .panel-heading > label {
    width: 100%;
  }
  .team-shortcut button {
    justify-self: start;
  }
}
#view-agenda {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
#view-agenda > .agenda-layout {
  order: 1;
}
#view-agenda > .stat-grid {
  order: 2;
  margin-bottom: 0;
}
main:has(#view-agenda:not(.hidden)) .heading-row {
  margin: 21px 0 17px;
}
main:has(#view-agenda:not(.hidden)) .heading-row .eyebrow {
  display: none;
}
main:has(#view-agenda:not(.hidden)) h1 {
  font-size: 30px;
}
main:has(#view-agenda:not(.hidden)) .context-row {
  margin-bottom: 18px;
}
.calendar-toolbar {
  margin-bottom: 18px;
}
.week-grid {
  min-height: 340px;
}
.week-events {
  min-height: 225px;
}

#messages-dialog {
  max-width: 760px;
}
.outbox-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.message-preview {
  white-space: pre-wrap;
  font: inherit;
  overflow-wrap: anywhere;
}
#message-form {
  margin-top: 22px;
}
#calendar-connections {
  margin-top: 20px;
}

.operations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.operations-grid label,
#waiting-form label,
#income-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  margin: 16px 0;
}
.operations-grid input,
.operations-grid select,
.operations-grid textarea,
#waiting-form input,
#waiting-form select,
#waiting-form textarea,
#income-form input,
#income-form select {
  font: inherit;
  border: 1px solid #dce2e6;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  background: #fff;
  color: #33444c;
}
.form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.week-timeline .timeline-event > .calendar-event {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1px;
  padding: 2px 4px;
}
.week-timeline .timeline-event strong {
  white-space: normal;
  font-size: 10px;
  line-height: 1.25;
}
.week-timeline .timeline-event .event-time {
  font-size: 9px;
}
.week-timeline .timeline-heading {
  width: 100%;
  border: 0;
  font-size: 13px;
}
.staff-legend {
  display: flex;
  gap: 18px;
  padding: 12px;
  font-size: 12px;
}
.staff-legend > span {
  color: var(--dot, #547e68);
}
.is-today .timeline-grid {
  background-color: #fffaf1;
}
.staff-user [data-view="operations"],
.staff-user .owner-appointment-actions {
  display: none;
}
.owner-appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
#panel-move-slots {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 20px 0;
}
#panel-move-slots button {
  border: 1px solid #dce2e6;
  border-radius: 7px;
  background: white;
  padding: 10px;
}
#panel-move-slots button.selected {
  background: #304b43;
  color: white;
}
#extras-content h3 {
  margin: 20px 0 10px;
}
#extras-content p {
  font-size: 13px;
  line-height: 1.7;
}
.client-file-list {
  margin-top: 20px;
}
.client-file-list p {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
#client-history-dialog form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  margin: 16px 0;
}
@media (max-width: 900px) {
  .operations-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 580px) {
  .form-two-col {
    grid-template-columns: 1fr;
  }
  .owner-appointment-actions > button {
    width: 100%;
  }
}

.catalog-preview-image,
.private-reference-image {
  display: block;
  max-width: 280px;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  margin: 12px 0;
}
.dated-day {
  padding: 12px 0;
  border-bottom: 1px solid #e1e6e8;
  font-size: 13px;
}
.dated-shift {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
}
.dated-shift input {
  min-width: 0;
  margin: 0;
  padding: 7px;
  flex: 1;
  width: 100px;
}
.dated-shift button {
  font-size: 11px;
}
.dated-day > strong {
  font-size: 13px;
}
.dated-day > .text-button {
  font-size: 12px;
  padding: 8px 0;
}

#individual-message-form label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  font-size: 13px;
}
#individual-message-form input,
#individual-message-form select,
#individual-message-form textarea {
  font: inherit;
  border: 1px solid #dce2e6;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  background: white;
}
#individual-message-form {
  margin-top: 24px;
  border-top: 1px solid #e1e6e8;
  padding-top: 20px;
}

.timeline-closed {
  background: #dce1e5aa;
  grid-column: 1;
  z-index: 0;
  pointer-events: none;
  min-height: 0;
}
.week-time-grid .timeline-event,
.timeline-person .timeline-event {
  z-index: 1;
}

.event-client {
  display: block;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.week-timeline .event-client {
  font-size: 9px;
  line-height: 1.05;
}
.week-person-names {
  height: 22px;
  display: grid;
  border-bottom: 1px solid #dfe4e8;
  background: #f9fbfc;
  position: sticky;
  top: 50px;
  z-index: 3;
}
.week-person-names > span {
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  border-right: 1px solid #e1e5e9;
  color: var(--dot, #557966);
  padding: 3px 1px;
}
.week-timeline .time-axis > .timeline-heading {
  height: 72px;
}
.week-timeline .timeline-person > .timeline-heading {
  height: 50px;
}
.timeline-event .event-client {
  min-width: 0;
  max-width: 100%;
}
#extras-dialog > h3 {
  margin-top: 20px;
}

/* Studio workspace 0.7: a task-focused application, with room for the calendar. */
:root {
  --ink: #263343;
  --muted: #697687;
  --line: #e1e6ec;
  --bg: #f4f6f9;
  --accent: #346bde;
  font-size: 14px;
}
[hidden] {
  display: none !important;
}
.hidden {
  display: none !important;
}
.sidebar {
  width: 206px;
  padding: 20px 12px;
  overflow: auto;
}
.brand {
  font-size: 18px;
  padding: 0 8px;
  gap: 9px;
  letter-spacing: 1px;
}
.brand-mark {
  height: 32px;
  width: 32px;
  font-size: 31px;
  border-radius: 8px;
  background: #244f9e;
}
.brand-sub {
  font-size: 8px;
}
.workspace {
  margin: 22px 0 12px;
  padding: 9px 8px;
  background: #f3f6fb;
  border-color: #e1e7f1;
}
.workspace strong {
  font-size: 12px;
}
.workspace small {
  font-size: 10px;
}
.workspace-avatar {
  background: #e1eafa;
  color: #31599d;
}
.sidebar .business-select {
  font-size: 10px;
  color: #637087;
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}
.sidebar .business-select select {
  max-width: 100%;
  min-width: 0;
  font-size: 11px;
  padding: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.sidebar nav {
  gap: 2px;
}
.nav-group-label {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #8a94a3;
  margin: 16px 10px 6px;
}
.nav-item {
  font-size: 12px;
  padding: 10px;
  border-radius: 6px;
  gap: 10px;
  color: #596778;
  width: 100%;
}
.nav-item > span:first-child {
  font-size: 17px;
  width: 19px;
  text-align: center;
}
.nav-item.active {
  color: #245ac2;
  background: #e9effb;
}
.nav-item.active::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #346bde;
  margin-left: auto;
}
.sidebar-note {
  margin-top: 24px;
  padding: 16px 8px 0;
  font-size: 10px;
  line-height: 1.7;
}
.sidebar-note small {
  color: #8a95a5;
  font-size: 10px;
}
.app-shell {
  margin-left: 206px;
}
.topbar {
  height: 58px;
  padding: 0 24px;
}
.breadcrumb {
  font-size: 12px;
}
.breadcrumb strong {
  font-weight: 650;
  color: #263343;
}
.topbar-right {
  gap: 10px;
}
.topbar .secondary {
  font-size: 11px;
  padding: 8px 10px;
}
.topbar .timezone {
  font-size: 10px;
  color: #7b8796;
}
.demo-pill {
  padding: 5px 8px;
  font-size: 10px;
  background: #fff8e7;
  border-color: #f1e2b4;
  color: #8e7138;
}
.avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
main {
  padding: 14px 24px 0;
  max-width: none;
}
.demo-notice {
  padding: 8px 12px;
  margin: 0 0 14px;
  font-size: 11px;
  background: #fffaf0;
  border: 1px solid #efe3c6;
  border-radius: 6px;
  gap: 9px;
  line-height: 1.5;
}
.demo-notice p {
  font-size: 11px;
}
.demo-notice > span {
  font-size: 14px;
}
.heading-row,
main:has(#view-agenda:not(.hidden)) .heading-row {
  margin: 12px 0 18px;
  align-items: center;
}
.heading-row h1,
main:has(#view-agenda:not(.hidden)) h1 {
  font-size: 23px;
  letter-spacing: -0.7px;
  font-weight: 650;
}
.subtitle,
#page-subtitle {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 5px;
  color: #7b8796;
}
.primary {
  background: #346bde;
  color: white;
  border: 1px solid #346bde;
  box-shadow: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 15px;
}
.primary:hover {
  background: #285bc2;
}
.secondary {
  background: white;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  color: #4a5e79;
  font-size: 12px;
  padding: 9px 13px;
}
.secondary:hover {
  background: #f4f7fc;
}
.text-button {
  color: #346bde;
}
.context-row {
  display: none;
}
.panel {
  border: 1px solid var(--line);
  box-shadow: none;
  border-radius: 8px;
  padding: 22px;
  background: white;
}
.panel h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.panel h3 {
  font-size: 14px;
}
.panel .eyebrow {
  display: none;
}
.panel-heading {
  margin-bottom: 20px;
  gap: 15px;
}
.field-help {
  font-size: 12px;
  color: #768394;
  line-height: 1.65;
}
.projects-panel,
.blocks-panel {
  margin-top: 0;
}
.workspace-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 20px;
  overflow-x: auto;
}
.workspace-tabs [role="tab"] {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 10px 1px 12px;
  white-space: nowrap;
  font-size: 12px;
  color: #7b8796;
  flex-shrink: 0;
}
.workspace-tabs [aria-selected="true"] {
  color: #285bc2;
  font-weight: 650;
  border-bottom-color: #346bde;
}
.workspace-tab-panel {
  margin-top: 0;
}
.workspace-tab-panel .workspace-tabs {
  margin-bottom: 16px;
}
.workspace-tabs:empty {
  display: none;
}
.workspace-tabs:has([role="tab"]:only-child) {
  display: none;
}
.operations-grid {
  display: contents;
}
#view-agenda {
  gap: 14px;
}
.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 16px;
  align-items: start;
}
.agenda-panel {
  padding: 0;
  overflow: hidden;
}
.calendar-toolbar {
  padding: 16px 18px 0;
  margin: 0;
  gap: 15px;
}
.calendar-title h2 {
  font-size: 16px;
}
.calendar-title .eyebrow {
  display: none;
}
.view-switch {
  background: #f0f3f8;
  padding: 3px;
  border: 1px solid #e2e7ee;
  border-radius: 6px;
  gap: 2px;
}
.view-switch button {
  border-radius: 4px;
  background: transparent;
  font-size: 11px;
  padding: 6px 12px;
  color: #69788b;
  min-height: 30px;
}
.view-switch button[aria-pressed="true"] {
  background: white;
  box-shadow: 0 1px 3px #1f3d5e14;
  color: #345caa;
}
.calendar-controls {
  padding: 12px 18px;
  margin: 0;
  gap: 12px;
}
.calendar-navigation {
  gap: 6px;
}
.icon-button {
  width: 30px;
  height: 30px;
  font-size: 19px;
  border-radius: 5px;
}
.calendar-navigation .secondary {
  font-size: 11px;
  padding: 7px 10px;
}
.date-control input {
  font-size: 11px;
  padding: 6px 8px;
  min-width: 0;
  width: 124px;
  border-radius: 5px;
  border: 1px solid var(--line);
}
.staff-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  white-space: nowrap;
}
.staff-filter select {
  font-size: 11px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  max-width: 160px;
}
.agenda-tools {
  padding: 0 18px 12px;
  margin: 0;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
}
.calendar-search {
  flex: 1;
  min-width: 180px;
}
.calendar-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: #f9fafc;
  padding: 8px 10px;
  font-size: 11px;
  border-radius: 5px;
}
.agenda-tools .agenda-legend {
  display: none;
}
.agenda-tools .secondary {
  font-size: 11px;
  padding: 8px 10px;
}
.calendar-summary {
  font-size: 11px;
  color: #8591a1;
  padding: 5px 18px 0;
}
.timeline-scroll {
  max-height: calc(100vh - 350px);
  min-height: 330px;
  border: 0;
  border-radius: 0;
  overflow: auto;
}
.timeline-heading {
  height: 44px;
  background: #fbfcfe;
  border-bottom: 1px solid #e4eaf1;
  color: #45556c;
  font-size: 12px;
  padding: 12px;
  z-index: 4;
}
.timeline-heading i {
  width: 7px;
  height: 7px;
}
.timeline-grid {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 29px,
    #edf1f5 29px,
    #edf1f5 30px,
    transparent 30px,
    transparent 59px,
    #dde5ee 59px,
    #dde5ee 60px
  );
}
.timeline-closed {
  background: repeating-linear-gradient(135deg, #eef1f5, #eef1f5 5px, #e9edf2 5px, #e9edf2 6px);
}
.axis-label {
  font-size: 10px;
  color: #8b97a6;
  padding: 3px 6px;
}
.calendar-event {
  border-left-width: 3px !important;
  background: var(--soft, #eaf1ff) !important;
  color: #31435e !important;
  box-shadow: none;
}
.timeline-event {
  margin: 1px 3px;
}
.timeline-person:not(.time-axis) .timeline-event > .calendar-event {
  font-size: 11px;
  gap: 5px;
  padding: 3px 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  align-content: flex-start;
}
.timeline-event .event-time {
  font-size: 10px;
  font-weight: 600;
  color: #4f6380;
}
.timeline-event strong {
  font-size: 11px;
  font-weight: 600;
}
.timeline-event .event-client {
  font-size: 10px;
  flex-basis: 100%;
  color: #53647e;
}
.tone-0 {
  --soft: #eaf1ff;
  --dot: #4c7cd4;
}
.tone-1 {
  --soft: #f1eafb;
  --dot: #9870c5;
}
.tone-2 {
  --soft: #e6f5ee;
  --dot: #51a384;
}
.tone-3 {
  --soft: #fff1df;
  --dot: #d49a50;
}
.blocked-event {
  background: repeating-linear-gradient(135deg, #f1f0ee, #f1f0ee 5px, #e8e6e2 5px, #e8e6e2 6px) !important;
}
.calendar-hint {
  font-size: 10px;
  margin: 0;
  padding: 10px 18px;
  color: #8995a6;
  border-top: 1px solid var(--line);
}
.week-timeline .timeline-event > .calendar-event {
  gap: 0 !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  padding: 2px 3px !important;
}
.week-timeline .timeline-event strong {
  font-size: 10px;
}
.week-timeline .event-client {
  font-size: 9px;
}
.week-person-names {
  top: 50px;
}
.stat-grid.compact-metrics {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 12px 18px;
  margin: 0;
}
.compact-metrics .stat {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  margin: 0;
  background: none;
  flex: 1;
  border-right: 1px solid var(--line);
}
.compact-metrics .stat:first-child {
  padding-left: 0;
}
.compact-metrics .stat:last-child {
  border-right: 0;
}
.compact-metrics .stat p {
  font-size: 11px;
  margin: 0;
  color: #7b8796;
}
.compact-metrics .stat strong {
  font-size: 18px;
  order: -1;
}
.compact-metrics .stat small,
.compact-metrics .stat .stat-icon {
  display: none;
}
.agenda-client-rail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 16px 13px;
}
.rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.rail-heading h2 {
  font-size: 13px;
  font-weight: 650;
}
.rail-heading .text-button {
  font-size: 10px;
  padding: 0;
}
.agenda-client-rail > label input {
  width: 100%;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 10px;
  background: #fafbfd;
}
.agenda-client-rail > .field-help {
  font-size: 10px;
  margin-top: 16px;
}
.rail-client {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 0;
  border-bottom: 1px solid #eff2f6;
  background: none;
  text-align: left;
  color: #425268;
}
.rail-client > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.rail-client strong {
  font-size: 11px;
  font-weight: 550;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rail-client small {
  font-size: 9px;
  color: #98a1ae;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rail-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #edf2f9;
  color: #6980a5;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.rail-client:hover {
  background: #f7f9fd;
}
.rail-client > span:last-child {
  color: #a7b2c1;
}
.agenda-client-rail #rail-clients {
  max-height: calc(100vh - 450px);
  min-height: 150px;
  overflow: auto;
}
.inline-editor,
.category-settings {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 16px;
  margin-top: 18px;
  background: #fbfcfe;
}
.inline-editor summary,
.category-settings summary {
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
}
.category-settings {
  margin: 0 0 20px;
}
.category-settings .category-rules-grid {
  margin: 14px 0 0;
}
.category-rule-card {
  background: white;
}
.service-admin-grid {
  display: block;
}
.service-list-head,
.service-list-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(100px, 1fr) 80px 110px 140px;
  gap: 18px;
  align-items: center;
  padding: 15px 12px;
  border-bottom: 1px solid #e9edf3;
  font-size: 12px;
}
.service-list-head {
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8591a1;
  background: #f8fafc;
  border-top: 1px solid var(--line);
}
.service-list-row:hover {
  background: #fafcff;
}
.service-list-row h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.service-list-row small {
  font-size: 10px;
  color: #8e9bad;
  line-height: 1.5;
}
.service-list-row .service-actions {
  margin: 0;
  padding: 0;
  border: 0;
  gap: 8px;
}
.service-list-row button {
  font-size: 11px;
  padding: 7px 10px;
}
.service-list-row .person-chip {
  font-size: 10px;
  padding: 4px 6px;
  margin: 2px;
}
.service-list-row .price-cell {
  font-size: 12px;
}
.service-list-row .remove-service {
  font-size: 10px;
  padding: 6px;
}
.service-tools {
  margin: 0 0 20px;
}
.service-tools .search-field {
  font-size: 11px;
}
.service-tools input[type="search"] {
  font-size: 12px;
  padding: 10px 12px;
}
.archive-toggle {
  font-size: 11px;
}
.client-grid {
  display: block;
}
.client-card {
  display: grid;
  grid-template-columns: 36px minmax(150px, 1fr) minmax(150px, 1fr) 110px 210px;
  gap: 14px;
  align-items: center;
  padding: 15px 8px;
  border: 0;
  border-bottom: 1px solid #e9edf3;
  border-radius: 0;
}
.client-card:hover {
  background: #fafcff;
}
.client-card h3 {
  font-size: 13px;
  line-height: 1.5;
}
.client-card p {
  font-size: 11px;
}
.client-card small {
  font-size: 11px;
}
.client-avatar {
  width: 30px;
  height: 30px;
  font-size: 13px;
  margin: 0;
  background: #edf2fa;
  color: #7388a8;
}
.client-card .service-actions {
  margin: 0;
  gap: 7px;
}
.client-card .service-actions button {
  font-size: 10px;
  padding: 8px;
}
.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.project-card {
  border-radius: 7px;
  padding: 18px;
}
.employee-card {
  border-radius: 7px;
  padding: 18px;
}
.employee-hours {
  margin: 16px 0;
  padding-top: 13px;
  gap: 7px;
}
.employee-hours > div {
  font-size: 11px;
}
.employee-heading h3 {
  font-size: 15px;
}
.employee-heading p {
  font-size: 11px;
}
.employee-actions .secondary {
  font-size: 11px;
  padding: 8px 10px;
}
.template-card {
  padding: 18px;
  border-radius: 7px;
}
.template-card p {
  font-size: 12px;
}
.consent-row {
  padding: 16px;
  border-radius: 7px;
}
.consent-row h3 {
  font-size: 14px;
}
footer {
  font-size: 10px;
  margin: 20px 0;
  padding: 15px 0;
  color: #98a1ae;
}
dialog {
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 24px 70px #1d335632;
}
dialog::backdrop {
  background: #253b5855;
}
dialog h2 {
  font-size: 20px;
}
dialog label {
  font-size: 12px;
}
dialog input,
dialog select,
dialog textarea {
  font-size: 13px !important;
  border-radius: 6px !important;
}
.dialog-header {
  margin-bottom: 20px;
}
#appointment-dialog.appointment-workspace {
  width: 850px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 40px);
  padding: 22px 26px;
}
.appointment-workspace .workspace-tabs {
  margin-bottom: 18px;
  gap: 24px;
}
.appointment-workspace .owner-appointment-actions {
  justify-content: flex-end;
  margin: 0 0 15px;
}
.appointment-workspace .owner-appointment-actions #open-appointment-extras {
  display: none;
}
.appointment-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.appointment-overview #appointment-meta-form {
  margin: 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.appointment-overview .appointment-service {
  border-radius: 7px;
  padding: 16px;
  margin-bottom: 20px;
  background: #eef3fb;
}
.appointment-service h3 {
  font-size: 17px;
}
.appointment-service p {
  font-size: 11px;
  margin-top: 6px;
}
.appointment-overview .detail-list {
  font-size: 12px;
  gap: 15px;
  grid-template-columns: 1fr 1.2fr;
}
.appointment-overview #appointment-meta-form > .small-rule {
  display: none;
}
.appointment-overview #appointment-meta-form > label:first-of-type {
  margin-top: 0;
}
.appointment-overview .cancel-details {
  grid-column: 1/-1;
  margin-top: 0;
}
.appointment-workspace #income-form {
  max-width: 560px;
  margin: 0 auto;
}
.appointment-workspace #individual-message-form {
  margin: 0;
  border: 0;
  padding: 0;
}
.appointment-workspace #extras-content {
  min-height: 170px;
}
.appointment-workspace #extras-content h3 {
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin: 22px 0 10px;
  color: #596d86;
}
.appointment-workspace #extras-error {
  font-size: 12px;
  margin-top: 14px;
  color: #9c5f30;
}
.appointment-workspace #extras-content p {
  font-size: 12px;
  color: #66778d;
  line-height: 1.8;
}
.staff-user .agenda-client-rail,
.staff-user [data-view="projects"],
.staff-user [data-view="waiting"],
.staff-user [data-view="income"],
.staff-user #workspace-public {
  display: none !important;
}
.staff-user .agenda-layout {
  grid-template-columns: 1fr;
}
@media (min-width: 1600px) {
  .timeline-scroll {
    max-height: calc(100vh - 335px);
  }
  .agenda-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}
@media (max-width: 1150px) {
  .agenda-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .agenda-client-rail {
    display: none;
  }
  .client-card {
    grid-template-columns: 30px minmax(120px, 1fr) minmax(140px, 1fr) 180px;
  }
  .client-card small {
    display: none;
  }
  .service-list-head,
  .service-list-row {
    grid-template-columns: minmax(160px, 1.5fr) 100px 65px 100px 130px;
    gap: 10px;
  }
  .topbar .timezone {
    display: none;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    display: block;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .workspace,
  .sidebar .business-select,
  .sidebar .sidebar-note,
  .sidebar .nav-group-label {
    display: none;
  }
  .sidebar .brand {
    font-size: 16px;
  }
  .sidebar nav {
    display: flex;
    gap: 3px;
    overflow: auto;
    padding-top: 12px;
  }
  .sidebar .nav-item {
    width: auto;
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 11px;
    flex-shrink: 0;
  }
  .sidebar .nav-item > span:first-child {
    display: none;
  }
  .sidebar .nav-item.active::after {
    display: none;
  }
  .app-shell {
    margin-left: 0;
  }
  .topbar {
    height: 48px;
    padding: 0 16px;
  }
  .topbar .demo-pill {
    display: none;
  }
  .topbar-right {
    gap: 7px;
  }
  .topbar-right .avatar {
    display: none;
  }
  main {
    padding: 12px 16px 0;
  }
  .heading-row h1,
  main:has(#view-agenda:not(.hidden)) h1 {
    font-size: 22px;
  }
  .heading-row .primary {
    padding: 9px 11px;
  }
  .panel {
    padding: 16px;
  }
  .agenda-panel {
    padding: 0;
  }
  .calendar-toolbar {
    padding: 14px 13px 0;
  }
  .calendar-controls {
    padding: 12px 13px;
    flex-wrap: wrap;
  }
  .agenda-tools {
    padding: 0 13px 12px;
  }
  .calendar-summary {
    padding-left: 13px;
  }
  .timeline-scroll {
    max-height: 580px;
  }
  .client-card {
    grid-template-columns: 30px 1fr 160px;
    gap: 10px;
  }
  .client-card p {
    display: none;
  }
  .service-list-head {
    display: none;
  }
  .service-list-row {
    grid-template-columns: minmax(140px, 1fr) 90px 110px;
    padding: 14px 4px;
  }
  .service-list-row > .service-row-people,
  .service-list-row > .duration-cell {
    display: none;
  }
  .workspace-tabs {
    gap: 20px;
  }
  .appointment-overview {
    grid-template-columns: 1fr;
  }
  .appointment-overview #appointment-meta-form {
    border-left: 0;
    padding-left: 0;
  }
  .compact-metrics .stat {
    padding: 0 10px;
    gap: 7px;
  }
  .compact-metrics .stat p {
    font-size: 10px;
  }
  .compact-metrics .stat strong {
    font-size: 15px;
  }
  .panel-heading .primary {
    font-size: 11px;
  }
  .calendar-title h2 {
    font-size: 14px;
  }
  .view-switch button {
    padding: 5px 9px;
  }
  .form-two-col {
    grid-template-columns: 1fr 1fr;
  }
  .operations-grid label {
    font-size: 12px;
  }
}
@media (max-width: 500px) {
  .client-card {
    grid-template-columns: 28px 1fr;
  }
  .client-card .service-actions {
    grid-column: 2;
  }
  .service-list-row {
    grid-template-columns: 1fr 90px;
  }
  .service-list-row .service-actions {
    grid-column: 1/-1;
  }
  .panel-heading {
    flex-wrap: wrap;
  }
  .calendar-tools {
    flex-wrap: wrap;
  }
  .view-switch button {
    font-size: 10px;
    padding: 5px 8px;
  }
  .compact-metrics {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .compact-metrics .stat {
    border: 0 !important;
    padding: 0 !important;
    min-width: 90px;
  }
  .form-two-col {
    grid-template-columns: 1fr;
  }
  .topbar .breadcrumb {
    font-size: 11px;
  }
  .topbar #workspace-public {
    font-size: 10px;
  }
  .topbar .secondary {
    padding: 6px 8px;
  }
  #appointment-dialog.appointment-workspace {
    padding: 18px;
    max-width: calc(100vw - 16px);
  }
  .appointment-workspace .workspace-tabs {
    gap: 18px;
  }
}
.agenda-panel.expanded-calendar {
  grid-column: auto;
}
.calendar-title h2 {
  text-transform: none;
}
.workspace-filter {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 15px 0 20px;
  font-size: 12px;
  color: #748298;
}
.workspace-filter > label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace-filter input,
.workspace-filter select {
  border: 1px solid #dce3ec;
  border-radius: 5px;
  padding: 9px 11px;
  background: white;
  font-size: 12px;
}
.workspace-filter input {
  min-width: 240px;
}
#client-history-dialog {
  width: 760px;
  max-width: calc(100vw - 24px);
}
.client-record-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 0 0 22px;
}
.client-record-header p {
  font-size: 12px;
  color: #7d8da1;
}
.client-record-header .secondary {
  font-size: 11px;
  flex-shrink: 0;
}
.history-list {
  margin: 0;
}
.history-list > article {
  border-radius: 7px;
  padding: 15px;
}
.history-list h3 {
  font-size: 14px;
}
.history-list .badge {
  font-size: 10px;
}
.client-record-header + .workspace-tabs {
  margin-bottom: 20px;
}
body[data-page="agenda"] .heading-row {
  margin-bottom: 14px;
}
body[data-page="agenda"] #page-subtitle {
  display: none;
}
body[data-page="agenda"] .heading-row h1 {
  font-size: 21px;
}
@media (max-width: 1150px) {
  .agenda-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .agenda-client-rail {
    display: none;
  }
}
@media (max-width: 800px) {
  .workspace-filter {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .workspace-filter input {
    min-width: 0;
    width: 100%;
  }
  .client-record-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .timeline-scroll {
    min-height: 330px;
  }
  .sidebar .business-select {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0;
  }
  .sidebar .business-select select {
    max-width: 210px;
  }
}
#view-messages > p {
  margin-bottom: 16px;
  font-size: 12px;
  color: #85754d;
}
#view-messages #message-form {
  max-width: 700px;
  margin-top: 20px;
}
#view-messages #message-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  margin: 18px 0;
}
#view-messages #message-form input:not([type="checkbox"]),
#view-messages #message-form select,
#view-messages #message-form textarea {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 11px;
  font: inherit;
  font-size: 13px;
  width: 100%;
}
#view-messages #message-form .checkbox-row {
  display: flex;
  align-items: center;
}
#view-messages #preview-outbox {
  margin: 18px 0 12px;
}
.staff-user [data-view="messages"] {
  display: none !important;
}
.owner-appointment-actions button {
  font-size: 11px;
}
#appointment-income-list {
  margin-bottom: 24px;
}
.sidebar .nav-item {
  padding-top: 9px;
  padding-bottom: 9px;
}
/* Operational workspace: catalogue hierarchy, person rules and project ledger. */
.catalog-workspace {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.catalog-workspace > nav {
  border-right: 1px solid var(--line, #e8e5df);
  padding-right: 16px;
}
.catalog-workspace > nav h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #75766e;
  margin: 0 0 12px;
}
.catalog-workspace > nav button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 10px;
  font: inherit;
  font-size: 13px;
  color: inherit;
  cursor: pointer;
}
.catalog-workspace > nav button[aria-pressed="true"] {
  background: #f8e9e1;
  color: #843f27;
  font-weight: 650;
}
.catalog-workspace > nav .catalog-subcategory {
  padding-left: 22px;
  font-size: 12px;
}
.catalog-workspace .service-list-head,
.catalog-workspace .service-list-row {
  grid-template-columns: minmax(130px, 1.6fr) minmax(90px, 1fr) 85px 115px 105px;
  gap: 12px;
}
.catalog-workspace .service-actions {
  flex-wrap: wrap;
  gap: 7px;
}
.staff-checkboxes:has(.staff-service-rule) {
  display: block;
}
.staff-service-rule {
  border: 1px solid #e5e5df;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
}
.staff-service-rule .staff-choice {
  border: 0;
  padding: 0;
  margin: 0;
}
.staff-service-rule details {
  padding: 10px 0 0;
}
.staff-service-rule summary {
  font-size: 13px;
  cursor: pointer;
  color: #51564b;
}
.staff-rule-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.staff-rule-fields label {
  font-size: 12px;
}
.staff-rule-fields input {
  min-width: 0;
  width: 100%;
}
.staff-service-rule:has(input[name="assigned-staff"]:not(:checked)) details {
  display: none;
}
.calendar-scale {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.calendar-scale select {
  padding: 7px;
  max-width: 130px;
}
.project-progress {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  font-size: 13px;
}
.project-progress progress {
  width: 100%;
  accent-color: #be6447;
  height: 6px;
}
.project-finance {
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 13px;
  gap: 9px;
  border-top: 1px solid #e8e5df;
  padding-top: 14px;
}
.project-finance dt {
  color: #666b60;
}
.project-finance dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.project-finance dd:last-child {
  color: #864c32;
}
.project-card {
  min-width: 0;
}
.appointment-checklist {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.appointment-checklist span {
  font-size: 12px;
  background: #f2f4ee;
  padding: 7px 10px;
  border-radius: 6px;
}
@media (max-width: 1100px) {
  .catalog-workspace {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .catalog-workspace .service-list-head {
    display: none;
  }
  .catalog-workspace .service-list-row {
    grid-template-columns: minmax(0, 1fr) minmax(90px, 1fr);
  }
  .catalog-workspace .service-actions {
    grid-column: 1/-1;
  }
}
@media (max-width: 650px) {
  .catalog-workspace {
    grid-template-columns: 1fr;
  }
  .catalog-workspace > nav {
    border: 0;
    display: flex;
    gap: 6px;
    overflow: auto;
    padding: 0 0 12px;
  }
  .catalog-workspace > nav h3 {
    display: none;
  }
  .catalog-workspace > nav button {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid #e5e5df;
  }
  .staff-rule-fields {
    grid-template-columns: 1fr;
  }
  .calendar-scale {
    margin-left: auto;
  }
}

/* Connected record and actionable studio workbench. */
#client-history-dialog {
  width: min(1000px, calc(100vw - 32px));
  max-height: 90dvh;
}
.client-record-header {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}
.client-record-header p {
  flex: 1;
  min-width: 220px;
}
.client-record-header small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.record-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 22px 0;
}
.record-tabs button {
  white-space: nowrap;
}
.record-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
.record-metrics > div {
  padding: 18px;
  background: #f4f6f9;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
}
.record-metrics small {
  display: block;
  color: #64748b;
  font-size: 12px;
}
.record-metrics strong {
  display: block;
  font-size: 24px;
  margin-top: 9px;
  color: #142d3b;
}
.record-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid #e4e9ef;
}
.record-row h3 {
  margin: 8px 0 5px;
  font-size: 15px;
}
.record-row p {
  margin: 5px 0;
  font-size: 13px;
}
.record-row small {
  display: block;
  color: #64748b;
  margin-top: 6px;
}
.record-row > div {
  min-width: 0;
}
.record-row .secondary {
  flex-shrink: 0;
}
.history-note {
  white-space: pre-wrap;
}
.pending-counts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.pending-count {
  background: #f7f9fb;
  border: 1px solid #e0e7ed;
  border-radius: 12px;
  text-align: left;
  padding: 16px;
  cursor: pointer;
  color: #4b6170;
}
.pending-count strong {
  display: block;
  font-size: 26px;
  color: #19384b;
  margin-bottom: 6px;
}
.pending-count span {
  font-size: 12px;
  line-height: 1.4;
}
.pending-count.selected {
  background: #e7f3ee;
  border-color: #488a70;
  box-shadow: 0 0 0 1px #488a70;
}
.pending-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  padding: 16px;
  background: #f7f9fb;
  border-radius: 12px;
}
.pending-filters label {
  flex: 1;
  min-width: 150px;
  margin: 0;
}
.pending-filters button {
  margin-bottom: 4px;
}
.pending-main {
  flex: 1;
}
.pending-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #edf3f7;
  color: #496c84;
  flex-shrink: 0;
}
.pending-empty {
  text-align: center;
  padding: 48px 20px;
  color: #64748b;
}
.staff-user [data-view="pending"] {
  display: none;
}
@media (max-width: 1000px) {
  .pending-counts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .record-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .pending-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pending-row {
    flex-wrap: wrap;
  }
  .pending-main {
    min-width: calc(100% - 60px) !important;
  }
  .record-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .client-record-header .service-actions {
    flex-wrap: wrap;
  }
  .record-metrics strong {
    font-size: 20px;
  }
}
.pending-filters label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #546577;
}
.pending-filters input,
.pending-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
  color: #25384b;
}
.project-next {
  font-size: 12px;
  color: #597287;
  margin: 10px 0 !important;
}
/* Workflow, follow-up and daily cash records. */
#task-dialog {
  width: min(820px, calc(100vw - 28px));
  max-height: 90dvh;
}
#task-form > label,
#task-contact-form > label,
#reverse-form > label,
#cash-close-form > label {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  font-size: 12px;
  color: #526477;
}
#task-form input,
#task-form select,
#task-form textarea,
#task-contact-form select,
#task-contact-form textarea,
#reverse-form textarea,
#cash-close-form input,
#cash-close-form textarea,
#project-dialog input,
#project-dialog select,
#project-dialog textarea {
  width: 100%;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  padding: 11px;
  background: #fff;
  font: inherit;
  color: #24364a;
}
#task-contact {
  border-top: 1px solid #e0e6ee;
  margin-top: 24px;
  padding-top: 20px;
}
.task-event {
  padding: 15px 0;
  border-bottom: 1px solid #e4e9ef;
}
.task-event small {
  margin: 5px 0;
  color: #64748b;
}
.task-event p {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.6;
}
.priority-high {
  background: #fff0e7;
  color: #a55320;
  border-color: #edccae;
}
.project-checklist {
  padding: 16px;
  border: 1px solid #e0e6ee;
  border-radius: 10px;
  margin: 16px 0;
  background: #f8fafc;
}
.project-checklist h3 {
  margin-bottom: 8px;
}
.project-checklist li {
  font-size: 13px;
  margin: 6px 0;
}
.cash-snapshot {
  padding: 16px;
  margin-top: 10px;
  background: #f7f9fb;
  border: 1px solid #dfe6ed;
  border-radius: 9px;
}
.cash-snapshot summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.cash-snapshot p {
  margin-top: 12px;
  line-height: 1.6;
  font-size: 13px;
}
#cash-close-editor {
  margin: 24px 0;
}
#cash-close-editor > summary {
  font-weight: 600;
  padding: 14px 0;
  cursor: pointer;
}
.staff-user [data-view="tasks"] {
  display: none !important;
}
#reverse-dialog p {
  margin: 15px 0;
  line-height: 1.7;
}
.tablet-setup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 24px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e7ef;
}
.tablet-setup li {
  font-size: 13px;
  line-height: 1.8;
  color: #62768b;
}
.tablet-setup form label {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 12px;
  color: #54677a;
}
.tablet-setup form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  font: inherit;
}
#pair-tablet-code {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
#tablet-dispatch-dialog {
  width: min(900px, calc(100vw - 28px));
  max-height: 90dvh;
}
#tablet-dispatch-form label {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  font-size: 13px;
  color: #566b80;
}
#tablet-dispatch-form select {
  width: 100%;
  padding: 14px;
  background: #fff;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  font: inherit;
}
#tablet-dispatch-client {
  font-size: 14px;
  line-height: 1.8;
  color: #556d82;
}
#tablet-dispatch-error {
  margin: 18px 0;
  color: #936333;
  font-size: 13px;
}
#tablet-dispatch-status h3 {
  margin: 24px 0 8px;
}
.tablet-document-tools {
  margin-bottom: 20px;
}
.staff-user [data-view="tablets"] {
  display: none !important;
}
@media (max-width: 700px) {
  .tablet-setup {
    grid-template-columns: 1fr;
  }
  .tablet-setup ol {
    padding-left: 20px;
  }
}

.record-shortcuts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.record-appointment-group {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 18px 0;
  overflow: hidden;
}
.record-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f4f7fb;
  padding: 16px;
}
.record-group-heading h3 {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 !important;
}
.record-group-heading p {
  margin: 4px 0 0 !important;
  font-size: 12px;
}
.record-appointment-group > .record-row {
  margin: 0;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  padding: 18px;
}
.record-item-main {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.record-item-main h4 {
  font-size: 15px;
  margin: 10px 0;
}
.record-item-main small {
  display: block;
  margin: 5px 0;
}
.record-message details {
  margin-top: 14px;
}
.record-message summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.record-message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f7f9fc;
  padding: 16px;
  border-radius: 8px;
  line-height: 1.7;
}
.record-section-heading p {
  font-size: 13px;
  color: var(--muted);
}
#client-history-content [hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .record-group-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .record-document .service-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .record-document .service-actions > a {
    font-size: 12px;
  }
  .record-appointment-group > .record-row {
    padding: 14px;
  }
}

.client-name-link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}
.client-name-link:hover {
  text-decoration: underline;
}
.client-name-link:focus-visible {
  outline: 2px solid #386dcd;
  outline-offset: 4px;
  border-radius: 3px;
}

/* 0.13 · account, login and TLART admin */
.account-chip { display: flex; align-items: center; gap: 10px; }
.account-chip .account-link { text-decoration: none; padding: 8px 12px; }
.login-form { display: grid; gap: 14px; margin-top: 8px; }
.login-form label { display: grid; gap: 6px; font-weight: 600; }
.login-form input { font-size: 18px; padding: 12px 14px; }
#login-code { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.admin-page { background: var(--surface, #f4f6f9); }
.admin-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; background: #fff; border-bottom: 1px solid #e5e8ee; }
.admin-header nav { display: flex; gap: 12px; align-items: center; }
.admin-header a.secondary { text-decoration: none; padding: 8px 14px; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 28px; display: grid; gap: 20px; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.admin-form label { display: grid; gap: 6px; font-weight: 600; }
.admin-form .wide { grid-column: 1 / -1; }
.slug-row { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.slug-row .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.slug-row input { flex: 1; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #eceff4; vertical-align: top; }
.data-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7280; }
.row-actions { white-space: nowrap; }
.row-actions a.secondary { text-decoration: none; padding: 6px 10px; display: inline-block; }
.empty-state { padding: 40px 20px; text-align: center; color: #4b5563; }
@media (max-width: 720px) { .admin-form { grid-template-columns: 1fr; } .data-table td.row-actions { white-space: normal; } }

/* 0.13 · consistent form controls everywhere (zero-specificity base; specific rules still win) */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]):not([type="range"]), select, textarea) {
  font: inherit;
  border: 1px solid #dbe2e5;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 44px;
  background: #fff;
  color: #304650;
  box-sizing: border-box;
  max-width: 100%;
}
:where(textarea) { min-height: 88px; resize: vertical; }
:where(.panel form, dialog form, .admin-form, .login-form) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea) { width: 100%; }
:where(.panel > label, .panel form > label, .panel form .form-two-col > label, .panel form .form-row > label) { display: grid; gap: 8px; font-size: 13px; font-weight: 600; margin: 14px 0; }
:where(input[type="color"]) { width: 64px; height: 44px; padding: 4px; border: 1px solid #dbe2e5; border-radius: 8px; background: #fff; }
.form-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 720px) { .form-two-col { grid-template-columns: 1fr; } }
.admin-form label.check-line { display: flex; font-weight: 400; }
:where(.panel > label) :where(textarea, input, select) { width: 100%; }
body.real-business .footer-right { display: none; }
/* 0.13 · appointment checklist as compact chips, customer message visible on the main tab */
#appointment-checklist { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; align-content: flex-start; height: auto !important; min-height: 0 !important; }
#appointment-checklist > span { height: auto !important; min-height: 0 !important; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; flex: 0 0 auto; }
#appointment-checklist .customer-message { flex: 1 0 100%; margin: 6px 0 0; padding: 12px 14px; background: #f6f8fb; border-left: 3px solid #2f5bd3; border-radius: 8px; white-space: pre-wrap; display: grid; gap: 4px; font-size: 14px; }
/* Clients blocked after a no-show */
.blocked-badge { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 999px; background: #fdecea; color: #a1281c; font-size: 12px; font-weight: 600; }
/* WhatsApp settings */
.whatsapp-section .wa-template { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 8px; border: 1px solid #e5e8ee; border-radius: 10px; padding: 10px; margin: 8px 0; }
.whatsapp-section .wa-template legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
.whatsapp-section .wa-test { max-width: 200px; }
@media (max-width: 720px) { .whatsapp-section .wa-template { grid-template-columns: 1fr; } }
.whatsapp-section .wide { grid-column: 1 / -1; }
.whatsapp-section input[type="checkbox"] { width: auto; min-height: 0; }
.whatsapp-section .checkbox-row { display: flex; align-items: center; gap: 8px; }
.whatsapp-section .service-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.whatsapp-section .wa-status { font-weight: 600; margin: 8px 0 14px; }
.whatsapp-section .wa-connect-link { display: inline-block; padding: 12px 20px; border-radius: 10px; text-decoration: none; margin-bottom: 14px; }
.whatsapp-section .wa-template-status ul { margin: 6px 0 14px; padding-left: 18px; font-size: 14px; }
.whatsapp-section .wa-tpl-approved { color: #1f7a3f; }
.whatsapp-section .wa-tpl-rejected, .whatsapp-section .wa-tpl-not_found { color: #a1281c; }
.whatsapp-section .wa-advanced { margin-top: 18px; }
.whatsapp-section .wa-advanced summary { cursor: pointer; font-weight: 600; }
.wa-compose { margin-top: 12px; padding: 12px; border: 1px solid #e5e8ee; border-radius: 10px; }
.wa-compose textarea { width: 100%; }

/* Statistics, vouchers, work lists, calendar links, recurring bookings */
.stats-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 12px 0;
}
.stats-filters label {
  min-width: 150px;
}
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
.stat-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  display: grid;
  gap: 4px;
}
.stat-tile span {
  color: var(--muted);
  font-size: 13px;
}
.stat-tile strong {
  font-size: 26px;
  line-height: 1.1;
}
.stat-tile small {
  color: var(--muted);
  font-size: 12px;
}
.delta.up {
  color: var(--green);
}
.delta.down {
  color: #b4493a;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.stats-grid h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
.mini-bars {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 140px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.mini-bar {
  flex: 1;
  min-width: 4px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
}
.mini-bar span {
  display: block;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}
.mini-bar small {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.rank-list,
.money-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rank-list li,
.money-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.money-list li.sub {
  padding-left: 14px;
  color: var(--muted);
  font-size: 13px;
}
.compact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compact-table th,
.compact-table td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compact-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.row-actions {
  white-space: nowrap;
}
.row-actions .text-button {
  margin-right: 8px;
}
.voucher-card {
  border: 1px dashed var(--accent);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
  display: grid;
  gap: 12px;
  background: #fff;
}
.voucher-card.void,
.voucher-card.expired,
.voucher-card.used {
  border-color: var(--line);
  opacity: 0.85;
}
.voucher-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 2px;
  font-size: 22px;
  margin: 6px 0;
}
.voucher-redeem {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}
.worklist-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.worklist-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.worklist-card strong {
  font-size: 22px;
}
.worklist-card span {
  font-size: 13px;
  color: var(--muted);
}
.worklist-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(231, 120, 88, 0.18);
}
.feed-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.feed-row small {
  display: block;
  color: var(--muted);
}
.feed-link {
  grid-column: 1 / -1;
}
.feed-link:empty {
  display: none;
}
.settings-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 14px 0;
}
.settings-group legend {
  font-weight: 600;
  padding: 0 6px;
}
.repeat-booking {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.repeat-booking small {
  grid-column: 1 / -1;
  color: var(--muted);
}
@media (max-width: 640px) {
  .feed-row {
    grid-template-columns: 1fr;
  }
  .compact-table {
    display: block;
    overflow-x: auto;
  }
}
/* Between 801 and 850 px the side menu stays vertical (before, it became a cut-off horizontal strip). */
@media (min-width: 801px) and (max-width: 850px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 206px;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    overflow: auto;
  }
  .sidebar nav {
    display: block;
    margin-top: 8px;
    overflow: visible;
  }
  .sidebar .nav-item {
    font-size: 13px;
    width: 100%;
  }
  .sidebar .workspace,
  .sidebar .nav-group-label {
    display: revert;
  }
}
.timeline-person [draggable="true"] {
  cursor: grab;
}
.calendar-event.dragging {
  opacity: 0.45;
}
.timeline-person.drop-target .timeline-grid {
  outline: 2px dashed var(--accent, #2f6fdf);
  outline-offset: -2px;
}
.ask-dialog {
  border: 0;
  border-radius: 14px;
  padding: 22px;
  width: min(420px, 92vw);
  box-shadow: 0 20px 60px #0003;
}
.ask-dialog input {
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 14px;
}
