/* ============================================================================
   LKP — Redesigned Interface
   Modern, clean, intuitive layout while maintaining Victorian aesthetic
   =========================================================================== */

:root {
  /* Brand Colors */
  --lkp-forest: #1B3A2D;
  --lkp-midnight: #0F1F2E;
  --lkp-aged-gold: #C9A84C;
  --lkp-antique-brass: #A67C52;
  --lkp-burgundy: #6B2737;
  --lkp-cream: #F5F0E8;
  --lkp-parchment: #E8DFC8;
  --lkp-smoke: #8C9E8E;
  --lkp-charcoal: #2C2C2C;
  --lkp-ivory: #FDFAF4;

  /* Semantic Tokens */
  --bg-dark: var(--lkp-midnight);
  --bg-surface: var(--lkp-forest);
  --bg-light: var(--lkp-cream);
  --text-primary: var(--lkp-ivory);
  --text-secondary: var(--lkp-smoke);
  --text-on-light: var(--lkp-charcoal);
  --accent: var(--lkp-aged-gold);
  --accent-hover: var(--lkp-antique-brass);
  --danger: var(--lkp-burgundy);
  --border-color: rgba(201, 168, 76, 0.24);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.16);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.32);

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;

  /* Typography */
  --font-serif: Georgia, Garamond, "Times New Roman", serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-mono: "Courier New", monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --lh-tight: 1.4;
  --lh-normal: 1.6;
  --lh-loose: 1.8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.layout-boot,
body.layout-login,
body.layout-app {
  overflow: hidden;
}

/* ============================================================================
   SHARED COMPONENTS
   =========================================================================== */

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

button {
  font-family: var(--font-serif);
  font-size: var(--fs-base);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-lg);
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--fs-sm);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--accent-hover);
}

.btn-small {
  padding: var(--sp-sm) var(--sp-md);
  font-size: var(--fs-xs);
}

/* Shared shell surfaces */
.page-shell {
  min-height: 100dvh;
  background:
    radial-gradient(circle at top left, rgba(201, 168, 76, 0.08), transparent 24rem),
    linear-gradient(180deg, rgba(27, 58, 45, 0.18), rgba(15, 31, 46, 0) 18rem),
    var(--bg-dark);
}

.hero {
  background: linear-gradient(180deg, rgba(27, 58, 45, 0.9), rgba(15, 31, 46, 0.84));
  border-bottom: 1px solid rgba(201, 168, 76, 0.16);
}

.compact-hero {
  padding: 1rem 0 1.2rem;
}

.hero-inner,
.legal-layout {
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-inner {
  padding: 0;
}

.legal-layout {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(auto, 44rem) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 0.1rem 0;
}

.legal-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  grid-column: 2;
  justify-self: center;
  text-align: center;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}

.legal-brand-lockup .app-brand-home {
  gap: 1rem;
}

.legal-hero .secondary-button {
  grid-column: 3;
  justify-self: end;
  min-width: 9.8rem;
}

.app-brand-home {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-icon-small {
  width: 3rem;
  height: 3rem;
  display: block;
}

.brand-wordmark-small {
  display: block;
  height: 2.15rem;
  width: auto;
  max-width: min(17rem, 52vw);
}

.legal-page-shell .brand-icon-small {
  width: 3.9rem;
  height: 3.9rem;
}

.legal-page-shell .brand-wordmark-small {
  height: 3.6rem;
  max-width: min(29rem, 72vw);
}

.session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.secondary-button,
.primary-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.secondary-button {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(201, 168, 76, 0.42);
}

.secondary-button:hover:not(:disabled) {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.68);
  color: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.secondary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.content-band,
.legal-card {
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(27, 58, 45, 0.2), rgba(15, 31, 46, 0.42));
  box-shadow: var(--shadow-sm);
}

.content-band {
  padding: 1rem 1.1rem;
}

.legal-card {
  padding: 1.1rem 1.2rem;
}

.legal-card h2 {
  text-align: center;
  margin-inline: auto;
  max-width: 32ch;
}

.legal-card p {
  margin-inline: auto;
  max-width: 72ch;
}

