:root {
  --aa-red: #b70707;
  --aa-green: #264641;
  --aa-orange: #f39418;
  --aa-gray: #b0a89d;
  --aa-ink: #141716;
  --aa-sand: #f6f3ef;
  --aa-cream: #fbfaf8;
  --aa-shadow: 0 20px 45px rgba(20, 23, 22, 0.18);
  --aa-soft-shadow: 0 10px 25px rgba(20, 23, 22, 0.12);
  --aa-radius-lg: 22px;
  --aa-radius-md: 14px;
  --aa-radius-sm: 10px;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--aa-ink);
  background: linear-gradient(180deg, #ffffff 0%, rgba(176, 168, 157, 0.12) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.app-sidebar {
  padding: 32px 24px;
  background: var(--aa-green);
  color: #f8f5f1;
  position: relative;
  z-index: 10;
}

.app-sidebar::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--aa-red);
}

.brand-block {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
  min-width: 0;
}

.brand-logo-shell {
  display: inline-flex;
  width: fit-content;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 22px rgba(10, 17, 16, 0.18);
}

.brand-logo {
  width: 56px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand-wordmark-shell {
  display: grid;
  gap: 10px;
  width: min(100%, 220px);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  padding: 12px 14px 10px;
  box-shadow: 0 14px 28px rgba(10, 17, 16, 0.16);
}

.brand-wordmark {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: rgba(38, 70, 65, 0.82);
}

.nav-section {
  display: grid;
  gap: 12px;
}

.nav-section + .nav-section {
  margin-top: 14px;
}

.nav-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(248, 245, 241, 0.6);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--aa-radius-md);
  font-weight: 500;
  color: #fdfcfb;
  transition: transform 0.2s ease, background 0.2s ease;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item:hover {
  background: rgba(243, 148, 24, 0.22);
  transform: translateX(4px);
}

.nav-item.active {
  background: rgba(182, 6, 6, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.sidebar-footer {
  margin-top: 36px;
  padding: 16px;
  border-radius: var(--aa-radius-md);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: rgba(248, 245, 241, 0.8);
}

.app-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--aa-green);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.topbar-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--aa-green);
}

.active-business-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(38, 70, 65, 0.22);
  background: rgba(38, 70, 65, 0.08);
}

.active-business-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(176, 168, 157, 0.45);
  background: #fff;
}

.active-business-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.active-business-name {
  color: var(--aa-green);
  font-weight: 700;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-business-branch {
  color: rgba(20, 23, 22, 0.72);
  font-size: 0.82rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--aa-red);
  color: #fff;
  box-shadow: var(--aa-soft-shadow);
}

.btn-primary:hover {
  background: #a00505;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--aa-green);
  border-color: var(--aa-green);
}

.btn-ghost:hover {
  background: rgba(243, 148, 24, 0.18);
  border-color: var(--aa-orange);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--aa-green);
  color: #fff;
}

.user-pill-meta {
  display: grid;
  gap: 2px;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.user-name {
  font-weight: 600;
}

.user-role {
  font-size: 0.8rem;
  color: var(--aa-orange);
}

.user-capability {
  opacity: 0.88;
}

.profile-switch-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-switch-select {
  min-width: 170px;
  padding: 9px 12px;
  border-radius: 999px;
}

.app-content {
  padding: 32px 36px 48px;
  flex: 1;
}

.app-footer {
  padding: 24px 36px;
  border-top: 1px solid rgba(176, 168, 157, 0.4);
  font-size: 0.9rem;
  color: rgba(20, 23, 22, 0.6);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: var(--aa-radius-lg);
  background: #fff;
  box-shadow: var(--aa-shadow);
  border: 1px solid rgba(176, 168, 157, 0.45);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: var(--aa-radius-lg) 0 0 var(--aa-radius-lg);
  background: var(--aa-red);
}

.hero-logo {
  display: block;
  width: auto;
  max-width: min(100%, 300px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  margin-bottom: 18px;
}

.hero-logo-main {
  max-width: min(100%, 300px);
  max-height: 62px;
}

.hero-logo-compact {
  max-width: min(100%, 240px);
  max-height: 56px;
}

.hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--aa-green);
}

.hero p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: rgba(20, 23, 22, 0.75);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card {
  padding: 20px 22px;
  border-radius: var(--aa-radius-md);
  background: #fff;
  box-shadow: var(--aa-soft-shadow);
  border: 1px solid rgba(176, 168, 157, 0.35);
  border-left: 4px solid var(--aa-green);
}

.card-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--aa-red);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--aa-red);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}

.panel {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--aa-radius-md);
  background: rgba(38, 70, 65, 0.08);
  border: 1px dashed rgba(176, 168, 157, 0.6);
}

.public-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 32px;
  background: #fff;
  border-bottom: 2px solid var(--aa-green);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.public-brand-logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.public-content {
  flex: 1;
  padding: 32px;
}

.auth-page .public-content {
  padding: 0;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  min-height: calc(100vh - 82px);
}

.auth-visual {
  padding: 56px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(38, 70, 65, 0.94), rgba(183, 7, 7, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/branding/logo-wide-transparent.png") center / 72% auto no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.13;
  pointer-events: none;
}

.auth-visual > * {
  position: relative;
  z-index: 1;
}

.auth-visual h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0 0 12px;
}

.auth-visual p {
  margin: 0;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.85);
}

.auth-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: rgba(255, 255, 255, 0.96);
}

.auth-form {
  width: min(420px, 100%);
  background: #fff;
  padding: 32px;
  border-radius: var(--aa-radius-lg);
  box-shadow: var(--aa-shadow);
  border: 1px solid rgba(176, 168, 157, 0.4);
}

