/*
 * MaharatLink Luxe UI
 * Final atomic presentation layer shared by public, workspace and admin pages.
 * It is intentionally loaded after legacy and page-specific styles.
 */

:root {
  --lux-ink: #10251c;
  --lux-ink-soft: #314b3f;
  --lux-muted: #65776e;
  --lux-green: #087448;
  --lux-green-strong: #055a39;
  --lux-green-deep: #032f22;
  --lux-mint: #eaf5ef;
  --lux-mint-soft: #f5faf7;
  --lux-lime: #dff36d;
  --lux-gold: #d9b96f;
  --lux-canvas: #f3f7f4;
  --lux-paper: #fff;
  --lux-line: #dce7df;
  --lux-line-strong: #bfd0c4;
  --lux-danger: #a73f39;
  --lux-warning: #8a5c18;
  --lux-info: #32677a;
  --lux-radius-xs: 9px;
  --lux-radius-sm: 13px;
  --lux-radius-md: 18px;
  --lux-radius-lg: 26px;
  --lux-shadow-xs: 0 4px 14px rgba(3, 53, 34, .045);
  --lux-shadow-sm: 0 12px 34px rgba(3, 53, 34, .075);
  --lux-shadow-md: 0 24px 64px rgba(3, 53, 34, .11);
  --lux-shadow-focus: 0 0 0 4px rgba(8, 116, 72, .12);
  --lux-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Full-bleed legacy sections use 100vw; clip only the outer canvas so they
   cannot create a device-wide horizontal scrollbar beside the vertical bar. */
html:has(body[data-ui-system="luxe-2026"]),
body[data-ui-system="luxe-2026"] {
  overflow-x: clip;
}

html { scroll-behavior: smooth; }
body.site-shell { color: var(--lux-ink); background: var(--lux-canvas); }
body.site-shell ::selection { color: #fff; background: var(--lux-green); }
body.site-shell .main-content { position: relative; min-width: 0; isolation: isolate; }
body.site-shell:not(.home-page):not(.registration-flow-page):not(.provider-wizard-page) .main-content {
  background:
    radial-gradient(circle at 8% 3%, rgba(223, 243, 109, .11), transparent 24rem),
    radial-gradient(circle at 92% 10%, rgba(8, 116, 72, .07), transparent 28rem),
    var(--lux-canvas);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(8, 116, 72, .3);
  outline-offset: 3px;
}
:where(button, input, select, textarea) { font-family: inherit; }
:where(img, video, svg) { max-width: 100%; }

/* Shared public/product header */
body.site-shell .main-header {
  border-bottom: 1px solid rgba(194, 212, 201, .8);
  box-shadow: 0 8px 32px rgba(3, 48, 31, .045);
}
body.site-shell .main-header::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 9% -80%, rgba(223, 243, 109, .2), transparent 26%),
    linear-gradient(90deg, rgba(255,255,255,.45), transparent 35%, rgba(255,255,255,.3));
}
body.site-shell .header-container { position: relative; z-index: 1; }
body.site-shell .brand-link { transition: transform .22s var(--lux-ease); }
body.site-shell .brand-link:hover { transform: translateY(-1px); }
body.site-shell .main-header .brand-symbol {
  color: var(--lux-lime);
  background: linear-gradient(145deg, var(--lux-green-deep), var(--lux-green-strong));
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 12px 28px rgba(3, 55, 36, .19), inset 0 1px 0 rgba(255,255,255,.1);
}
body.site-shell .brand-copy strong { letter-spacing: -.015em; }
body.site-shell .nav-menu {
  background: rgba(239, 247, 242, .82);
  border-color: rgba(200, 218, 207, .85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 7px 22px rgba(3, 52, 33, .035);
}
body.site-shell .nav-link:hover,
body.site-shell .nav-more-wrapper.active .nav-more-btn {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(3, 55, 35, .07);
}
body.site-shell .nav-link.active,
body.site-shell .nav-hiring-link.active {
  background: linear-gradient(145deg, var(--lux-green), var(--lux-green-deep));
  box-shadow: 0 10px 22px rgba(3, 64, 40, .19), inset 0 1px 0 rgba(255,255,255,.14);
}
body.site-shell .header-actions { gap: 7px; }
body.site-shell .language-switch button,
body.site-shell .header-icon-btn,
body.site-shell .user-btn,
body.site-shell .header-login {
  border-radius: var(--lux-radius-sm);
  transition: transform .18s var(--lux-ease), border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
body.site-shell .language-switch button:hover,
body.site-shell .header-icon-btn:hover,
body.site-shell .user-btn:hover,
body.site-shell .header-login:hover {
  transform: translateY(-1px);
  border-color: #a9c4b3;
  box-shadow: var(--lux-shadow-xs);
}
body.site-shell .header-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--lux-green), var(--lux-green-deep));
  border-color: var(--lux-green-strong);
  border-radius: var(--lux-radius-sm);
  box-shadow: 0 12px 26px rgba(4, 83, 51, .18);
}
body.site-shell .header-cta::before {
  position: absolute;
  top: -80%;
  left: -40%;
  width: 45%;
  height: 260%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: rotate(20deg);
  transition: left .5s var(--lux-ease);
}
body.site-shell .header-cta:hover::before { left: 115%; }
body.site-shell .surface-popover,
body.site-shell .nav-more-menu,
body.site-shell .notif-dropdown,
body.site-shell .user-dropdown {
  overflow: hidden;
  background: rgba(255,255,255,.985);
  border-color: var(--lux-line);
  border-radius: var(--lux-radius-md);
  box-shadow: var(--lux-shadow-md);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}