.legal-card h2 + p {
  margin-top: 0.4rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.section-heading h2,
.section-heading h3,
.hero h1 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin: 0;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.section-heading h3 {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
}

.hero-copy,
.section-copy {
  color: var(--text-secondary);
  line-height: 1.55;
}

.hero-copy {
  max-width: 52rem;
}

/* Form Elements */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

.field input,
.field select,
.field textarea {
  padding: var(--sp-md);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: rgba(15, 31, 46, 0.6);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: var(--fs-base);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.field input::placeholder {
  color: var(--text-secondary);
}

.field-help {
  margin: -0.25rem 0 0;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.45;
}

/* Checkbox */
.field-checkbox {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  cursor: pointer;
}

.field-checkbox input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent);
}

/* ============================================================================
   LOGIN & AUTH
   =========================================================================== */

.boot-view {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  gap: 0.9rem;
  padding: var(--sp-xl);
  background:
    radial-gradient(circle at 50% 18%, rgba(201, 168, 76, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(27, 58, 45, 0.34), rgba(15, 31, 46, 0.94)),
    var(--bg-dark);
  color: var(--accent);
  text-align: center;
}

.boot-view p {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.boot-logo {
  width: 4.5rem;
  height: 4.5rem;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.3));
}

.login-view {
  min-height: 100dvh;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2vh, 1.75rem) var(--sp-lg);
  overflow: hidden;
}

.login-container {
  width: min(92rem, 100%);
  min-height: min(48rem, calc(100dvh - 2.5rem));
  max-height: calc(100dvh - 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(25rem, 2.15fr);
  gap: clamp(1.25rem, 2.6vw, 2.75rem);
  align-items: center;
}

.login-banner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.banner-image {
  width: 100%;
  max-width: 58rem;
  max-height: min(46vh, 30rem);
  aspect-ratio: 3 / 1;
  border-radius: 12px;
  overflow: hidden;
}

.banner-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.banner-copy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 44rem;
  align-items: center;
  text-align: center;
}

.banner-copy .eyebrow {
  order: 0;
  align-self: center;
  font-size: 0.96rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 700;
  text-align: center;
}

.banner-copy h1 {
  order: 1;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.7vw, 3.4rem);
  line-height: 1.12;
  color: var(--text-primary);
  font-weight: 700;
  text-align: center;
}

.banner-copy p {
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 1.05rem;
  text-align: center;
}

.banner-copy > p:not(.eyebrow):not(.banner-disclaimer-label):not(.banner-disclaimer-copy) {
  order: 2;
}

.banner-disclaimer {
  order: 3;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, 0.24);
  background: rgba(245, 240, 232, 0.05);
  max-width: 42rem;
  align-items: center;
}

.banner-disclaimer-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

.banner-disclaimer-copy {
  color: var(--text-primary) !important;
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
}

.auth-panel {
  background: var(--bg-light);
  color: var(--text-on-light);
  width: min(100%, 44rem);
  max-height: calc(100dvh - 2.5rem);
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  justify-self: stretch;
  align-self: center;
}

.auth-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
}

.auth-logo {
  width: 74px;
  height: 74px;
  margin: 0 auto 0.35rem;
  display: block;
}

.auth-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.4vw, 2.45rem);
  color: var(--text-on-light);
  font-weight: 700;
}

.auth-header p {
  color: var(--text-on-light);
  line-height: 1.5;
  opacity: 0.85;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
  border-bottom: 2px solid rgba(44, 44, 44, 0.1);
  margin-bottom: var(--sp-md);
}

.auth-tab {
  padding: var(--sp-md);
  background: none;
  border: none;
  color: var(--text-on-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--fs-sm);
  opacity: 0.6;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  opacity: 1;
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-inline-button {
  align-self: center;
  background: none;
  border: 0;
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.3rem;
  text-transform: uppercase;
}

.auth-inline-button:hover,
.auth-inline-button:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.form-message {
  padding: var(--sp-md);
  border-radius: 6px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--accent);
  font-size: var(--fs-sm);
  text-align: center;
  display: none;
}

