/* TABLINK_SYSTEM_THEME_V1_20261021 */
.tablink-theme-toggle {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(19,20,22,.94);
  color: #f8fafc;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tablink-theme-toggle:hover { transform: translateY(-1px); }
.tablink-theme-toggle:focus-visible { outline: 3px solid rgba(43,122,255,.35); outline-offset: 3px; }
.tablink-theme-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tablink-theme-toggle__sun { display: block; }
.tablink-theme-toggle__moon { display: none; }
body[data-theme-style="light"] .tablink-theme-toggle {
  background: rgba(255,255,255,.96);
  color: #202938;
  border-color: #d9e0ea;
  box-shadow: 0 8px 24px rgba(34,51,84,.14);
}
body[data-theme-style="light"] .tablink-theme-toggle__sun { display: none; }
body[data-theme-style="light"] .tablink-theme-toggle__moon { display: block; }
@media (prefers-reduced-motion: reduce) { .tablink-theme-toggle { transition: none; } }

/* Base system light palette. BioLink wrapper does not load this stylesheet. */
body[data-theme-style="light"] {
  color-scheme: light;
  background: #f6f8fb !important;
  color: #172033 !important;
}
body[data-theme-style="light"] main { color: #172033; }
body[data-theme-style="light"] .text-muted { color: #667085 !important; }
body[data-theme-style="light"] a:not(.btn):not(.dropdown-item) { color: #245fcb; }
body[data-theme-style="light"] hr { border-color: #e2e7ef; }

/* Navigation / menus */
body[data-theme-style="light"] .navbar-main,
body[data-theme-style="light"] .navbar-custom,
body[data-theme-style="light"] .nav_mob {
  background: rgba(255,255,255,.96) !important;
  border-color: #e2e7ef !important;
  box-shadow: 0 6px 20px rgba(29,44,76,.08);
}
body[data-theme-style="light"] .navbar-main .navbar-nav .nav-link,
body[data-theme-style="light"] .navbar-main .navbar-nav .nav-link * { color: #344054 !important; }
body[data-theme-style="light"] .navbar-main .navbar-nav .nav-link:hover,
body[data-theme-style="light"] .navbar-main .navbar-nav .nav-link:focus { color: #245fcb !important; }
body[data-theme-style="light"] .navbar-toggler,
body[data-theme-style="light"] .navbar-custom-toggler { color: #344054 !important; border-color: #cfd7e3 !important; }
body[data-theme-style="light"] .dropdown-menu { background: #fff !important; border-color: #dfe5ee !important; box-shadow: 0 12px 30px rgba(29,44,76,.12); }
body[data-theme-style="light"] .dropdown-item { color: #344054 !important; }
body[data-theme-style="light"] .dropdown-item:hover,
body[data-theme-style="light"] .dropdown-item:focus { background: #f1f5fb !important; color: #1f5dc5 !important; }

/* Cards / system surfaces */
body[data-theme-style="light"] .card,
body[data-theme-style="light"] .modal-content,
body[data-theme-style="light"] .list-group-item,
body[data-theme-style="light"] .account-header-navbar {
  background: #fff !important;
  color: #172033 !important;
  border-color: #e1e7ef !important;
}
body[data-theme-style="light"] .card { box-shadow: 0 10px 28px rgba(29,44,76,.08); }
body[data-theme-style="light"] .card-title,
body[data-theme-style="light"] .card h1,
body[data-theme-style="light"] .card h2,
body[data-theme-style="light"] .card h3,
body[data-theme-style="light"] .card h4,
body[data-theme-style="light"] .card h5,
body[data-theme-style="light"] .card h6,
body[data-theme-style="light"] .modal-title { color: #172033 !important; }
body[data-theme-style="light"] .card p,
body[data-theme-style="light"] .card label,
body[data-theme-style="light"] .card small:not(.badge *),
body[data-theme-style="light"] .modal-content p,
body[data-theme-style="light"] .modal-content label { color: #475467; }
body[data-theme-style="light"] .card .text-muted,
body[data-theme-style="light"] .modal-content .text-muted { color: #667085 !important; }
body[data-theme-style="light"] .card .btn-primary,
body[data-theme-style="light"] .card .btn-primary *,
body[data-theme-style="light"] .btn-primary,
body[data-theme-style="light"] .btn-primary * { color: #fff !important; }

/* Forms */
body[data-theme-style="light"] .form-control,
body[data-theme-style="light"] .custom-select,
body[data-theme-style="light"] .input-group-text,
body[data-theme-style="light"] .select2-container .select2-selection {
  background: #fff !important;
  color: #172033 !important;
  border-color: #cfd7e3 !important;
}
body[data-theme-style="light"] .form-control::placeholder { color: #98a2b3 !important; opacity: 1; }
body[data-theme-style="light"] .form-control:focus,
body[data-theme-style="light"] .custom-select:focus { border-color: #2b7aff !important; box-shadow: 0 0 0 .16rem rgba(43,122,255,.15) !important; }
body[data-theme-style="light"] .btn-light {
  background: #f7f9fc !important;
  color: #253044 !important;
  border-color: #d5dce7 !important;
}
body[data-theme-style="light"] .btn-light:hover { background: #edf2f8 !important; color: #172033 !important; }

/* Auth */
body[data-theme-style="light"].auth-page,
body[data-theme-style="light"] .auth-page { background: #f6f8fb !important; }
body[data-theme-style="light"] .auth-page .card { border-color: #dde4ee !important; box-shadow: 0 16px 44px rgba(29,44,76,.11) !important; }
body[data-theme-style="light"] .auth-page .card-title { color: #172033 !important; }
body[data-theme-style="light"] .auth-page .form-control { background: #fff !important; color: #172033 !important; border-color: #cfd7e3 !important; }
body[data-theme-style="light"] .auth-page .btn-light { background: #f7f9fc !important; color: #253044 !important; border-color: #d5dce7 !important; }
body[data-theme-style="light"] .auth-page .form-check-label,
body[data-theme-style="light"] .auth-page .form-check-label small { color: #667085 !important; }
body[data-theme-style="light"] .auth-page .form-check-label a,
body[data-theme-style="light"] .auth-page a.text-muted,
body[data-theme-style="light"] .auth-page .text-muted a { color: #245fcb !important; }

/* Tables / dashboard */
body[data-theme-style="light"] .table,
body[data-theme-style="light"] .table td,
body[data-theme-style="light"] .table th { color: #344054; border-color: #e2e7ef; }
body[data-theme-style="light"] .table thead th,
body[data-theme-style="light"] .table-custom thead th { background: #f3f6fa !important; color: #344054 !important; }
body[data-theme-style="light"] .table-hover tbody tr:hover { background: #f6f9fd; }
body[data-theme-style="light"] .progress-container { background: #edf1f6 !important; }
body[data-theme-style="light"] .custom-breadcrumbs > li > a,
body[data-theme-style="light"] .custom-breadcrumbs > li > svg { color: #667085 !important; }

/* Landing: preserve brand accent but make the page genuinely light. */
body[data-theme-style="light"] .b-head {
  color: #172033 !important;
  background: linear-gradient(135deg, #eef4ff 0%, #ffffff 58%, #f5efff 100%) !important;
}
body[data-theme-style="light"] .navbar-index { background: rgba(255,255,255,.9) !important; border-bottom: 1px solid rgba(33,54,91,.08) !important; }
body[data-theme-style="light"] .transparent-text,
body[data-theme-style="light"] .tr67 {
  background-color: #edf3ff !important;
  background-image: linear-gradient(to right, transparent 0%, rgba(43,122,255,.12) 50%, transparent 100%) !important;
  color: #172033 !important;
}
body[data-theme-style="light"] .b-title span:first-child { color: #253044 !important; }
body[data-theme-style="light"] .b-head .col-lg-8 > p span[style] { color: #245fcb !important; }
body[data-theme-style="light"] .b-head .col-lg-8 > p {
  background: rgba(255,255,255,.86) !important;
  color: #475467 !important;
  border: 1px solid rgba(43,122,255,.12);
  box-shadow: 0 10px 30px rgba(40,76,130,.08);
}
body[data-theme-style="light"] .twl-h-100 { background: #f6f8fb !important; color: #172033 !important; }
body[data-theme-style="light"] .twl-header h2,
body[data-theme-style="light"] .twl-header p { color: #344054 !important; text-shadow: none !important; }
body[data-theme-style="light"] .twl-wow-block {
  background: rgba(255,255,255,.9) !important;
  background-image: linear-gradient(135deg, rgba(255,255,255,.98), rgba(240,245,255,.96)) !important;
  box-shadow: 0 16px 40px rgba(29,44,76,.1) !important;
}
body[data-theme-style="light"] .twl-card,
body[data-theme-style="light"] .twl-card:hover {
  background: #fff !important;
  color: #344054 !important;
  border-color: #e3e8f0 !important;
  box-shadow: 0 8px 22px rgba(29,44,76,.09) !important;
}
body[data-theme-style="light"] .twl-card h3,
body[data-theme-style="light"] .twl-card:hover h3 { color: #253044 !important; text-shadow: none !important; }
body[data-theme-style="light"] .twl-card p,
body[data-theme-style="light"] .twl-card:hover p { color: #667085 !important; }
body[data-theme-style="light"] .slider .slide { background: #fff !important; }
body[data-theme-style="light"] .slider::before,
body[data-theme-style="light"] .slider::after { background: linear-gradient(to right, #f6f8fb 0%, rgba(246,248,251,0) 100%) !important; }
body[data-theme-style="light"] .bg-base-1 { background-color: #f6f8fb !important; color: #172033 !important; }
body[data-theme-style="light"] .card1 { background-color: #fff !important; color: #344054 !important; border: 1px solid #e3e8f0 !important; }
body[data-theme-style="light"] #register .pricing,
body[data-theme-style="light"] #register .pricing-plan,
body[data-theme-style="light"] #register .pricing-header,
body[data-theme-style="light"] #register .shadow-lg { background: #fff !important; color: #172033 !important; border-color: #dfe5ee !important; }
body[data-theme-style="light"] #register .pricing-price,
body[data-theme-style="light"] #register .pricing-price-amount,
body[data-theme-style="light"] #register li { color: #344054 !important; }
body[data-theme-style="light"] .footer {
  background: #eef2f7 !important;
  color: #667085 !important;
  border-top: 1px solid #dfe5ee;
}
body[data-theme-style="light"] .footer a:not(.dropdown-item),
body[data-theme-style="light"] .footer a:hover:not(.dropdown-item),
body[data-theme-style="light"] .footer a.icon { color: #475467 !important; }

/* Header placement: no floating theme control. */
.tablink-theme-toggle-slot { display: flex; align-items: center; justify-content: center; }
.navbar-main .tablink-theme-toggle {
  flex: 0 0 auto;
  box-shadow: none;
}
.tablink-auth-header { min-height: 48px; }
.tablink-auth-header .tablink-theme-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.tablink-auth-header .tablink-theme-toggle:hover { transform: translateY(-50%); }

/* Legacy landing contrast fixes for the light theme. */
body[data-theme-style="light"] main .text-center > .fz-36,
body[data-theme-style="light"] main .text-center .fz-24.fz-222 {
  color: #253044 !important;
  text-shadow: none !important;
}
body[data-theme-style="light"] main .text-center .fz-24.fz-222 { color: #667085 !important; }
body[data-theme-style="light"] .closing-button {
  background: #2b7aff !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(43,122,255,.22), 0 0 0 2px #2b7aff !important;
}
body[data-theme-style="light"] .closing-button span,
body[data-theme-style="light"] .closing-button:hover span { color: #fff !important; }
body[data-theme-style="light"] .closing-button:before { background: #1f67dd !important; }
body[data-theme-style="light"] .closing-button:after { background: #2b7aff !important; }
body[data-theme-style="light"] .custom-carousel-wrapper {
  background: linear-gradient(180deg, #eef3f9 0%, #f8fafc 100%) !important;
  box-shadow: 0 18px 42px rgba(29,44,76,.09) !important;
}
body[data-theme-style="light"] .custom-carousel-wrapper .slide {
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(29,44,76,.12) !important;
}
body[data-theme-style="light"] .custom-carousel-wrapper .slide.active {
  border-color: #2b7aff !important;
  box-shadow: 0 0 0 3px rgba(43,122,255,.12), 0 16px 36px rgba(29,44,76,.16) !important;
}
body[data-theme-style="light"] .custom-carousel-wrapper .caption { color: #475467 !important; }
body[data-theme-style="light"] .custom-carousel-wrapper .nav {
  background: rgba(43,122,255,.14) !important;
  color: #245fcb !important;
}
body[data-theme-style="light"] #register .pricing-name {
  background: #e8f1ff !important;
  color: #245fcb !important;
}
body[data-theme-style="light"] #register .btn-group-toggle .btn {
  background: #fff !important;
  color: #667085 !important;
  border-color: #cfd7e3 !important;
  box-shadow: none !important;
}
body[data-theme-style="light"] #register .btn-group-toggle .btn.active {
  background: #e8f1ff !important;
  color: #1f5dc5 !important;
  border-color: #2b7aff !important;
}
body[data-theme-style="light"] #register .pricing-header {
  box-shadow: 0 14px 34px rgba(29,44,76,.10) !important;
}
body[data-theme-style="light"] #register .pricing-price-currency,
body[data-theme-style="light"] #register .pricing-details,
body[data-theme-style="light"] #register .pricing-details span { color: #667085 !important; }

@media (max-width: 575.98px) {
  .tablink-theme-toggle { width: 38px; height: 38px; }
  .tablink-auth-header .tablink-theme-toggle { right: 4px; }
}

/* Cabinet light completion: dashboard, projects, site list and editor system chrome. */
body[data-theme-style="light"] .header {
  background: linear-gradient(180deg, #eef3f9 0%, #f5f7fb 100%) !important;
  color: #172033 !important;
  border: 1px solid #dfe5ee !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: inset 0 -1px 0 rgba(29,44,76,.04) !important;
}
body[data-theme-style="light"] .header h1,
body[data-theme-style="light"] .header h2,
body[data-theme-style="light"] .header h3,
body[data-theme-style="light"] .header h4,
body[data-theme-style="light"] .header .h1,
body[data-theme-style="light"] .header .h2,
body[data-theme-style="light"] .header .h3,
body[data-theme-style="light"] .header .h4 { color: #172033 !important; }
body[data-theme-style="light"] .header .text-muted,
body[data-theme-style="light"] .header small { color: #667085 !important; }
body[data-theme-style="light"] .header a:not(.btn):not(.dropdown-item) { color: #245fcb !important; }
body[data-theme-style="light"] .header .btn-outline-light {
  background: #fff !important;
  color: #344054 !important;
  border-color: #cfd7e3 !important;
  box-shadow: 0 3px 10px rgba(29,44,76,.05) !important;
}
body[data-theme-style="light"] .header .btn-outline-light:hover,
body[data-theme-style="light"] .header .btn-outline-light:focus {
  background: #e8f1ff !important;
  color: #1f5dc5 !important;
  border-color: #2b7aff !important;
}
body[data-theme-style="light"] .header .dropdown-toggle,
body[data-theme-style="light"] .header .btn-link { color: #667085 !important; }

body[data-theme-style="light"] .custom-row {
  background: #fff !important;
  color: #344054 !important;
  border-color: #dfe5ee !important;
  box-shadow: 0 8px 24px rgba(29,44,76,.07) !important;
}
body[data-theme-style="light"] .custom-row-inactive {
  background: #f3f6fa !important;
  color: #475467 !important;
  border-color: #dfe5ee !important;
}
body[data-theme-style="light"] .custom-row .text-muted,
body[data-theme-style="light"] .custom-row-inactive .text-muted,
body[data-theme-style="light"] .custom-row small { color: #667085 !important; }
body[data-theme-style="light"] .custom-row a:not(.btn):not(.dropdown-item),
body[data-theme-style="light"] .custom-row-inactive a:not(.btn):not(.dropdown-item) { color: #245fcb !important; }
body[data-theme-style="light"] .custom-row .btn-link,
body[data-theme-style="light"] .custom-row .dropdown-toggle,
body[data-theme-style="light"] .custom-row-side-controller,
body[data-theme-style="light"] .custom-row-side-controller-grab { color: #667085 !important; }
body[data-theme-style="light"] .custom-row:hover { border-color: #cbd6e5 !important; }

body[data-theme-style="light"] .table-custom-container {
  background: #fff !important;
  border-color: #dfe5ee !important;
}
body[data-theme-style="light"] .nav-custom .nav-link { color: #667085 !important; }
body[data-theme-style="light"] .nav-custom .nav-link.active,
body[data-theme-style="light"] .nav-custom .nav-link:hover { color: #1f5dc5 !important; border-color: #2b7aff !important; }

/* Keep the phone/BioLink preview itself theme-independent: it represents user content. */
body[data-theme-style="light"] .w36475 {
  background: #f7f9fc !important;
  border-color: #bfd0e5 !important;
  box-shadow: 0 8px 22px rgba(29,44,76,.06) !important;
}
body[data-theme-style="light"] .header .btn-outline-secondary {
  background: #fff !important;
  color: #344054 !important;
  border-color: #bfc9d8 !important;
  box-shadow: 0 3px 10px rgba(29,44,76,.05) !important;
}
body[data-theme-style="light"] .header .btn-outline-secondary:hover,
body[data-theme-style="light"] .header .btn-outline-secondary:focus {
  background: #e8f1ff !important;
  color: #1f5dc5 !important;
  border-color: #2b7aff !important;
}
body[data-theme-style="light"] .header #link_full_url_copy,
body[data-theme-style="light"] .header #link_full_url_copy i {
  color: #475467 !important;
}
body[data-theme-style="light"] .header #link_full_url_copy:hover,
body[data-theme-style="light"] .header #link_full_url_copy:focus,
body[data-theme-style="light"] .header #link_full_url_copy:hover i,
body[data-theme-style="light"] .header #link_full_url_copy:focus i { color: #1f5dc5 !important; }


/* Light theme Wave 2: legacy tables, account actions and editor controls. */
body[data-theme-style="light"] .table-custom {
  background:#fff !important;
  color:#344054 !important;
}
body[data-theme-style="light"] .table-custom thead th {
  background:#eef3f9 !important;
  color:#344054 !important;
  border-color:#d9e1ec !important;
}
body[data-theme-style="light"] .table-custom tbody td {
  background:#fff !important;
  color:#344054 !important;
  border-color:#dfe5ee !important;
}
body[data-theme-style="light"] .table-custom tbody tr:hover td { background:#f7f9fc !important; }
body[data-theme-style="light"] .table-custom .text-muted,
body[data-theme-style="light"] .table-custom small { color:#667085 !important; }
body[data-theme-style="light"] .table-custom a:not(.btn) { color:#245fcb !important; }
body[data-theme-style="light"] .table-custom .badge-secondary,
body[data-theme-style="light"] .table-custom .badge-info { background:#e8eef6 !important; color:#344054 !important; }
body[data-theme-style="light"] a[href*="/account/delete"] {
  background:#fff1f1 !important;
  color:#b42318 !important;
  border-color:#efb4b0 !important;
  box-shadow:none !important;
}
body[data-theme-style="light"] a[href*="/account/delete"]:hover,
body[data-theme-style="light"] a[href*="/account/delete"]:focus { background:#fee4e2 !important; color:#912018 !important; border-color:#e98680 !important; }
body[data-theme-style="light"] .nav-pills .nav-link {
  color:#245fcb !important;
  background:transparent !important;
  border:1px solid transparent !important;
}
body[data-theme-style="light"] .nav-pills .nav-link:hover { background:#eef4ff !important; color:#1f5dc5 !important; }
body[data-theme-style="light"] .nav-pills .nav-link.active,
body[data-theme-style="light"] .nav-pills .show > .nav-link {
  background:#2b7aff !important;
  color:#fff !important;
  border-color:#2b7aff !important;
}
body[data-theme-style="light"] .tab-content button.btn.btn-block[data-toggle="collapse"],
body[data-theme-style="light"] .tab-content .btn-gray-300[data-toggle="collapse"] {
  background:#eef3f9 !important;
  color:#344054 !important;
  border:1px solid #cfd7e3 !important;
  box-shadow:none !important;
}
body[data-theme-style="light"] .tab-content button.btn.btn-block[data-toggle="collapse"]:hover,
body[data-theme-style="light"] .tab-content .btn-gray-300[data-toggle="collapse"]:hover { background:#e8f1ff !important; color:#1f5dc5 !important; border-color:#9bbcf2 !important; }
body[data-theme-style="light"] .tab-content button.btn.btn-block[data-toggle="collapse"][aria-expanded="true"],
body[data-theme-style="light"] .tab-content .btn-gray-300[data-toggle="collapse"][aria-expanded="true"] { background:#dfeaff !important; color:#174ea6 !important; border-color:#7ba7ed !important; }
body[data-theme-style="light"] .custom-switch .custom-control-label::before { background:#dfe5ee !important; border-color:#b8c3d1 !important; }
body[data-theme-style="light"] .custom-switch .custom-control-input:checked ~ .custom-control-label::before { background:#2b7aff !important; border-color:#2b7aff !important; }
body[data-theme-style="light"] .custom-switch .custom-control-label::after { background:#fff !important; }

/* Light theme refinement: subscription renewal promo-code panel. */
body[data-theme-style="light"] #tariff #register .pricing-body {
  background: #f8fafc !important;
  color: #344054 !important;
  border-top: 1px solid #dfe5ee !important;
}
body[data-theme-style="light"] #tariff #register .pricing-body label {
  color: #344054 !important;
}
body[data-theme-style="light"] #tariff #register .pricing-body .code_discont.form-control {
  background: #fff !important;
  color: #344054 !important;
  border-color: #cfd7e3 !important;
  box-shadow: none !important;
}
body[data-theme-style="light"] #tariff #register .pricing-body .code_discont.form-control:focus {
  background: #fff !important;
  color: #172033 !important;
  border-color: #2b7aff !important;
  box-shadow: 0 0 0 .2rem rgba(43,122,255,.15) !important;
}