.auth-form-wide {
  width: min(680px, 100%);
}

.auth-form h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.auth-form p {
  margin: 0 0 24px;
  color: rgba(20, 23, 22, 0.7);
}

.auth-section {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(176, 168, 157, 0.32);
  background: linear-gradient(180deg, rgba(246, 243, 239, 0.78), rgba(255, 255, 255, 0.96));
}

.auth-section-header {
  display: grid;
  gap: 6px;
}

.auth-section-header h2 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--aa-green);
}

.auth-section-header p {
  margin: 0;
}

.auth-inline-note {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(38, 70, 65, 0.08);
  border: 1px solid rgba(38, 70, 65, 0.12);
  color: rgba(20, 23, 22, 0.78);
}

.auth-inline-note strong {
  color: var(--aa-green);
}

.auth-upload-block {
  margin-bottom: 0;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-section-title {
  margin: 8px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(176, 168, 157, 0.45);
  color: var(--aa-green);
  font-weight: 700;
}

.form-field label {
  font-weight: 600;
  color: var(--aa-green);
}

.form-input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(176, 168, 157, 0.8);
  font-family: var(--font-body);
}

.form-input:focus {
  outline: none;
  border-color: var(--aa-red);
  box-shadow: 0 0 0 3px rgba(182, 6, 6, 0.18);
}

.form-error {
  padding: 12px;
  border-radius: 12px;
  background: rgba(182, 6, 6, 0.08);
  color: var(--aa-red);
  border: 1px solid rgba(182, 6, 6, 0.2);
  margin-bottom: 16px;
}

.form-success {
  padding: 12px;
  border-radius: 12px;
  background: rgba(38, 70, 65, 0.08);
  color: var(--aa-green);
  border: 1px solid rgba(38, 70, 65, 0.35);
  margin-bottom: 16px;
  font-weight: 600;
}

.text-danger {
  color: var(--aa-red);
  font-size: 0.85rem;
}

.form-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 20px;
  font-size: 0.9rem;
}

.form-helper a {
  color: var(--aa-orange);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(176, 168, 157, 0.5);
  background: rgba(176, 168, 157, 0.08);
}

.picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.btn-picker-add {
  white-space: nowrap;
}

.picker-helper {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(20, 23, 22, 0.72);
}

.picker-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(38, 70, 65, 0.14);
  border: 1px solid rgba(38, 70, 65, 0.32);
  color: var(--aa-green);
  font-weight: 600;
  font-size: 0.85rem;
}

.picker-chip-remove {
  border: none;
  background: transparent;
  color: var(--aa-red);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.picker-empty {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(176, 168, 157, 0.8);
  color: rgba(20, 23, 22, 0.66);
  font-size: 0.84rem;
}

.location-block {
  margin-top: 10px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(176, 168, 157, 0.45);
  background: linear-gradient(180deg, rgba(176, 168, 157, 0.1), rgba(255, 255, 255, 0.98));
  box-shadow: var(--aa-soft-shadow);
}

.location-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.location-panel-copy {
  min-width: 0;
}

.location-intro-helper {
  max-width: 760px;
  line-height: 1.5;
}

.location-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(243, 148, 24, 0.16);
  color: #91580d;
  font-weight: 700;
  font-size: 0.84rem;
}

.location-status-pill.confirmed {
  background: rgba(38, 70, 65, 0.14);
  color: var(--aa-green);
}

.location-experience-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.28fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.location-search-card,
.location-map-card {
  min-width: 0;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--aa-soft-shadow);
  border: 1px solid rgba(176, 168, 157, 0.35);
}

.location-search-card {
  display: grid;
  gap: 12px;
}

.location-card-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(183, 7, 7, 0.08);
  color: var(--aa-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.location-search-label {
  font-weight: 700;
  color: var(--aa-green);
}

.location-search-input {
  min-height: 56px;
  border-radius: 16px;
  font-size: 1rem;
}

.location-search-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.location-search-input-row .location-search-input {
  flex: 1;
}

.location-search-button {
  white-space: nowrap;
  min-width: 156px;
  justify-content: center;
}

.location-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.location-quick-button {
  justify-content: center;
  min-height: 46px;
}

.location-search-state {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(38, 70, 65, 0.16);
  background: rgba(38, 70, 65, 0.06);
}

.location-search-state strong {
  color: var(--aa-green);
}

.location-search-state span {
  color: rgba(20, 23, 22, 0.74);
  font-size: 0.9rem;
}

.location-search-state[data-tone="warning"] {
  border-color: rgba(243, 148, 24, 0.3);
  background: rgba(243, 148, 24, 0.08);
}

.location-search-state[data-tone="warning"] strong {
  color: #91580d;
}

.location-search-state[data-tone="success"] {
  border-color: rgba(38, 70, 65, 0.24);
  background: rgba(38, 70, 65, 0.08);
}

.location-saved-panel {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(176, 168, 157, 0.08);
  border: 1px dashed rgba(176, 168, 157, 0.55);
}

.location-saved-list {
  display: grid;
  gap: 8px;
}

.location-saved-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(176, 168, 157, 0.45);
  border-radius: 16px;
  background: #fff;
}

.location-saved-content {
  display: grid;
  gap: 4px;
  color: var(--aa-ink);
}

.location-saved-content strong {
  color: var(--aa-green);
}

.location-saved-content span,
.location-saved-content small {
  color: rgba(20, 23, 22, 0.68);
  font-size: 0.9rem;
}

.location-saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.location-saved-action {
  min-width: 88px;
  justify-content: center;
}

.location-map-card {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 100px;
}

.location-map-shell {
  position: relative;
  min-height: clamp(320px, 46vh, 520px);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(38, 70, 65, 0.08);
  border: 1px solid rgba(176, 168, 157, 0.35);
}

