/*
 * Laith Engineering Tools — shared laith.vip visual system
 * Styling only: engineering calculations and application logic are untouched.
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --laith-navy-950: #071625;
  --laith-navy-900: #0b1f33;
  --laith-navy-800: #123653;
  --laith-blue-700: #185b8f;
  --laith-blue-600: #2472aa;
  --laith-gold: #f1c40f;
  --laith-gold-hover: #ffd52e;
  --laith-gold-soft: rgba(241, 196, 15, 0.13);
  --laith-page: #f6f7f9;
  --laith-surface: #ffffff;
  --laith-surface-soft: #f9fafb;
  --laith-ink: #12202f;
  --laith-muted: #627083;
  --laith-border: #e1e6ec;
  --laith-border-strong: #cfd7e1;
  --laith-shadow: 0 12px 34px rgba(7, 22, 37, 0.09);
  --laith-shadow-hover: 0 18px 42px rgba(7, 22, 37, 0.14);
  --laith-radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

html,
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body.laith-hub,
body.laith-tool {
  background:
    radial-gradient(circle at 85% 2%, rgba(36, 114, 170, 0.08), transparent 25rem),
    var(--laith-page) !important;
  color: var(--laith-ink) !important;
}

::selection {
  background: var(--laith-gold);
  color: var(--laith-navy-950);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #edf0f4;
}

::-webkit-scrollbar-thumb {
  background: #aeb9c5;
  border: 2px solid #edf0f4;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--laith-blue-600);
}

button,
a,
input,
select,
textarea {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(241, 196, 15, 0.38) !important;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Shared brand bars
   -------------------------------------------------------------------------- */
body.laith-hub>header,
body.laith-tool>nav,
body.laith-tool>header,
body.laith-tool #root>div>header {
  background: linear-gradient(110deg, var(--laith-navy-950), var(--laith-navy-900) 58%, var(--laith-navy-800)) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 8px 24px rgba(7, 22, 37, 0.22) !important;
  color: #fff !important;
}

body.laith-hub>header::after,
body.laith-tool>nav::after,
body.laith-tool>header::after,
body.laith-tool #root>div>header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--laith-gold), transparent);
  pointer-events: none;
}

body.laith-tool>nav,
body.laith-tool>header,
body.laith-tool #root>div>header {
  position: relative;
}

body.laith-hub>header [class*="text-gray-"],
body.laith-tool>nav [class*="text-gray-"],
body.laith-tool>header [class*="text-gray-"],
body.laith-tool #root>div>header [class*="text-gray-"] {
  color: rgba(255, 255, 255, 0.74) !important;
}

body.laith-hub>header .text-white,
body.laith-tool>nav .text-white,
body.laith-tool>header .text-white,
body.laith-tool #root>div>header .text-white {
  color: #fff !important;
}

body.laith-hub>header [class*="bg-gradient-to-br"]>div,
body.laith-tool>nav [class*="bg-gradient-to-br"]>div,
body.laith-tool>header [class*="bg-gradient-to-br"]>div,
body.laith-tool #root>div>header [class*="bg-gradient-to-br"]>div {
  background: var(--laith-gold) !important;
  color: var(--laith-navy-950) !important;
}

body.laith-hub>header [class*="bg-gradient-to-br"]>div i,
body.laith-tool>nav [class*="bg-gradient-to-br"]>div i,
body.laith-tool>header [class*="bg-gradient-to-br"]>div i,
body.laith-tool #root>div>header [class*="bg-gradient-to-br"]>div i {
  color: var(--laith-navy-950) !important;
}

body.laith-hub>header [class*="bg-gradient-to-br"],
body.laith-tool>nav [class*="bg-gradient-to-br"],
body.laith-tool>header [class*="bg-gradient-to-br"],
body.laith-tool #root>div>header [class*="bg-gradient-to-br"] {
  background: linear-gradient(145deg, #fff4ad, var(--laith-gold)) !important;
  box-shadow: 0 8px 22px rgba(241, 196, 15, 0.24) !important;
}

