:root {
  --ink: #142e40;
  --muted: #617181;
  --blue: #1769e8;
  --navy: #122e42;
  --line: #dce4eb;
  --bg: #f3f6f9;
  --white: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin-bottom: 12px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
h3 {
  font-size: 16px;
  margin: 24px 0 14px;
}
p {
  line-height: 1.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #5c9eff;
  outline-offset: 3px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
  line-height: 1.65;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin-bottom: 12px;
}
.wordmark {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.2;
  display: inline-block;
  color: inherit;
}
.wordmark span {
  color: #60a4ff;
  font-size: 12px;
  margin-left: 5px;
  vertical-align: super;
}
.button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 17px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.button:hover {
  text-decoration: none;
}
.primary {
  background: var(--blue);
  color: white;
}
.primary:hover {
  background: #1057c8;
}
.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.secondary:hover,
.ghost:hover {
  background: #eef4fb;
}
.ghost {
  background: transparent;
  color: #486276;
  padding: 9px 12px;
}
.full {
  width: 100%;
}
.text-link {
  font-size: 14px;
  font-weight: 500;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.padded {
  padding: 26px;
}
.divider {
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
input,
select,
textarea {
  border: 1px solid #cbd6df;
  border-radius: 7px;
  min-width: 0;
  width: 100%;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
input::placeholder,
textarea::placeholder {
  color: #83919e;
}
textarea {
  resize: vertical;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.wide {
  grid-column: 1/-1;
}
.check {
  flex-direction: row;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
  gap: 10px;
}
.check input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}
.error {
  color: #b33535;
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0;
  white-space: pre-wrap;
}
.error:empty {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--navy);
  color: white;
  border-radius: 10px;
  padding: 14px 22px;
  max-width: min(90vw, 640px);
  font-size: 14px;
  box-shadow: 0 6px 30px #122e4233;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: linear-gradient(135deg, #eef5ff, #f6f8fa 60%);
}
.login-card {
  width: 100%;
  max-width: 440px;
  padding: 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 60px #122e420a;
}
.login-card .wordmark {
  margin-bottom: 35px;
}
.login-card h1 {
  font-size: 28px;
}
.login-card form {
  margin: 26px 0 22px;
}
.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 31px 20px;
  display: flex;
  flex-direction: column;
}
.sidebar .wordmark {
  margin-left: 14px;
}
.side-caption {
  font-size: 12px;
  color: #a7bfd0;
  margin: 10px 0 40px 14px;
}
.nav {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #b6c9d7;
  padding: 13px 14px;
  text-align: left;
  font-size: 14px;
  margin-bottom: 7px;
  line-height: 1.5;
}
.nav:hover {
  background: #234257;
  text-decoration: none;
}
.nav.active {
  background: #284d68;
  color: white;
}
.nav-count {
  font-size: 11px;
  background: #456883;
  padding: 1px 7px;
  border-radius: 5px;
  margin-left: auto;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid #365166;
  padding: 20px 10px 0;
  font-size: 14px;
}
.side-bottom > span {
  display: block;
  font-size: 12px;
  color: #a7bfd0;
  margin: 7px 0 18px;
}
.side-bottom .nav {
  padding-left: 0;
}
.main {
  padding: 0 36px 24px;
  min-width: 0;
  max-width: 1800px;
}
.topbar {
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  gap: 15px;
}
.sync {
  font-size: 12px;
}
.sync.offline {
  color: #b33535;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 35px 0 28px;
}
.page-heading .muted {
  margin-bottom: 0;
  font-size: 14px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  padding: 20px;
  color: var(--ink);
}
.metric:hover {
  border-color: #8cb5ef;
}
.metric > span {
  font-size: 13px;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 32px;
  line-height: 1.3;
  margin: 13px 0 10px;
  font-weight: 600;
}
.metric small {
  font-size: 11px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tab {
  border: 0;
  background: transparent;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 6px;
}
.tab.selected {
  background: #edf4ff;
  color: #145ec7;
}
.filters {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
}
.filters label {
  margin: 0;
}
.search {
  flex: 1;
}
.filters select {
  font-size: 14px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: #f9fafc;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f3;
  max-width: 260px;
  overflow-wrap: anywhere;
}
td strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
td small {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 4px;
  color: var(--muted);
}
td .record-meta {
  font-size: 10px;
  letter-spacing: 0.2px;
}
.status {
  display: inline-flex;
  white-space: nowrap;
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 12px;
  background: #edf1f5;
  color: #556d7f;
}
.status.new {
  background: #eaf2ff;
  color: #1a62c8;
}
.status.clarify {
  background: #fff1d9;
  color: #946016;
}
.status.quoted {
  background: #ecedfb;
  color: #6554a9;
}
.status.confirmed,
.status.in_progress {
  background: #e3f3ef;
  color: #237961;
}
.status.done {
  background: #edf4ef;
  color: #45724c;
}
.status.cancelled {
  background: #f6eaea;
  color: #a14c4c;
}
.empty {
  text-align: center;
  padding: 50px 20px;
}
.empty-mark {
  margin: 0 auto 19px;
  width: 52px;
  height: 52px;
  border: 1px solid #d7e5f6;
  background: #f3f8ff;
  color: #568bd3;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 24px;
}
.empty h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.pagination {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footnote {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  max-width: 1200px;
}
.settings-grid > .card {
  align-self: start;
}
.settings-grid > div > .card {
  margin-bottom: 24px;
}
.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  font-size: 14px;
}
.team-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
details {
  margin-top: 20px;
}
summary {
  font-size: 14px;
  color: #346ca7;
  cursor: pointer;
  padding: 9px 0;
}
details form {
  margin-top: 16px;
}
.request-dialog {
  width: min(1050px, 96vw);
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 20px 100px #122e4233;
}
.request-dialog::backdrop {
  background: #0c20398c;
  backdrop-filter: blur(3px);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 28px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  margin: 0;
}
.drawer-head .eyebrow {
  margin-bottom: 7px;
}
.icon-button {
  font-size: 28px;
  width: 36px;
  height: 36px;
  background: #f1f4f7;
  color: var(--muted);
  border: 0;
  border-radius: 8px;
}
.drawer-body {
  padding: 25px 28px;
  max-height: calc(94vh - 185px);
  overflow-y: auto;
}
.request-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
}
.estimate {
  padding: 24px;
  border-radius: 12px;
  background: var(--navy);
  color: white;
}
.estimate .eyebrow {
  color: #a9c1d4;
}
.amount {
  font-size: 38px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 16px 0 22px;
}
.cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 12px 0;
  border-top: 1px solid #3a556b;
}
.estimate .small {
  color: #b5c9d9;
  font-size: 12px;
  margin: 12px 0 0;
}
.callout {
  background: #edf4ff;
  color: #355d8f;
  border: 1px solid #dce9fb;
  border-radius: 8px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.65;
}
.reply {
  background: #f3f6f9;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.75;
}
.history-item {
  border-left: 2px solid #dce6f3;
  margin-left: 5px;
  padding: 0 0 19px 15px;
  font-size: 13px;
}
.history-item small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 5px;
}
.drawer-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: white;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.drawer-footer .error {
  margin: 0;
  flex: 1;
}
.public-body {
  background: #f3f6f9;
}
.public-header {
  max-width: 1340px;
  margin: auto;
  display: flex;
  align-items: center;
  padding: 30px 40px;
  gap: 30px;
}
.public-header > span {
  font-size: 14px;
  color: var(--muted);
}
.public-header > a:last-child {
  margin-left: auto;
}
.booking-layout {
  max-width: 1260px;
  margin: 30px auto 55px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  padding: 0 35px;
}
.booking-intro {
  padding-top: 30px;
}
.booking-intro h1 {
  font-size: 49px;
  letter-spacing: -2px;
  line-height: 1.15;
  margin: 22px 0 27px;
}
.intro-copy {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 380px;
  margin-bottom: 42px;
}
.service-note {
  display: flex;
  gap: 18px;
  margin: 25px 0;
  align-items: flex-start;
}
.service-note > span {
  font-size: 12px;
  color: #548acf;
  border: 1px solid #ccdff6;
  border-radius: 7px;
  padding: 9px;
  background: #ecf4ff;
}
.service-note strong {
  font-size: 15px;
}
.service-note p {
  font-size: 14px;
  color: var(--muted);
  margin: 7px 0;
  max-width: 340px;
  line-height: 1.65;
}
.intro-bottom {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
}
.intro-bottom p {
  margin-bottom: 6px;
}
.booking-card {
  padding: 32px;
  align-self: start;
  box-shadow: 0 8px 35px #16345107;
}
.booking-card h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 15px 0 26px;
}
.booking-card fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.public-price {
  padding: 17px 20px;
  background: #edf4ff;
  border: 1px solid #dae8fb;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 9px;
  margin: 2px 0 24px;
}
.public-price > span {
  font-size: 13px;
  color: #37618f;
  line-height: 1.5;
}
.public-price strong {
  font-size: 25px;
  white-space: nowrap;
  letter-spacing: -0.6px;
}
.public-price small {
  grid-column: 1/-1;
  color: #526f90;
  font-size: 12px;
  line-height: 1.6;
}
.consent {
  margin: 6px 0 20px;
  font-size: 12px;
  color: var(--muted);
}
.honeypot {
  position: absolute;
  left: -10000px;
}
.success-symbol {
  width: 64px;
  height: 64px;
  background: #e8f4ed;
  color: #2e8057;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 32px;
  margin: 15px 0 30px;
}
.receipt {
  background: #f3f6f9;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
}
.receipt span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 9px;
}
.receipt strong {
  font-size: 19px;
}
.public-footer {
  max-width: 1260px;
  margin: auto;
  padding: 25px 35px 35px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  gap: 20px;
}
.policy {
  max-width: 780px;
  margin: 50px auto;
  line-height: 1.8;
}
.policy h1 {
  margin: 30px 0;
}
.policy h2 {
  font-size: 19px;
  margin: 28px 0 12px;
}
.policy p {
  font-size: 15px;
}
@media (min-width: 1600px) {
  .main {
    padding: 0 55px 25px;
  }
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 180px 1fr;
  }
  .sidebar {
    padding: 26px 12px;
  }
  .main {
    padding: 0 22px 20px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px 13px;
  }
  .metric small {
    font-size: 10px;
  }
  .booking-layout {
    gap: 35px;
  }
  .booking-intro h1 {
    font-size: 40px;
  }
  .booking-card {
    padding: 26px;
  }
  .request-columns {
    gap: 20px;
  }
  .amount {
    font-size: 32px;
  }
}
@media (max-width: 850px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 14px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .sidebar .wordmark {
    font-size: 28px;
    margin: 0;
  }
  .side-caption,
  .side-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 8px;
    margin-left: auto;
  }
  .nav {
    margin: 0;
    padding: 9px;
    font-size: 13px;
    width: auto;
  }
  .nav-count {
    display: none;
  }
  .topbar {
    height: 62px;
  }
  .page-heading {
    margin: 25px 0;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric small {
    font-size: 11px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters .search {
    flex-basis: 100%;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .request-columns {
    grid-template-columns: 1fr;
  }
  .drawer-body {
    padding: 20px;
  }
  .booking-layout {
    grid-template-columns: 1fr;
    max-width: 660px;
    margin-top: 0;
    gap: 20px;
  }
  .booking-intro {
    padding-top: 15px;
  }
  .booking-intro h1 {
    font-size: 38px;
  }
  .booking-intro h1 br {
    display: none;
  }
  .intro-copy {
    max-width: none;
    margin-bottom: 15px;
  }
  .service-note,
  .intro-bottom {
    display: none;
  }
  .public-header {
    padding: 25px 30px;
  }
  .public-header > a:last-child {
    font-size: 12px;
  }
  .booking-card {
    padding: 28px;
  }
  .public-footer {
    max-width: 660px;
  }
  .policy {
    margin: 20px;
  }
}
@media (max-width: 520px) {
  .main {
    padding: 0 15px 20px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .metric strong {
    font-size: 28px;
  }
  .toolbar {
    padding: 12px;
    flex-wrap: wrap;
  }
  .tab {
    font-size: 12px;
    padding: 8px;
  }
  .filters {
    padding: 14px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .drawer-head {
    padding: 18px;
  }
  .drawer-footer {
    padding: 15px;
    flex-direction: column;
    align-items: stretch;
  }
  .drawer-body {
    max-height: calc(94vh - 205px);
  }
  .drawer-head .eyebrow {
    font-size: 10px;
  }
  .sidebar {
    gap: 10px;
  }
  .sidebar nav {
    gap: 2px;
  }
  .sidebar .wordmark {
    font-size: 25px;
  }
  .nav {
    font-size: 12px;
    padding: 8px;
  }
  .public-header {
    padding: 22px 20px;
    gap: 14px;
  }
  .public-header > span {
    font-size: 12px;
  }
  .public-header > a:last-child {
    font-size: 11px;
  }
  .public-header .wordmark {
    font-size: 30px;
  }
  .booking-layout {
    padding: 0 16px;
  }
  .booking-intro h1 {
    font-size: 34px;
  }
  .booking-card {
    padding: 23px;
  }
  .public-price {
    padding: 15px;
  }
  .public-price strong {
    font-size: 22px;
  }
  .public-footer {
    padding: 20px;
    flex-direction: column;
    gap: 12px;
  }
  .login-card {
    padding: 28px;
  }
  .login-shell {
    padding: 20px;
  }
  .padded {
    padding: 20px;
  }
}

.mobile-logout {
  display: none;
}
@media (max-width: 850px) {
  .mobile-logout {
    display: inline-flex;
  }
  .topbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 62px;
    padding: 10px 0;
  }
  .topbar > span:first-child {
    flex: 1;
  }
}