.location-map-canvas {
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 46vh, 520px);
}

.location-map-loading {
  position: absolute;
  inset: 18px;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(176, 168, 157, 0.45);
}

.location-map-loading strong {
  color: var(--aa-green);
}

.location-map-loading span {
  max-width: 280px;
  color: rgba(20, 23, 22, 0.72);
}

.location-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, calc(-100% + 8px));
  pointer-events: none;
}

.location-map-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--aa-red);
  box-shadow: 0 10px 24px rgba(183, 7, 7, 0.28);
}

.location-map-pin-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  z-index: 1;
}

.location-map-overlay {
  position: absolute;
  inset: 18px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px dashed rgba(176, 168, 157, 0.7);
}

.location-map-overlay strong {
  color: var(--aa-green);
}

.location-map-overlay p {
  margin: 0;
  color: rgba(20, 23, 22, 0.72);
}

.location-detected-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(38, 70, 65, 0.08), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(38, 70, 65, 0.16);
}

.location-detected-card p {
  margin: 0;
}

.location-detected-top {
  display: grid;
  gap: 6px;
}

.location-detected-address {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--aa-green);
}

.location-detected-card [data-location-status][data-tone="warning"] {
  color: #91580d;
}

.location-detected-card [data-location-status][data-tone="success"] {
  color: var(--aa-green);
  font-weight: 600;
}

.location-detected-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(20, 23, 22, 0.7);
  font-size: 0.9rem;
}

.location-detected-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(176, 168, 157, 0.45);
}

.location-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.location-status-message {
  line-height: 1.45;
}

.location-address-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(176, 168, 157, 0.34);
  background: rgba(38, 70, 65, 0.06);
}

.location-address-summary-text {
  margin: 0;
  font-weight: 600;
  color: var(--aa-green);
}

.location-preview-card {
  margin-top: 20px;
}

.location-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.location-preview-method {
  margin-bottom: 6px;
}

.location-preview-address {
  color: var(--aa-green);
  font-weight: 600;
  line-height: 1.5;
}

.location-map-shell-preview {
  min-height: clamp(220px, 34vh, 320px);
  margin-top: 14px;
}

.location-map-shell-preview .location-map-canvas {
  min-height: clamp(220px, 34vh, 320px);
}

.image-upload-block {
  margin-top: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(176, 168, 157, 0.55);
  background: rgba(176, 168, 157, 0.08);
}

.upload-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.upload-preview-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(176, 168, 157, 0.45);
  box-shadow: var(--aa-soft-shadow);
}

.upload-preview-card-readonly {
  text-decoration: none;
}

.upload-preview-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(176, 168, 157, 0.15);
}

.upload-preview-remove {
  justify-content: center;
}

.upload-empty {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(176, 168, 157, 0.75);
  color: rgba(20, 23, 22, 0.66);
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.register-choice {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--aa-radius-lg);
  border: 1px solid rgba(176, 168, 157, 0.45);
  box-shadow: var(--aa-shadow);
  padding: 34px;
}

.register-choice-header {
  text-align: center;
  margin-bottom: 24px;
}

.register-choice-header h1 {
  margin: 10px 0 8px;
  color: var(--aa-green);
  font-family: var(--font-display);
}

.register-choice-header p {
  margin: 0;
  color: rgba(20, 23, 22, 0.72);
}

.register-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.account-card {
  border: 1px solid rgba(176, 168, 157, 0.4);
  border-top: 5px solid var(--aa-red);
  border-radius: var(--aa-radius-md);
  background: #fff;
  padding: 20px;
  display: grid;
  gap: 10px;
  box-shadow: var(--aa-soft-shadow);
}

.account-card h2 {
  margin: 0;
  color: var(--aa-green);
  font-size: 1.2rem;
  font-family: var(--font-display);
}

.account-card p {
  margin: 0 0 4px;
  color: rgba(20, 23, 22, 0.78);
}

.register-choice-footer {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.dashboard-capability-grid {
  margin-top: 24px;
}

.client-home-hero {
  display: grid;
  gap: 24px;
}

.client-top-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--aa-radius-lg);
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(38, 70, 65, 0.96), rgba(38, 70, 65, 0.82));
  color: #fff;
  box-shadow: var(--aa-shadow);
}

.client-top-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/branding/logo-wide-transparent.png") right 28px center / min(42%, 320px) auto no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.09;
  pointer-events: none;
}

.client-top-strip > * {
  position: relative;
  z-index: 1;
}

.client-top-item {
  display: grid;
  gap: 4px;
}

.client-top-item strong {
  font-size: 1.08rem;
}

.client-top-item span:last-child {
  color: rgba(255, 255, 255, 0.82);
}

.client-top-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(243, 148, 24, 0.95);
}

.client-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-location-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(243, 148, 24, 0.18);
  color: #fff7ea;
  font-weight: 700;
  border: 1px solid rgba(243, 148, 24, 0.34);
}

.client-location-state.confirmed {
  background: rgba(255, 255, 255, 0.14);
  color: #f6fff6;
  border-color: rgba(255, 255, 255, 0.28);
}

.client-top-actions .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.client-top-actions .btn-ghost:hover {
  background: rgba(243, 148, 24, 0.22);
  border-color: var(--aa-orange);
}

.client-top-actions .btn-primary {
  background: #fff;
  color: var(--aa-red);
}

.client-top-actions .btn-primary:hover {
  background: #fff5f5;
}

.client-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 24px;
}

.client-hero-copy,
.client-summary-card {
  padding: 30px;
  border-radius: var(--aa-radius-lg);
  background: #fff;
  border: 1px solid rgba(176, 168, 157, 0.35);
  box-shadow: var(--aa-shadow);
}