body.laith-hub>header [class~="bg-white"][class~="text-white"],
body.laith-tool>nav [class~="bg-white"][class~="text-white"],
body.laith-tool>header [class~="bg-white"][class~="text-white"],
body.laith-tool #root>div>header [class~="bg-white"][class~="text-white"] {
  color: var(--laith-navy-950) !important;
}

body.laith-hub>header input,
body.laith-tool>nav input,
body.laith-tool>header input {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}

body.laith-hub>header input::placeholder,
body.laith-tool>nav input::placeholder,
body.laith-tool>header input::placeholder {
  color: rgba(255, 255, 255, 0.52) !important;
}

body.laith-hub>header [class~="bg-gray-200"],
body.laith-tool>nav [class~="bg-gray-200"],
body.laith-tool>header [class~="bg-gray-200"] {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.86) !important;
}

/* Gold brand accents replace the previous violet identity. */
.text-gradient {
  background: linear-gradient(110deg, #fff4ad 0%, var(--laith-gold) 52%, #ffe77b 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

[class~="text-indigo-300"],
[class~="text-indigo-400"],
[class~="text-purple-400"] {
  color: var(--laith-gold) !important;
}

[class~="border-indigo-500/20"],
[class~="border-indigo-500/30"],
[class~="border-purple-500/20"],
[class~="border-purple-500/30"] {
  border-color: rgba(241, 196, 15, 0.38) !important;
}

[class~="bg-indigo-500/10"],
[class~="bg-indigo-500/20"],
[class~="bg-indigo-600/10"],
[class~="bg-indigo-600/20"],
[class~="bg-purple-500/10"] {
  background: var(--laith-gold-soft) !important;
}

/* --------------------------------------------------------------------------
   Hub / landing page
   -------------------------------------------------------------------------- */
body.laith-hub #sidebar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: var(--laith-border) !important;
  box-shadow: 8px 0 28px rgba(7, 22, 37, 0.045);
}

body.laith-hub #sidebar h3 {
  color: #7a8796 !important;
  letter-spacing: .12em;
}

body.laith-hub #sidebar nav button {
  color: #536276 !important;
  border-color: transparent !important;
}

body.laith-hub #sidebar nav button:not([class*="bg-indigo"]):hover {
  background: #eef3f7 !important;
  color: var(--laith-navy-900) !important;
}

body.laith-hub #sidebar nav button[id^="nav-"][class*="bg-indigo"],
body.laith-hub #adminSidebarSection button[class*="bg-indigo"] {
  background: var(--laith-navy-900) !important;
  color: #fff !important;
  border-color: var(--laith-navy-900) !important;
  box-shadow: 0 8px 20px rgba(11, 31, 51, 0.16);
}

body.laith-hub #sidebar nav button[id^="nav-"][class*="bg-indigo"] i,
body.laith-hub #sidebar nav button[id^="nav-"][class*="bg-indigo"] span,
body.laith-hub #adminSidebarSection button[class*="bg-indigo"] i,
body.laith-hub #adminSidebarSection button[class*="bg-indigo"] span {
  color: #fff !important;
}

body.laith-hub #suiteInfoCard {
  background: linear-gradient(140deg, var(--laith-navy-950), var(--laith-navy-800)) !important;
  border-color: rgba(241, 196, 15, 0.24) !important;
  color: #fff !important;
}

body.laith-hub #suiteInfoCard p {
  color: rgba(255, 255, 255, 0.78) !important;
}

body.laith-hub #suiteInfoCard span,
body.laith-hub #suiteInfoCard i {
  color: var(--laith-gold) !important;
}

body.laith-hub #subscriptionCard {
  background: #fff !important;
  border-color: var(--laith-border) !important;
  box-shadow: 0 8px 22px rgba(7, 22, 37, 0.055);
}

body.laith-hub #subscriptionCard>div:first-child {
  color: var(--laith-navy-900) !important;
}

body.laith-hub #subscriptionUser {
  color: #4f6073 !important;
}

body.laith-hub #subscriptionPlan {
  color: var(--laith-blue-700) !important;
}

body.laith-hub #sidebar nav button:not([class*="bg-indigo"]) {
  color: #3f5065 !important;
}

body.laith-hub #sidebar nav button:not([class*="bg-indigo"]) i {
  color: #7f8da0 !important;
}