body.site-shell .nav-more-menu a,
body.site-shell .dropdown-item,
body.site-shell .notif-item { border-radius: 11px; }
body.site-shell .nav-more-menu a:hover,
body.site-shell .dropdown-item:hover,
body.site-shell .notif-item:hover { background: var(--lux-mint-soft); }

/* Atomic product surfaces */
body.site-shell .app-shell {
  width: min(1240px, calc(100% - 44px));
  padding-block: 32px 84px;
}
body.site-shell .app-page-head {
  position: relative;
  align-items: center;
  margin-bottom: 22px;
  padding: 8px 0 23px;
  border-bottom-color: var(--lux-line-strong);
}
body.site-shell .app-page-head::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: clamp(76px, 10vw, 132px);
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--lux-green), var(--lux-lime));
  border-radius: 99px;
}
html[dir="ltr"] body.site-shell .app-page-head::after { right: auto; left: 0; }
body.site-shell .app-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  margin-bottom: 9px;
  color: var(--lux-green);
  font-size: .69rem;
  letter-spacing: .03em;
}
body.site-shell .app-kicker::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--lux-lime);
  border: 2px solid var(--lux-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(8,116,72,.08);
}
body.site-shell .app-page-head h1 {
  color: var(--lux-ink);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}
body.site-shell .app-page-head p { color: var(--lux-muted); line-height: 1.75; }

body.site-shell :where(.app-panel, .app-card, .card, .profile-section) {
  border-color: var(--lux-line);
  border-radius: var(--lux-radius-md);
  background: rgba(255,255,255,.96);
  box-shadow: var(--lux-shadow-xs);
}
body.site-shell :where(.app-panel, .app-card, .profile-section) {
  transition: border-color .2s ease, box-shadow .24s ease, transform .24s var(--lux-ease);
}
body.site-shell :where(.app-panel, .app-card, .profile-section):hover {
  border-color: #bfd4c7;
  box-shadow: var(--lux-shadow-sm);
}
body.site-shell .app-panel { overflow: clip; }
body.site-shell .app-panel-pad { padding: clamp(20px, 2.3vw, 28px); }
body.site-shell .app-panel-head {
  min-height: 42px;
  margin-bottom: 19px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e8eee9;
}
body.site-shell .app-panel-head h2,
body.site-shell .app-panel-head h3 { color: var(--lux-ink); font-size: 1.08rem; }