.client-hero-copy {
  position: relative;
  overflow: hidden;
}

.client-hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 148, 24, 0.18) 0%, rgba(243, 148, 24, 0) 70%);
  pointer-events: none;
}

.client-hero-copy h1 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--aa-green);
}

.client-hero-copy p {
  margin: 0 0 18px;
  font-size: 1.04rem;
  color: rgba(20, 23, 22, 0.74);
  max-width: 640px;
}

.client-search-panel {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(176, 168, 157, 0.42);
  background: linear-gradient(180deg, rgba(246, 243, 239, 0.95), #fff);
}

.client-search-label {
  font-weight: 700;
  color: var(--aa-green);
}

.client-search-input {
  min-height: 58px;
  border-radius: 16px;
  font-size: 1rem;
}

.client-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.client-mode-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(176, 168, 157, 0.36);
  background: #fff;
  box-shadow: var(--aa-soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-mode-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--aa-shadow);
}

.client-mode-card.product {
  border-top: 5px solid var(--aa-red);
}

.client-mode-card.service {
  border-top: 5px solid var(--aa-green);
}

.client-mode-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--aa-green);
}

.client-mode-icon,
.client-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(183, 7, 7, 0.1);
  color: var(--aa-red);
  font-size: 1.5rem;
}

.client-category-icon-service {
  background: rgba(38, 70, 65, 0.12);
  color: var(--aa-green);
}

.client-summary-card {
  border-left: 5px solid var(--aa-red);
}

.client-quick-links {
  display: grid;
  gap: 10px;
}

.client-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(38, 70, 65, 0.08);
  color: var(--aa-green);
  font-weight: 700;
}

.client-quick-link:hover {
  background: rgba(182, 7, 7, 0.08);
  color: var(--aa-red);
}

.client-flow-list {
  display: grid;
  gap: 12px;
}

.client-flow-step {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(176, 168, 157, 0.68);
  background: rgba(176, 168, 157, 0.08);
}

.client-section {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.client-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.client-section-head h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  color: var(--aa-green);
}

.client-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.client-category-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(176, 168, 157, 0.36);
  border-top: 5px solid var(--aa-red);
  box-shadow: var(--aa-soft-shadow);
}

.client-category-card-service {
  border-top-color: var(--aa-green);
}

.client-meta {
  font-size: 0.88rem;
  color: rgba(20, 23, 22, 0.68);
}

.client-highlight {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(243, 148, 24, 0.14);
  color: #91580d;
  font-weight: 600;
  font-size: 0.9rem;
}

.client-journey-hero .client-summary-card {
  border-left-color: var(--aa-green);
}

.capability-card {
  display: grid;
  gap: 12px;
}

.capability-card-focus {
  border-left-color: var(--aa-red);
  box-shadow: var(--aa-shadow);
  transform: translateY(-2px);
}

.capability-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 14px;
}

.capability-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(176, 168, 157, 0.75);
  color: var(--aa-green);
  background: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}
.capability-chip-muted {
  color: rgba(20, 23, 22, 0.55);
  border-style: dashed;
  background: rgba(176, 168, 157, 0.12);
}

.profile-form-card {
  max-width: 980px;
}

.profile-preview-block {
  display: grid;
  gap: 8px;
  margin: 6px 0 16px;
}

.profile-preview-image {
  width: min(220px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(176, 168, 157, 0.55);
  background: #fff;
  object-fit: cover;
}

.profile-preview-image-lg {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 3px solid rgba(38, 70, 65, 0.22);
  box-shadow: var(--aa-soft-shadow);
}

.profile-photo-uploader {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.permission-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.permission-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.permission-pill.allow {
  color: #fff;
  background: var(--aa-green);
}

.permission-pill.deny {
  color: var(--aa-red);
  background: rgba(182, 6, 6, 0.08);
  border: 1px solid rgba(182, 6, 6, 0.24);
}

.solicitud-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
}

.solicitud-filter-form .form-field {
  min-width: 220px;
  margin-bottom: 0;
}

.solicitud-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.solicitud-list-header,
.solicitud-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(120px, 1fr) minmax(90px, 0.8fr) minmax(140px, 1fr) minmax(220px, 1.3fr);
  gap: 12px;
  align-items: center;
}

.solicitud-list-header {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(20, 23, 22, 0.6);
  padding: 0 4px;
}

.solicitud-row {
  padding: 14px;
  border: 1px solid rgba(176, 168, 157, 0.45);
  border-radius: var(--aa-radius-md);
  background: #fff;
}

.solicitud-row p {
  margin: 6px 0 0;
  color: rgba(20, 23, 22, 0.74);
}

.oferta-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
}

.oferta-filter-form .form-field {
  min-width: 240px;
  margin-bottom: 0;
}

.oferta-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.oferta-list-header,
.oferta-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(120px, 1fr) minmax(90px, 0.8fr) minmax(140px, 1fr) minmax(220px, 1.3fr);
  gap: 12px;
  align-items: center;
}

.oferta-list-header {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(20, 23, 22, 0.6);
  padding: 0 4px;
}

.oferta-row {
  padding: 14px;
  border: 1px solid rgba(176, 168, 157, 0.45);
  border-radius: var(--aa-radius-md);
  background: #fff;
}

.oferta-row p {
  margin: 6px 0 0;
  color: rgba(20, 23, 22, 0.74);
}

.pedido-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.pedido-list-header,
.pedido-row {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(120px, 1fr) minmax(110px, 0.9fr) minmax(140px, 1fr) minmax(220px, 1.3fr);
  gap: 12px;
  align-items: center;
}

