:root {
  color-scheme: light;
  --bg: #f6f9fc;
  --bg-2: #eaf5ff;
  --surface: #ffffff;
  --surface-soft: #f7fafb;
  --ink: #0b1724;
  --muted: #536477;
  --subtle: #8a9aa4;
  --line: #dce7f0;
  --line-strong: #bdd0df;
  --primary: #008c68;
  --primary-2: #12b978;
  --blue: #1167d8;
  --amber: #f6a400;
  --coral: #f05d4f;
  --green: #25a55f;
  --navy: #071521;
  --navy-2: #0d2741;
  --shadow-sm: 0 8px 22px rgba(22, 36, 43, 0.055);
  --shadow: 0 18px 46px rgba(22, 36, 43, 0.09);
  --shadow-lg: 0 26px 72px rgba(22, 36, 43, 0.13);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(6, 121, 108, 0.08), rgba(255, 255, 255, 0) 360px),
    linear-gradient(90deg, rgba(49, 111, 210, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 48px 48px, auto;
  font-family: var(--font);
  text-rendering: optimizeLegibility;
}

body.desk-body {
  background:
    linear-gradient(180deg, rgba(8, 124, 109, 0.08), transparent 260px),
    #f4f7f8;
}

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

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
.brand-title,
.brand-line,
.eyebrow,
.mini-label {
  margin: 0;
}

.site-shell {
  min-height: 100vh;
}

.site-nav,
.site-footer,
.section-inner {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 10px 0;
  backdrop-filter: blur(22px);
}

.site-nav::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 78px;
  z-index: -1;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(221, 231, 227, 0.74);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(8, 124, 109, 0.24);
}

.brand-logo-img {
  display: block;
  max-height: 50px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
}

.brand-logo-img + span {
  display: none;
}

.brand-title {
  display: block;
  color: var(--ink);
  font-weight: 950;
  letter-spacing: 0;
}

.brand-line {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 680;
}

.nav-links,
.nav-actions,
.button-row,
.form-row,
.toolbar,
.status-row,
.chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 9px 4px;
  color: #40535d;
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn,
.btn-soft,
.btn-outline,
.btn-danger,
.tab-btn,
.role-pill,
.export-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 16px;
  font-size: 0.91rem;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(8, 124, 109, 0.2);
}

.btn:hover,
.btn:focus-visible {
  color: #fff;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(8, 124, 109, 0.26);
}

.btn-soft,
.btn-outline,
.export-btn {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-soft:hover,
.btn-outline:hover,
.export-btn:hover {
  border-color: rgba(8, 124, 109, 0.32);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--primary);
  border-color: rgba(8, 124, 109, 0.24);
}

.btn-danger {
  background: #fff3ef;
  color: #a83b20;
  border-color: #ffd2c5;
}