body.laith-hub #sidebar nav button>span:last-child:not(:first-child) {
  background: #eef2f6 !important;
  color: #536276 !important;
}

body.laith-hub #sidebar nav button[id^="nav-"][class*="bg-indigo"]>span:last-child:not(:first-child) {
  background: rgba(255, 255, 255, .86) !important;
  color: var(--laith-navy-900) !important;
}

body.laith-hub #adminSidebarSection button:not([class*="bg-indigo"]) span {
  background: transparent !important;
  color: #3f5065 !important;
}

body.laith-hub #adminSidebarSection button:not([class*="bg-indigo"]) i {
  color: #7f8da0 !important;
}

body.laith-hub #adminSidebarSection button:not([class*="bg-indigo"]):hover {
  background: #eef3f7 !important;
  color: var(--laith-navy-900) !important;
}

body.laith-hub #adminSidebarSection button:not([class*="bg-indigo"]):hover span,
body.laith-hub #adminSidebarSection button:not([class*="bg-indigo"]):hover i {
  color: var(--laith-navy-900) !important;
}

body.laith-hub #adminSidebarSection button[class*="bg-indigo"] span,
body.laith-hub #adminSidebarSection button[class*="bg-indigo"] i {
  background: transparent !important;
  color: #fff !important;
}

body.laith-hub #adminSidebarSection button[class*="bg-indigo"]:hover {
  background: var(--laith-navy-900) !important;
  color: #fff !important;
  border-color: var(--laith-navy-900) !important;
}

body.laith-hub #servicesHero {
  background:
    radial-gradient(circle at 92% 12%, rgba(241, 196, 15, 0.16), transparent 16rem),
    linear-gradient(120deg, var(--laith-navy-950), var(--laith-navy-900) 58%, var(--laith-navy-800)) !important;
  border: 1px solid rgba(241, 196, 15, 0.20) !important;
  box-shadow: 0 22px 50px rgba(7, 22, 37, 0.18) !important;
}

body.laith-hub #servicesHero::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--laith-gold);
}

body.laith-hub #servicesHero h2 {
  color: #ffffff !important;
}

body.laith-hub #servicesHero p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 500 !important;
}

body.laith-hub #servicesHero [class*="bg-amber"],
body.laith-hub #servicesHero [class*="bg-indigo"] {
  background: rgba(241, 196, 15, 0.18) !important;
  border-color: rgba(241, 196, 15, 0.45) !important;
  color: var(--laith-gold) !important;
  font-weight: 700 !important;
}

body.laith-hub #servicesHero .bg-indigo-600,
body.laith-hub #servicesHero [class~="bg-indigo-600"] {
  background: var(--laith-gold) !important;
  color: var(--laith-navy-950) !important;
  box-shadow: 0 10px 24px rgba(241, 196, 15, 0.23) !important;
}

body.laith-hub #servicesHero .bg-indigo-600:hover,
body.laith-hub #servicesHero [class~="bg-indigo-600"]:hover {
  background: var(--laith-gold-hover) !important;
  transform: translateY(-1px);
}

.glass-card,
.glass-panel {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid var(--laith-border) !important;
  box-shadow: var(--laith-shadow) !important;
  backdrop-filter: blur(14px);
}

.glass-card {
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--laith-gold), var(--laith-blue-600));
  opacity: .9;
}

.glass-card:hover {
  background: #fff !important;
  border-color: rgba(36, 114, 170, 0.30) !important;
  transform: translateY(-5px) !important;
  box-shadow: var(--laith-shadow-hover) !important;
}

.glass-card .text-white {
  color: var(--laith-navy-900) !important;
}

.glass-card [class~="text-gray-400"] {
  color: var(--laith-muted) !important;
}

body.laith-hub #toolsGrid [class~="bg-white"][class~="text-white"] {
  color: var(--laith-gold) !important;
}

body.laith-hub #toolsGrid [class~="bg-white"][class~="text-white"] i {
  color: var(--laith-gold) !important;
}

.glass-card [class~="border-gray-200/80"] {
  border-color: var(--laith-border) !important;
}

.glass-card [class~="bg-gray-200"] {
  background: #eef2f6 !important;
}

