:root {
  --ink: #07111e;
  --night: #050b14;
  --paper: #f4f0ea;
  --cream: #fffdfa;
  --gold: #dda94a;
  --gold-pale: #f5d993;
  --line: rgba(221, 169, 74, 0.26);
  --muted: #aeb7c2;
}

.onboarding-wizard form { display: grid; gap: 1rem; }
.onboarding-callout { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1rem 1.15rem; border-radius: 1rem; background: linear-gradient(120deg, var(--ink), #17314c); color: white; }
.onboarding-callout div { display: grid; gap: .25rem; }
.onboarding-callout span { color: #c8d0da; }
.onboarding-callout a, .portal-section-head .primary-action { display: inline-flex; justify-content: center; align-items: center; border-radius: .75rem; padding: .75rem .95rem; background: var(--gold); color: var(--ink); font-weight: 850; text-decoration: none; white-space: nowrap; }
.onboarding-step { display: grid; grid-template-columns: 2.7rem 1fr; gap: 1rem; padding: 1.25rem; border: 1px solid rgba(7,17,30,.12); border-radius: 1.25rem; background: rgba(255,255,255,.72); }
.onboarding-step > b { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--ink); color: white; font-size: 1.1rem; }
.onboarding-step h5 { margin: .25rem 0 .35rem; font-size: 1.25rem; }
.onboarding-step p { margin: 0 0 1rem; color: #66717e; }
.onboarding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.onboarding-grid label { display: grid; gap: .35rem; font-weight: 750; color: #46515e; }
.onboarding-grid input, .onboarding-modules input[type="number"] { width: 100%; box-sizing: border-box; border: 1px solid rgba(7,17,30,.18); border-radius: .75rem; padding: .8rem .9rem; background: white; color: var(--ink); }
.onboarding-grid label small { color: #6d7885; font-size: .76rem; font-weight: 650; line-height: 1.35; }
.onboarding-person-lookup, .onboarding-person-results { grid-column: 1 / -1; }
.onboarding-person-results { display: grid; gap: .45rem; }
.onboarding-person-results button { align-items: start; background: #f5f8fb; border: 1px solid rgba(21, 85, 110, .18); border-radius: .75rem; color: var(--ink); cursor: pointer; display: grid; gap: .18rem; padding: .7rem .85rem; text-align: left; }
.onboarding-person-results button:hover { border-color: #157b97; background: #edf7fa; }
.onboarding-person-results small { color: #647180; font-weight: 650; }
.onboarding-person-empty { color: #6d7885; }
.onboarding-same-person { grid-column: 1 / -1; align-items: start; background: #eef7f5; border: 1px solid rgba(21, 104, 81, .25); border-radius: .85rem; cursor: pointer; display: flex !important; gap: .7rem; padding: .85rem .95rem; }
.onboarding-same-person input { width: auto; margin: .2rem 0 0; accent-color: #157b61; }
.onboarding-same-person span { display: grid; gap: .2rem; }
.onboarding-same-person small { color: #526b63 !important; }
.onboarding-operator-fields { grid-column: 1 / -1; }
.onboarding-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.onboarding-modules > label { display: flex; align-items: center; gap: .7rem; padding: .75rem; border-radius: .9rem; background: #f5f2ee; }
.onboarding-modules > label > span { display: grid; grid-template-columns: 1fr minmax(6rem, .45fr); align-items: center; gap: .25rem .6rem; width: 100%; }
.onboarding-modules > label > span small { grid-column: 2; color: #707985; font-size: .72rem; }
.onboarding-finish { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem; border-radius: 1.25rem; background: var(--ink); color: white; }
.onboarding-finish div { display: grid; gap: .3rem; }
.onboarding-finish span { color: #c8d0da; }
.onboarding-finish button { border: 0; border-radius: .8rem; padding: .9rem 1.1rem; background: var(--gold); color: var(--ink); font-weight: 850; }
@media (max-width: 760px) { .onboarding-grid, .onboarding-modules { grid-template-columns: 1fr; } .onboarding-step { grid-template-columns: 1fr; } .onboarding-finish, .onboarding-callout { align-items: stretch; flex-direction: column; } }

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Avenir Next", Avenir, Arial, sans-serif;
  margin: 0;
}

body.auth-resolving {
  background:
    radial-gradient(circle at 82% 8%, rgba(221, 169, 74, 0.16), transparent 27%),
    linear-gradient(135deg, #eef2f5, #f7f0e4);
  min-height: 100vh;
  overflow: hidden;
}

body.auth-resolving .site-shell {
  display: none;
}

.auth-loading-screen {
  align-items: center;
  color: var(--ink);
  display: none;
  gap: 14px;
  inset: 0;
  justify-content: center;
  min-height: 100vh;
  padding: 28px;
  position: fixed;
  text-align: center;
  z-index: 1000;
}

body.auth-resolving .auth-loading-screen {
  display: flex;
  flex-direction: column;
}

.auth-loading-screen strong {
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
}

.auth-loading-screen p {
  color: #64717f;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
  max-width: 460px;
}

.auth-loading-screen button {
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 42px;
  padding: 0 18px;
}

.site-shell {
  overflow: hidden;
}

.site-header {
  align-items: center;
  color: var(--cream);
  display: flex;
  height: 78px;
  justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 92px);
  position: absolute;
  width: 100%;
  z-index: 2;
}

.brand {
  align-items: center;
  color: inherit;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.28em;
  text-decoration: none;
}

.brand-mark {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: block;
  height: 27px;
  position: relative;
  width: 27px;
}

.brand-mark::before,
.brand-mark::after {
  background: currentColor;
  content: "";
  position: absolute;
}

.brand-mark::before {
  height: 34px;
  left: 12px;
  top: -5px;
  width: 1px;
}

.brand-mark::after {
  height: 1px;
  left: -5px;
  top: 12px;
  width: 34px;
}

.brand-mark i,
.brand-mark b {
  background: var(--gold);
  height: 5px;
  position: absolute;
  width: 5px;
  z-index: 1;
}

.brand-mark i {
  left: 4px;
  top: 4px;
}

.brand-mark b {
  bottom: 4px;
  right: 4px;
}

nav {
  align-items: center;
  display: flex;
  font-size: 15px;
  gap: 29px;
}

nav a {
  color: inherit;
  opacity: 0.9;
  text-decoration: none;
}

.nav-cta {
  border: 1px solid var(--gold);
  border-radius: 50px;
  color: var(--gold);
  padding: 10px 17px;
}

.hero {
  align-items: center;
  background:
    radial-gradient(circle at 73% 36%, #17304d 0, #081524 28%, transparent 52%),
    linear-gradient(135deg, #02070d, #08121e 50%, #03070d);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  height: min(100vh, 860px);
  isolation: isolate;
  min-height: 700px;
  padding: 120px clamp(24px, 12vw, 190px) 82px;
  position: relative;
}

.hero::before {
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
  opacity: 0.32;
  position: absolute;
  z-index: -1;
}

.hero-copy {
  max-width: 590px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  margin: 0;
}

.hero h1 {
  font-size: clamp(48px, 6.5vw, 87px);
  line-height: 0.95;
}

.lead {
  color: #d6dce2;
  font-size: 18px;
  line-height: 1.7;
  margin: 29px 0;
  max-width: 520px;
}

.hero-actions {
  align-items: center;
  display: flex;
  gap: 25px;
  margin-top: 34px;
}

.button {
  border-radius: 50px;
  font-size: 14px;
  padding: 16px 22px;
  text-decoration: none;
}

.button-primary {
  background: var(--gold);
  color: var(--night);
  font-weight: 800;
}

.button-primary span {
  font-size: 18px;
  margin-left: 9px;
}

.text-link {
  color: var(--cream);
  font-size: 14px;
  text-decoration: none;
}

.text-link span {
  color: var(--gold);
  margin-left: 7px;
}

.hero-art {
  color: var(--gold);
  filter: drop-shadow(0 0 27px rgba(221, 169, 74, 0.16));
  height: 440px;
  justify-self: end;
  position: relative;
  width: min(100%, 490px);
}

.forty-number {
  -webkit-text-stroke: 1px var(--gold-pale);
  color: transparent;
  font-family: Georgia, serif;
  font-size: 190px;
  font-weight: 400;
  left: 50%;
  letter-spacing: -0.18em;
  line-height: 0.7;
  position: absolute;
  text-shadow: 0 0 20px #d99d3570;
  top: 29%;
  transform: translateX(-50%);
}

.forty-number span {
  color: transparent;
  display: inline-block;
  position: relative;
}

.orbit {
  border: 1px solid var(--gold);
  border-radius: 50%;
  clip-path: polygon(0 0, 44% 0, 44% 8%, 56% 8%, 56% 0, 100% 0, 100% 44%, 92% 44%, 92% 56%, 100% 56%, 100% 100%, 56% 100%, 56% 92%, 44% 92%, 44% 100%, 0 100%, 0 56%, 8% 56%, 8% 44%, 0 44%);
  height: 260px;
  left: 50%;
  position: absolute;
  top: 47%;
  transform: translate(-50%, -50%);
  width: 260px;
}

.orbit-two {
  height: 202px;
  opacity: 0.55;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 202px;
}

.star {
  color: #fff5ca;
  position: absolute;
  text-shadow: 0 0 15px white;
}

.star-main {
  font-size: 54px;
  left: 48%;
  top: 40%;
}

.star-a {
  font-size: 18px;
  left: 35%;
  top: 39%;
}

.star-b {
  font-size: 24px;
  right: 32%;
  top: 42%;
}

.star-c {
  bottom: 25%;
  font-size: 14px;
  right: 39%;
}

.hero-art p {
  bottom: 20px;
  font-size: 11px;
  letter-spacing: 0.18em;
  position: absolute;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.horizon {
  background: radial-gradient(ellipse at center top, rgba(48, 119, 177, 0.28), transparent 61%);
  border: 1px solid #5181ac;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  bottom: -285px;
  box-shadow: 0 -21px 80px rgba(53, 142, 218, 0.29);
  height: 380px;
  left: -25%;
  position: absolute;
  width: 150%;
  z-index: -1;
}

/* Portada Club Forty */
.club-home-hero {
  gap: clamp(36px, 5vw, 78px);
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.72fr);
  height: auto;
  min-height: min(820px, 100svh);
  padding-bottom: 46px;
  padding-top: 94px;
}

.club-home-copy h1 {
  font-size: clamp(48px, 5.8vw, 82px);
}

.club-home-copy .lead { font-size: 16px; line-height: 1.55; margin: 22px 0; }

.club-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.club-promises span {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(245, 217, 147, 0.3);
  border-radius: 999px;
  color: #f8edd3;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 14px;
}

.club-promises .pet-promise {
  background: rgba(221, 169, 74, 0.18);
  border-color: rgba(245, 217, 147, 0.62);
}

.club-promises .pet-promise::before { content: "🐾︎"; margin-right: 7px; }

.home-club-login {
  background: linear-gradient(145deg, rgba(255, 253, 250, 0.98), rgba(246, 238, 226, 0.96));
  border: 1px solid rgba(245, 217, 147, 0.45);
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  justify-self: end;
  max-width: 430px;
  padding: clamp(23px, 3vw, 34px);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.home-club-login > *:not(.pet-paw-pattern) { position: relative; z-index: 1; }

.pet-paw-pattern {
  color: #b98935;
  inset: 0;
  opacity: 0.085;
  pointer-events: none;
  position: absolute;
}

.pet-paw-pattern span { font-family: Arial, sans-serif; font-size: 56px; position: absolute; transform: rotate(-18deg); }
.pet-paw-pattern span:nth-child(1) { right: 18px; top: 12px; }
.pet-paw-pattern span:nth-child(2) { bottom: 76px; font-size: 38px; left: 16px; transform: rotate(22deg); }
.pet-paw-pattern span:nth-child(3) { bottom: 18px; font-size: 28px; right: 35px; transform: rotate(-33deg); }

.home-club-login .eyebrow { margin-bottom: 9px; }

.home-club-login h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 3.2vw, 42px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 0 10px;
}

.home-club-login > p:not(.eyebrow):not(.portal-message) {
  color: #566273;
  line-height: 1.4;
  margin: 0 0 14px;
}

.home-club-login label {
  color: #3d4857;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 5px;
  letter-spacing: 0.04em;
  margin-top: 9px;
  text-transform: uppercase;
}

.home-club-login input,
.home-club-login select {
  appearance: none;
  background: #fff;
  border: 1px solid #dcd3c6;
  border-radius: 13px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  min-height: 44px;
  padding: 0 14px;
  text-transform: none;
  width: 100%;
}

.home-club-login input:focus,
.home-club-login select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(221, 169, 74, 0.18);
  outline: 0;
}

.home-club-login .button {
  border: 0;
  cursor: pointer;
  display: block;
  margin-top: 16px;
  min-height: 46px;
  width: 100%;
}

.home-club-login .button:disabled { cursor: wait; opacity: 0.72; }
.home-club-login small { color: #6b7480; display: block; line-height: 1.45; margin-top: 15px; }
.home-club-login .portal-message { color: #9a351f; font-size: 13px; font-weight: 800; margin: 13px 0 0; }

.home-club-register-fields { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-club-register-fields label { margin-top: 0; }
.home-club-register-extra > label:first-child { margin-top: 9px; }
.home-club-register-extra label small { display: inline; font-size: 10px; font-weight: 700; margin: 0; text-transform: none; }
.home-club-login .home-club-consent {
  align-items: start;
  display: flex;
  font-size: 11px;
  font-weight: 750;
  gap: 8px;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}
.home-club-login .home-club-consent input {
  appearance: auto;
  flex: 0 0 auto;
  height: 17px;
  min-height: auto;
  margin: 2px 0 0;
  padding: 0;
  width: 17px;
}
.home-club-mode-toggle {
  background: transparent;
  border: 0;
  color: #6b5732;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  margin: 13px auto 0;
  padding: 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-club-login.is-registering { max-width: 470px; }
.home-club-login.is-registering h2 { font-size: clamp(29px, 3vw, 39px); }
.home-club-login.is-registering > p:not(.eyebrow):not(.portal-message) { margin-bottom: 11px; }

.community-story {
  background: #f7f2eb;
  color: var(--ink);
}

.community-heading,
.solutions-heading { max-width: 920px; }

.community-heading h2,
.solutions-heading h2 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
}

.community-heading > p:last-child,
.solutions-heading > p:last-child {
  color: #526071;
  font-size: 18px;
  line-height: 1.65;
  max-width: 760px;
}

.community-values {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
}

.community-values article {
  border-left: 1px solid #d9cbb8;
  padding: 8px clamp(24px, 4vw, 52px);
}

.community-values article:first-child { padding-left: 0; border-left: 0; }
.community-values span { color: #b17f27; font: 30px Georgia, serif; }
.community-values h3 { font-size: 22px; margin: 24px 0 9px; }
.community-values p { color: #657180; line-height: 1.55; margin: 0; }

.pet-friendly-statement {
  align-items: center;
  background: linear-gradient(135deg, #e9f0ec, #f6ede4);
  border: 1px solid #d8c8b3;
  border-radius: 26px;
  display: grid;
  gap: clamp(24px, 4vw, 46px);
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 64px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
}

.pet-friendly-statement::after {
  color: #177f73;
  content: "PET FRIENDLY";
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .28em;
  position: absolute;
  right: 24px;
  top: 20px;
}

.pet-friendly-mark {
  align-items: center;
  background: #177f73;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(23, 127, 115, .2);
  color: #fff;
  display: flex;
  height: 112px;
  justify-content: center;
  width: 112px;
}

.pet-friendly-mark svg { fill: currentColor; height: 62px; width: 62px; }
.pet-friendly-statement .eyebrow { color: #177f73; margin-bottom: 9px; }
.pet-friendly-statement h3 { font: 400 clamp(27px, 3.2vw, 42px)/1.08 Georgia, serif; margin: 0 0 12px; max-width: 780px; }
.pet-friendly-statement p:last-child { color: #596777; line-height: 1.6; margin: 0; max-width: 790px; }

.solutions {
  background: #0a1523;
  color: var(--cream);
}

.solutions-heading > p:last-child { color: #b7c0ca; }

.solution-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
}

.solution-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  min-height: 290px;
  padding: 30px;
}

.solution-card.solution-featured { background: linear-gradient(145deg, #183552, #0c1e31); border-color: rgba(94, 157, 213, 0.35); }
.solution-card.callout { background: linear-gradient(145deg, #e0b15b, #c68e32); color: #07111e; }
.solution-card > span { color: var(--gold-pale); font-size: 11px; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.solution-card.callout > span { color: #503308; }
.solution-card h3 { font-family: Georgia, serif; font-size: 28px; font-weight: 400; line-height: 1.08; margin: 45px 0 14px; }
.solution-card p { color: #b9c3ce; line-height: 1.55; margin: 0; }
.solution-card.callout p { color: #3c2c14; }
.solution-card a { color: inherit; display: inline-block; font-weight: 900; margin-top: 22px; text-decoration: none; }

@media (max-width: 1100px) {
  .club-home-hero { grid-template-columns: 1fr 0.8fr; padding-left: 7vw; padding-right: 7vw; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1101px) and (max-height: 820px) {
  .site-header { height: 68px; }
  .club-home-hero { min-height: 100svh; padding-bottom: 30px; padding-top: 80px; }
  .club-home-copy h1 { font-size: clamp(48px, 5.2vw, 72px); }
  .club-home-copy .lead { margin: 18px 0; }
  .club-promises { margin-top: 16px; }
  .home-club-login { padding: 21px 27px; }
}

@media (max-width: 820px) {
  .club-home-hero { grid-template-columns: 1fr; padding-top: 125px; }
  .home-club-login { justify-self: start; max-width: 560px; }
  .community-values { grid-template-columns: 1fr; }
  .community-values article,
  .community-values article:first-child { border-left: 0; border-top: 1px solid #d9cbb8; padding: 28px 0; }
}

@media (max-width: 620px) {
  .solution-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 250px; }
  .club-home-copy h1 { font-size: clamp(47px, 14vw, 66px); }
  .pet-friendly-statement { grid-template-columns: 1fr; }
  .pet-friendly-mark { height: 82px; width: 82px; }
  .pet-friendly-mark svg { height: 46px; width: 46px; }
  .pet-friendly-statement::after { display: none; }
  .home-club-register-fields { grid-template-columns: 1fr; gap: 0; }
}

.section {
  padding: 110px clamp(24px, 12vw, 190px);
}

.access {
  background: var(--night);
  color: var(--cream);
}

.public-rentals {
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(244, 240, 234, 0.96)),
    radial-gradient(circle at 82% 12%, rgba(221, 169, 74, 0.2), transparent 28%);
  color: var(--ink);
}

.public-rentals-heading {
  max-width: 870px;
}

.public-rentals-heading h2 {
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0 0 18px;
}

.public-rentals-heading > p:last-child {
  color: #425063;
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 720px;
}

.public-search-form {
  align-items: end;
  background: var(--cream);
  border: 1px solid rgba(7, 17, 30, 0.11);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(7, 17, 30, 0.08);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: 18px;
}

.public-search-form label {
  color: #5b6674;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  text-transform: uppercase;
}

.public-search-form input,
.public-search-form select {
  background: #f8fafc;
  border: 1px solid rgba(7, 17, 30, 0.15);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  min-height: 48px;
  padding: 0 12px;
}

.public-search-form input[readonly] {
  color: #516070;
}

.public-rental-message {
  background: #fff7e3;
  border: 1px solid rgba(221, 169, 74, 0.45);
  border-radius: 12px;
  color: #6f4a05;
  font-weight: 800;
  margin: 18px 0 0;
  padding: 12px 14px;
}

.public-rental-results {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.public-rental-results.empty {
  background: rgba(255, 253, 250, 0.72);
  border: 1px dashed rgba(7, 17, 30, 0.18);
  border-radius: 16px;
  color: #5b6674;
  font-weight: 800;
  padding: 20px;
}

.public-rental-results.empty strong,
.public-rental-results.empty span {
  display: block;
}

.public-results-summary {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.public-results-summary strong {
  font-size: 20px;
}

.public-results-summary span {
  color: #5b6674;
  font-weight: 800;
}

.public-result-grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-result-card {
  background: var(--cream);
  border: 1px solid rgba(7, 17, 30, 0.12);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  min-height: 230px;
  padding: 18px;
}

.public-result-card.grouped {
  border-color: rgba(221, 169, 74, 0.55);
}

.public-result-place {
  color: #7a5a18;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-result-card h3 {
  font-size: 25px;
  letter-spacing: -0.02em;
  margin: 0;
}

.public-result-card p,
.public-result-card small {
  color: #5b6674;
  font-weight: 800;
  line-height: 1.35;
}

.public-result-card strong {
  color: #0a596c;
  font-size: 27px;
  margin-top: auto;
}

.public-result-card em {
  color: #7a8492;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.public-result-action {
  background: #0a596c;
  border: 0;
  border-radius: 10px;
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 44px;
  padding: 0 14px;
}

.public-quote-detail {
  background: #f6f8fa;
  border: 1px solid rgba(7, 17, 30, 0.11);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 12px;
}

.public-quote-detail h4 {
  font-size: 16px;
  margin: 0;
}

.public-quote-detail p,
.public-quote-detail span {
  color: #4f5e6d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.public-quote-detail > b {
  color: #0a596c;
  font-size: 18px;
}

.public-payment-options {
  border-top: 1px solid rgba(7, 17, 30, 0.12);
  display: grid;
  gap: 7px;
  margin-top: 4px;
  padding-top: 10px;
}

.public-payment-options > span {
  color: #7a5a18;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-payment-options p {
  background: var(--cream);
  border: 1px solid rgba(7, 17, 30, 0.09);
  border-radius: 9px;
  padding: 9px 10px;
}

body.authenticated {
  background:
    radial-gradient(circle at 82% 8%, rgba(221, 169, 74, 0.18), transparent 27%),
    radial-gradient(circle at 12% 24%, rgba(68, 137, 176, 0.14), transparent 29%),
    linear-gradient(135deg, #eef2f5, #dfe7ec 58%, #f7f0e4);
  color: var(--ink);
  min-height: 100vh;
  overflow-anchor: none;
}

body.authenticated .hero,
body.authenticated .public-rentals,
body.authenticated #criterio,
body.authenticated .statement,
body.authenticated footer {
  display: none;
}

body.authenticated main > section:not(#accesos) {
  display: none;
}

body.authenticated .site-header {
  display: none;
}

body.authenticated .access {
  background: transparent;
  min-height: 100vh;
}

body.authenticated .section {
  padding: 16px clamp(18px, 6vw, 92px) 38px;
}

body.authenticated .access-heading,
body.authenticated .login-panel {
  display: none;
}

body.authenticated .portal-layout {
  display: block;
  margin-top: 0;
}

body.authenticated .portal-panel {
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 0;
}

.access-heading {
  max-width: 760px;
}

.access-heading h2 {
  font-size: clamp(39px, 4.5vw, 62px);
}

.access-heading > p:last-child {
  color: #aeb7c2;
  font-size: 17px;
  line-height: 1.65;
  margin-top: 20px;
}

.access-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  margin-top: 54px;
}

.portal-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(340px, 0.55fr) minmax(0, 1fr);
  margin-top: 54px;
}

.login-panel,
.portal-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--cream);
  padding: 30px;
}

.login-panel h3,
.portal-panel h3 {
  font-family: Georgia, serif;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 18px;
}

.login-panel form {
  display: grid;
  gap: 18px;
}

.login-panel label {
  color: #d6dce2;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

.login-panel input {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: var(--ink);
  font-size: 18px;
  min-height: 58px;
  padding: 0 16px;
}

.login-panel .show-password {
  align-items: center;
  display: flex;
  font-size: 14px;
  gap: 10px;
}

.login-panel .show-password input {
  accent-color: var(--gold);
  min-height: 18px;
  width: 18px;
}

.login-panel button {
  border: 0;
  cursor: pointer;
  margin-top: 8px;
  min-height: 58px;
  text-align: left;
}

.login-panel button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.captcha-panel {
  background: rgba(255, 253, 250, 0.96);
  border: 1px solid rgba(184, 138, 59, 0.35);
  border-radius: 8px;
  min-height: 70px;
  padding: 10px;
}

.password-change-dialog {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(7, 17, 30, .38);
  max-width: 460px;
  padding: 0;
  width: calc(100% - 32px);
}

.password-change-dialog::backdrop { background: rgba(7, 17, 30, .58); }
.password-change-dialog form { background: #fffdfa; color: var(--ink); display: grid; gap: 14px; padding: 24px; }
.password-change-dialog h2,
.password-change-dialog p { margin: 0; }
.password-change-dialog p { color: #637083; font-weight: 700; line-height: 1.45; }
.password-change-dialog label { color: #15202f; display: grid; font-weight: 800; gap: 7px; }
.password-change-dialog input { border: 1px solid #d9e4ea; border-radius: 10px; font: inherit; min-height: 44px; padding: 0 12px; }
.password-change-dialog div { display: flex; gap: 10px; justify-content: flex-end; }
.password-change-dialog button { border-radius: 999px; cursor: pointer; font-weight: 900; min-height: 42px; padding: 0 16px; }
.password-change-dialog button[type="submit"] { background: #0f6f83; border: 0; color: #fff; }
.password-change-error { background: #fce6e2; border-left: 3px solid #b33b31; color: #8c3128 !important; padding: 9px 10px; }

.activity-identity-dialog {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(7, 17, 30, .42);
  max-height: calc(100vh - 32px);
  max-width: 720px;
  padding: 0;
  width: calc(100% - 32px);
}
.activity-identity-dialog::backdrop { background: rgba(7, 17, 30, .64); }
.activity-identity-dialog form { background: #fffdfa; color: var(--ink); display: grid; gap: 16px; padding: 28px; }
.activity-identity-dialog h2,
.activity-identity-dialog p { margin: 0; }
.activity-identity-dialog > form > p:not(.eyebrow) { color: #637083; font-weight: 700; line-height: 1.45; }
.activity-identity-dialog label { color: #15202f; display: grid; font-weight: 900; gap: 7px; }
.activity-identity-dialog input,
.activity-identity-dialog textarea { border: 1px solid #d4dee5; border-radius: 12px; box-sizing: border-box; font: inherit; padding: 11px 13px; width: 100%; }
.activity-identity-dialog textarea { resize: vertical; }
.identity-dialog-heading { align-items: start; display: flex; justify-content: space-between; }
.identity-dialog-heading > button { background: #f4f0ea; border: 0; border-radius: 50%; cursor: pointer; font-size: 24px; height: 42px; width: 42px; }
.identity-fields { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.identity-logo-field small { color: #6d7887; font-weight: 700; }
.identity-logo-preview { background: #fff; border: 1px solid #e0d9cf; border-radius: 14px; max-height: 130px; max-width: 280px; object-fit: contain; padding: 10px; }
.identity-logo-ready { background: #e8f5ee; border-radius: 12px; color: #216d4b !important; font-size: 14px; padding: 11px 13px; }
.identity-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }
.identity-dialog-actions button { border-radius: 999px; cursor: pointer; font-weight: 900; min-height: 44px; padding: 0 18px; }
.identity-dialog-actions button[type="submit"] { background: #0f7f76; border: 0; color: white; }
@media (max-width: 620px) {
  .activity-identity-dialog form { padding: 20px; }
  .identity-fields { grid-template-columns: 1fr; }
}

.portal-message {
  background: rgba(196, 75, 58, 0.18);
  border-left: 3px solid #e38d81;
  color: #ffd1ca;
  font-size: 13px;
  line-height: 1.45;
  margin: 16px 0 0;
  padding: 10px 12px;
}

.portal-top {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255, 253, 250, 0.88), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at right top, rgba(221, 169, 74, 0.2), transparent 36%);
  border: 1px solid rgba(7, 17, 30, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(7, 17, 30, 0.08);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 24px;
}

.portal-top p:last-child {
  color: #5f6d79;
  line-height: 1.55;
  margin: 0;
}

.portal-top button {
  background: var(--ink);
  border: 1px solid rgba(7, 17, 30, 0.16);
  border-radius: 999px;
  color: var(--cream);
  cursor: pointer;
  font-weight: 800;
  min-height: 39px;
  padding: 0 16px;
}

.portal-dashboard {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.dashboard-card {
  background:
    linear-gradient(160deg, rgba(255, 253, 250, 0.96), rgba(248, 250, 251, 0.82)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(7, 17, 30, 0.11);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(7, 17, 30, 0.08);
  color: var(--ink);
  display: grid;
  gap: 16px;
  min-height: 190px;
  padding: 22px;
  position: relative;
  text-decoration: none;
}

.dashboard-card:hover {
  border-color: rgba(221, 169, 74, 0.75);
}

.dashboard-card.club-card {
  background:
    radial-gradient(circle at right top, rgba(221, 169, 74, 0.27), transparent 36%),
    linear-gradient(160deg, #fffdfa, #f2f5f7);
}

.dashboard-card.owner-card {
  background:
    radial-gradient(circle at right top, rgba(69, 135, 169, 0.22), transparent 38%),
    linear-gradient(160deg, #ffffff, #eef4f6);
}

.dashboard-card.communications-card {
  background:
    radial-gradient(circle at right top, rgba(24, 122, 96, 0.18), transparent 38%),
    linear-gradient(160deg, #ffffff, #eef7f2);
}

.dashboard-card-status {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-card > strong {
  font-family: Georgia, serif;
  font-size: clamp(27px, 2.4vw, 38px);
  font-weight: 400;
  line-height: 1;
}

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

.dashboard-metrics span {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(7, 17, 30, 0.08);
  border-radius: 12px;
  min-height: 66px;
  padding: 10px;
  min-width: 0;
}

.dashboard-metrics b,
.dashboard-metrics small {
  display: block;
}

.dashboard-metrics b {
  color: var(--ink);
  font-size: clamp(16px, 1.12vw, 22px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.dashboard-metrics small {
  color: #667380;
  font-size: 11px;
  font-weight: 800;
  margin-top: 6px;
  text-transform: uppercase;
}

.dashboard-empty {
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed rgba(7, 17, 30, 0.16);
  border-radius: 16px;
  color: #5f6d79;
  display: grid;
  gap: 5px;
  grid-column: 1 / -1;
  padding: 18px;
}

.portal-section-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 28px 0 12px;
}

.portal-section-head h4 {
  color: var(--ink);
  font-size: 22px;
  margin: 0;
}

.portal-monthly-total {
  background: rgba(255, 253, 250, 0.72);
  border: 1px solid rgba(7, 17, 30, 0.1);
  border-radius: 999px;
  color: #5f6d79;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
}

.portal-access-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.club-access-list {
  grid-template-columns: minmax(0, 1fr);
}

.club-organization-card {
  min-height: 0;
}

.club-organization-card > p {
  max-width: 850px;
}

.club-module-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-access {
  background: rgba(255, 253, 250, 0.76);
  border: 1px solid rgba(7, 17, 30, 0.11);
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(7, 17, 30, 0.06);
  color: var(--ink);
  display: grid;
  min-height: 150px;
  padding: 18px;
  position: relative;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}

.portal-access:hover {
  border-color: rgba(221, 169, 74, 0.78);
  transform: translateY(-4px);
}

.portal-access.disabled {
  cursor: default;
  opacity: 0.72;
}

.portal-access.disabled:hover {
  border-color: rgba(7, 17, 30, 0.11);
  transform: none;
}

.portal-access-meta {
  color: #9b6d18;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-access strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  margin-top: 10px;
}

.module-activity {
  color: #0a596c;
  display: block;
  font-size: 15px;
  font-weight: 900;
  margin-top: 5px;
}

.portal-access p {
  color: #5f6d79;
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0 34px;
}

.portal-access b {
  align-self: end;
  color: #0a596c;
  font-size: 12px;
  justify-self: end;
  margin-top: 10px;
}

.module-actions {
  align-items: center;
  display: flex;
  gap: 9px;
  margin-top: 4px;
}

.module-actions a,
.module-actions button {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  min-height: 35px;
  padding: 0 12px;
}

.module-actions a {
  align-items: center;
  background: var(--ink);
  color: var(--cream);
  display: inline-flex;
  text-decoration: none;
}

.module-actions a.secondary-action,
.module-actions button.secondary-action {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(7, 17, 30, 0.14);
  color: #5f6d79;
}

.module-actions button {
  background: transparent;
  border: 1px solid rgba(7, 17, 30, 0.18);
  color: #5f6d79;
  cursor: pointer;
}

.module-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.portal-market-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-market-section {
  background: linear-gradient(135deg, rgba(186, 211, 219, 0.98), rgba(222, 211, 184, 0.92));
  border: 1px solid rgba(7, 17, 30, 0.16);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  margin-top: 22px;
  padding: 18px;
}

.portal-market-section .portal-section-head {
  margin-top: 0;
}

.market-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 253, 250, 0.7));
  border: 1px solid rgba(7, 17, 30, 0.1);
  border-radius: 16px;
  color: var(--ink);
  display: grid;
  gap: 11px;
  min-height: 178px;
  padding: 18px;
}

.market-card span {
  color: #9b6d18;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-card strong {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.market-card p {
  color: #5f6d79;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.market-card em {
  color: #0a596c;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.market-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.market-card button {
  align-self: end;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: var(--cream);
  cursor: pointer;
  font-weight: 900;
  min-height: 38px;
  padding: 0 14px;
  width: fit-content;
}

.market-card button.ghost-action {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(7, 17, 30, 0.14);
  color: #5f6d79;
}

.market-card button:disabled {
  background: rgba(7, 17, 30, 0.14);
  color: #6c7782;
  cursor: default;
}

.secondary-access {
  display: grid;
  gap: 18px;
}

.access-card {
  border: 1px solid rgba(255, 255, 255, 0.17);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  min-height: 278px;
  overflow: hidden;
  padding: 28px;
  position: relative;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}

.access-card::before {
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 240px;
  opacity: 0.15;
  position: absolute;
  right: -75px;
  top: -95px;
  width: 240px;
}

.access-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
}

.featured {
  min-height: 574px;
  padding: 42px;
}

.client {
  background: radial-gradient(circle at 80% 18%, rgba(245, 217, 147, 0.22), transparent 34%), linear-gradient(135deg, #10243c, #07111f);
  color: #f5d993;
}

.provider {
  background: linear-gradient(135deg, #17201e, #06120e);
  color: #e9d5a9;
}

.team {
  background: linear-gradient(135deg, #281d11, #110e0a);
  color: #f1ca7b;
}

.card-number {
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

.card-icon {
  font-size: 43px;
  margin: 38px 0 15px;
}

.featured .card-icon {
  font-size: 68px;
  margin-top: 92px;
}

.access-card h3 {
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 400;
  margin: 0;
}

.featured h3 {
  font-size: clamp(46px, 5.2vw, 76px);
  letter-spacing: -0.055em;
}

.access-card p {
  color: #d5d9dd;
  font-size: 14px;
  line-height: 1.6;
  max-width: 330px;
}

.featured p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 520px;
}

.card-link {
  font-size: 13px;
  margin-top: auto;
}

.featured .card-link {
  font-size: 16px;
}

.card-link b {
  font-size: 19px;
  margin-left: 6px;
}

.access-message {
  color: #7d5a17;
  font-size: 14px;
  margin: 22px 0 0;
  min-height: 22px;
}

.intro {
  background: var(--cream);
}

.intro-grid {
  align-items: start;
  display: grid;
  gap: 90px;
  grid-template-columns: 1fr 1fr;
}

.section h2 {
  font-size: clamp(38px, 4.3vw, 62px);
  line-height: 1;
}

.intro-grid p {
  color: #4f5963;
  font-size: 18px;
  line-height: 1.72;
  margin: 0;
  max-width: 520px;
}

.pillars {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 83px;
}

.pillars article {
  border-top: 1px solid #d5cec3;
  padding-top: 20px;
}

.pillar-icon {
  color: #a97c2d;
  font-size: 30px;
}

.pillars h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 9px;
}

.pillars p {
  color: #687079;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.statement {
  background: var(--gold);
  color: var(--night);
  font-family: Georgia, serif;
  font-size: clamp(25px, 3.4vw, 48px);
  letter-spacing: -0.025em;
  padding: 64px 20px;
  text-align: center;
}

.statement p {
  margin: 0;
}

.statement i {
  font-family: Arial;
  font-style: normal;
  margin: 0 13px;
}

footer {
  align-items: center;
  background: #060d16;
  color: #d4d7dc;
  display: flex;
  font-size: 12px;
  gap: 24px;
  justify-content: space-between;
  min-height: 122px;
  padding: 0 clamp(24px, 6vw, 92px);
}

footer .brand {
  color: var(--cream);
}

footer p,
footer > span {
  color: #7e8995;
}

@media (max-width: 1040px) {
  .hero {
    height: auto;
    min-height: 780px;
  }

  .access-layout,
  .portal-layout,
  .public-search-form,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .featured {
    min-height: 420px;
  }

  .featured .card-icon {
    margin-top: 42px;
  }

  .secondary-access,
  .pillars,
  .portal-access-list,
  .portal-market-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .site-header {
    height: 68px;
    padding: 0 22px;
  }

  .site-header nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    display: block;
    padding: 132px 24px 40px;
  }

  .hero-copy {
    max-width: 500px;
  }

  .hero-art {
    height: 360px;
    margin: 21px auto 0;
  }

  .forty-number {
    font-size: 155px;
  }

  .orbit {
    height: 230px;
    width: 230px;
  }

  .section {
    padding: 75px 24px;
  }

  .secondary-access,
  .pillars,
  .public-result-grid,
  .portal-dashboard,
  .contract-summary,
  .portal-access-list,
  .portal-market-list {
    grid-template-columns: 1fr;
  }

  .public-results-summary {
    align-items: flex-start;
    display: grid;
  }

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

  .access-card,
  .login-panel,
  .portal-panel,
  .featured {
    min-height: 300px;
    padding: 28px;
  }

  .portal-top {
    display: grid;
  }

  .featured h3 {
    font-size: 44px;
  }

  .featured p {
    font-size: 16px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 29px 24px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .horizon {
    bottom: -310px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 47px;
  }
}

.active-context {
  background: #f7fbfd;
  border: 1px solid #d8e2ea;
  border-radius: 22px;
  box-shadow: 0 18px 48px #07111e0b;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.25fr 1fr 1fr;
  margin-bottom: 24px;
  padding: 16px;
}

.active-context > div {
  background: #fffdfa;
  border: 1px solid #e4e9ed;
  border-radius: 16px;
  min-width: 0;
  padding: 14px 16px;
}

.active-context span {
  color: #a67525;
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.active-context strong,
.active-context small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.active-context strong {
  color: #07111e;
  font-size: 18px;
  line-height: 1.15;
}

.active-context small {
  color: #667381;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 5px;
}

.portal-shell-frame {
  display: grid;
  gap: 16px;
}

.portal-app-header {
  align-items: center;
  background: rgba(255, 253, 250, 0.92);
  border: 1px solid rgba(7, 17, 30, 0.11);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(7, 17, 30, 0.08);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(160px, 1fr) minmax(240px, 0.75fr) auto auto;
  padding: 10px 14px;
}

.portal-brand {
  color: var(--ink);
}

.portal-menu-toggle {
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: var(--cream);
  cursor: pointer;
  display: none;
  font-weight: 900;
  min-height: 38px;
  padding: 0 14px;
}

.portal-breadcrumb {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.portal-breadcrumb span,
.workspace-switcher-button span,
.portal-user-pill span {
  color: #9b6d18;
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.portal-breadcrumb strong,
.workspace-switcher-button strong,
.portal-user-pill strong {
  color: var(--ink);
  display: block;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-breadcrumb a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.portal-breadcrumb span {
  color: #8c96a2;
  display: inline;
  letter-spacing: 0;
  text-transform: none;
}

.workspace-switcher {
  min-width: 0;
  position: relative;
}

.workspace-switcher-button {
  background: #f6f9fb;
  border: 1px solid rgba(7, 17, 30, 0.12);
  border-radius: 14px;
  cursor: pointer;
  min-height: 46px;
  padding: 7px 11px;
  text-align: left;
  width: 100%;
}

.workspace-switcher-panel {
  background: rgba(7, 17, 30, 0.34);
  inset: 0;
  padding: 90px 20px 20px;
  position: fixed;
  z-index: 20;
}

.workspace-switcher-card {
  background: var(--cream);
  border: 1px solid rgba(7, 17, 30, 0.13);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(7, 17, 30, 0.22);
  margin: 0 auto;
  max-width: 760px;
  padding: 22px;
}

.workspace-switcher-heading {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.workspace-switcher-heading h4 {
  font-size: 28px;
  margin: 0;
}

.workspace-switcher-heading button,
.portal-assistance-strip button {
  background: #edf2f5;
  border: 1px solid rgba(7, 17, 30, 0.12);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  min-height: 34px;
  padding: 0 12px;
}

.workspace-switcher-groups {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.workspace-switcher-groups section {
  display: grid;
  gap: 10px;
}

.workspace-switcher-groups section > span {
  color: #9b6d18;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.workspace-switcher-groups button {
  background: #f7fafc;
  border: 1px solid rgba(7, 17, 30, 0.13);
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 14px;
  text-align: left;
}

.workspace-switcher-groups button.active {
  border-color: #0a596c;
  box-shadow: inset 0 0 0 1px #0a596c;
}

.workspace-switcher-groups b {
  font-size: 17px;
}

.workspace-switcher-groups small {
  color: #667381;
  font-weight: 800;
}

.workspace-switcher-error,
.forty-workspace-error {
  background: #fff3d4;
  border: 1px solid rgba(221, 169, 74, 0.56);
  border-radius: 12px;
  color: #694700;
  font-weight: 900;
  margin: 12px 0 0;
  padding: 10px 12px;
}

.portal-user-pill {
  min-width: 140px;
}

.portal-personal-menu {
  position: relative;
}

.portal-personal-button {
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: var(--cream);
  cursor: pointer;
  font-weight: 900;
  height: 42px;
  width: 42px;
}

.portal-personal-panel {
  background: var(--cream);
  border: 1px solid rgba(7, 17, 30, 0.12);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(7, 17, 30, 0.16);
  display: grid;
  min-width: 180px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
}

.portal-personal-panel button {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 10px 12px;
  text-align: left;
}

.portal-personal-panel button:disabled {
  color: #8b96a1;
  cursor: default;
}

.portal-assistance-strip {
  align-items: center;
  background: #fff3d4;
  border: 1px solid rgba(221, 169, 74, 0.48);
  border-radius: 16px;
  color: #694700;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 16px;
}

.portal-assistance-strip strong,
.portal-assistance-strip span {
  display: block;
}

.portal-assistance-strip span {
  font-size: 13px;
  font-weight: 800;
  margin-top: 3px;
}

.portal-workspace-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 190px minmax(0, 1fr);
}

.portal-side-nav {
  align-items: stretch;
  background: rgba(7, 17, 30, 0.95);
  border-radius: 18px;
  color: var(--cream);
  display: grid;
  gap: 7px;
  padding: 10px;
  position: sticky;
  top: 96px;
}

.portal-side-nav a {
  border-left: 3px solid transparent;
  border-radius: 10px;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 11px;
  text-decoration: none;
}

.portal-side-nav a.active {
  border-color: rgba(221, 169, 74, 0.75);
  color: var(--gold);
}

body.portal-menu-open {
  overflow: hidden;
}

.portal-workspace-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.workspace-hero {
  background:
    linear-gradient(135deg, rgba(255, 253, 250, 0.95), rgba(255, 255, 255, 0.68)),
    radial-gradient(circle at right top, rgba(221, 169, 74, 0.18), transparent 36%);
  border: 1px solid rgba(7, 17, 30, 0.11);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(7, 17, 30, 0.08);
  padding: 20px;
}

.workspace-hero.org-home {
  background:
    linear-gradient(135deg, rgba(255, 253, 250, 0.95), rgba(246, 251, 253, 0.75)),
    radial-gradient(circle at right top, rgba(69, 135, 169, 0.18), transparent 34%);
}

.workspace-hero h3 {
  font-family: Georgia, serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0 0 14px;
}

.workspace-hero .workspace-summary-copy,
.workspace-hero p:last-child {
  color: #5f6d79;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

.workspace-hero-facts {
  border-top: 1px solid rgba(7, 17, 30, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: 18px;
  padding-top: 16px;
}

.workspace-hero-facts strong {
  align-items: baseline;
  display: flex;
  font-size: 20px;
  gap: 7px;
}

.workspace-hero-facts span {
  color: #5f6d79;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.workspace-hero-facts small {
  color: #5f6d79;
  font-size: 12px;
}

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

.workspace-metrics article {
  background: rgba(255, 253, 250, 0.75);
  border: 1px solid rgba(7, 17, 30, 0.1);
  border-radius: 14px;
  min-width: 0;
  padding: 12px 14px;
}

.workspace-metrics span {
  color: #667381;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.workspace-metrics strong {
  display: block;
  font-size: clamp(18px, 1.7vw, 26px);
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.workspace-section {
  min-width: 0;
}

.workspace-section + .workspace-section {
  margin-top: 28px;
}

.workspace-section-intro {
  color: var(--muted);
  margin: -8px 0 16px;
  max-width: 820px;
}

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

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

.client-card,
.shortcut-grid a,
.shortcut-disabled {
  background: rgba(255, 253, 250, 0.78);
  border: 1px solid rgba(7, 17, 30, 0.11);
  border-radius: 16px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  padding: 18px;
  text-decoration: none;
}

.client-card span {
  color: #9b6d18;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.client-card strong,
.shortcut-grid strong,
.shortcut-disabled strong {
  font-size: 22px;
}

.client-card p,
.client-card small,
.shortcut-grid span,
.shortcut-disabled span {
  color: #5f6d79;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.shortcut-disabled {
  opacity: 0.78;
}

.shortcut-disabled em {
  color: #9b6d18;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-card small {
  display: block;
}

.client-card button {
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: var(--cream);
  cursor: pointer;
  font-weight: 900;
  min-height: 38px;
  padding: 0 14px;
  width: fit-content;
}

.client-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-card-actions a {
  border: 1px solid rgba(7, 17, 30, 0.14);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  min-height: 38px;
  padding: 9px 14px;
  text-decoration: none;
}

.client-directory-tools { align-items: end; display: flex; gap: 16px; justify-content: space-between; margin: 0 0 14px; }
.client-directory-tools label { display: grid; gap: 6px; max-width: 520px; width: 100%; }
.client-directory-tools label span { color: #526171; font-size: 12px; font-weight: 850; }
.client-directory-tools input { border: 1px solid rgba(7,17,30,.18); border-radius: 10px; color: var(--ink); font: inherit; padding: 11px 13px; width: 100%; }
.client-directory-tools small { color: #647180; font-weight: 700; padding-bottom: 11px; white-space: nowrap; }
.client-pagination { align-items: center; display: flex; gap: 12px; justify-content: flex-end; margin-top: 16px; }
.client-pagination button { background: var(--cream); border: 1px solid rgba(7,17,30,.16); border-radius: 999px; color: var(--ink); cursor: pointer; font-weight: 850; padding: 8px 14px; }
.client-pagination button:disabled { cursor: default; opacity: .45; }

.contract-directory { border: 1px solid rgba(7,17,30,.12); border-radius: 14px; overflow: hidden; }
.contract-directory-row { align-items: center; background: rgba(255,253,250,.72); border-bottom: 1px solid rgba(7,17,30,.1); display: grid; gap: 18px; grid-template-columns: minmax(260px,1.8fr) minmax(190px,1fr) auto; padding: 15px 18px; }
.contract-directory-row:last-child { border-bottom: 0; }
.contract-directory-row > div { display: grid; gap: 4px; }
.contract-directory-row span { color: #627181; font-size: 13px; font-weight: 750; }
.contract-directory-row strong { color: var(--ink); font-size: 16px; }
.contract-directory-row > div:nth-child(2) { text-align: right; }
.contract-directory-row > div:nth-child(2) span { text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }

.commercial-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.commercial-tabs button { background: rgba(255,253,250,.76); border: 1px solid rgba(7,17,30,.14); border-radius: 999px; color: var(--ink); cursor: pointer; font: inherit; font-weight: 850; padding: 10px 16px; }
.commercial-tabs button.active { background: var(--ink); color: #fff; }
.commercial-price-code-form { background: rgba(255,253,250,.72); border: 1px solid rgba(7,17,30,.12); border-radius: 16px; margin-bottom: 18px; padding: 18px; }
.commercial-price-code-form .wide { grid-column: span 2; }
.price-code-form-message { color: #8b6113; font-size: 13px; font-weight: 800; grid-column: 1 / -1; margin: 0; min-height: 1.2em; }
.account-price-actions { align-items: center; display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 8px; }
.account-price-actions select { border: 1px solid rgba(7,17,30,.18); border-radius: 8px; color: var(--ink); font: inherit; padding: 7px 9px; }

.contract-directory-table .contract-directory-head,
.contract-directory-table .contract-directory-row { grid-template-columns: minmax(240px,1.8fr) 90px minmax(145px,1fr) minmax(145px,1fr) 110px auto; }
.contract-directory-head { background: #eaf0f4; color: #5f6d79; display: grid; font-size: 11px; font-weight: 900; gap: 18px; letter-spacing: .08em; padding: 11px 18px; text-transform: uppercase; }
.contract-directory-table .contract-directory-row > div:nth-child(n) { text-align: left; }
.contract-directory-table .contract-directory-row > div > span { display: none; }
.amount-due { color: #a64034 !important; }
.contract-state { border-radius: 999px; font-size: 11px !important; padding: 6px 9px; text-align: center; text-transform: uppercase; }
.contract-state-activo { background: #e3f4ec; color: #176849 !important; }
.contract-state-suspendido { background: #f3e9e4; color: #94483b !important; }
.contract-state-mixto { background: #fff1cf; color: #8b6113 !important; }

.price-code-toolbar { align-items: end; background: rgba(255,253,250,.72); border: 1px solid rgba(7,17,30,.12); border-radius: 16px; display: grid; gap: 12px; grid-template-columns: minmax(240px,2fr) 180px auto; margin-bottom: 10px; padding: 16px; }
.price-code-toolbar label,.price-code-note { display: grid; gap: 6px; }
.price-code-toolbar label span,.price-code-note span { color: #566574; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.price-code-toolbar input,.price-code-toolbar select,.price-code-note input { border: 1px solid rgba(7,17,30,.17); border-radius: 10px; font: inherit; padding: 10px 12px; width: 100%; }
.price-code-toolbar button,.price-code-apply-bar button,.price-code-row button { background: var(--ink); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font-weight: 900; padding: 11px 14px; }
.price-code-apply-bar { align-items: end; background: rgba(220,235,230,.72); border: 1px solid rgba(22,91,70,.18); border-radius: 14px; display: grid; gap: 14px; grid-template-columns: auto minmax(280px,1fr) auto; margin-bottom: 12px; padding: 13px 16px; }
.price-code-table { border: 1px solid rgba(7,17,30,.12); border-radius: 14px; overflow: hidden; }
.price-code-head,.price-code-row { align-items: center; display: grid; gap: 14px; grid-template-columns: 28px minmax(240px,1.5fr) 145px 170px 105px 80px auto; padding: 12px 16px; }
.price-code-head { background: #eaf0f4; color: #5f6d79; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.price-code-row { background: rgba(255,253,250,.78); border-top: 1px solid rgba(7,17,30,.09); }
.price-code-row div { display: grid; gap: 3px; }.price-code-row div span { color: #647180; font-size: 12px; }.price-code-row input[type=number] { border: 1px solid rgba(7,17,30,.16); border-radius: 9px; font: inherit; padding: 9px; width: 100%; }.price-code-row .positive { color: #176849; }.price-code-row .negative { color: #a64034; }

.contract-account-dialog { background: #eef3f6; max-height: 94vh; max-width: 1180px; padding: 0; width: min(1180px,96vw); }
.contract-account-shell { display: grid; gap: 16px; padding: 24px; }
.contract-account-shell .identity-dialog-heading { background: #fffdfa; border-radius: 18px; padding: 18px 20px; }
.contract-account-summary { align-items: center; background: #dcebe6; border: 1px solid rgba(22,91,70,.18); border-radius: 16px; display: grid; gap: 20px; grid-template-columns: 220px 1fr; padding: 18px; }
.contract-account-summary span { color: #52635f; display: block; font-size: 11px; font-weight: 900; text-transform: uppercase; }.contract-account-summary strong { color: #165b46; font-size: 28px; }.contract-account-summary p { color: #52635f; }
.contract-account-section { background: #fffdfa; border: 1px solid rgba(7,17,30,.11); border-radius: 18px; padding: 18px; }
.contract-account-title { align-items: end; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 14px; }.contract-account-title h3,.contract-action-grid h4 { margin: 2px 0 0; }
.contract-modules-list { display: grid; gap: 8px; }.contract-module-row { align-items: center; background: #f5f8fa; border: 1px solid #dbe4ea; border-radius: 12px; display: grid; gap: 14px; grid-template-columns: minmax(220px,1.5fr) 170px minmax(360px,2fr); padding: 12px; }.contract-module-row > div { display: grid; gap: 4px; }.contract-module-row span { color: #647180; font-size: 12px; }
.contract-action-grid { display: grid; gap: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); }.contract-action-grid form { background: #f5f8fa; border: 1px solid #dbe4ea; border-radius: 14px; display: grid; gap: 10px; padding: 15px; }.contract-action-grid label,#contract-ledger-filter label { display: grid; font-size: 12px; font-weight: 850; gap: 5px; }.contract-action-grid input,.contract-action-grid select,.contract-action-grid textarea,#contract-ledger-filter input { border: 1px solid #cedae2; border-radius: 9px; font: inherit; padding: 9px; width: 100%; }
#contract-ledger-filter { align-items: end; display: flex; gap: 8px; }#contract-ledger-filter button { min-height: 39px; }.ledger-opening { background: #f4f7f9; border-radius: 10px; margin-bottom: 10px; padding: 10px 12px; }.ledger-opening strong { float: right; }.contract-ledger-wrap { overflow-x: auto; }.contract-ledger-wrap table { border-collapse: collapse; min-width: 760px; width: 100%; }.contract-ledger-wrap th { background: #eaf0f4; color: #586777; font-size: 11px; text-align: left; text-transform: uppercase; }.contract-ledger-wrap th,.contract-ledger-wrap td { border-bottom: 1px solid #dfe6eb; padding: 10px; }.contract-ledger-wrap td:nth-child(n+3) { text-align: right; }.contract-ledger-wrap td span { color: #657281; display: block; font-size: 12px; }.contract-account-history { background: #fffdfa; border-radius: 14px; padding: 14px 18px; }.contract-account-history summary { cursor: pointer; font-weight: 900; }

@media (max-width: 900px) { .contract-directory-head { display:none; }.contract-directory-table .contract-directory-row { grid-template-columns: 1fr 1fr; }.contract-directory-table .contract-directory-row > div:first-child { grid-column: 1/-1; }.contract-directory-table .contract-directory-row > div > span { display:block; }.price-code-toolbar,.price-code-apply-bar { grid-template-columns:1fr 1fr; }.price-code-head { display:none; }.price-code-row { grid-template-columns:28px 1fr 1fr; }.contract-module-row,.contract-action-grid { grid-template-columns:1fr; }.contract-account-summary { grid-template-columns:1fr; }.contract-account-title { align-items:stretch; flex-direction:column; } }

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

.contract-summary article {
  background: rgba(255, 253, 250, 0.74);
  border: 1px solid rgba(7, 17, 30, 0.1);
  border-radius: 16px;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.contract-summary span {
  color: #9b6d18;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contract-summary strong {
  color: var(--ink);
  font-size: 18px;
}

.contract-summary small {
  color: #5f6d79;
  font-weight: 800;
}

.contract-monthly-total,
.account-current-grid,
.account-current-ledger {
  display: grid;
  gap: 12px;
}

.contract-monthly-total {
  align-items: center;
  background: rgba(220, 235, 230, 0.72);
  border: 1px solid rgba(22, 91, 70, 0.2);
  border-radius: 16px;
  grid-template-columns: minmax(210px, auto) 1fr;
  margin-top: 14px;
  padding: 16px;
}

.contract-monthly-total span,
.account-current-grid span {
  color: #52635f;
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contract-monthly-total strong {
  color: #165b46;
  display: block;
  font-size: 27px;
  margin-top: 4px;
}

.contract-monthly-total p,
.account-current-grid p,
.account-current-ledger span,
.portal-market-intro {
  color: #5f6d79;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

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

.account-current-grid article,
.account-current-ledger > div {
  background: rgba(255, 253, 250, 0.76);
  border: 1px solid rgba(7, 17, 30, 0.11);
  border-radius: 16px;
  padding: 18px;
}

.account-current-grid article {
  display: grid;
  gap: 10px;
}

.account-current-grid strong {
  color: var(--ink);
  font-size: 22px;
}

.account-current-payment button {
  background: rgba(7, 17, 30, 0.14);
  border: 0;
  border-radius: 999px;
  color: #6c7782;
  cursor: default;
  font-weight: 900;
  min-height: 38px;
  padding: 0 14px;
  width: fit-content;
}

.account-current-ledger {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.account-current-ledger > div {
  display: grid;
  gap: 6px;
}

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

.portal-market-intro {
  margin: -2px 0 16px;
}

.market-pending {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(7, 17, 30, 0.14);
  border-radius: 999px;
  color: #5f6d79;
  font-size: 12px;
  font-weight: 900;
  padding: 10px 14px;
}

.organization-modules .portal-access strong {
  font-family: Inter, "Avenir Next", Avenir, Arial, sans-serif;
  font-size: 25px;
  font-weight: 900;
}

.organization-modules .portal-access {
  align-content: start;
  gap: 9px;
  min-height: 220px;
}

.organization-modules .portal-access p {
  margin: 4px 0 12px;
  min-height: 40px;
}

.organization-modules .module-actions {
  align-self: end;
  flex-wrap: wrap;
}

.module-title {
  color: #9b6d18;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .portal-app-header,
  .portal-workspace-layout {
    grid-template-columns: 1fr;
  }

  .portal-side-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    overflow-x: visible;
    position: static;
  }

  .portal-side-nav a {
    min-width: 0;
  }

  .workspace-metrics,
  .client-grid,
  .shortcut-grid,
  .contract-summary,
  .account-current-grid,
  .account-current-ledger,
  .portal-access-list,
  .portal-market-list,
  .contract-directory-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .active-context {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .workspace-metrics,
  .client-grid,
  .shortcut-grid,
  .contract-summary,
  .account-current-grid,
  .account-current-ledger,
  .portal-access-list,
  .portal-market-list,
  .contract-directory-row {
    grid-template-columns: 1fr;
  }

  .contract-directory-row > div:nth-child(2) { text-align: left; }

  .portal-app-header {
    grid-template-columns: auto 1fr auto;
    padding: 12px;
  }

  .portal-menu-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
  }

  .portal-brand {
    grid-column: 2;
    grid-row: 1;
  }

  .portal-personal-menu {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .workspace-switcher {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .portal-breadcrumb {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .portal-user-pill {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .workspace-hero h3 {
    font-size: clamp(28px, 10vw, 38px);
  }

  .portal-workspace-layout {
    display: block;
  }

  .portal-side-nav {
    background: rgba(7, 17, 30, 0.98);
    bottom: 0;
    box-shadow: 20px 0 60px rgba(7, 17, 30, 0.25);
    grid-template-columns: 1fr;
    left: 0;
    max-width: 330px;
    padding: 20px;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform .18s ease;
    width: min(88vw, 330px);
    z-index: 40;
  }

  .portal-side-nav.open {
    transform: translateX(0);
  }

  body.portal-menu-open::after {
    background: rgba(7, 17, 30, 0.54);
    content: "";
    inset: 0;
    position: fixed;
    z-index: 35;
  }

  .portal-assistance-strip {
    align-items: start;
    flex-direction: column;
  }
}

/* Self-service at organization entry, shared by all operational activities. */
#personal-today { border: 1px solid #c6dbcf; background: #f5faf7; }
.personal-today-shifts p { margin: .5rem 0; }
.personal-today-leave { color: #674297; }
.personal-today-replacement { color: #215b91; }
.personal-today-tasks { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 12px; margin: 12px 0 18px; }
.personal-today-tasks article { background: #fff; border: 1px solid #dce5df; border-radius: 12px; padding: 14px; overflow-wrap: anywhere; }
.personal-today-tasks article span { display: block; margin-top: 6px; }