.hero {
  padding: 42px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.eyebrow,
.mini-label {
  width: max-content;
  max-width: 100%;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(2.25rem, 4.6vw, 4.65rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  color: #536773;
  font-size: 1.08rem;
  line-height: 1.76;
}

.hero-console {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(199, 213, 207, 0.78);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff, #f5fafb),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.console-top,
.service-card-head,
.service-card-actions,
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions {
  justify-content: flex-start;
}

.console-top strong {
  font-size: 1rem;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.console-grid a,
.category-tile,
.service-rail article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.console-grid a {
  display: grid;
  gap: 7px;
  min-height: 124px;
  padding: 14px;
}

.console-grid small,
.category-tile small,
.service-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 720;
}

.console-job {
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(49, 111, 210, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef7ff, #f8fcfa);
}

.console-job img {
  width: 128px;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
}

.console-job h2 {
  margin: 9px 0 6px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.console-job p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.page-title {
  margin-top: 6px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  max-width: 760px;
  padding: 12px;
  border: 1px solid rgba(199, 213, 207, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-search .field {
  gap: 5px;
}

.hero-search .field input {
  border-color: transparent;
  background: #f6faf8;
}

.quick-service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.quick-service-row a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: #425660;
  font-size: 0.84rem;
  font-weight: 780;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.category-section {
  padding-top: 28px;
}

.compact-head {
  align-items: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.category-tile {
  display: grid;
  min-height: 132px;
  align-content: center;
  gap: 8px;
  padding: 14px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.category-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 121, 108, 0.26);
  box-shadow: var(--shadow);
}

.category-tile strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.18;
}

.trust-strip {
  padding: 8px 0 24px;
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-strip-inner div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.trust-strip-inner strong {
  color: var(--ink);
}

.trust-strip-inner span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.marketplace-tools {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 0.4fr);
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.service-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.service-rail article {
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 16px;
  border-left: 4px solid var(--primary);
}

.service-rail article:nth-child(2) {
  border-left-color: var(--blue);
}

.service-rail article:nth-child(3) {
  border-left-color: var(--amber);
}

.role-launch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.role-launch-card {
  display: grid;
  align-content: space-between;
  gap: 16px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.role-launch-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 124, 109, 0.3);
  box-shadow: var(--shadow);
}

.role-launch-card strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.role-launch-card span {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: 44px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head h2,
.panel h2 {
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.1vw, 1.72rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head p {
  max-width: 660px;
  color: var(--muted);
  line-height: 1.62;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.panel,
.metric,
.service-card,
.plan-card,
.auth-card,
.table-card,
.module-card {
  min-width: 0;
  border: 1px solid rgba(221, 231, 227, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.service-card,
.plan-card,
.metric,
.module-card,
.auth-card,
.panel {
  padding: 20px;
}

.service-card,
.plan-card,
.module-card,
.auth-card,
.metric {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.service-card:hover,
.plan-card:hover,
.module-card:hover,
.auth-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 124, 109, 0.22);
  box-shadow: var(--shadow);
}

.service-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
}

.service-card strong,
.plan-card strong,
.module-card strong,
.metric strong {
  display: block;
  color: var(--ink);
}

.service-card strong,
.module-card strong {
  font-size: 1.08rem;
  line-height: 1.28;
}

.service-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #e7f7f2, #eef4ff);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 950;
}

.service-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.service-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #f3f8fb;
}

.service-card span,
.module-card span,
.metric span,
.plan-card span,
.help-text {
  color: var(--muted);
  line-height: 1.55;
}

.price {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 950;
}

.plan-card {
  display: grid;
  gap: 13px;
}

.plan-card.featured {
  border-color: rgba(8, 124, 109, 0.34);
  background:
    linear-gradient(180deg, #ffffff, #f3fbf7);
  box-shadow: 0 20px 52px rgba(8, 124, 109, 0.12);
}

.included-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.included-list li {
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f5;
}

.plan-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--blue), var(--amber));
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: start;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field label {
  color: #536773;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(17, 28, 36, 0.02);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.auth-panel .field input,
.auth-panel .field select,
.auth-panel .field textarea {
  min-height: 40px;
  font-size: 0.9rem;
}

.auth-panel .btn {
  min-height: 40px;
  font-size: 0.88rem;
}

.auth-panel .inline-check,
.auth-panel .help-text,
.auth-panel .notice {
  font-size: 0.84rem;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(8, 124, 109, 0.52);
  box-shadow: 0 0 0 4px rgba(8, 124, 109, 0.1);
}

.dashboard-preview {
  display: grid;
  gap: 14px;
}

.status-pill,
.chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1d56a8;
  font-size: 0.74rem;
  font-weight: 850;
}

.status-pill.good,
.chip.good {
  background: #e9f8ef;
  color: #137341;
}

.status-pill.warn,
.chip.warn {
  background: #fff4db;
  color: #865300;
}

.status-pill.hot,
.chip.hot {
  background: #fff0eb;
  color: #9f341d;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid #edf2ef;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f7faf9;
  color: #6a7c86;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

td {
  color: #21323b;
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fbfdfc;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.auth-card form,
.panel form {
  display: grid;
  gap: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 34px 0 46px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: #334852;
  font-weight: 760;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary);
}

.desk-shell {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  min-height: 100vh;
}

.desk-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 18px;
  color: #eef7f5;
  background:
    linear-gradient(180deg, var(--navy), var(--navy-2)),
    var(--navy);
  box-shadow: 12px 0 30px rgba(19, 37, 47, 0.08);
}

.desk-sidebar .brand-title {
  color: #fff;
}

.desk-sidebar .brand-line {
  color: rgba(255, 255, 255, 0.62);
}

.desk-main {
  min-width: 0;
  padding: 22px clamp(16px, 3vw, 34px) 34px;
}

.desk-nav {
  display: grid;
  gap: 7px;
  margin-top: 24px;
}

.tab-btn,
.role-pill {
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  box-shadow: none;
}

.desk-nav a.tab-btn,
.action-link {
  text-decoration: none;
}

.tab-btn:hover,
.tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(42, 194, 153, 0.48);
  color: #fff;
}

.desk-sidebar .panel {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: none;
}

.sidebar-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.sidebar-link-grid a {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.desk-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.search-box {
  width: min(560px, 100%);
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  outline: none;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.role-pill {
  display: grid;
  align-content: center;
  min-height: 62px;
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.role-pill small {
  color: var(--muted);
  font-weight: 720;
}

.role-pill.active {
  background: linear-gradient(180deg, #ffffff, #f0faf6);
  border-color: rgba(8, 124, 109, 0.3);
  color: var(--primary);
}

.desk-section {
  display: none;
}

.desk-section.active {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.desk-section > div > h1,
.desk-section h1[style],
.auth-visual h1 {
  font-size: clamp(1.9rem, 3.5vw, 3.25rem) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(180deg, #ffffff, #f8fbfa);
}

.metric strong {
  margin-top: 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.metric small {
  display: block;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 780;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quick-actions-panel .module-card {
  color: inherit;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-span {
  grid-column: 1 / -1;
}

.map-panel {
  min-height: 250px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(8, 124, 109, 0.11) 1px, transparent 1px),
    linear-gradient(0deg, rgba(44, 111, 214, 0.09) 1px, transparent 1px),
    linear-gradient(145deg, #f7fffb, #eef6ff);
  background-size: 32px 32px;
}

.mini-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: min(780px, 100%);
}

.mini-form input,
.mini-form select {
  min-height: 34px;
  max-width: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 8px;
  background: #fff;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 780;
}

.inline-check input {
  min-height: auto;
}

.tiny-logo {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  object-fit: contain;
}

.builder-list {
  display: grid;
  gap: 10px;
}

.builder-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: grab;
  box-shadow: var(--shadow-sm);
}

.builder-row.dragging {
  opacity: 0.58;
  border-color: var(--primary);
}

.drag-handle {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  background: #eaf7f2;
  color: var(--primary);
  font-weight: 950;
  letter-spacing: 0;
}

code {
  padding: 2px 5px;
  border-radius: 6px;
  background: #edf4f7;
  color: #164052;
  font-size: 0.9em;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 16px;
  border: 1px solid rgba(8, 124, 109, 0.22);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(19, 37, 47, 0.5);
}

.modal.open {
  display: grid;
}

.modal-card {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.hidden {
  display: none !important;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 14%, rgba(18, 163, 131, 0.18), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(44, 111, 214, 0.14), transparent 28%),
    linear-gradient(135deg, #f4fbf8 0%, #eef5ff 48%, #ffffff 100%);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.68fr);
  gap: 0;
  width: min(1060px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
  align-items: center;
}

.auth-shell.compact-auth {
  grid-template-columns: minmax(320px, 560px);
  justify-content: center;
}

.auth-visual,
.auth-panel {
  border: 1px solid rgba(199, 213, 207, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(19, 37, 47, 0.16);
}

.auth-visual {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 600px;
  padding: clamp(24px, 4.6vw, 42px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(10, 23, 33, 0.98), rgba(7, 95, 86, 0.96) 54%, rgba(32, 82, 136, 0.92)),
    var(--navy);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: auto 28px 28px auto;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 12px);
  opacity: 0.72;
}

.auth-visual .brand-title {
  color: #fff;
}

.auth-visual .brand-line,
.auth-visual p,
.auth-visual .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.auth-visual p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.65;
}

.auth-visual h1 {
  max-width: 610px;
  margin-top: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.8rem) !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

.auth-panel {
  display: grid;
  align-content: center;
  min-height: 560px;
  padding: clamp(22px, 3.4vw, 34px);
  background: rgba(255, 255, 255, 0.97);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.auth-panel h1 {
  margin: 3px 0 5px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.08;
}

.auth-panel-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  align-items: start;
  margin-bottom: 18px;
}

.auth-panel-head p:not(.mini-label) {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.auth-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--primary), var(--blue));
  color: #fff;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(8, 124, 109, 0.22);
}

.auth-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 420px;
  margin-top: 24px;
}

.auth-role-grid span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 850;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid #d9e6e2;
  border-radius: var(--radius);
  background: #eef7f4;
}

.auth-switch a {
  display: grid;
  min-height: 36px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.auth-switch a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(8, 124, 109, 0.18);
}

.auth-form {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.auth-link {
  justify-self: start;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.notice {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  line-height: 1.5;
  font-weight: 760;
}

.notice.good {
  color: #137341;
  background: #e9f8ef;
  border: 1px solid #ccebd8;
}

.notice.hot {
  color: #9f341d;
  background: #fff0eb;
  border: 1px solid #ffd3c7;
}

@media (max-width: 1100px) {
  .hero-grid,
  .booking-layout,
  .desk-shell,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual,
  .auth-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .auth-visual {
    min-height: auto;
    gap: 42px;
  }

  .desk-sidebar {
    position: relative;
    height: auto;
  }

  .desk-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4,
  .metric-grid,
  .role-tabs,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-nav,
  .site-footer,
  .section-head,
  .desk-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    min-height: auto;
    padding: 12px 0;
  }

  .site-nav::before {
    height: 98px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions,
  .button-row {
    width: 100%;
  }

  .btn,
  .btn-soft,
  .btn-outline,
  .btn-danger {
    flex: 1;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 2.05rem;
  }

  .auth-visual h1 {
    font-size: 1.72rem !important;
  }

  .auth-panel h1 {
    font-size: 1.38rem;
  }

  .auth-visual p:not(.eyebrow),
  .auth-panel-head p:not(.mini-label) {
    font-size: 0.86rem;
  }

  .hero-search,
  .marketplace-tools,
  .trust-strip-inner,
  .role-launch-grid,
  .service-rail,
  .console-job {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .console-job img {
    width: 100%;
    max-height: 180px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .auth-grid,
  .metric-grid,
  .module-grid,
  .role-tabs,
  .form-grid,
  .form-grid.two,
  .desk-nav {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  table {
    min-width: 760px;
    table-layout: fixed;
  }

  th,
  td {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .auth-shell {
    width: min(100% - 24px, 680px);
    padding: 18px 0;
  }

  .desk-main {
    max-width: 100vw;
    overflow-x: hidden;
    padding: 16px 12px 26px;
  }

  h1,
  h2,
  h3,
  .brand-title,
  .brand-line {
    overflow-wrap: anywhere;
  }

  .auth-visual,
  .auth-panel {
    padding: 20px;
  }

  .auth-panel-head {
    grid-template-columns: 40px 1fr;
  }

  .auth-mark {
    width: 40px;
    height: 40px;
  }
}