.glass-card [class~="text-gray-600"] {
  color: #4d5c6d !important;
}

.glass-card h3:hover,
.glass-card .group-hover\:text-indigo-400:hover {
  color: var(--laith-blue-700) !important;
}

.glass-card [class*="bg-gradient-to-br"]>div {
  background: var(--laith-navy-900) !important;
  color: var(--laith-gold) !important;
}

.glass-card [class*="bg-gradient-to-br"] {
  background: linear-gradient(145deg, var(--laith-gold), var(--laith-blue-600)) !important;
  box-shadow: 0 8px 22px rgba(11, 31, 51, 0.15) !important;
}

body.laith-hub [class~="bg-indigo-600"] {
  background: var(--laith-navy-900) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(11, 31, 51, 0.16) !important;
}

body.laith-hub [class~="bg-indigo-600"]:hover {
  background: var(--laith-blue-700) !important;
}

body.laith-hub #categoryPills button[class*="bg-indigo"] {
  background: var(--laith-navy-900) !important;
  color: #fff !important;
}

body.laith-hub #categoryPills button:not([class*="bg-indigo"]) {
  background: #fff !important;
  color: #596879 !important;
  border-color: var(--laith-border) !important;
}

body.laith-hub #workspaceBar {
  background: #fff !important;
  border-color: var(--laith-border) !important;
  box-shadow: 0 6px 18px rgba(7, 22, 37, 0.06);
}

body.laith-hub #visibleAppCount {
  color: var(--laith-navy-900) !important;
}

body.laith-hub button:disabled {
  opacity: .62;
  cursor: wait;
  transform: none !important;
}

body.laith-hub #adminPanel table th {
  background: var(--laith-navy-900) !important;
  color: #fff !important;
  padding: .55rem .5rem;
  text-align: left;
}

body.laith-hub #adminPanel table td {
  border-bottom: 1px solid var(--laith-border);
  color: var(--laith-ink);
}

body.laith-hub #adminPanel input,
body.laith-hub #adminPanel select,
body.laith-hub #loginView input {
  color: var(--laith-ink) !important;
}

body.laith-hub #addToolModal>div {
  background: #f6f8fb !important;
  border-color: var(--laith-border) !important;
}

body.laith-hub #addToolModal h3,
body.laith-hub #addToolModal label {
  color: var(--laith-navy-900) !important;
}

body.laith-hub #addToolModal input,
body.laith-hub #addToolModal select,
body.laith-hub #addToolModal textarea {
  background: #fff !important;
  color: var(--laith-ink) !important;
  border-color: var(--laith-border-strong) !important;
}

body.laith-hub #addToolModal input::placeholder,
body.laith-hub #addToolModal textarea::placeholder {
  color: #97a3b2 !important;
}

/* --------------------------------------------------------------------------
   Tool pages — panels, controls, tables, and buttons
   -------------------------------------------------------------------------- */
body.laith-tool main {
  color: var(--laith-ink);
}

body.laith-tool aside {
  background: #fff !important;
  border-color: var(--laith-border) !important;
  box-shadow: 7px 0 24px rgba(7, 22, 37, 0.055) !important;
}

body.laith-tool footer {
  background: #fff !important;
  border-color: var(--laith-border) !important;
  color: var(--laith-muted) !important;
}

body.laith-tool [class~="bg-gray-100/70"],
body.laith-tool [class~="bg-gray-100/60"],
body.laith-tool [class~="bg-gray-100/30"],
body.laith-tool [class~="bg-gray-100/20"],
body.laith-tool [class~="bg-gray-800"],
body.laith-tool [class~="bg-gray-800/50"],
body.laith-tool [class~="bg-gray-800/20"],
body.laith-tool [class~="bg-gray-900"] {
  background: #fff !important;
  color: var(--laith-ink) !important;
  border-color: var(--laith-border) !important;
}

body.laith-tool [class~="bg-gray-200"],
body.laith-tool [class~="bg-gray-700"] {
  background: #eef2f6 !important;
  color: var(--laith-ink) !important;
  border-color: var(--laith-border) !important;
}

body.laith-tool [class~="bg-gray-950"] {
  background: var(--laith-page) !important;
  color: var(--laith-ink) !important;
}