.form-message.error {
  display: block;
  background: rgba(107, 39, 55, 0.1);
  color: var(--danger);
}

.form-message.success {
  display: block;
}

.legal-links {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-on-light);
}

.legal-links a {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 1080px) {
  .login-container {
    grid-template-columns: minmax(0, 1.08fr) minmax(23rem, 0.92fr);
    gap: 1.25rem;
  }

  .banner-image {
    max-height: min(40vh, 24rem);
  }

  .banner-copy h1 {
    font-size: clamp(2rem, 3.35vw, 2.85rem);
  }
}

@media (max-width: 768px) {
  .legal-hero {
    grid-template-columns: 1fr;
  }

  .legal-brand-lockup,
  .legal-hero .secondary-button {
    grid-column: 1;
    justify-self: center;
  }

  .legal-brand-lockup {
    max-width: none;
  }

  .legal-page-shell .brand-wordmark-small {
    height: 2.6rem;
    max-width: min(20rem, 72vw);
  }

  .legal-page-shell .brand-icon-small {
    width: 3.2rem;
    height: 3.2rem;
  }

  .login-view {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .login-container {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
    min-height: auto;
    max-height: none;
  }

  .banner-copy .eyebrow {
    align-self: flex-start;
    text-align: left;
  }

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

/* ============================================================================
   APP LAYOUT
   =========================================================================== */

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

.app-shell.hidden {
  display: none;
}

/* Top Navigation */
.app-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: var(--sp-md) var(--sp-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  width: min(100%, 1760px);
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(18rem, auto) minmax(28rem, 1fr);
  align-items: center;
  column-gap: clamp(1rem, 2.2vw, 3rem);
}

.app-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  text-decoration: none;
  flex-shrink: 0;
  justify-self: start;
}

.workspace-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.75rem;
  padding: 0.12rem 0.55rem;
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 999px;
  background: rgba(15, 31, 46, 0.28);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.app-workspace-kicker {
  margin-left: -0.35rem;
}

.app-logo-icon {
  width: 40px;
  height: 40px;
  display: block;
}

.app-logo-text {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.app-logo:hover .app-logo-text {
  color: var(--accent-hover);
}

.legal-app-logo {
  justify-content: center;
}

.legal-page-shell .legal-app-logo .app-logo-icon {
  width: 3rem;
  height: 3rem;
}

.header-menu {
  display: contents;
  margin-left: 0;
}

.session-info {
  display: flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: var(--sp-md);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  min-width: 0;
}

.session-badge {
  display: inline-block;
  padding: var(--sp-xs) var(--sp-md);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  justify-self: end;
  justify-content: flex-end;
  gap: clamp(0.7rem, 1vw, var(--sp-md));
  min-width: 0;
}

.app-menu-toggle {
  display: none;
  margin-left: auto;
}

/* Main Content */
.page-layout {
  display: grid;
  grid-template-columns: clamp(430px, 29vw, 520px) 1fr;
  gap: 0;
  height: 100%;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}

.sidebar {
  background: var(--bg-forest);
  border-right: 1px solid var(--border-color);
  padding: 0.55rem 0.9rem 0.85rem;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.layout-results .sidebar,
body.layout-detail .sidebar,
body.layout-billing .sidebar {
  overflow: hidden;
}

.sidebar-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.1vw, 1.95rem);
  color: var(--accent);
  margin: -0.05rem auto 0.45rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.05;
  text-align: center;
  width: 100%;
  max-width: 26.75rem;
}

.sidebar-section {
  margin-bottom: 0.72rem;
}

.sidebar-section-title {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 600;
  line-height: 1.18;
  text-align: center;
}

.search-form {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.65rem;
  flex: 1;
  width: 100%;
  max-width: 26.75rem;
  margin: 0 auto;
  min-height: 0;
  overflow: hidden;
}

.search-scroll-area {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0.2rem 0 0.1rem;
  scrollbar-gutter: auto;
}

.search-actions {
  width: 100%;
  max-width: none;
  margin: 0;
  margin-bottom: 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(201, 168, 76, 0.22);
  background: var(--bg-forest);
}

.search-scroll-area::-webkit-scrollbar {
  width: 8px;
}

.search-scroll-area::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.search-scroll-area::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.9), rgba(166, 124, 82, 0.92));
  border-radius: 999px;
  border: 1px solid rgba(15, 31, 46, 0.7);
}