.pedido-list-header {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(20, 23, 22, 0.6);
  padding: 0 4px;
}

.pedido-row {
  padding: 14px;
  border: 1px solid rgba(176, 168, 157, 0.45);
  border-radius: var(--aa-radius-md);
  background: #fff;
}

.pedido-row p {
  margin: 6px 0 0;
  color: rgba(20, 23, 22, 0.74);
}

.pedido-state-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
}

.pedido-state-form .form-field {
  min-width: 260px;
  margin-bottom: 0;
}

.pedido-detail-list {
  display: grid;
  gap: 12px;
}

.pedido-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: var(--aa-radius-md);
  border: 1px solid rgba(176, 168, 157, 0.35);
  background: rgba(255, 255, 255, 0.9);
}

.pedido-detail-prices {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.pedido-timeline-card {
  gap: 18px;
}

.pedido-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.pedido-timeline-step {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px 14px;
  border-radius: var(--aa-radius-md);
  border: 1px solid rgba(176, 168, 157, 0.36);
  background: rgba(255, 255, 255, 0.9);
}

.pedido-timeline-step.completed {
  border-color: rgba(38, 70, 65, 0.3);
  background: rgba(38, 70, 65, 0.08);
}

.pedido-timeline-step.active {
  border-color: rgba(183, 7, 7, 0.28);
  background: rgba(183, 7, 7, 0.08);
  box-shadow: 0 10px 24px rgba(183, 7, 7, 0.08);
}

.pedido-timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 3px solid rgba(176, 168, 157, 0.5);
  background: #fff;
}

.pedido-timeline-step.completed .pedido-timeline-dot {
  border-color: rgba(38, 70, 65, 0.85);
  background: var(--aa-green);
}

.pedido-timeline-step.active .pedido-timeline-dot {
  border-color: rgba(183, 7, 7, 0.9);
  background: var(--aa-red);
}

.pedido-timeline-label {
  font-weight: 700;
  color: var(--aa-ink);
}

.offer-context {
  color: var(--aa-green);
  font-weight: 600;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions form {
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(176, 168, 157, 0.5);
  background: rgba(176, 168, 157, 0.16);
  color: var(--aa-ink);
}

.status-badge.pending {
  background: rgba(243, 148, 24, 0.14);
  color: #91580d;
  border-color: rgba(243, 148, 24, 0.4);
}

.status-badge.warning {
  background: rgba(243, 148, 24, 0.14);
  color: #91580d;
  border-color: rgba(243, 148, 24, 0.4);
}

.status-badge.process {
  background: rgba(38, 70, 65, 0.14);
  color: var(--aa-green);
  border-color: rgba(38, 70, 65, 0.35);
}

.status-badge.info,
.status-badge.accent {
  background: rgba(38, 70, 65, 0.14);
  color: var(--aa-green);
  border-color: rgba(38, 70, 65, 0.35);
}

.status-badge.success {
  background: rgba(38, 70, 65, 0.22);
  color: var(--aa-green);
  border-color: rgba(38, 70, 65, 0.45);
}

.status-badge.closed {
  background: rgba(38, 70, 65, 0.22);
  color: var(--aa-green);
  border-color: rgba(38, 70, 65, 0.45);
}

.status-badge.danger {
  background: rgba(182, 6, 6, 0.12);
  color: var(--aa-red);
  border-color: rgba(182, 6, 6, 0.3);
}

.status-badge.canceled {
  background: rgba(182, 6, 6, 0.12);
  color: var(--aa-red);
  border-color: rgba(182, 6, 6, 0.3);
}

.empty-state {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.pagination-bar {
  margin-top: 18px;
}

.btn.disabled,
.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.btn-cancel {
  background: var(--aa-red);
}

.solicitud-form {
  border: none;
  box-shadow: none;
  padding: 0;
}

.toast-container {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 40px));
}

.toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--aa-soft-shadow);
  border-left: 4px solid var(--aa-green);
  background: #fff;
  animation: toast-in 0.25s ease;
}

.toast-success {
  border-left-color: var(--aa-green);
}

.toast-error {
  border-left-color: var(--aa-red);
}

.toast-warning {
  border-left-color: var(--aa-orange);
}

.toast-info {
  border-left-color: var(--aa-gray);
}

.toast-title {
  font-weight: 700;
  color: var(--aa-green);
  margin-bottom: 2px;
}

.toast-error .toast-title {
  color: var(--aa-red);
}

.toast-message {
  color: rgba(20, 23, 22, 0.84);
  font-size: 0.92rem;
}

.toast-close {
  border: none;
  background: transparent;
  color: rgba(20, 23, 22, 0.7);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
}

.toast-hide {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-toggle {
  display: none;
  border: none;
  background: rgba(38, 70, 65, 0.12);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.sidebar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--aa-red);
  margin: 4px 0;
}