body.laith-tool [class~="border-gray-700"],
body.laith-tool [class~="border-slate-600"],
body.laith-tool [class~="border-gray-300"],
body.laith-tool [class~="border-gray-200"] {
  border-color: var(--laith-border) !important;
}

body.laith-tool [class~="text-gray-100"],
body.laith-tool [class~="text-gray-300"],
body.laith-tool [class~="text-gray-900"] {
  color: var(--laith-ink) !important;
}

body.laith-tool [class~="text-gray-400"],
body.laith-tool [class~="text-gray-500"],
body.laith-tool [class~="text-gray-600"],
body.laith-tool [class~="text-slate-500"] {
  color: var(--laith-muted) !important;
}

/* Cards and bordered content areas get a restrained laith.vip treatment. */
body.laith-tool [class*="rounded-2xl"][class*="border"],
body.laith-tool [class*="rounded-xl"][class*="border"],
body.laith-tool .panel-header,
body.laith-tool .boq-panel {
  border-color: var(--laith-border) !important;
}

body.laith-tool [class*="shadow-xl"][class*="border"],
body.laith-tool [class*="shadow-lg"][class*="border"] {
  box-shadow: var(--laith-shadow) !important;
}

body.laith-tool h2[class*="uppercase"],
body.laith-tool h3[class*="uppercase"],
body.laith-tool .panel-header {
  color: var(--laith-navy-900) !important;
  letter-spacing: .07em;
}

body.laith-tool h2[class*="uppercase"]::before,
body.laith-tool h3[class*="uppercase"]::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-right: .45rem;
  border-radius: 99px;
  background: var(--laith-gold);
  vertical-align: -.1em;
}

/* High contrast button and text fixes */
.text-white,
body.laith-tool .text-white,
body.laith-tool button.text-white,
body.laith-tool a.text-white,
body.laith-tool .btn-primary,
body.laith-tool [class~="bg-indigo-600"],
body.laith-tool [class~="bg-blue-600"],
body.laith-tool [class~="bg-purple-600"],
body.laith-tool [class~="bg-slate-900"] {
  color: #ffffff !important;
}

body.laith-tool [class~="bg-white"][class~="text-white"]:not(button):not(a),
body.laith-tool [class~="bg-gray-50"][class~="text-white"]:not(button):not(a),
body.laith-tool [class~="bg-gray-100"][class~="text-white"]:not(button):not(a),
body.laith-tool [class~="bg-gray-200"][class~="text-white"]:not(button):not(a) {
  color: var(--laith-navy-900) !important;
}

body.laith-tool [class*="rounded-2xl"][class*="border"] [class~="text-gray-400"],
body.laith-tool [class*="rounded-xl"][class*="border"] [class~="text-gray-400"] {
  color: #475569 !important;
}

body.laith-tool>nav [class~="text-white"],
body.laith-tool>header [class~="text-white"],
body.laith-tool #root>div>header [class~="text-white"] {
  color: #fff !important;
}

body.laith-tool>nav [class~="bg-white"][class~="text-white"],
body.laith-tool>header [class~="bg-white"][class~="text-white"],
body.laith-tool #root>div>header [class~="bg-white"][class~="text-white"] {
  color: var(--laith-navy-950) !important;
}

body.laith-tool [class*="rounded-2xl"][class*="border"] h2,
body.laith-tool [class*="rounded-xl"][class*="border"] h2,
body.laith-tool [class*="rounded-2xl"][class*="border"] h3,
body.laith-tool [class*="rounded-xl"][class*="border"] h3 {
  color: var(--laith-navy-900) !important;
}

body.laith-tool [class*="rounded-2xl"][class*="border"] .text-emerald-400,
body.laith-tool [class*="rounded-xl"][class*="border"] .text-emerald-400 {
  color: #059669 !important;
}

body.laith-tool input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
body.laith-tool select,
body.laith-tool textarea,
body.laith-tool .inp,
body.laith-tool .input-field {
  background: #fff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  box-shadow: 0 1px 2px rgba(7, 22, 37, 0.025) !important;
}