body.site-shell :where(.app-button, .btn) {
  border-radius: 11px;
  transition: transform .18s var(--lux-ease), box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
body.site-shell .app-button {
  min-height: 44px;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--lux-green-strong), var(--lux-green-deep));
  border-color: var(--lux-green-deep);
  box-shadow: 0 8px 18px rgba(3, 59, 37, .12);
}
body.site-shell .app-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--lux-green), var(--lux-green-deep));
  box-shadow: 0 13px 24px rgba(3, 59, 37, .18);
}
body.site-shell .app-button:active { transform: translateY(0); }
body.site-shell .app-button.is-secondary,
body.site-shell .app-button.is-quiet {
  box-shadow: none;
  background: #fff;
}
body.site-shell .app-button.is-secondary:hover,
body.site-shell .app-button.is-quiet:hover { color: var(--lux-green-deep); background: var(--lux-mint-soft); }
body.site-shell .app-button.is-danger { background: #fff; box-shadow: none; }

body.site-shell .app-metrics { gap: 12px; }
body.site-shell .app-metric {
  position: relative;
  min-height: 108px;
  overflow: hidden;
  padding: 19px;
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius-sm);
  background: linear-gradient(145deg, #fff, #f8fbf9);
  box-shadow: var(--lux-shadow-xs);
}
body.site-shell .app-metric::after {
  position: absolute;
  top: -28px;
  inset-inline-end: -25px;
  width: 78px;
  height: 78px;
  content: "";
  background: rgba(8,116,72,.045);
  border: 1px solid rgba(8,116,72,.08);
  border-radius: 50%;
}
body.site-shell .app-metric strong { color: var(--lux-green-deep); font-size: 1.52rem; }
body.site-shell .app-status,
body.site-shell .app-chip,
body.site-shell .state-pill {
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 850;
}

body.site-shell .app-filter {
  padding: 17px;
  border-color: var(--lux-line);
  border-radius: var(--lux-radius-md);
  background: rgba(255,255,255,.92);
  box-shadow: var(--lux-shadow-xs);
}
body.site-shell :where(.app-field, .app-form-group, .form-field) > label,
body.site-shell :where(.form-label, .auth-field-label) { color: var(--lux-ink-soft); font-weight: 850; }
body.site-shell :where(.app-field input, .app-field select, .app-form input:not([type=checkbox]):not([type=radio]), .app-form select, .app-form textarea, .input, .textarea, .form-control) {
  min-height: 48px;
  padding: 11px 13px;
  color: var(--lux-ink);
  background: #fff;
  border-color: var(--lux-line-strong);
  border-radius: 11px;
  box-shadow: inset 0 1px 2px rgba(3, 53, 34, .025);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body.site-shell :where(.app-field input, .app-field select, .app-form input, .app-form select, .app-form textarea, .input, .textarea, .form-control):hover { border-color: #9eb9a8; }
body.site-shell :where(.app-field input, .app-field select, .app-form input, .app-form select, .app-form textarea, .input, .textarea, .form-control):focus {
  outline: 0;
  background: #fff;
  border-color: var(--lux-green);
  box-shadow: var(--lux-shadow-focus);
}
body.site-shell :where(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--lux-danger);
  box-shadow: 0 0 0 4px rgba(167,63,57,.09);
}
body.site-shell .file-input {
  min-height: 54px;
  border-color: #a9c1b2;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, var(--lux-mint-soft));
}
body.site-shell .app-choice-card {
  border-radius: 13px;
  transition: transform .18s var(--lux-ease), border-color .18s ease, background .18s ease;
}
body.site-shell .app-choice-card:hover { transform: translateY(-2px); }

body.site-shell .app-table-wrap {
  overflow: auto;
  border-color: var(--lux-line);
  border-radius: var(--lux-radius-md);
  box-shadow: var(--lux-shadow-xs);
}
body.site-shell .app-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 13px 15px;
  color: #4f665a;
  background: #f1f7f3;
  border-bottom-color: var(--lux-line-strong);
}
body.site-shell .app-table td { padding: 14px 15px; border-bottom-color: #e9efeb; }
body.site-shell .app-table tbody tr { transition: background .16s ease; }
body.site-shell .app-table tbody tr:hover { background: #f9fcfa; }

body.site-shell .app-list-row { padding-block: 17px; border-bottom-color: #e6ede8; }
body.site-shell .app-action-card {
  min-height: 76px;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff, #f9fbfa);
  transition: transform .2s var(--lux-ease), border-color .2s ease, box-shadow .2s ease;
}
body.site-shell .app-action-card:hover { transform: translateY(-3px); box-shadow: var(--lux-shadow-sm); }

body.site-shell .app-notice {
  padding: 14px 16px;
  color: var(--lux-ink-soft);
  background: linear-gradient(135deg, #edf7f1, #f8fbf9);
  border: 1px solid #cfe2d6;
  border-inline-start: 4px solid var(--lux-green);
  border-radius: 12px;
  box-shadow: var(--lux-shadow-xs);
}
body.site-shell .app-notice.is-warning { background: #fff9ec; border-color: #ead8ae; border-inline-start-color: var(--lux-warning); }
body.site-shell .app-empty {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  padding: 38px;
  background:
    radial-gradient(circle at 50% 0, rgba(223,243,109,.15), transparent 45%),
    rgba(255,255,255,.86);
  border-color: #bad0c2;
  border-radius: var(--lux-radius-md);
}
body.site-shell .app-empty i {
  width: 54px;
  height: 54px;
  color: var(--lux-green);
  background: var(--lux-mint);
  border: 1px solid #cae0d2;
  border-radius: 16px;
  box-shadow: var(--lux-shadow-xs);
}
body.site-shell .app-empty h2,
body.site-shell .app-empty h3 { color: var(--lux-ink); font-size: 1.08rem; }
body.site-shell .workspace-nav {
  gap: 5px;
  padding: 7px;
  border-color: var(--lux-line);
  border-radius: 15px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--lux-shadow-xs);
}
body.site-shell .workspace-nav a { min-height: 41px; border-radius: 10px; }
body.site-shell .workspace-nav a.is-active {
  background: linear-gradient(135deg, var(--lux-green), var(--lux-green-deep));
  box-shadow: 0 7px 16px rgba(4, 71, 44, .14);
}

/* Toasts and transient feedback */
body.site-shell .toast-container { z-index: 1200; }
body.site-shell .toast {
  overflow: hidden;
  border-color: var(--lux-line);
  border-radius: 16px;
  box-shadow: var(--lux-shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
body.site-shell .toast::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--lux-green), var(--lux-lime));
}

/* Shared footer */
body.site-shell .main-footer {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  color: #fff;
  background:
    radial-gradient(circle at 12% 5%, rgba(223,243,109,.13), transparent 25rem),
    radial-gradient(circle at 88% 95%, rgba(8,116,72,.4), transparent 30rem),
    linear-gradient(145deg, #021d15, #043526 60%, #03271d);
  border-top: 1px solid rgba(223,243,109,.13);
}
body.site-shell .footer-trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(calc(100% - 40px), 1440px);
  margin: 0 auto;
  border-inline: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
body.site-shell .footer-trust-item {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 20px;
  border-inline-end: 1px solid rgba(255,255,255,.1);
}
body.site-shell .footer-trust-item:last-child { border-inline-end: 0; }
body.site-shell .footer-trust-item > i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: var(--lux-lime);
  background: rgba(223,243,109,.08);
  border: 1px solid rgba(223,243,109,.17);
  border-radius: 12px;
}
body.site-shell .footer-trust-item span { display: grid; gap: 3px; }
body.site-shell .footer-trust-item strong { color: #fff; font-size: .76rem; }
body.site-shell .footer-trust-item small { color: rgba(230,244,236,.64); font-size: .58rem; }
body.site-shell .footer-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 1440px);
  padding-top: clamp(46px, 6vw, 76px);
  padding-bottom: 44px;
}
body.site-shell .footer-shell::before {
  position: absolute;
  top: 28px;
  right: 0;
  width: 80px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--lux-lime), transparent);
  border-radius: 99px;
}
html[dir="ltr"] body.site-shell .footer-shell::before { right: auto; left: 0; transform: scaleX(-1); }
body.site-shell .footer-brand .brand-symbol {
  color: var(--lux-lime);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}
body.site-shell.trust-home .main-footer .footer-brand .brand-symbol {
  color: var(--lux-lime) !important;
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.14) !important;
}
body.site-shell.trust-home .main-footer .footer-brand .brand-symbol :where(svg, path, circle) { color: var(--lux-lime) !important; }
body.site-shell.trust-home .main-footer .footer-brand .brand-symbol :where(path, circle) { stroke: currentColor !important; }
body.site-shell.trust-home .main-footer .footer-brand .brand-symbol circle { fill: currentColor !important; }
body.site-shell .footer-lead h2 {
  max-width: 500px;
  margin-block: 25px 22px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.25;
  letter-spacing: -.025em;
}
body.site-shell .footer-cta {
  min-height: 49px;
  padding: 11px 17px;
  color: var(--lux-green-deep);
  background: linear-gradient(135deg, var(--lux-lime), #eef99d);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 13px;
  box-shadow: 0 14px 30px rgba(0,0,0,.16);
}
body.site-shell .footer-cta:hover { color: var(--lux-green-deep); background: #f3fbb3; transform: translateY(-2px); }
body.site-shell .footer-hire-link {
  min-height: 49px;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
}
body.site-shell .footer-links-grid { gap: clamp(30px, 5vw, 70px); }
body.site-shell .footer-col h3 {
  margin-bottom: 16px;
  color: var(--lux-lime);
  font-size: .7rem;
  letter-spacing: .04em;
}
body.site-shell .footer-col a {
  position: relative;
  width: max-content;
  max-width: 100%;
  padding-block: 5px;
  color: rgba(239,248,242,.72);
  transition: color .18s ease, transform .18s var(--lux-ease);
}
body.site-shell .footer-col a::before {
  position: absolute;
  right: -12px;
  top: 50%;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--lux-lime);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .18s ease;
}
html[dir="ltr"] body.site-shell .footer-col a::before { right: auto; left: -12px; }
body.site-shell .footer-col a:hover { color: #fff; transform: translateX(-3px); }
html[dir="ltr"] body.site-shell .footer-col a:hover { transform: translateX(3px); }
body.site-shell .footer-col a:hover::before { opacity: 1; }
body.site-shell .footer-bottom {
  width: min(calc(100% - 40px), 1440px);
  min-height: 72px;
  padding-block: 18px;
  color: rgba(234,244,238,.58);
  border-top-color: rgba(255,255,255,.11);
}
body.site-shell .footer-language-switch button {
  min-height: 34px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9px;
  cursor: pointer;
}

/* Admin shell: same tokens, intentionally no public footer. */
body.admin-shell {
  color: var(--lux-ink);
  background:
    radial-gradient(circle at 85% 0, rgba(8,116,72,.08), transparent 28rem),
    var(--lux-canvas);
}
body.admin-shell .layout { min-height: 100svh; }
body.admin-shell .sidebar {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 15% 5%, rgba(223,243,109,.13), transparent 15rem),
    linear-gradient(165deg, #032f22, #021c15 72%);
  border-inline-end: 1px solid rgba(255,255,255,.08);
  box-shadow: 16px 0 50px rgba(2, 35, 24, .12);
}
body.admin-shell .sidebar::after {
  position: absolute;
  right: 22px;
  bottom: 24px;
  width: 90px;
  height: 90px;
  content: "";
  border: 1px solid rgba(223,243,109,.08);
  border-radius: 50%;
}
body.admin-shell .admin-brand .brand-symbol {
  color: var(--lux-green-deep);
  background: var(--lux-lime);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
}
body.admin-shell .topbar {
  background: rgba(250,253,251,.9);
  border-bottom: 1px solid rgba(198,216,205,.86);
  box-shadow: 0 8px 30px rgba(3,50,32,.045);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}
body.admin-shell .admin-content { padding-block: 28px 72px; }
body.admin-shell :where(.card, .panel, .stat-card, .table-wrap, .admin-card) {
  border-color: var(--lux-line);
  border-radius: var(--lux-radius-md);
  background: rgba(255,255,255,.96);
  box-shadow: var(--lux-shadow-xs);
}
body.admin-shell :where(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  min-height: 46px;
  border-color: var(--lux-line-strong);
  border-radius: 11px;
  background: #fff;
}
body.admin-shell :where(input, select, textarea):focus {
  outline: 0;
  border-color: var(--lux-green);
  box-shadow: var(--lux-shadow-focus);
}
body.admin-shell :where(.btn, button[type="submit"], .action-btn) { border-radius: 10px; }
body.admin-shell table { overflow: hidden; border-radius: 13px; }
body.admin-shell th { color: #4d6458; background: #eff6f2; }
body.admin-shell tbody tr { transition: background .16s ease; }
body.admin-shell tbody tr:hover { background: #f8fbf9; }
body.admin-shell .flash {
  border: 1px solid var(--lux-line);
  border-radius: 12px;
  box-shadow: var(--lux-shadow-xs);
}

@keyframes lux-admin-sidebar-in {
  from { opacity: 0; transform: translate3d(calc(100% + 24px), 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 768px) {
  /* A transformed fixed rail still expands document.scrollWidth in Chromium.
     Remove only the closed rail from layout; animate it when explicitly opened. */
  body.admin-shell .sidebar:not(.open) { display: none; }
  body.admin-shell .sidebar.open {
    display: block;
    animation: lux-admin-sidebar-in .28s var(--lux-ease) both;
  }
}

/* Responsive composition */
@media (max-width: 1180px) {
  body.site-shell .header-container { width: min(calc(100% - 28px), 1440px); }
  body.site-shell .footer-trust-strip,
  body.site-shell .footer-shell,
  body.site-shell .footer-bottom { width: min(calc(100% - 28px), 1440px); }
  body.site-shell .app-shell { width: min(100% - 30px, 1240px); }
}

@media (max-width: 900px) {
  body.site-shell .app-page-head { align-items: flex-start; }
  body.site-shell .app-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.site-shell .footer-trust-item { min-height: 74px; padding: 13px; }
  body.site-shell .footer-trust-item small { display: none; }
}

@media (max-width: 720px) {
  html { scroll-behavior: auto; }
  body.site-shell .main-header::before { opacity: .6; }
  body.site-shell .main-header .brand-symbol { width: 39px; height: 39px; flex-basis: 39px; border-radius: 12px; }
  body.site-shell .mobile-menu {
    width: min(90vw, 400px);
    max-width: 400px;
    background:
      radial-gradient(circle at 10% 3%, rgba(223,243,109,.13), transparent 13rem),
      #fff;
    box-shadow: -25px 0 70px rgba(3,43,28,.22);
  }
  body.site-shell .mobile-nav-links a { border-radius: 12px; }
  body.site-shell .mobile-nav-links a.is-active { background: linear-gradient(135deg, var(--lux-green), var(--lux-green-deep)); }
  body.site-shell .mobile-nav-links a.is-active :where(span, b, i) { color: #fff !important; }
  body.site-shell .mobile-nav-links a.is-active i { background: rgba(255,255,255,.12); }
  body.site-shell .app-shell { width: min(100% - 22px, 1240px); padding-block: 22px 60px; }
  body.site-shell .app-page-head { gap: 14px; padding-bottom: 19px; }
  body.site-shell .app-page-head h1 { font-size: clamp(1.55rem, 8vw, 2rem); }
  body.site-shell .app-head-actions { width: 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  body.site-shell .app-head-actions::-webkit-scrollbar { display: none; }
  body.site-shell .app-head-actions .app-button { flex: 0 0 auto; }
  body.site-shell .app-panel-pad { padding: 18px; }
  body.site-shell .app-metrics { gap: 9px; }
  body.site-shell .app-metric { min-height: 96px; padding: 15px; }
  body.site-shell .app-filter { padding: 13px; }
  body.site-shell .app-form-actions { align-items: stretch; }
  body.site-shell .app-form-actions > :where(a, button) { flex: 1 1 auto; }
  body.site-shell .app-empty { min-height: 210px; padding: 28px 18px; }
  body.site-shell .footer-trust-strip { grid-template-columns: 1fr; }
  body.site-shell .footer-trust-item {
    min-height: 60px;
    justify-content: flex-start;
    border-inline-end: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  body.site-shell .footer-trust-item:last-child { border-bottom: 0; }
  body.site-shell .footer-trust-item small { display: block; }
  body.site-shell .footer-shell { gap: 32px; padding-top: 45px; padding-bottom: 30px; }
  body.site-shell .footer-lead h2 { max-width: 340px; font-size: 1.65rem; }
  body.site-shell .footer-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  body.site-shell .footer-bottom { align-items: flex-start; gap: 8px; padding-block: 18px calc(18px + env(safe-area-inset-bottom)); }
  body.admin-shell .admin-content { padding-block: 20px 54px; }
}

@media (max-width: 520px) {
  body.site-shell .app-shell { width: min(100% - 18px, 1240px); }
  body.site-shell .app-page-head { margin-bottom: 16px; }
  body.site-shell .app-page-head::after { width: 68px; }
  body.site-shell .app-metrics { grid-template-columns: 1fr 1fr; }
  body.site-shell .app-metric strong { font-size: 1.28rem; }
  body.site-shell .app-panel-head { align-items: flex-start; }
  body.site-shell .app-button { min-height: 45px; }
  body.site-shell .footer-trust-strip,
  body.site-shell .footer-shell,
  body.site-shell .footer-bottom { width: calc(100% - 20px); }
  body.site-shell .footer-links-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  body.site-shell .footer-col a { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  body.site-shell .main-header,
  body.site-shell .main-footer,
  body.site-shell .workspace-nav,
  body.site-shell .app-head-actions { display: none !important; }
  body.site-shell,
  body.site-shell .main-content { background: #fff !important; }
  body.site-shell :where(.app-panel, .app-card, .card) { box-shadow: none !important; }
}