.search-scroll-area::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(214, 183, 91, 0.96), rgba(181, 136, 88, 0.96));
}

.search-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.9) transparent;
}

.sidebar .field {
  gap: 0.36rem;
  margin-bottom: 0.62rem;
}

.sidebar .field label {
  font-size: 0.82rem;
  letter-spacing: 1.3px;
  text-align: center;
}

.sidebar .field input,
.sidebar .field select,
.sidebar .field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.78rem 0.95rem;
}

#search-mode-copy {
  margin-top: 0.35rem !important;
  line-height: 1.45;
  max-width: 21.75rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#advanced-filters > div {
  margin-top: 0.45rem !important;
}

#results-compatibility {
  grid-column: 2;
  grid-row: 1 / span 4;
  width: 100%;
  max-width: 23rem;
  align-self: start;
}

#search-reset-button {
  margin-top: 0.55rem !important;
}

#search-view .section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 23rem);
  align-items: start;
  column-gap: 1rem;
  row-gap: 0.24rem;
  margin-bottom: 0.42rem;
  max-width: 100%;
}

#search-view .section-header .eyebrow {
  display: none;
}

#search-view .section-header h2 {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.08;
  grid-column: 1;
}

#search-view .section-header p {
  font-size: 0.84rem;
  line-height: 1.25;
  max-width: 38rem;
  grid-column: 1;
}

#search-view .section-header .source-disclosure {
  grid-column: 1;
  max-width: 38rem;
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  background: rgba(27, 58, 45, 0.28);
  color: var(--text-secondary);
  font-size: 0.74rem;
  line-height: 1.28;
}

#search-view .section-header .source-disclosure summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#search-view .section-header .source-disclosure p {
  margin-top: 0.38rem;
  font-size: 0.78rem;
  line-height: 1.32;
  max-width: none;
}

/* Main Content Area */
.main-content {
  overflow: hidden;
  padding: var(--sp-xl) var(--sp-2xl) var(--sp-2xl);
  min-height: 0;
  height: 100%;
}

body.layout-results .main-content,
body.layout-detail .main-content,
body.layout-billing .main-content {
  overflow-y: auto;
}

body.layout-results .main-content {
  padding-top: 0.78rem;
}

.content-section {
  max-width: 1180px;
  margin-bottom: var(--sp-2xl);
}

.section-header {
  margin-bottom: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.section-header .eyebrow {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--text-primary);
  font-weight: 700;
  line-height: var(--lh-tight);
}

.section-header p {
  color: var(--text-secondary);
  line-height: var(--lh-loose);
}

/* Results List */
.results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.empty-state {
  border: 1px dashed rgba(201, 168, 76, 0.28);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: rgba(27, 58, 45, 0.28);
  color: var(--text-secondary);
}

.pill,
.billing-status-pill,
.compatibility-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.28rem 0.68rem;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: rgba(201, 168, 76, 0.08);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compatibility-group {
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 9px;
  background: rgba(27, 58, 45, 0.28);
  margin-bottom: 0.28rem;
  overflow: hidden;
}

.compatibility-group summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 0.48rem 0.7rem;
  color: var(--text-primary);
  font-size: 0.86rem;
  line-height: 1.2;
}

.compatibility-group summary::-webkit-details-marker {
  display: none;
}

.compatibility-count {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
}

.compatibility-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  padding: 0 0.7rem 0.7rem;
}

.compatibility-pill-button {
  cursor: pointer;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 248, 233, 0.045), rgba(255, 248, 233, 0.015)),
    rgba(27, 58, 45, 0.46);
  padding: 0.72rem 0.86rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.result-item:hover,
.result-item:focus-visible {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 16px 40px rgba(3, 12, 20, 0.3);
  transform: translateY(-1px);
}