body.laith-tool input:not([type="range"]):focus,
body.laith-tool select:focus,
body.laith-tool textarea:focus,
body.laith-tool .inp:focus {
  border-color: var(--laith-blue-600) !important;
  box-shadow: 0 0 0 3px rgba(36, 114, 170, 0.13) !important;
  outline: none !important;
}

body.laith-tool label,
body.laith-tool .lbl {
  color: #334155 !important;
  font-weight: 700 !important;
}

body.laith-tool .btn,
body.laith-tool button {
  border-radius: 9px;
}

body.laith-tool .btn-primary,
body.laith-tool [class~="bg-indigo-600"],
body.laith-tool [class~="bg-blue-600"],
body.laith-tool [class~="bg-purple-600"] {
  background: var(--laith-navy-900) !important;
  border-color: var(--laith-navy-900) !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(11, 31, 51, 0.13);
}

body.laith-tool .btn-primary:hover,
body.laith-tool [class~="bg-indigo-600"]:hover,
body.laith-tool [class~="bg-blue-600"]:hover,
body.laith-tool [class~="bg-purple-600"]:hover {
  background: var(--laith-blue-700) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

body.laith-tool [class~="bg-gray-200"] {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  font-weight: 700 !important;
}

body.laith-tool [class~="bg-gray-200"]:hover {
  background: #e2e8f0 !important;
  color: #0284c7 !important;
}

body.laith-tool [class~="bg-indigo-600/20"],
body.laith-tool [class~="bg-blue-500/10"],
body.laith-tool [class~="bg-blue-600/20"],
body.laith-tool [class~="bg-purple-500/10"] {
  background: var(--laith-gold-soft) !important;
  color: var(--laith-navy-900) !important;
  border-color: rgba(241, 196, 15, 0.45) !important;
}

body.laith-tool [class~="text-blue-300"],
body.laith-tool [class~="text-blue-400"],
body.laith-tool [class~="text-blue-500"] {
  color: var(--laith-blue-700) !important;
}

/* Keep status colors semantically meaningful while polishing their containers. */
body.laith-tool .status-pass {
  background: #eaf8ef !important;
  color: #13713b !important;
  border-color: #b8e2c7 !important;
}

body.laith-tool .status-warn {
  background: #fff8df !important;
  color: #8a6600 !important;
  border-color: #eed989 !important;
}

body.laith-tool .status-fail {
  background: #fff0f0 !important;
  color: #a42b2b !important;
  border-color: #efbebe !important;
}

body.laith-tool table {
  border-color: var(--laith-border) !important;
}

body.laith-tool thead,
body.laith-tool thead [class*="bg-"] {
  background: var(--laith-navy-900) !important;
  color: #fff !important;
}

body.laith-tool thead th {
  color: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.laith-tool tbody tr {
  background: #fff !important;
  border-color: var(--laith-border) !important;
}

body.laith-tool tbody tr:nth-child(even) {
  background: #f8fafc !important;
}

body.laith-tool tbody tr:hover {
  background: #eef5fa !important;
}

/* React hydraulic app: retain the dark engineering canvas, but brand its UI. */
body[data-page="hydraulic-network-solver"] #root>div>div:first-of-type {
  background: linear-gradient(145deg, #081725, #0c2235) !important;
}

body[data-page="hydraulic-network-solver"] #root>div>div:first-of-type svg {
  background: transparent;
}

body[data-page="hydraulic-network-solver"] #root>div>div:last-child {
  background: #fff !important;
  color: var(--laith-ink) !important;
  border-color: var(--laith-border) !important;
}

body[data-page="hydraulic-network-solver"] #root>div>div:first-of-type .text-white {
  color: #fff !important;
}

body[data-page="hydraulic-network-solver"] #root>div>div:first-of-type [class~="bg-gray-800"] {
  background: rgba(7, 22, 37, 0.92) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.13) !important;
}

body[data-page="hydraulic-network-solver"] #root>div>div:first-of-type [class~="text-gray-400"] {
  color: rgba(255, 255, 255, .68) !important;
}

body[data-page="hydraulic-network-solver"] #root>div>div:first-of-type [class~="bg-blue-600"] {
  background: var(--laith-gold) !important;
  color: var(--laith-navy-950) !important;
}