.sidebar-overlay {
  display: none;
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  body.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 23, 22, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 260px;
    padding: 42px 32px;
  }

  .profile-switch-form {
    width: 100%;
  }

  .profile-switch-select {
    flex: 1;
  }

  .location-experience-panel {
    grid-template-columns: 1fr;
  }

  .location-map-card {
    position: static;
    top: auto;
  }

  .location-quick-actions {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .client-hero-grid {
    grid-template-columns: 1fr;
  }

  .active-business-name {
    max-width: 220px;
  }

  .brand-wordmark-shell {
    width: min(100%, 204px);
  }

  .solicitud-list-header {
    display: none;
  }

  .solicitud-row {
    grid-template-columns: 1fr;
  }

  .oferta-list-header {
    display: none;
  }

  .oferta-row {
    grid-template-columns: 1fr;
  }

  .pedido-list-header {
    display: none;
  }

  .pedido-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-topbar {
    padding: 16px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .topbar-main,
  .topbar-actions {
    width: 100%;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .active-business-header {
    width: 100%;
  }

  .active-business-name {
    max-width: none;
    white-space: normal;
  }

  .app-content {
    padding: 24px 20px 40px;
  }

  .app-footer {
    padding: 20px;
  }

  .public-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .public-brand,
  .public-brand-logo {
    max-width: 100%;
  }

  .hero-logo-main {
    max-width: min(100%, 260px);
    max-height: 54px;
  }

  .hero-logo-compact {
    max-width: min(100%, 210px);
    max-height: 48px;
  }

  .brand-logo-shell {
    padding: 8px;
  }

  .brand-wordmark-shell {
    width: min(100%, 194px);
    padding: 10px 12px 9px;
  }

  .public-content {
    padding: 20px;
  }

  .register-choice {
    padding: 22px;
  }

  .picker-row {
    grid-template-columns: 1fr;
  }

  .location-panel-head {
    flex-direction: column;
  }

  .location-block {
    padding: 16px;
    border-radius: 20px;
  }

  .location-search-card,
  .location-map-card {
    padding: 16px;
  }

  .location-search-input-row {
    grid-template-columns: 1fr;
  }

  .location-search-button {
    width: 100%;
  }

  .location-quick-actions,
  .location-confirm-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .location-quick-button,
  .location-confirm-actions .btn {
    width: 100%;
  }

  .location-map-shell,
  .location-map-canvas {
    min-height: 280px;
  }

  .location-saved-item {
    grid-template-columns: 1fr;
  }

  .location-saved-actions {
    justify-content: stretch;
  }

  .location-saved-action {
    flex: 1;
  }

  .location-detected-meta {
    flex-direction: column;
  }

  .location-preview-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .client-top-strip,
  .client-hero-copy,
  .client-summary-card {
    padding: 22px;
  }

  .client-top-strip::before {
    background-position: center;
    background-size: 70% auto;
  }

  .client-section-head {
    align-items: start;
    flex-direction: column;
  }

  .pedido-detail-row {
    flex-direction: column;
  }

  .pedido-detail-prices {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-logo-main {
    max-width: min(100%, 220px);
    max-height: 48px;
  }

  .hero-logo-compact {
    max-width: min(100%, 180px);
    max-height: 42px;
  }

  .brand-wordmark-shell {
    width: min(100%, 178px);
  }

  .location-search-card,
  .location-map-card,
  .location-address-summary,
  .location-detected-card,
  .location-saved-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .location-map-shell,
  .location-map-canvas {
    min-height: 250px;
  }

  .location-map-loading,
  .location-map-overlay {
    inset: 12px;
    padding: 16px;
  }

  .location-map-pin {
    width: 30px;
    height: 30px;
  }
}

.catalog-filter-form,
.product-discovery-search {
  display: grid;
  gap: 1rem;
}

.form-grid-4 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(38, 70, 65, 0.12);
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 42px rgba(38, 70, 65, 0.08);
}

.product-card-media {
  display: block;
  background: linear-gradient(180deg, rgba(176, 168, 157, 0.18) 0%, rgba(176, 168, 157, 0.06) 100%);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.product-card-body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1rem 0.5rem;
}

.product-card-head,
.product-card-meta,
.product-card-actions,
.upload-preview-actions,
.product-detail-thumbs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.product-card-category {
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  background: rgba(243, 148, 24, 0.12);
  color: #8b4f06;
  font-size: 0.82rem;
  font-weight: 600;
}

.product-card-business {
  margin: 0;
  color: #264641;
  font-weight: 600;
}

.product-card-location {
  margin: -0.3rem 0 0;
  color: #5f6b67;
  font-size: 0.9rem;
}

.product-card-summary {
  margin: 0;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.auth-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-mode-switch {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-mode-option {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(176, 168, 157, 0.35);
  background: rgba(246, 243, 239, 0.72);
  color: inherit;
}

.auth-mode-option strong {
  color: var(--aa-green);
}

.auth-mode-option span {
  color: rgba(20, 23, 22, 0.7);
  font-size: 0.95rem;
  line-height: 1.45;
}

.auth-mode-option.is-active {
  border-color: rgba(183, 7, 7, 0.4);
  background: linear-gradient(180deg, rgba(183, 7, 7, 0.08), rgba(243, 148, 24, 0.08));
  box-shadow: 0 18px 40px rgba(183, 7, 7, 0.08);
}

.product-search-shell {
  position: relative;
}

.product-search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(176, 168, 157, 0.35);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(20, 23, 22, 0.12);
}

.product-search-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  color: inherit;
  background: rgba(246, 243, 239, 0.65);
}

.product-search-item:hover {
  background: rgba(183, 7, 7, 0.08);
}

.product-search-thumb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(38, 70, 65, 0.12), rgba(243, 148, 24, 0.18));
  color: var(--aa-green);
  font-weight: 800;
}

.product-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-search-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-search-item-copy strong,
.product-search-item-copy span,
.product-search-item-copy small {
  display: block;
}

.product-search-item-copy span,
.product-search-item-copy small {
  color: rgba(20, 23, 22, 0.72);
}

.product-search-empty {
  padding: 12px;
  border-radius: 14px;
  background: rgba(246, 243, 239, 0.72);
  color: rgba(20, 23, 22, 0.74);
}

.invitation-context-card,
.invitation-preview-card {
  border-left: 5px solid var(--aa-green);
}

.invitation-sections {
  align-items: start;
}

.invitation-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.invitation-section-head p {
  margin: 8px 0 0;
  color: rgba(20, 23, 22, 0.74);
}

.invitation-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.invitation-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(176, 168, 157, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 239, 0.9));
}