.result-item-compact {
  padding: 0.75rem 0.85rem;
}

.result-stage-label {
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.result-topline,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stock-in_stock {
  background: rgba(86, 140, 94, 0.16);
  color: #bfdc9b;
}

.stock-out_of_stock,
.stock-discontinued {
  background: rgba(124, 57, 69, 0.16);
  color: #f1b3b9;
}

.stock-backorder,
.stock-preorder {
  background: rgba(128, 92, 31, 0.18);
  color: #f0d492;
}

.result-body,
.result-body-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  gap: 0.75rem;
  align-items: start;
}

.result-copy {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.result-copy-header {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.result-vehicle-match {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.48rem 0.58rem;
  border-radius: 9px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(9, 20, 31, 0.32);
}

.result-vehicle-match-label {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
}

.result-vehicle-match strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.4vw, 1.36rem);
  line-height: 1.12;
}

.result-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.35vw, 1.55rem);
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 600;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.result-title-secondary {
  font-family: inherit;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.35;
  color: var(--text-secondary);
  font-weight: 600;
}

.result-identifier-line,
.result-support-copy,
.closeout-note,
.result-action-note {
  font-size: 0.88rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.result-context-grid,
.result-context-grid-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.result-context-card {
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
  padding: 0.58rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.16);
  background: rgba(15, 31, 46, 0.3);
}

.result-context-label {
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
}

.result-context-value {
  color: var(--text-primary);
  font-size: 0.97rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.result-price-panel {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.72rem 0.82rem;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(9, 20, 31, 0.4);
}

.result-price-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  font-weight: 700;
}

.result-price {
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 1.65vw, 1.9rem);
  color: var(--accent);
  font-weight: 700;
}

.missing-supplier-card {
  display: grid;
  gap: 0.95rem;
  justify-items: stretch;
  text-align: left;
}

.missing-supplier-card > p {
  text-align: center;
  margin: 0;
}

.missing-supplier-form {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
  width: min(100%, 44rem);
  margin: 0 auto;
  padding: 0.85rem;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 9px;
  background: rgba(9, 20, 31, 0.34);
}

.missing-supplier-copy {
  display: grid;
  gap: 0.2rem;
  text-align: center;
}

.missing-supplier-copy strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.missing-supplier-copy span,
.missing-supplier-form label span {
  color: var(--text-secondary);
  font-size: 0.83rem;
  line-height: 1.35;
}

.missing-supplier-form label {
  display: grid;
  gap: 0.35rem;
}

.missing-supplier-form input {
  min-height: 2.7rem;
}

.missing-supplier-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.result-price-meta,
.result-price-time,
.result-supplier-count-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.result-supplier-count-link,
.result-action-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.result-supplier-count-link:hover,
.result-action-link:hover {
  text-decoration: underline;
}

.result-history-preview {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(15, 31, 46, 0.32);
  border: 1px solid rgba(201, 168, 76, 0.16);
  text-decoration: none;
}

.result-history-label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
}

.result-history-value {
  color: var(--text-primary);
  font-size: 0.98rem;
}

.result-history-note {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.8rem;
}

.primary-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  background: var(--accent);
  color: var(--bg-dark);
  border: 1px solid var(--accent);
}

.primary-button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.link-button {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(201, 168, 76, 0.42);
}

.link-button:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.68);
}

.history-block {
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 12px;
  background: rgba(15, 31, 46, 0.26);
  overflow: hidden;
}

.history-block summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.history-block summary::-webkit-details-marker {
  display: none;
}

.history-scroll {
  overflow-x: auto;
  padding: 0 1rem 1rem;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.history-table th,
.history-table td {
  text-align: left;
  padding: 0.7rem 0.4rem;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  font-size: 0.9rem;
}

.history-table th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.feedback-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0.9rem;
}