/* Structural FEM viewport stays clean and technical. */
body[data-page="structural-analysis-webapp"] #root>div>div:last-child {
  background: #edf2f6 !important;
}

/* Modal surfaces */
body.laith-tool [class*="bg-black/"],
body.laith-tool .modal-backdrop,
body.laith-tool .modal-overlay {
  backdrop-filter: blur(5px);
}

body.laith-tool [role="dialog"],
body.laith-tool .modal-content {
  border-radius: var(--laith-radius);
}

@media (max-width: 767px) {
  body.laith-hub>header {
    height: auto !important;
    min-height: 64px;
    padding-top: .65rem;
    padding-bottom: .65rem;
    gap: .75rem;
  }

  body.laith-hub>header h1 {
    font-size: .92rem !important;
  }

  body.laith-hub #hubView {
    padding: 1rem !important;
  }

  body.laith-hub #hubView>section:first-child {
    padding: 1.4rem !important;
  }

  body.laith-tool>nav {
    min-height: 64px;
  }

  .glass-card {
    border-radius: 14px !important;
  }
}

/* --------------------------------------------------------------------------
   Accessible High-Contrast Alert Banners & Notification Toasts
   -------------------------------------------------------------------------- */
#accessAlertBanner {
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

#accessAlertBanner.bg-amber-50,
#accessAlertBanner[class*="bg-amber"] {
  background-color: #fffbeb !important;
  border: 1px solid #fcd34d !important;
  color: #78350f !important;
}

#accessAlertBanner.bg-amber-50 #accessAlertText,
#accessAlertBanner[class*="bg-amber"] #accessAlertText {
  color: #78350f !important;
  font-weight: 700 !important;
}

#accessAlertBanner.bg-emerald-50,
#accessAlertBanner[class*="bg-emerald"] {
  background-color: #ecfdf5 !important;
  border: 1px solid #6ee7b7 !important;
  color: #064e3b !important;
}

#accessAlertBanner.bg-emerald-50 #accessAlertText,
#accessAlertBanner[class*="bg-emerald"] #accessAlertText {
  color: #064e3b !important;
  font-weight: 700 !important;
}

#accessAlertBanner.bg-rose-50,
#accessAlertBanner[class*="bg-rose"] {
  background-color: #fff1f2 !important;
  border: 1px solid #fda4af !important;
  color: #881337 !important;
}

#accessAlertBanner.bg-rose-50 #accessAlertText,
#accessAlertBanner[class*="bg-rose"] #accessAlertText {
  color: #881337 !important;
  font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   Top-Most Dropdown Menus & Popups (Main Suite Portal & Sub-Applications)
   Applied strictly when dropdowns are OPEN / VISIBLE (:not(.hidden), :not([style*="display: none"]))
   -------------------------------------------------------------------------- */
.laith-launcher-menu:not([style*="display: none"]):not([style*="display:none"]),
.laith-actions-menu-dropdown:not([style*="display: none"]):not([style*="display:none"]),
#userDropdownMenu:not(.hidden),
.laith-user-dropdown-menu:not(.hidden),
#exampleDropdown:not(.hidden),
.dropdown-menu:not(.hidden):not([style*="display: none"]),
[data-dropdown-menu]:not(.hidden):not([style*="display: none"]) {
  z-index: 99999 !important;
  box-shadow: 0 20px 45px -10px rgba(7, 22, 37, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
}

/* Explicitly reset z-index when closed / hidden */
#userDropdownMenu.hidden,
.laith-user-dropdown-menu.hidden,
#exampleDropdown.hidden,
.dropdown-menu.hidden,
[data-dropdown-menu].hidden {
  z-index: auto !important;
}

#laithPlanAccessOverlay,
.modal-overlay,
.modal-backdrop,
[role="dialog"] {
  z-index: 100000 !important;
}

@media (max-width: 900px) {

  #userDropdownMenu:not(.hidden),
  .laith-user-dropdown-menu:not(.hidden) {
    position: fixed !important;
    top: 68px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    max-height: calc(100vh - 84px) !important;
    z-index: 99999 !important;
    box-shadow: 0 25px 60px -10px rgba(2, 11, 20, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.15) !important;
  }
}