.invitation-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.invitation-card-top p {
  margin: 6px 0 0;
  color: rgba(20, 23, 22, 0.72);
}

.invitation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: rgba(20, 23, 22, 0.72);
  font-size: 0.94rem;
}

.invitation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.product-card-meta {
  justify-content: space-between;
  color: #475569;
  font-size: 0.92rem;
}

.product-card-actions {
  padding: 0 1rem 1rem;
}

.product-detail-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.product-detail-gallery {
  display: grid;
  gap: 1rem;
}

.product-detail-hero-image {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: rgba(176, 168, 157, 0.12);
}

.product-detail-thumb {
  width: 92px;
  height: 92px;
  border-radius: 0.85rem;
  object-fit: cover;
  border: 2px solid transparent;
  background: rgba(176, 168, 157, 0.08);
}

.product-detail-thumb.is-primary {
  border-color: #b70707;
}

.detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-preview-actions {
  width: 100%;
  justify-content: space-between;
}

.upload-preview-card[data-primary="true"] {
  border-color: rgba(182, 7, 7, 0.35);
  box-shadow: 0 16px 32px rgba(182, 7, 7, 0.12);
}

.upload-preview-primary.active {
  background: rgba(182, 7, 7, 0.1);
  color: #b70707;
  border-color: rgba(182, 7, 7, 0.2);
}

@media (max-width: 1024px) {
  .form-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

   .notification-panel {
    right: auto;
    left: 0;
  }
}

@media (max-width: 640px) {
  .form-grid-4,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card-actions,
  .product-card-meta,
  .upload-preview-actions,
  .invitation-section-head,
  .invitation-card-top,
  .invitation-actions,
  .auth-inline-links {
    flex-direction: column;
    align-items: stretch;
  }

  .product-detail-thumb {
    width: 74px;
    height: 74px;
  }

  .notification-panel,
  .notification-page-head,
  .notification-page-stats,
  .notification-panel-head,
  .notification-panel-actions {
    width: 100%;
  }

  .notification-page-head,
  .notification-page-stats,
  .notification-panel-head,
  .notification-panel-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .notification-item {
    grid-template-columns: 1fr;
  }

  .notification-item-action {
    width: 100%;
  }
}

.cart-summary-pill {
  display: inline-grid;
  gap: 2px;
  min-width: 132px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(38, 70, 65, 0.18);
  background: rgba(38, 70, 65, 0.08);
  color: var(--aa-green);
}

.cart-summary-pill.has-items {
  border-color: rgba(183, 7, 7, 0.24);
  background: linear-gradient(180deg, rgba(183, 7, 7, 0.08), rgba(243, 148, 24, 0.12));
  color: var(--aa-red);
}

.cart-summary-pill strong {
  font-size: 1.05rem;
}

.cart-summary-pill small {
  color: rgba(20, 23, 22, 0.68);
}

.cart-summary-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-item {
  justify-content: space-between;
}

.nav-item-badge {
  display: inline-flex;
  min-width: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(243, 148, 24, 0.2);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  justify-content: center;
}

.notification-center {
  position: relative;
}

.notification-bell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(38, 70, 65, 0.18);
  background: rgba(38, 70, 65, 0.08);
  color: var(--aa-green);
  cursor: pointer;
}

.notification-bell.is-open {
  border-color: rgba(183, 7, 7, 0.28);
  background: linear-gradient(180deg, rgba(183, 7, 7, 0.08), rgba(243, 148, 24, 0.1));
  color: var(--aa-red);
}

.notification-bell-icon,
.notification-item-icon,
.notification-counter-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
}

.notification-bell-icon::before {
  content: "!";
}

.notification-item-icon[data-icon="chat"]::before,
.notification-counter-icon[data-icon="chat"]::before {
  content: "M";
}

.notification-item-icon[data-icon="solicitud"]::before,
.notification-counter-icon[data-icon="solicitud"]::before {
  content: "S";
}

.notification-item-icon[data-icon="pedido"]::before,
.notification-counter-icon[data-icon="pedido"]::before {
  content: "P";
}

.notification-item-icon[data-icon="delivery"]::before,
.notification-counter-icon[data-icon="delivery"]::before {
  content: "D";
}

.notification-item-icon[data-icon="express"]::before,
.notification-counter-icon[data-icon="express"]::before {
  content: "E";
}

.notification-item-icon[data-icon="team"]::before,
.notification-counter-icon[data-icon="team"]::before {
  content: "T";
}

.notification-item-icon[data-icon="producto"]::before,
.notification-counter-icon[data-icon="producto"]::before {
  content: "C";
}

.notification-item-icon[data-icon="oferta"]::before,
.notification-counter-icon[data-icon="oferta"]::before {
  content: "O";
}

.notification-bell-badge {
  display: inline-flex;
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--aa-red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  justify-content: center;
}

.notification-bell-label {
  font-size: 0.88rem;
  font-weight: 700;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: min(430px, calc(100vw - 40px));
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(176, 168, 157, 0.35);
  box-shadow: 0 28px 60px rgba(20, 23, 22, 0.18);
}

.notification-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.notification-panel-head strong {
  display: block;
  color: var(--aa-green);
}

.notification-panel-head span {
  color: rgba(20, 23, 22, 0.68);
  font-size: 0.92rem;
}

.notification-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.notification-counter-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.notification-counter-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(246, 243, 239, 0.78);
  border: 1px solid rgba(176, 168, 157, 0.26);
}

.notification-counter-card strong {
  display: block;
  color: var(--aa-red);
}