.feedback-button {
  min-height: 2.2rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: rgba(201, 168, 76, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feedback-status {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Detail View */
.detail-panel {
  background: linear-gradient(180deg, rgba(255, 248, 233, 0.05), rgba(255, 248, 233, 0.015));
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 14px;
  padding: 1.2rem;
  margin-top: var(--sp-lg);
}

/* Grid Helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}

#workflow-section {
  margin-bottom: var(--sp-lg);
}

#workflow-section .section-header {
  margin-bottom: var(--sp-md);
  gap: 0.35rem;
}

#workflow-section .section-header .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 1.7px;
}

#workflow-section .section-header h2 {
  font-size: 1.15rem;
  line-height: 1.25;
}

#workflow-section .section-header p {
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 60rem;
}

#workflow-section .grid-3 {
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}

#workflow-section .card {
  padding: 1rem 1.15rem;
  gap: 0.6rem;
  min-height: 0;
}

#workflow-section .card-label {
  font-size: 0.68rem;
  letter-spacing: 1.3px;
}

#workflow-section .card-value {
  font-size: 0.95rem;
  line-height: 1.2;
}

#workflow-section .card p {
  font-size: 0.92rem;
  line-height: 1.45;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.card-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.card-value {
  font-size: var(--fs-lg);
  color: var(--text-primary);
  font-weight: 600;
}

/* Billing Gate */
.billing-gate {
  background: linear-gradient(135deg, rgba(27, 58, 45, 0.8), rgba(15, 31, 46, 0.8));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--sp-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.billing-gate.hidden {
  display: none;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}

.plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  transition: all 0.2s ease;
}

.plan-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.plan-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--accent);
  font-weight: 700;
}

.plan-price {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  color: var(--accent);
  font-weight: 700;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  text-align: left;
  margin: var(--sp-md) 0;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-secondary);
}

.mt-sm {
  margin-top: var(--sp-sm);
}

.mt-md {
  margin-top: var(--sp-md);
}

.mt-lg {
  margin-top: var(--sp-lg);
}

.mb-sm {
  margin-bottom: var(--sp-sm);
}

.mb-md {
  margin-bottom: var(--sp-md);
}

.mb-lg {
  margin-bottom: var(--sp-lg);
}

.gap-sm {
  gap: var(--sp-sm);
}

.gap-md {
  gap: var(--sp-md);
}

.gap-lg {
  gap: var(--sp-lg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 390px minmax(0, 1fr);
  }

  .sidebar {
    padding: 0.5rem 0.75rem 0.8rem;
  }

  .grid-3,
  .result-context-grid,
  .result-context-grid-detail {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-content {
    padding: 1.3rem 1.4rem 1.6rem;
  }

  .result-body,
  .result-body-detail {
    grid-template-columns: 1fr;
  }

  #search-view .section-header h2 {
    font-size: clamp(1.65rem, 2.7vw, 1.95rem);
  }
}

