:root {
  --ink: #17212b;
  --muted: #617080;
  --line: #d8e0e6;
  --surface: #ffffff;
  --wash: #f3f6f8;
  --accent: #0f766e;
  --accent-dark: #0b5952;
  --blue: #315f9f;
  --yellow: #d7a21b;
  --red: #b34a4a;
  --shadow: 0 16px 44px rgba(23, 33, 43, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
}

body.auth-pending main {
  opacity: 0;
  pointer-events: none;
}

body main {
  transition: opacity .12s ease;
}

button,
a {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand span:not(.brand-mark) {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: white;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 8px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-user-switch {
  display: grid;
  gap: 3px;
  min-width: 220px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.test-user-switch select {
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
}

.device-switch {
  min-width: 140px;
}

.real-server-mode .test-user-switch {
  display: none;
}

.real-server-mode .device-switch {
  display: none;
}

.session-menu {
  position: relative;
}

.session-menu summary {
  list-style: none;
  cursor: pointer;
}

.session-menu summary::-webkit-details-marker {
  display: none;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 190px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.session-badge #sessionInitials {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: white;
  background: var(--accent);
  border-radius: 50%;
  letter-spacing: 0;
}

.session-badge strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-badge .session-chevron {
  display: inline-block;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  color: var(--muted);
  background: transparent;
  border-radius: 0;
  font-size: 14px;
  line-height: 1;
  transition: transform 160ms ease;
}

.session-menu[open] .session-chevron {
  transform: rotate(180deg);
}

.session-dropdown {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 180px;
  padding: 7px;
  border: 1px solid #dbe4ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.session-dropdown a,
.session-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.session-dropdown a:hover,
.session-dropdown button:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.logout-button {
  margin-top: 3px;
  border-top: 1px solid #e8eef2 !important;
  border-radius: 0 0 8px 8px !important;
}

nav a,
.secondary,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 7px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

nav a {
  position: relative;
  color: var(--muted);
  font-weight: 600;
}

nav a:hover {
  color: var(--ink);
  background: #edf2f5;
}

nav a.active-page {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(15, 118, 110, .22);
  font-weight: 800;
}

nav a.active-page:hover {
  color: white;
  background: var(--accent-dark);
}

.current-label {
  position: absolute;
  top: -10px;
  left: 50%;
  padding: 2px 7px;
  color: var(--accent-dark);
  background: #dff3ef;
  border: 1px solid #bfe3dc;
  border-radius: 999px;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  text-transform: uppercase;
}

.primary {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.primary:hover {
  background: var(--accent-dark);
}

.primary.is-loading,
.primary.is-loading:disabled {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  cursor: wait;
  opacity: .78;
}

.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
  font-weight: 700;
}

.small {
  min-height: 38px;
}

.full {
  width: 100%;
}

main {
  overflow: hidden;
}

.hero,
.workspace,
.operations,
.profile,
.admin,
.roadmap {
  padding: clamp(34px, 6vw, 76px) clamp(18px, 4vw, 54px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 72px);
  background:
    linear-gradient(90deg, rgba(243, 246, 248, .96), rgba(243, 246, 248, .72)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 78px;
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  color: #344454;
  font-size: 21px;
  line-height: 1.55;
}

.hero-copy .hero-offer {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 9px 14px;
  color: #075f57;
  background: #d9f4ee;
  border: 1px solid #9bd8cc;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-copy .hero-trust {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.how-it-works {
  padding: clamp(54px, 7vw, 90px) clamp(18px, 4vw, 54px);
  background: #f7fafb;
}

.how-it-works-heading {
  max-width: 820px;
  margin: 0 auto clamp(30px, 5vw, 52px);
  text-align: center;
}

.how-it-works-heading > p:not(.eyebrow) {
  max-width: 670px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
  max-width: 1380px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.how-it-works-card {
  position: relative;
  min-height: 280px;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.how-it-works-card h3 {
  margin-top: 22px;
  font-size: 25px;
}

.how-it-works-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.marketing-detail-link {
  margin: 24px 0 0;
  text-align: center;
}

.marketing-detail-link a {
  color: #08766d;
  font-weight: 800;
  text-underline-offset: 4px;
}

.step-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: #b8d8d3;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.step-icon {
  position: relative;
  width: 58px;
  height: 58px;
  background: #d9f4ee;
  border: 2px solid var(--accent);
  border-radius: 15px;
}

.step-icon::before,
.step-icon::after {
  position: absolute;
  content: "";
}

.step-icon-design::before {
  inset: 14px;
  border: 3px solid var(--accent-dark);
  border-radius: 4px;
}

.step-icon-design::after {
  top: 27px;
  left: 8px;
  width: 42px;
  border-top: 3px solid var(--accent-dark);
}

.step-icon-invite::before {
  top: 11px;
  left: 19px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--accent-dark);
  border-radius: 50%;
}

.step-icon-invite::after {
  bottom: 10px;
  left: 11px;
  width: 30px;
  height: 15px;
  border: 3px solid var(--accent-dark);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.step-icon-book::before {
  inset: 12px 10px 10px;
  border: 3px solid var(--accent-dark);
  border-radius: 4px;
}

.step-icon-book::after {
  top: 20px;
  left: 16px;
  width: 24px;
  height: 12px;
  border-top: 3px solid var(--accent-dark);
  border-bottom: 3px solid var(--accent-dark);
}

.pricing-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr) auto;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  margin: 0 clamp(18px, 4vw, 54px) clamp(34px, 6vw, 76px);
  padding: clamp(26px, 4vw, 46px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.pricing-highlight h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.pricing-highlight-copy > p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.pricing-highlight-copy .pricing-annual {
  color: var(--accent-dark);
  font-weight: 800;
}

.pricing-benefits {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-benefits li {
  position: relative;
  padding-left: 30px;
  color: #344454;
  font-weight: 700;
  line-height: 1.4;
}

.pricing-benefits li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  content: "✓";
  font-size: 20px;
  font-weight: 900;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: clamp(30px, 6vw, 86px);
  padding: clamp(54px, 7vw, 90px) clamp(18px, 4vw, 54px);
  background: #f7fafb;
}

.faq-heading {
  align-self: start;
  position: sticky;
  top: 110px;
}

.faq-heading > p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.faq-list summary {
  position: relative;
  padding: 22px 38px 22px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 2px;
  color: var(--accent-dark);
  content: "+";
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: -4px 0 22px;
  padding-right: 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-panel {
  padding: 20px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-product-preview {
  padding: 10px;
  overflow: hidden;
}

.hero-product-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.metric {
  display: inline-grid;
  width: calc(50% - 8px);
  margin: 0 4px 16px;
  padding: 16px;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.metric strong {
  font-size: 36px;
}

.mini-map {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  min-height: 260px;
  padding: 18px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-map span {
  align-self: center;
  justify-self: center;
  width: 56px;
  height: 48px;
  background: #dae9e7;
  border: 3px solid var(--accent);
  border-radius: 6px;
}

.mini-map .wide {
  grid-column: span 2;
  width: 116px;
}

.mini-map .round {
  border-radius: 50%;
}

.mini-map .parking {
  background: #e8edf7;
  border-color: var(--blue);
}

.mini-map .court {
  grid-column: span 2;
  width: 128px;
  background: #fff4d4;
  border-color: var(--yellow);
}

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

.design-name-field {
  display: grid;
  gap: 4px;
  min-width: 240px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.design-name-field input {
  min-height: 40px;
  background: white;
}

.page-availability-filter {
  display: grid;
  min-width: min(360px, 100%);
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.page-availability-filter select {
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.page-availability-filter span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.canvas-availability-filter {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(180px, 1fr);
  align-items: end;
  gap: 8px 14px;
  padding: 12px 18px;
  background: #f7fafb;
  border-bottom: 1px solid var(--line);
}

.canvas-availability-filter select {
  grid-column: 1;
}

.canvas-availability-filter span {
  grid-column: 2;
  align-self: center;
}

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

.block-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.block-tab {
  min-height: 42px;
  background: white;
  border-color: var(--line);
  font-weight: 800;
}

.block-tab.active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

button {
  min-height: 40px;
  padding: 0 13px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

button:hover {
  border-color: #aebcc8;
}

button:disabled {
  color: #9aa7b2;
  background: #edf2f5;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

.designer-shell {
  display: grid;
  grid-template-columns: 230px minmax(720px, 1fr);
  min-height: 640px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.subscription-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.subscription-summary {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.subscription-summary h3 {
  margin: 0;
  font-size: 24px;
}

.subscription-summary p {
  margin: 6px 0 0;
  color: var(--muted);
}

.subscription-next-payment {
  display: grid;
  gap: 5px;
  min-width: 210px;
  padding: 12px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.subscription-next-payment span {
  color: var(--muted);
  font-weight: 800;
}

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

.subscription-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.subscription-form input,
.subscription-form select {
  min-height: 40px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.subscription-form .form-note {
  align-self: center;
}

.palette,
.side-panel {
  padding: 18px;
  background: #fbfcfd;
}

.palette {
  border-right: 1px solid var(--line);
}

.side-panel {
  border-left: 1px solid var(--line);
}

.designer-shell > .side-panel {
  display: none;
}

.signup-host:not(.signup-open) {
  display: none;
}

.side-panel.signup-open {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 33, 43, .62);
  border: 0;
  backdrop-filter: blur(3px);
}

.side-panel.signup-open #userSignupBox {
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  margin: 0;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(23, 33, 43, .28);
}

.side-panel.signup-open .panel-title {
  margin-bottom: 18px;
}

.side-panel.signup-open .panel-title h3 {
  font-size: 24px;
}

.side-panel.signup-open .panel-title button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 8px;
}

.side-panel.signup-open .user-form {
  display: grid;
  gap: 14px;
}

.side-panel.signup-open .user-form label {
  margin-bottom: 0;
}

.side-panel.signup-open input,
.side-panel.signup-open select {
  min-height: 44px;
  padding: 10px 12px;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.password-field button {
  min-height: 44px;
  padding: 0 14px;
  color: var(--accent-dark);
  background: #eef8f6;
  border: 1px solid #b8d8d3;
  border-radius: 7px;
  font-weight: 800;
}

.side-panel.signup-open .check {
  display: flex;
  gap: 9px;
  align-items: center;
}

.side-panel.signup-open .current-user {
  display: none;
}

.tool {
  --tool-surface: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  text-align: left;
}

.tool.selected {
  --tool-surface: var(--ink);
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.placing-tool .canvas {
  outline: 3px solid rgba(15, 118, 110, .45);
  outline-offset: -6px;
}

.placing-tool .canvas::after {
  content: "Suelta aqui para colocar";
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 12px;
  color: white;
  background: var(--accent);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 26px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.table-icon {
  margin: 6px;
}

.icon.rect {
  width: 34px;
}

.icon.circle {
  border-radius: 50%;
}

.icon.oval {
  width: 38px;
  border-radius: 999px;
}

.icon.l-shape {
  width: 36px;
  height: 28px;
  border: 0;
  border-radius: 2px;
}

.icon.l-shape::before,
.icon.l-shape::after {
  content: "";
  position: absolute;
  inset: 0;
}

.icon.l-shape::before {
  background: currentColor;
}

.icon.l-shape::after {
  background: var(--tool-surface);
}

.icon.l-shape.right-wing::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 62% 100%, 62% 42%, 0 42%);
}

.icon.l-shape.right-wing::after {
  clip-path: polygon(2px 2px, calc(100% - 2px) 2px, calc(100% - 2px) calc(100% - 2px), calc(62% + 2px) calc(100% - 2px), calc(62% + 2px) calc(42% - 2px), 2px calc(42% - 2px));
}

.icon.l-shape.left-wing::before {
  clip-path: polygon(0 0, 100% 0, 100% 42%, 38% 42%, 38% 100%, 0 100%);
}

.icon.l-shape.left-wing::after {
  clip-path: polygon(2px 2px, calc(100% - 2px) 2px, calc(100% - 2px) calc(42% - 2px), calc(38% - 2px) calc(42% - 2px), calc(38% - 2px) calc(100% - 2px), 2px calc(100% - 2px));
}

.wall-tool-icon {
  width: 34px;
  height: 4px;
  margin: 10px 0;
  background: currentColor;
  border: 0;
  border-radius: 0;
}

.column-tool-icon {
  width: 11px;
  height: 11px;
  background: currentColor;
  border: 0;
  border-radius: 2px;
}

.meeting-room-tool-icon {
  width: 42px;
  height: 25px;
  background: #e8eef8;
  border: 3px solid #315f9f;
  border-radius: 4px;
}

.icon.parking-shape::after {
  content: "P";
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 13px;
  font-weight: 900;
}

.icon.court-shape {
  width: 36px;
  background: currentColor;
  opacity: .7;
}

.chair-tool-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.chair-tool-icon::before,
.chair-tool-icon::after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 3px;
  height: 5px;
  background: currentColor;
  border-radius: 999px;
}

.chair-tool-icon::before {
  left: 4px;
}

.chair-tool-icon::after {
  right: 4px;
}

.executive-chair-tool-icon {
  position: relative;
  width: 22px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 6px;
}

.executive-chair-tool-icon::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 13px;
  height: 8px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 6px 6px 2px 2px;
  transform: translateX(-50%);
}

.executive-chair-tool-icon::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: -6px;
  left: 3px;
  height: 4px;
  border-right: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.seat {
  position: absolute;
  display: block;
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 2px;
}

.seat-top {
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
}

.seat-right {
  top: 50%;
  right: -9px;
  transform: translateY(-50%);
}

.seat-bottom {
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
}

.seat-left {
  top: 50%;
  left: -9px;
  transform: translateY(-50%);
}

.seat-top-left {
  top: -9px;
  left: 5px;
}

.seat-top-right {
  top: -9px;
  right: 5px;
}

.seat-bottom-left {
  bottom: -9px;
  left: 5px;
}

.seat-bottom-right {
  right: 5px;
  bottom: -9px;
}

.hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.canvas-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.canvas-head span {
  color: var(--muted);
  font-size: 14px;
}

.canvas {
  position: relative;
  flex: 1;
  min-height: 580px;
  background-color: #fdfefe;
  background-image:
    linear-gradient(#e4eaee 1px, transparent 1px),
    linear-gradient(90deg, #e4eaee 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}

.canvas-resize-handle {
  position: relative;
  width: 100%;
  height: 18px;
  min-height: 18px;
  padding: 0;
  background: #f4f7f8;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  cursor: ns-resize;
  touch-action: none;
}

.canvas-resize-handle::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 54px;
  height: 4px;
  background: #91a0aa;
  border-radius: 999px;
  transform: translateX(-50%);
}

.canvas-resize-handle:hover,
.canvas-resize-handle:focus-visible {
  background: #e7f3f1;
}

body.resizing-canvas {
  cursor: ns-resize;
  user-select: none;
}

.materials-panel {
  min-height: 580px;
  padding: 18px;
  background: #fdfefe;
}

.material-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.material-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.material-file-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: #526171;
  font-weight: 700;
}

.material-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.material-file-control {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.7rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #d6e0e7;
  border-radius: 0.55rem;
  background: #fff;
  color: #17212d;
  font-weight: 400;
}

.material-file-control button {
  flex: 0 0 auto;
  padding: 0.35rem 0.55rem;
}

.material-file-control span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.materials-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.material-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.material-card h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.material-card p,
.empty-state {
  margin: 0;
  color: var(--muted);
}

.material-photo {
  display: grid;
  min-height: 132px;
  place-items: center;
  color: var(--muted);
  background: #eef3f6;
  border: 1px dashed #b9c6d0;
  border-radius: 8px;
  overflow: hidden;
}

.material-photo img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.space-item {
  position: absolute;
  transform: rotate(var(--rotation, 0deg));
  min-width: 70px;
  min-height: 54px;
  padding: 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  user-select: none;
  touch-action: none;
  cursor: grab;
}

.space-item:active {
  cursor: grabbing;
}

.space-item.selected-space {
  outline: 3px solid rgba(49, 95, 159, .5);
  outline-offset: 5px;
}

.space-item.chair-drop-target {
  outline: 4px solid rgba(15, 118, 110, .62);
  outline-offset: 7px;
  box-shadow: 0 0 0 10px rgba(15, 118, 110, .12);
}

.space-item.blocked {
  outline: 3px solid rgba(179, 74, 74, .75);
  outline-offset: 5px;
}

.space-item-name {
  position: relative;
  z-index: 2;
  width: calc(100% - 12px);
  max-width: 130px;
  padding: 3px 4px;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.space-item-name:focus {
  background: #ffffff;
  border-color: var(--blue);
  outline: 2px solid rgba(49, 95, 159, .18);
}

.drag-preview {
  position: fixed;
  z-index: 50;
  opacity: .78;
  filter: drop-shadow(0 14px 20px rgba(23, 33, 43, .22));
  pointer-events: none;
  cursor: grabbing;
}

.drag-preview .chair {
  pointer-events: none;
}

.delete-object,
.rotate-object {
  position: absolute;
  top: -10px;
  z-index: 3;
  display: grid;
  width: 26px;
  height: 26px;
  min-height: 26px;
  place-items: center;
  padding: 0;
  color: white;
  background: var(--red);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(23, 33, 43, .24);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.delete-object {
  right: -10px;
}

.rotate-object {
  left: -10px;
  background: var(--blue);
  cursor: grab;
}

.delete-object:hover {
  background: #8f3535;
  border-color: white;
}

.rotate-object:hover {
  background: #254b80;
  border-color: white;
}

.rotating-space,
.rotating-space * {
  cursor: grabbing !important;
}

.drag-preview .delete-object,
.drag-preview .rotate-object,
.drag-preview .wall-resize-handle {
  display: none;
}

.drag-preview .table-resize-handle {
  display: none;
}

.table-top {
  position: absolute;
  z-index: 1;
  inset: 26px;
  display: grid;
  place-items: center;
  padding: 8px;
  background: #e7f3f1;
  border: 3px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(23, 33, 43, .08);
}

.table-label {
  position: relative;
  z-index: 1;
}

.space-item.reserved .table-top {
  color: #7a2c2c;
  background: #fae5e5;
  border-color: var(--red);
}

.chair {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 24px;
  height: 24px;
  min-height: 24px;
  place-items: center;
  padding: 0;
  color: var(--accent-dark);
  background: #ffffff;
  border: 2px solid var(--accent);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  cursor: grab;
}

.chair.drag-preview {
  position: fixed;
  z-index: 80;
  pointer-events: none;
}

.chair.executive-chair {
  width: 30px;
  height: 30px;
  min-height: 30px;
  border-width: 3px;
  border-radius: 7px;
}

.chair.executive-chair::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 17px;
  height: 8px;
  background: #eef7f5;
  border: 3px solid var(--accent);
  border-bottom-width: 2px;
  border-radius: 7px 7px 3px 3px;
  transform: translateX(-50%);
}

.chair.executive-chair:hover::before,
.chair.executive-chair.reserved::before,
.chair.executive-chair.blocked-chair::before {
  background: currentColor;
}

.chair-number {
  pointer-events: none;
}

.chair-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  color: white;
  background: var(--red);
  border: 1px solid white;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(23, 33, 43, .25);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.chair-remove:hover {
  background: #8f3535;
}

.chair:active {
  cursor: grabbing;
}

.chair:hover,
.chair.reserved {
  color: white;
  background: var(--accent);
}

.chair.reserved {
  border-color: var(--accent-dark);
}

.chair.selected-chair {
  outline: 3px solid rgba(49, 95, 159, .45);
  outline-offset: 3px;
}

.chair.blocked-chair {
  color: white;
  background: var(--red);
  border-color: #7a2c2c;
}

.chair.top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.chair.bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.chair.left {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.chair.right {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.chair.top-left {
  top: 0;
  left: 22px;
}

.chair.top-right {
  top: 0;
  right: 22px;
}

.chair.bottom-left {
  bottom: 0;
  left: 22px;
}

.chair.bottom-right {
  right: 22px;
  bottom: 0;
}

.chair.round-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.chair.round-2 {
  top: 26px;
  right: 0;
}

.chair.round-3 {
  right: 0;
  bottom: 26px;
}

.chair.round-4 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.chair.round-5 {
  bottom: 26px;
  left: 0;
}

.chair.round-6 {
  top: 26px;
  left: 0;
}

.space-item.desk-square {
  width: 132px;
  height: 112px;
}

.space-item.desk-rect {
  width: 188px;
  height: 118px;
}

.space-item.meeting-room {
  display: grid;
  width: 260px;
  height: 160px;
  place-items: center;
  padding: 22px;
  color: #193b6b;
  background: #e8eef8;
  border: 3px solid #315f9f;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(49, 95, 159, .14);
}

.space-item.meeting-room.reserved,
.reservation-plan-item.meeting-room.availability-none {
  color: #7a2c2c;
  background: #fae5e5;
  border-color: var(--red);
}

.space-item.desk-round {
  width: 146px;
  height: 146px;
}

.space-item.desk-round .table-top {
  inset: 34px;
  border-radius: 50%;
}

.space-item.desk-oval {
  width: 180px;
  height: 118px;
}

.space-item.desk-oval .table-top {
  inset: 25px 22px;
  border-radius: 999px;
}

.space-item.desk-single {
  width: 104px;
  height: 96px;
}

.space-item.desk-single .table-top {
  inset: 18px 20px 32px;
}

.space-item.desk-l-right,
.space-item.desk-l-left {
  width: 176px;
  height: 134px;
}

.space-item.desk-l-right .table-top,
.space-item.desk-l-left .table-top {
  --l-desk-fill: #e5f2f0;
  --l-desk-outline: var(--accent);
  inset: 26px;
  padding: 5px;
  background: var(--l-desk-outline) !important;
  border: 0;
  border-radius: 3px;
  isolation: isolate;
}

.space-item.desk-l-right .table-top::before,
.space-item.desk-l-left .table-top::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 3px;
  background: var(--l-desk-fill);
}

.space-item.desk-l-right .table-top {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 64% 100%, 64% 40%, 0 40%);
}

.space-item.desk-l-right .table-top::before {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 67% 100%, 67% 35%, 0 35%);
}

.space-item.desk-l-left .table-top {
  clip-path: polygon(0 0, 100% 0, 100% 40%, 36% 40%, 36% 100%, 0 100%);
}

.space-item.desk-l-left .table-top::before {
  clip-path: polygon(0 0, 100% 0, 100% 35%, 33% 35%, 33% 100%, 0 100%);
}

.space-item:is(.desk-l-right, .desk-l-left) .table-label {
  position: absolute;
  top: 7px;
  left: 0;
  width: 100%;
  padding: 0 8px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.space-item.reserved:is(.desk-l-right, .desk-l-left) .table-top,
.reservation-plan-item.availability-none:is(.desk-l-right, .desk-l-left) .table-top {
  --l-desk-fill: #fae5e5;
  --l-desk-outline: var(--red);
}

.reservation-plan-item.availability-full:is(.desk-l-right, .desk-l-left) .table-top {
  --l-desk-fill: #dff2ef;
  --l-desk-outline: #0f766e;
}

.reservation-plan-item.availability-high:is(.desk-l-right, .desk-l-left) .table-top {
  --l-desk-fill: #fff7cc;
  --l-desk-outline: #d9a313;
}

.reservation-plan-item.availability-medium:is(.desk-l-right, .desk-l-left) .table-top {
  --l-desk-fill: #ffe2a8;
  --l-desk-outline: #d48512;
}

.reservation-plan-item.availability-low:is(.desk-l-right, .desk-l-left) .table-top {
  --l-desk-fill: #ffd2a1;
  --l-desk-outline: #c65f18;
}

#canvas .space-item.desk-single .chair,
#layoutCanvas .space-item.desk-single .chair {
  pointer-events: none;
}

.space-item.office-wall {
  width: 165px;
  height: 7px;
  min-width: 40px;
  min-height: 7px;
  padding: 0;
  background: #5f6e79;
  border-radius: 0;
  box-shadow: 0 6px 14px rgba(23, 33, 43, .14);
}

.space-item.office-wall .delete-object {
  top: -34px;
  right: -14px;
}

.space-item.office-wall .rotate-object {
  top: -34px;
  left: -14px;
}

.space-item.space-column {
  width: 21px;
  height: 21px;
  min-width: 21px;
  min-height: 21px;
  padding: 0;
  background: #6b7780;
  border: 2px solid #44515d;
  border-radius: 2px;
  box-shadow: 0 8px 18px rgba(23, 33, 43, .12);
}

.space-item.space-column .delete-object {
  top: -8px;
  right: -8px;
  width: 14px;
  height: 14px;
  min-height: 14px;
  border-width: 1px;
  box-shadow: 0 2px 6px rgba(23, 33, 43, .25);
  font-size: 9px;
}

.wall-resize-handle {
  position: absolute;
  top: 50%;
  right: -28px;
  z-index: 5;
  width: 16px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  background: #ffffff;
  border: 2px solid #5f6e79;
  border-radius: 4px;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.wall-resize-handle::before {
  content: "";
  position: absolute;
  inset: 4px 6px;
  border-left: 2px solid #5f6e79;
  border-right: 2px solid #5f6e79;
}

.table-resize-handle {
  position: absolute;
  right: -13px;
  bottom: -13px;
  z-index: 8;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  background: #ffffff;
  border: 2px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(23, 33, 43, .22);
  cursor: nwse-resize;
  touch-action: none;
}

.table-resize-handle::before {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.table-resize-handle:hover,
.table-resize-handle:focus-visible {
  background: #e7f3f1;
}

.space-item.office-chair {
  display: grid;
  width: 70px;
  height: 76px;
  place-items: center;
  gap: 3px;
  padding: 7px;
}

.standalone-chair {
  position: relative;
  width: 34px;
  height: 40px;
}

.standalone-chair .chair-back,
.standalone-chair .chair-seat {
  position: absolute;
  left: 50%;
  width: 30px;
  border: 3px solid var(--accent);
  border-radius: 8px;
  transform: translateX(-50%);
}

.standalone-chair .chair-back {
  top: 0;
  height: 18px;
  background: #eef7f5;
}

.standalone-chair .chair-seat {
  top: 18px;
  height: 18px;
  background: #dcefed;
}

.standalone-chair .chair-leg {
  position: absolute;
  bottom: 0;
  width: 5px;
  height: 10px;
  background: var(--accent);
  border-radius: 999px;
}

.standalone-chair .chair-leg.left {
  left: 8px;
}

.standalone-chair .chair-leg.right {
  right: 8px;
}

.chair-label {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.space-item.parking {
  width: 86px;
  height: 118px;
  background: #eef3fb;
  border: 3px solid var(--blue);
  border-color: var(--blue);
  display: grid;
  place-items: center;
}

.space-item.court {
  width: 168px;
  height: 96px;
  background: #fff5d8;
  border: 3px solid var(--yellow);
  border-color: var(--yellow);
  display: grid;
  place-items: center;
}

.side-panel label,
.user-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.check {
  grid-template-columns: 18px 1fr;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
}

.check input {
  width: 18px;
  min-height: 18px;
}

.user-box {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-title h3 {
  margin-bottom: 0;
}

.panel-title button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  color: white;
  background: var(--red);
  border-color: var(--red);
  font-weight: 900;
}

.current-user {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.current-user strong {
  color: var(--ink);
  font-size: 15px;
}

.saved-designs {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.saved-design {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.saved-design div:first-child {
  display: grid;
  gap: 3px;
}

.saved-design span,
.saved-design small {
  color: var(--muted);
}

.saved-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.operations,
.profile,
.roadmap {
  background: white;
}

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

.ops-grid article,
.profile-card,
.admin-grid > div {
  padding: 18px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reservation-controls {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.reservation-controls label {
  display: grid;
  min-width: 280px;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.reservation-controls select,
.reservation-controls input {
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.reservation-preview {
  min-height: 420px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

.reservation-plan-item {
  border: 0;
}

.reservation-plan-item.visual-only {
  cursor: default;
}

.reservation-plan-item.visual-only::after {
  display: none;
}

.reservation-plan-item .chair {
  cursor: pointer;
}

.reservation-plan-item .chair-remove {
  display: none;
}

.reservation-plan-item::after {
  content: "Reservar";
  position: absolute;
  left: 50%;
  bottom: -28px;
  padding: 4px 8px;
  color: white;
  background: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .18s ease;
  pointer-events: none;
}

.reservation-plan-item:hover::after,
.reservation-plan-item:focus-visible::after {
  opacity: 1;
}

.profile-grid {
  grid-template-columns: minmax(260px, 420px) minmax(260px, 1fr);
}

.profile-card {
  display: grid;
  gap: 14px;
}

.profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-card-head h3 {
  margin: 0;
}

.profile-card-head button {
  min-height: 36px;
}

.profile-notifications-card {
  align-self: start;
}

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

.notification-row {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notification-row.unread {
  border-color: #9ad7ce;
  background: #f0fbf8;
}

.notification-row span {
  color: var(--muted);
  font-size: 14px;
}

.profile-grid .subscription-panel {
  grid-column: 1 / -1;
}

.login-page {
  background: white;
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(260px, 460px) minmax(260px, 1fr);
  gap: 14px;
}

.signup-confirmation-notice {
  padding: 13px 14px;
  color: #17443f;
  background: #edf8f6;
  border: 1px solid #b9ddd7;
  border-radius: 8px;
}

.signup-confirmation-notice strong,
.signup-confirmation-notice p {
  display: block;
  margin: 0;
}

.signup-confirmation-notice p {
  margin-top: 5px;
  line-height: 1.45;
}

.signup-confirmation-notice b {
  overflow-wrap: anywhere;
}

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

.profile-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.profile-form input {
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.profile-form button,
.profile-summary,
.password-help {
  grid-column: 1 / -1;
}

.contact-page { background: white; }
.contact-grid { display: grid; grid-template-columns: minmax(300px, 720px) minmax(240px, 1fr); gap: 18px; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-form label:not(.check) { display: grid; gap: 7px; color: var(--muted); font-weight: 800; }
.contact-form input,
.contact-form textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-wide-field { grid-column: 1 / -1; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-aside { padding: 22px; background: #f0f8f7; border: 1px solid var(--line); border-radius: 8px; }
.contact-aside a { color: var(--accent); font-size: 22px; font-weight: 900; }

@media (max-width: 780px) {
  .contact-grid,
  .contact-form { grid-template-columns: 1fr; }
  .contact-wide-field { grid-column: auto; }
}

.profile-summary {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reservation-object {
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.reservation-object.availability-full,
.reservation-plan-item.availability-full .table-top,
.reservation-plan-item.availability-full:not(.desk-square):not(.desk-rect):not(.desk-round):not(.desk-oval):not(.desk-single):not(.desk-l-right):not(.desk-l-left),
.chair.availability-full {
  background: #dff2ef;
  border-color: #0f766e;
}

.reservation-object.availability-high,
.reservation-plan-item.availability-high .table-top,
.reservation-plan-item.availability-high:not(.desk-square):not(.desk-rect):not(.desk-round):not(.desk-oval):not(.desk-single):not(.desk-l-right):not(.desk-l-left),
.chair.availability-high {
  background: #fff7cc;
  border-color: #d9a313;
}

.reservation-object.availability-medium,
.reservation-plan-item.availability-medium .table-top,
.reservation-plan-item.availability-medium:not(.desk-square):not(.desk-rect):not(.desk-round):not(.desk-oval):not(.desk-single):not(.desk-l-right):not(.desk-l-left),
.chair.availability-medium {
  background: #ffe2a8;
  border-color: #d48512;
}

.reservation-object.availability-low,
.reservation-plan-item.availability-low .table-top,
.reservation-plan-item.availability-low:not(.desk-square):not(.desk-rect):not(.desk-round):not(.desk-oval):not(.desk-single):not(.desk-l-right):not(.desk-l-left),
.chair.availability-low {
  background: #ffd2a1;
  border-color: #c65f18;
}

.reservation-object.availability-none,
.reservation-plan-item.availability-none .table-top,
.reservation-plan-item.availability-none:not(.desk-square):not(.desk-rect):not(.desk-round):not(.desk-oval):not(.desk-single):not(.desk-l-right):not(.desk-l-left),
.chair.availability-none {
  color: #7a2c2c;
  background: #fae5e5;
  border-color: var(--red);
}

.reservation-plan-item.meeting-room:not(.availability-none) {
  color: #193b6b;
  background: #e8eef8;
  border-color: #315f9f;
}

.reservation-object.availability-full {
  border-color: #0f766e;
}

.reservation-object.availability-high {
  border-color: #d9a313;
}

.reservation-object.availability-medium {
  border-color: #d48512;
}

.reservation-object.availability-low {
  border-color: #c65f18;
}

.reservation-object.availability-none {
  border-color: var(--red);
}

.reservation-object:hover,
.reservation-object:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(15, 118, 110, .14);
  outline: none;
  transform: translateY(-1px);
}

.reservation-object.reserved-by-other {
  border-color: var(--red);
  background: #fff5f5;
}

.ops-grid p,
.admin-grid p,
.timeline span {
  color: var(--muted);
  line-height: 1.5;
}

.status {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status.free {
  color: var(--accent-dark);
  background: #dff2ef;
}

.status.busy {
  color: #7a2c2c;
  background: #fae5e5;
}

.admin {
  background: #eef3f6;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline div {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 18px;
  background: white;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 330px;
  padding: 14px 16px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: .2s ease;
  pointer-events: none;
  z-index: 60;
}

.analytics-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  display: flex;
  width: min(680px, calc(100vw - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .2);
}

.analytics-consent p {
  margin: 5px 0 0;
  color: var(--muted);
}

.analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

@media (max-width: 640px) {
  .analytics-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-consent-actions button {
    flex: 1;
  }
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 33, 43, .48);
}

.reservation-modal {
  display: grid;
  gap: 16px;
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.invite-modal textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  padding: 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  line-height: 1.45;
}

.invite-modal .form-note.invalid {
  color: #7a2c2c;
  font-weight: 800;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.modal-head h2 {
  margin: 4px 0 0;
}

.modal-head button {
  width: 34px;
  height: 34px;
  padding: 0;
}

.access-notice {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.access-notice.allowed {
  color: var(--accent-dark);
  background: #dff2ef;
}

.access-notice.denied {
  color: #7a2c2c;
  background: #fae5e5;
}

.reservation-rules {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reservation-rules span {
  padding: 7px 10px;
  color: var(--ink);
  background: #edf2f5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.reservation-calendar {
  display: grid;
  gap: 12px;
}

.recurrence-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.recurrence-toggle {
  justify-content: start;
  font-weight: 800;
}

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

.recurrence-options label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.recurrence-options input,
.recurrence-options select {
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px auto;
  align-items: center;
  gap: 10px;
}

.calendar-toolbar > button {
  width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 24px;
}

.calendar-view-tabs {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
}

.calendar-view-tabs button {
  min-height: 36px;
  padding: 7px 12px;
  color: var(--muted);
  background: white;
}

.calendar-view-tabs button.active {
  color: white;
  background: var(--accent);
  border-color: var(--accent-dark);
}

.reservation-calendar-grid {
  display: grid;
  gap: 10px;
}

.reservation-calendar-grid.day {
  grid-template-columns: 1fr;
}

.reservation-calendar-grid.week {
  grid-template-columns: 72px repeat(7, minmax(105px, 1fr));
  gap: 0;
  max-height: min(62vh, 680px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  isolation: isolate;
}

.calendar-week-corner,
.calendar-week-header,
.calendar-week-actions-corner,
.calendar-week-actions,
.calendar-week-time,
.calendar-week-empty {
  min-height: 48px;
  padding: 9px;
  background: #f7fafb;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-week-corner,
.calendar-week-time {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.calendar-week-header {
  display: grid;
  align-content: center;
  gap: 6px;
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 2px 4px rgb(22 34 47 / 8%);
}

.calendar-week-actions {
  display: grid;
  align-content: start;
  min-height: 112px;
  background: white;
}

.calendar-week-actions-corner {
  position: sticky;
  left: 0;
  z-index: 2;
  min-height: 112px;
  background: #f7fafb;
  box-shadow: 2px 0 4px rgb(22 34 47 / 8%);
}

.calendar-week-time {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 2px 0 4px rgb(22 34 47 / 8%);
}

.calendar-week-corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 4;
  box-shadow: 2px 2px 4px rgb(22 34 47 / 10%);
}

.calendar-week-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.calendar-week-header h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.calendar-day-quick-actions {
  display: grid;
  gap: 4px;
  width: 100%;
}

.calendar-day-quick-action {
  width: 100%;
  min-height: 26px;
  padding: 3px 5px;
  color: var(--accent-dark);
  background: #dff2ef;
  border-color: #b7d8d3;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.calendar-day-quick-action:hover {
  color: white;
  background: var(--accent);
  border-color: var(--accent-dark);
}

.calendar-day > .calendar-day-quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reservation-calendar-grid.week .calendar-slot {
  min-height: 48px;
  margin: 0;
  padding: 7px 5px;
  place-items: center;
  text-align: center;
  border-width: 0 1px 1px 0;
  border-color: var(--line);
  border-radius: 0;
}

.reservation-calendar-grid.week .calendar-slot.free {
  border-color: var(--line);
}

.reservation-calendar-grid.week > :nth-child(8n) {
  border-right: 0;
}

.reservation-calendar-grid.month {
  grid-template-columns: repeat(7, minmax(96px, 1fr));
}

.calendar-day {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 100px;
  padding: 10px;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calendar-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-day h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.calendar-day-cancel {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  color: white;
  font-size: 20px;
  line-height: 1;
  background: var(--red);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgb(0 0 0 / 18%);
}

.calendar-day-cancel:hover {
  background: #9f3030;
}

.calendar-slot,
.calendar-month-summary {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  text-align: left;
  background: white;
  border-color: #b7d8d3;
}

.calendar-slot.free:hover,
.calendar-slot.selected {
  color: white;
  background: var(--accent);
  border-color: var(--accent-dark);
}

.calendar-slot.reserved,
.calendar-month-summary.reserved {
  color: #681f1f;
  background: #fae5e5;
  border-color: var(--red);
}

.calendar-slot.own-reservation {
  cursor: pointer;
  color: #681f1f;
  background: #fff0f0;
  border-color: var(--red);
}

.calendar-slot.own-reservation:hover {
  color: white;
  background: var(--red);
}

.calendar-slot.manageable-reservation {
  cursor: pointer;
  color: #6e3e03;
  background: #fff0cc;
  border-color: #d48512;
}

.calendar-slot.manageable-reservation:hover {
  background: #ffe2a8;
}

.mobile-app-mode {
  background: white;
}

.mobile-app-mode .topbar {
  position: sticky;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
}

.mobile-app-mode .brand {
  min-width: 0;
}

.mobile-app-mode .brand span:not(.brand-mark) {
  display: none;
}

.mobile-app-mode .brand-mark {
  width: 38px;
  height: 38px;
}

.mobile-app-mode nav {
  order: 3;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}

.mobile-app-mode nav a {
  min-height: 44px;
  padding: 0 10px;
  white-space: normal;
}

.mobile-app-mode .topbar-actions {
  margin-left: auto;
  display: grid;
  grid-template-columns: minmax(90px, 120px) minmax(132px, 1fr) 38px;
  align-items: end;
  gap: 8px;
}

.mobile-app-mode .test-user-switch {
  min-width: 0;
}

.mobile-app-mode .test-user-switch select {
  min-height: 42px;
}

.mobile-app-mode .session-badge {
  max-width: 38px;
}

.mobile-app-mode .session-badge strong {
  display: none;
}

.mobile-app-mode main {
  padding-bottom: 16px;
}

.mobile-app-mode .operations,
.mobile-app-mode .profile {
  padding: 18px 12px;
}

.mobile-app-mode .section-heading {
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-app-mode .section-heading h2 {
  font-size: 30px;
}

.mobile-app-mode .section-heading .page-intro {
  font-size: 15px;
}

.mobile-app-mode .reservation-controls {
  display: grid;
  gap: 10px;
}

.mobile-app-mode .reservation-controls label,
.mobile-app-mode .reservation-controls select,
.mobile-app-mode .reservation-controls input {
  width: 100%;
  min-width: 0;
}

.mobile-app-mode .reservation-preview {
  min-height: 320px;
  max-height: 48vh;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.mobile-app-mode .ops-grid,
.mobile-app-mode .profile-grid {
  grid-template-columns: 1fr;
}

.mobile-app-mode .ops-grid article {
  min-height: 118px;
}

.mobile-app-mode .reservation-object button,
.mobile-app-mode .profile-form button,
.mobile-app-mode .subscription-form button {
  width: 100%;
  min-height: 48px;
}

.mobile-app-mode .modal-backdrop {
  padding: 0;
  place-items: stretch;
}

.mobile-app-mode .reservation-modal {
  width: 100%;
  max-height: 100vh;
  min-height: 100vh;
  border-radius: 0;
}

.mobile-app-mode .calendar-toolbar {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.mobile-app-mode .calendar-view-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-app-mode .reservation-calendar-grid.week,
.mobile-app-mode .reservation-calendar-grid.month {
  grid-template-columns: repeat(7, minmax(132px, 1fr));
}

.mobile-app-mode .reservation-calendar-grid.week {
  grid-template-columns: 68px repeat(7, minmax(118px, 1fr));
}

.mobile-app-mode .calendar-slot,
.mobile-app-mode .calendar-month-summary {
  min-height: 70px;
  padding: 10px;
}

.mobile-app-mode .modal-actions {
  position: sticky;
  bottom: -20px;
  padding-top: 12px;
  background: white;
}

.mobile-app-mode .modal-actions button {
  flex: 1;
  min-height: 48px;
}

.calendar-slot:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.calendar-slot span,
.calendar-month-summary span,
.calendar-month-summary small {
  font-size: 12px;
  font-weight: 800;
}

.reservation-modal .reservation-fields {
  display: none;
}

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

.availability-field,
.availability-status {
  grid-column: 1 / -1;
}

.availability-status {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 800;
}

.availability-status.available {
  color: var(--accent-dark);
  background: #dff2ef;
}

.availability-status.reserved {
  color: #7a2c2c;
  background: #fae5e5;
}

.reservation-fields label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.reservation-fields input,
.reservation-fields select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.space-item.reserved-by-other,
.chair.reserved-by-other {
  background: #f4b4b4 !important;
  border-color: var(--red) !important;
  color: #681f1f !important;
}

.modal-actions {
  justify-content: flex-end;
}

.designs-page {
  padding: clamp(34px, 6vw, 76px) clamp(18px, 4vw, 54px);
}

.design-title-switch {
  min-width: 250px;
}

.design-title-switch input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

.backend-page,
.backend-denied {
  display: grid;
  gap: 18px;
  padding: clamp(34px, 6vw, 76px) clamp(18px, 4vw, 54px);
}

.backend-denied {
  max-width: 760px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.backend-admin-card {
  display: grid;
  gap: 5px;
  min-width: 260px;
  padding: 14px 16px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.backend-admin-card span,
.backend-metrics span,
.backend-row span,
.backend-panel p {
  color: var(--muted);
}

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

.backend-metrics article {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.backend-metrics strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.backend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.backend-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.backend-tabs button {
  justify-content: center;
  min-height: 42px;
  color: var(--muted);
  background: #fbfcfd;
}

.backend-tabs button.active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.backend-panel {
  display: none;
  gap: 16px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.backend-panel.active {
  display: grid;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.panel-head h2 {
  margin: 0;
  font-size: 24px;
}

.panel-head p {
  margin: 4px 0 0;
}

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

.backend-filter {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.backend-filter input {
  width: min(520px, 100%);
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.backend-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, .7fr) minmax(180px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.backend-row > div {
  display: grid;
  gap: 5px;
  align-self: center;
}

.backend-row label,
.backend-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.backend-row input,
.backend-row select,
.backend-form input,
.backend-form select {
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.backend-row button {
  min-height: 38px;
  padding: 8px 11px;
}

.backend-pill {
  justify-self: start;
  align-self: center;
  padding: 7px 10px;
  background: #edf2f5;
  border-radius: 999px;
  font-weight: 900;
}

.backend-pill.warning {
  color: #7a2c2c;
  background: #fae5e5;
}

.backend-subsection {
  display: grid;
  gap: 10px;
}

.backend-subsection h3 {
  margin: 0;
  font-size: 20px;
}

.payment-plan-form {
  padding: 14px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.billing-row {
  grid-template-columns:
    minmax(260px, 2fr)
    minmax(145px, 1fr)
    minmax(155px, 1fr)
    minmax(105px, max-content)
    minmax(210px, 1.25fr)
    minmax(155px, 1fr);
  align-items: end;
}

.billing-row .billing-identity {
  grid-column: auto;
  min-width: 0;
  overflow: hidden;
}

.billing-row .billing-identity strong,
.billing-row .billing-identity span {
  overflow-wrap: anywhere;
}

.billing-row .billing-cycle,
.billing-row .billing-method,
.billing-row .billing-status,
.billing-row .billing-renewal {
  grid-column: auto;
  min-width: 0;
}

.billing-row .billing-manual {
  grid-column: auto;
  grid-template-columns: auto 1fr;
  align-items: center;
  align-self: center;
  color: var(--ink);
}

.billing-row .billing-manual input {
  width: 20px;
  min-height: 20px;
  margin: 0;
}

.billing-row .billing-note {
  grid-column: 1 / 6;
}

.billing-row .billing-save {
  grid-column: 6;
  width: 100%;
}

.payment-history-row {
  grid-template-columns: minmax(260px, 1fr) auto minmax(220px, 1fr);
}

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

.backend-form .check {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--ink);
}

.audit-row {
  grid-template-columns: 1fr;
}

.page-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.viewer-switch {
  display: grid;
  min-width: 260px;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.design-top-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
}

.design-top-controls button {
  min-height: 40px;
  font-weight: 800;
}

.design-actions {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

.design-actions button {
  width: 100%;
}

#deleteDesignBtn {
  color: white;
  background: var(--red);
  border-color: var(--red);
}

#deleteDesignBtn:hover {
  background: #8f3535;
  border-color: #8f3535;
}

.compact-detail-head {
  align-items: flex-start;
  margin-bottom: 16px;
}

.compact-detail-head > div {
  min-width: 0;
}

.compact-detail-head #detailTitle {
  max-width: 100%;
  margin-bottom: 0;
  overflow-wrap: anywhere;
  font-size: clamp(28px, 2.2vw, 38px);
  line-height: 1.08;
}

.compact-settings-form,
.compact-settings-form fieldset {
  display: grid;
  grid-template-columns: 1fr;
}

.compact-settings-form {
  gap: 14px;
}

.compact-settings-form fieldset {
  gap: 12px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.compact-settings-form legend {
  margin-bottom: 10px;
  padding: 0;
}

.compact-settings-form .design-data-fields {
  grid-template-columns: 1fr;
}

.compact-settings-form .design-data-fields label {
  width: 100%;
}

.compact-settings-form .design-data-fields input {
  width: 100%;
  min-height: 56px;
  font-size: 18px;
}

.compact-settings-form .global-rules-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}

.side-panel .global-rules-fields,
.side-panel .object-single-settings {
  display: none;
}

.design-rule-panels {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f7fafb;
  border-top: 1px solid var(--line);
}

.design-rule-panels fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.design-rule-panels legend {
  padding: 0 6px;
  font-weight: 900;
}

.design-rule-panels .form-note,
.design-rule-panels .object-settings-list {
  grid-column: 1 / -1;
}

.rule-panel-actions {
  display: flex;
  grid-column: 1 / -1;
}

.design-rule-panels .check {
  align-self: end;
  margin-bottom: 0;
}

.object-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.object-config-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compact-settings-form .global-rules-fields label {
  min-width: 0;
  margin-bottom: 0;
}

.compact-settings-form .global-rules-fields select {
  width: 100%;
  min-width: 0;
}

.compact-settings-form .global-rules-fields .check {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.compact-settings-form .global-rules-fields .check input {
  flex: 0 0 18px;
  width: 18px;
}

.compact-settings-form .object-config-head,
.compact-settings-form .object-config-grid {
  grid-template-columns: 1fr;
}

.compact-settings-form .object-single-settings {
  grid-template-columns: 1fr;
}

.compact-settings-form .object-single-settings .object-settings-list {
  gap: 10px;
}

.compact-settings-form .object-single-settings > label,
.compact-settings-form .object-single-settings select,
.compact-settings-form .object-single-settings input[type="text"] {
  width: 100%;
}

.selected-object-config {
  padding: 12px;
}

.selected-object-config-active {
  border-color: rgba(49, 95, 159, .45);
  box-shadow: 0 0 0 3px rgba(49, 95, 159, .12);
}

.floating-object-settings {
  position: absolute;
  z-index: 30;
  width: min(360px, calc(100% - 16px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 252, 253, .98);
  box-shadow: 0 18px 45px rgba(21, 32, 43, .18);
}

.floating-settings-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 999px;
  color: white;
  background: var(--red);
}

.floating-config-card {
  padding: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.floating-config-card .object-config-head {
  padding-right: 38px;
}

.floating-config-card .object-config-grid {
  grid-template-columns: 1fr 1fr;
}

.floating-config-card label,
.floating-config-card .inheritance-note {
  font-size: 13px;
}

.floating-config-card input,
.floating-config-card select {
  min-height: 38px;
}

.floating-settings-save {
  width: 100%;
}

.selected-object-config > label {
  width: 100%;
}

.designs-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
}

.design-list-panel,
.design-detail {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.design-list-panel {
  padding: 16px;
}

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

.design-row {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 76px;
  padding: 12px;
  text-align: left;
}

.design-row span {
  color: var(--muted);
  font-size: 13px;
}

.design-row.active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.design-row.active span {
  color: #d9e2e8;
}

.design-detail {
  padding: 18px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.settings-form {
  display: grid;
  gap: 16px;
}

.settings-form fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-form legend {
  padding: 0 8px;
  font-weight: 900;
}

.settings-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.form-note,
.inheritance-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.form-note {
  grid-column: 1 / -1;
}

.object-settings-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
}

.design-plan-editor {
  grid-template-columns: 1fr;
}

.plan-editor-bar {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 12px;
  align-items: end;
}

.plan-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.design-canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.design-canvas-head span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.design-canvas .space-item {
  transform-origin: center;
}

.object-config {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.object-config-head,
.object-config-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}

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

.reservation-access {
  align-items: start;
}

.wide-field {
  grid-column: 1 / -1;
}

.settings-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.wide-field .form-note {
  display: block;
  margin-top: 6px;
}

.invite-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.allowed-users-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
}

.allowed-user {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.user-booking-rules {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(150px, 0.7fr)) repeat(3, minmax(190px, 1fr)) auto;
  align-items: end;
  gap: 10px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.user-booking-rules h4 {
  grid-column: 1 / -1;
  margin: 0;
}

.user-booking-rules label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.user-booking-rules input[type="number"],
.user-booking-rules select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.user-booking-rules .user-rule-check {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink);
}

.user-booking-rules .user-rule-check input {
  width: 18px;
  height: 18px;
}

.save-user-booking-rules {
  min-height: 40px;
  white-space: nowrap;
}

.allowed-user-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.allowed-user strong,
.allowed-user span {
  overflow-wrap: anywhere;
}

.allowed-user span {
  color: var(--muted);
  font-size: 13px;
}

.allowed-user button {
  flex: 0 0 auto;
}

.permission-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.permission-toggle button {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--muted);
  background: white;
}

.permission-toggle button.active {
  color: white;
  background: var(--accent);
  border-color: var(--accent-dark);
}

.allowed-user .remove-user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: white;
  background: var(--red);
  border-color: var(--red);
}

.allowed-user .remove-user-btn b {
  font-size: 20px;
  line-height: 1;
}

.allowed-user .remove-user-btn:hover:not(:disabled) {
  background: #9f3030;
  border-color: #9f3030;
}

.allowed-user .remove-user-btn:disabled {
  color: white;
  background: var(--red);
  border-color: var(--red);
  opacity: 0.38;
}

@media (max-width: 1080px) {
  .hero,
  .pricing-highlight,
  .designer-shell,
  .ops-grid,
  .profile-grid,
  .admin-grid,
  .timeline,
  .backend-metrics,
  .backend-layout,
  .backend-row,
  .backend-form,
  .subscription-form,
  .profile-form,
  .login-grid,
  .designs-layout,
  .settings-form fieldset {
    grid-template-columns: 1fr;
  }

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

  .faq-section {
    grid-template-columns: 1fr;
  }

  .faq-heading {
    position: static;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .how-it-works-card {
    min-height: 0;
  }

  .subscription-summary {
    flex-direction: column;
  }

  .billing-row .billing-identity,
  .billing-row .billing-cycle,
  .billing-row .billing-method,
  .billing-row .billing-status,
  .billing-row .billing-renewal,
  .billing-row .billing-manual,
  .billing-row .billing-note,
  .billing-row .billing-save {
    grid-column: 1;
  }

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

  .design-rule-panels fieldset {
    grid-template-columns: 1fr;
  }

  .designer-shell {
    min-height: auto;
  }

  .palette,
  .side-panel {
    border: 0;
  }

  .palette {
    border-bottom: 1px solid var(--line);
  }

  .side-panel {
    border-top: 1px solid var(--line);
  }

  .canvas {
    min-height: 520px;
  }

  .material-form {
    grid-template-columns: 1fr;
  }

  .object-config-head,
  .object-config-grid {
    grid-template-columns: 1fr;
  }

  .reservation-fields {
    grid-template-columns: 1fr;
  }

  .recurrence-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .test-user-switch {
    min-width: 0;
  }

  nav {
    width: 100%;
    overflow-x: auto;
  }

  nav a {
    white-space: nowrap;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero {
    min-height: auto;
  }

  .pricing-highlight {
    margin-bottom: 34px;
    padding: 24px 20px;
  }

  .faq-list details {
    padding: 0 16px;
  }

  .faq-list summary {
    font-size: 17px;
  }

  .section-heading,
  .canvas-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-panel {
    padding: 14px;
  }

  .hero-product-preview {
    padding: 6px;
  }

  .metric {
    width: 100%;
    margin: 0 0 10px;
  }

  .canvas {
    min-height: 460px;
  }
}
.designer-upgrade-panel {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #b8d8d3;
  border-radius: 14px;
  background: #f1faf8;
}

.designer-upgrade-panel .primary {
  justify-self: start;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.35rem;
}

.language-flag {
  width: 1.5rem;
  height: 1.05rem;
  border-radius: 0.12rem;
  box-shadow: 0 0 0 1px rgba(23, 33, 45, 0.16);
  object-fit: cover;
  flex: 0 0 auto;
}

.language-switcher select {
  width: auto;
  min-width: 7.4rem;
  padding: 0.55rem 1.8rem 0.55rem 0.65rem;
  border: 1px solid #d6e0e7;
  border-radius: 0.7rem;
  background-color: #fff;
  color: #17212d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.site-legal-footer,
.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid #dbe3e8;
  color: #617286;
  font-size: 0.84rem;
}

.site-legal-footer a,
.legal-footer a,
.legal-copy a,
.subscription-legal-check a {
  color: #0b6f67;
}

.subscription-form .subscription-legal-check {
  grid-column: 1 / -1;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  color: #536579;
}

.subscription-form .subscription-legal-check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  padding: 0;
}

.subscription-legal-check > span { min-width: 0; }
.subscription-legal-check a { display: inline; font-weight: 500; }

.legal-page { background: #f5f8fa; }
.legal-header { display: flex; align-items: center; gap: 0.75rem; padding: 1rem clamp(1rem, 5vw, 4rem); background: #fff; border-bottom: 1px solid #dbe3e8; }
.legal-header .brand-mark { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.7rem; background: #0d7169; color: #fff; font-weight: 900; text-decoration: none; }
.legal-header div { display: grid; }
.legal-header span { color: #617286; font-size: 0.86rem; }
.legal-shell { width: min(900px, calc(100% - 2rem)); margin: 2rem auto; }
.legal-shell h1 { margin: 0.25rem 0 0.5rem; }
.legal-intro { color: #617286; margin-bottom: 1.5rem; }
.legal-shell details { margin: 0.75rem 0; border: 1px solid #d6e0e7; border-radius: 0.8rem; background: #fff; }
.legal-shell summary { padding: 1rem 1.1rem; cursor: pointer; font-weight: 800; }
.legal-copy { padding: 0 1.1rem 1rem; color: #38495a; line-height: 1.6; }
.legal-copy p { margin: 0.65rem 0; }
.legal-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.legal-actions button { width: auto; }

@media (max-width: 760px) {
  .language-switcher select {
    min-width: 3.6rem;
    max-width: 3.6rem;
  }
  .site-legal-footer, .legal-footer { flex-direction: column; }
}