.notification-counter-card span {
  color: rgba(20, 23, 22, 0.66);
  font-size: 0.84rem;
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-list-page {
  margin-top: 18px;
}

.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(176, 168, 157, 0.28);
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.notification-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--aa-soft-shadow);
  border-color: rgba(38, 70, 65, 0.2);
}

.notification-item.is-unread {
  background: linear-gradient(180deg, rgba(183, 7, 7, 0.06), rgba(255, 255, 255, 0.98));
  border-color: rgba(183, 7, 7, 0.18);
}

.notification-item-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.notification-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.notification-item-copy strong {
  color: var(--aa-green);
}

.notification-item-copy span {
  color: rgba(20, 23, 22, 0.74);
  line-height: 1.45;
}

.notification-item-copy small {
  color: rgba(20, 23, 22, 0.58);
}

.notification-item-action {
  border: none;
  border-radius: 999px;
  background: rgba(38, 70, 65, 0.08);
  color: var(--aa-green);
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.notification-empty {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(176, 168, 157, 0.55);
  background: rgba(246, 243, 239, 0.78);
  color: rgba(20, 23, 22, 0.7);
}

.notification-page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.notification-page-head h1 {
  margin: 10px 0 10px;
  color: var(--aa-green);
  font-family: var(--font-display);
}

.notification-page-head p {
  margin: 0;
  max-width: 720px;
  color: rgba(20, 23, 22, 0.74);
}

.notification-page-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.notification-filter-form {
  margin-top: 18px;
}

.notification-filter-toggle {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  color: var(--aa-green);
}

.product-card-cart-form,
.product-detail-cart-form,
.cart-item-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.product-card-cart-form {
  width: 100%;
}

.product-qty-input {
  width: 88px;
  min-width: 88px;
  text-align: center;
}

.product-qty-input-lg {
  width: 110px;
  min-width: 110px;
}

.cart-hero .client-summary-card {
  display: grid;
  gap: 18px;
}

.cart-stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cart-stat {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(38, 70, 65, 0.08);
  border: 1px solid rgba(38, 70, 65, 0.12);
}

.cart-stat span {
  color: rgba(20, 23, 22, 0.68);
  font-size: 0.88rem;
}

.cart-stat strong {
  color: var(--aa-green);
  font-size: 1.2rem;
}

.cart-stat-total {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(183, 7, 7, 0.08), rgba(243, 148, 24, 0.12));
}

.cart-stat-total strong {
  color: var(--aa-red);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.cart-groups {
  display: grid;
  gap: 18px;
}

.cart-business-card {
  display: grid;
  gap: 18px;
}

.cart-business-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.cart-business-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-business-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(176, 168, 157, 0.4);
  background: #fff;
}

.cart-business-total {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.cart-business-total span {
  color: rgba(20, 23, 22, 0.66);
  font-size: 0.88rem;
}

.cart-business-total strong {
  color: var(--aa-red);
  font-size: 1.15rem;
}

.cart-items-list {
  display: grid;
  gap: 14px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(246, 243, 239, 0.72);
  border: 1px solid rgba(176, 168, 157, 0.28);
}

.cart-item-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cart-item-image {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(176, 168, 157, 0.12);
}

.cart-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cart-item-copy strong {
  font-size: 1rem;
  color: var(--aa-green);
}

.cart-item-copy span,
.cart-item-copy small {
  color: rgba(20, 23, 22, 0.72);
}

.cart-item-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.cart-item-pricing {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.cart-item-pricing span {
  color: rgba(20, 23, 22, 0.66);
  font-size: 0.88rem;
}

.cart-item-pricing strong {
  color: var(--aa-red);
  font-size: 1.05rem;
}

.cart-checkout-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.cart-alert-list {
  display: grid;
  gap: 10px;
}

.cart-alert-item {
  margin: 0;
}

.cart-checkout-breakdown {
  display: grid;
  gap: 12px;
}

.cart-checkout-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(246, 243, 239, 0.72);
}

.cart-checkout-total {
  background: linear-gradient(180deg, rgba(183, 7, 7, 0.08), rgba(243, 148, 24, 0.12)) !important;
}

.cart-checkout-total strong {
  color: var(--aa-red);
  font-size: 1.08rem;
}

.cart-checkout-form {
  display: grid;
  gap: 18px;
}

.checkout-success-hero {
  margin-bottom: 24px;
}

.checkout-success-card p {
  margin: 0 0 10px;
}

.checkout-orders-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.checkout-order-card {
  display: grid;
  gap: 16px;
}

.checkout-order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.checkout-order-head p {
  margin: 8px 0 0;
  color: rgba(20, 23, 22, 0.72);
}

.checkout-order-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.checkout-order-meta div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(246, 243, 239, 0.72);
}

.checkout-order-meta span {
  color: rgba(20, 23, 22, 0.66);
  font-size: 0.84rem;
}

.checkout-order-progress {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(243, 148, 24, 0.12);
  color: #91580d;
  font-weight: 600;
}

.checkout-order-progress.ready {
  background: rgba(38, 70, 65, 0.12);
  color: var(--aa-green);
}

@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-checkout-card {
    position: static;
    top: auto;
  }
}

@media (max-width: 720px) {
  .cart-stat-grid {
    grid-template-columns: 1fr;
  }

  .cart-item-row {
    grid-template-columns: 1fr;
  }

  .cart-business-head,
  .cart-business-brand,
  .cart-item-main,
  .checkout-order-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item-actions,
  .cart-item-pricing,
  .cart-business-total {
    justify-items: start;
    text-align: left;
  }

  .product-card-cart-form,
  .product-detail-cart-form,
  .cart-item-form {
    flex-direction: column;
    align-items: stretch;
  }

  .product-qty-input,
  .product-qty-input-lg {
    width: 100%;
    min-width: 0;
  }
}