/* Mobile Layout - matches JS breakpoint of 860px */
@media (max-width: 860px) {
  body.layout-boot,
  body.layout-login,
  body.layout-app,
  body.layout-results,
  body.layout-detail,
  body.layout-billing {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .login-view {
    display: block;
    height: auto;
    min-height: 100dvh;
    padding: 1rem;
    overflow: visible;
  }

  .login-container {
    width: 100%;
    min-height: 0;
    max-height: none;
    align-items: stretch;
    gap: 1rem;
  }

  .login-banner {
    gap: 0.55rem;
  }

  .banner-image {
    display: none;
  }

  .banner-copy {
    gap: 0.48rem;
  }

  .banner-copy .eyebrow {
    align-self: center;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .banner-copy h1 {
    font-size: clamp(1.42rem, 6.8vw, 1.8rem);
    line-height: 1.05;
    text-align: center;
  }

  .banner-copy p {
    font-size: 0.84rem;
    line-height: 1.32;
    text-align: center;
  }

  .banner-disclaimer {
    gap: 0.28rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    max-width: none;
  }

  .banner-disclaimer-label {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .banner-disclaimer-copy {
    font-size: 0.76rem !important;
    line-height: 1.32 !important;
  }

  .banner-disclaimer-label,
  .banner-disclaimer-copy {
    text-align: left !important;
  }

  .auth-panel {
    width: 100%;
    max-height: none;
    justify-self: stretch;
    gap: 0.62rem;
    padding: 1rem;
  }

  .auth-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 0.15rem;
  }

  .auth-header {
    gap: 0.35rem;
  }

  .auth-header h2 {
    font-size: clamp(1.55rem, 7vw, 1.85rem);
    line-height: 1.1;
  }

  .auth-header p {
    font-size: 0.88rem;
    line-height: 1.32;
  }

  .auth-tabs {
    margin-bottom: 0.55rem;
  }

  .auth-tab {
    padding: 0.65rem 0.45rem;
    font-size: 0.8rem;
  }

  .auth-form {
    gap: 0.58rem;
  }

  .auth-panel .field {
    gap: 0.32rem;
  }

  .auth-panel .field input,
  .auth-panel .field textarea {
    min-height: 2.78rem;
    padding: 0.72rem 0.85rem;
  }

  .app-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .app-header {
    padding: 0.65rem 1rem;
  }

  .header-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  #app-menu-toggle.app-menu-toggle {
    display: inline-flex !important;
    padding: 0.65rem 0.85rem;
  }

  #app-header-menu.header-menu {
    display: none !important;
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(201, 168, 76, 0.18);
    align-items: stretch;
  }

  #app-header-menu.header-menu.is-open {
    display: flex !important;
  }

  .session-info,
  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .session-info {
    align-items: stretch;
  }

  .session-badge,
  .header-actions .btn {
    width: 100%;
    text-align: center;
  }

  .page-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .sidebar {
    position: static;
    border-right: none;
    border-top: 1px solid var(--border-color);
    max-height: none;
    overflow: visible;
    padding: 1rem;
    order: -1; /* Place sidebar after header */
  }

  .sidebar-heading,
  .search-form {
    max-width: 100%;
  }

  .search-form {
    display: flex;
    flex-direction: column;
    overflow: visible;
    gap: 0.8rem;
  }

  .search-scroll-area {
    overflow: visible;
    padding: 0;
  }

  .search-actions {
    border-top: none;
    padding-top: 0;
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding-bottom: 0.75rem;
    background: linear-gradient(180deg, rgba(15, 31, 46, 0), var(--bg-forest) 22%);
  }

  .main-content {
    padding: 1.1rem 1rem 1.35rem;
    max-height: none;
    height: auto;
    order: 0;
  }

  .content-section {
    max-width: none;
    margin-bottom: 1.5rem;
  }

  .grid-3,
  .result-context-grid,
  .result-context-grid-detail {
    grid-template-columns: 1fr;
  }

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

  #search-view .section-header,
  #results-compatibility {
    max-width: none;
  }

  #search-view .section-header {
    grid-template-columns: 1fr;
  }

  #results-compatibility,
  #search-view .section-header h2,
  #search-view .section-header p,
  #search-view .section-header .source-disclosure {
    grid-column: 1;
  }

  #results-compatibility {
    grid-row: auto;
  }

  #search-view .section-header h2 {
    font-size: 1.7rem;
  }

  .compatibility-group summary {
    padding: 0.65rem 0.8rem;
    font-size: 0.92rem;
  }

  .result-item {
    padding: 0.95rem;
  }

  .result-body,
  .result-body-detail,
  .result-context-grid,
  .result-context-grid-detail {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    --sp-lg: 1rem;
    --sp-xl: 1.5rem;
    --fs-2xl: 1.25rem;
    --fs-3xl: 1.5rem;
  }

  .app-header {
    padding: var(--sp-md);
  }

  .header-inner {
    gap: var(--sp-md);
  }

  .header-menu {
    flex-direction: column;
    gap: var(--sp-sm);
  }

  .session-info {
    flex-direction: column;
    gap: var(--sp-sm);
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
  }

  .header-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .auth-panel {
    padding: var(--sp-lg);
  }

  .login-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .main-content {
    padding: var(--sp-md);
  }

  .sidebar {
    padding: var(--sp-md);
  }

  .section-header h2 {
    font-size: var(--fs-xl);
  }

  .detail-panel {
    padding: var(--sp-lg);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
