/* KRIM Global Interface System — shared visual contract for all customer ecosystem phases.
   One design system; page-specific workflow logic and layout are preserved. */
:root {
  color-scheme: light;
  --krim-global-navy: #07152f;
  --krim-global-navy-2: #123a72;
  --krim-global-blue: #1769ff;
  --krim-global-violet: #6247ed;
  --krim-global-cyan: #36c9d8;
  --krim-global-ink: #182741;
  --krim-global-muted: #63738b;
  --krim-global-line: #dce5f0;
  --krim-global-page: #f3f7fc;
  --krim-global-card: #ffffff;
  --krim-global-success: #087e5b;
  --krim-global-warning: #946000;
  --krim-global-danger: #b42318;
  --krim-global-radius: 16px;
  --krim-global-shadow: 0 18px 50px rgba(7, 21, 47, .09);
}
.krim-global-shell, .krim-global-shell * { box-sizing: border-box; }
body.krim-global-shell {
  background: radial-gradient(ellipse at 85% 0, #dcecff 0, transparent 38%), var(--krim-global-page) !important;
  color: var(--krim-global-ink) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  line-height: 1.55;
}
.krim-global-shell :where(h1,h2,h3,h4) { color: var(--krim-global-navy); letter-spacing: -.025em; }
.krim-global-shell :where(p,small,footer,.muted,.subtle) { overflow-wrap: anywhere; }
.krim-global-shell :where(.topline,.topbar,.top,.strip,[class*="top-line"]) {
  background: var(--krim-global-navy) !important; color: #e7f0ff !important; border-color: #24436b !important;
}
.krim-global-shell :where(.topline,.topbar,.top,.strip) a { color: #fff !important; }
.krim-global-shell :where(header,.header,.nav,[role="banner"]) {
  color: var(--krim-global-navy) !important; background: rgba(255,255,255,.97) !important;
  border-color: var(--krim-global-line) !important; box-shadow: 0 4px 18px rgba(7,21,47,.035);
}
.krim-global-shell :where(.brand,.brand small,.brand b,.brand strong,.brand-mark,.logo) { color: var(--krim-global-navy); }
.krim-global-shell :where(.mark,.badge,.brand-mark) {
  background: linear-gradient(135deg, var(--krim-global-blue), var(--krim-global-violet) 68%, var(--krim-global-cyan)) !important; color: #fff !important;
}
.krim-global-shell :where(.hero,.hero-card,.intro,.welcome,.page-hero) { border-color: var(--krim-global-line) !important; }
.krim-global-shell :where(.card,.panel,.metric,.stat,.quote,.payment,.section-card,.workspace-card,.detail-cell,.detail,.empty,.notice-card) {
  border-color: var(--krim-global-line) !important; border-radius: var(--krim-global-radius) !important;
}
.krim-global-shell :where(.card,.panel,.metric,.stat,.quote,.payment,.section-card,.workspace-card,.detail-cell) { box-shadow: 0 8px 26px rgba(7,21,47,.045); }
.krim-global-shell :where(.card,.panel,.metric,.stat,.quote,.payment,.section-card,.workspace-card,.detail-cell,.empty) { background-color: var(--krim-global-card); }
.krim-global-shell main:not(.layout):not(.wrap):not(.shell) { border: 1px solid var(--krim-global-line); border-radius: 22px; box-shadow: var(--krim-global-shadow); }
.krim-global-shell :where(a:not(.btn):not(.brand)) { color: var(--krim-global-blue); text-underline-offset: 3px; }
.krim-global-shell :where(input,select,textarea) {
  color: var(--krim-global-ink) !important; background: #fff !important; border: 1px solid #cbd8e8 !important;
  border-radius: 11px !important; font: inherit;
}
.krim-global-shell :where(input,textarea)::placeholder { color: #8291a7; }
.krim-global-shell :where(input,select,textarea):focus {
  border-color: var(--krim-global-blue) !important; box-shadow: 0 0 0 3px rgba(23,105,255,.15) !important; outline: none !important;
}
.krim-global-shell :where(button,.btn,[role="button"],input[type="submit"]) {
  border-radius: 11px; font-family: inherit; transition: background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.krim-global-shell :where(button:not(.secondary):not(.ghost):not(.outline):not(.danger),.btn:not(.secondary):not(.ghost):not(.outline):not(.danger),input[type="submit"]) {
  background: linear-gradient(105deg, var(--krim-global-blue), var(--krim-global-violet)) !important; color: #fff !important;
  border-color: transparent !important; font-weight: 800; box-shadow: 0 8px 22px rgba(23,105,255,.16);
}
.krim-global-shell :where(.btn.secondary,.btn.ghost,.btn.outline,button.secondary,button.ghost) {
  background: #fff !important; color: var(--krim-global-navy) !important; border: 1px solid #cbd8e8 !important; box-shadow: none !important;
}
.krim-global-shell :where(button:disabled,input:disabled,select:disabled) { opacity: .58; cursor: not-allowed; box-shadow: none; }
.krim-global-shell :focus-visible { outline: 3px solid var(--krim-global-cyan) !important; outline-offset: 3px; }
.krim-global-shell :where(table) { border-color: var(--krim-global-line); }
.krim-global-shell :where(th) { color: var(--krim-global-navy); background: #f3f7fc; }
.krim-global-shell :where(td,th) { border-color: var(--krim-global-line); }
.krim-global-shell :where(.feedback,#feedback,.alert,.notice) { overflow-wrap: anywhere; border-radius: 11px; }
.krim-global-shell :where(.feedback.error,.error) { color: var(--krim-global-danger); }
.krim-global-shell :where(.feedback.success,.success) { color: var(--krim-global-success); }
.krim-global-shell footer { font-size: 12px; }
@media (max-width: 640px) {
  body.krim-global-shell main:not(.layout):not(.wrap):not(.shell) {
    width: calc(100% - 28px); padding: 25px 19px; margin-top: 24px; margin-bottom: 24px;
  }
  .krim-global-shell :where(header,.header,.nav) { gap: 12px; }
  .krim-global-shell :where(.brand small) { letter-spacing: .08em; }
  .krim-global-shell :where(button,.btn,[role="button"]) { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .krim-global-shell *, .krim-global-shell *::before, .krim-global-shell *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* KRIM Global Interface v2 — consistency layer for customer ecosystem Phases 2–5.
   Loaded after page-level styles. Keep workflow behavior/layout intact while normalizing
   the visual contract across location, booking, quote, checkout, verification and receipt pages. */
:root {
  --krim-global-navy: #07152f;
  --krim-global-navy-2: #123a72;
  --krim-global-blue: #1769ff;
  --krim-global-violet: #6247ed;
  --krim-global-cyan: #36c9d8;
  --krim-global-ink: #182741;
  --krim-global-muted: #63738b;
  --krim-global-line: #dce5f0;
  --krim-global-page: #f3f7fc;
  --krim-global-card: #ffffff;
  --krim-global-radius: 16px;
  --krim-global-shadow: 0 18px 50px rgba(7,21,47,.09);
}
body.krim-global-shell {
  background: radial-gradient(ellipse at 88% 0, rgba(54,201,216,.12), transparent 28%),
              radial-gradient(ellipse at 0 8%, rgba(98,71,237,.07), transparent 30%),
              #f3f7fc !important;
  color: #182741 !important;
}
.krim-global-shell :where(.topline,.topbar,.top,.strip,[class*="top-line"],.secure) {
  background: #07152f !important;
  color: #eaf2ff !important;
  border-color: #24436b !important;
}
.krim-global-shell :where(.topline,.topbar,.top,.strip,[class*="top-line"],.secure) :where(a,span,p,small,strong,b) {
  color: inherit;
}
.krim-global-shell :where(header,.header,.nav,[role="banner"],.shell.nav) {
  background: rgba(255,255,255,.98) !important;
  color: #07152f !important;
  border-color: #dce5f0 !important;
  box-shadow: 0 5px 22px rgba(7,21,47,.055) !important;
}
.krim-global-shell :where(.brand,.brand small,.brand b,.brand strong,.brand-name,.brand-sub) {
  color: #07152f !important;
}
.krim-global-shell :where(.mark,.badge,.brand-mark,.logo,.brandmark) {
  background: linear-gradient(135deg,#1769ff 0%,#6247ed 62%,#36c9d8 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.krim-global-shell :where(.hero,.hero-card,.intro,.welcome,.page-hero,.pagehead,.page-header) {
  border-color: #dce5f0 !important;
}
.krim-global-shell :where(.card,.panel,.metric,.stat,.quote,.payment,.section-card,.workspace-card,.detail-cell,.detail,.empty,.notice-card,.kpi,.tile,.surface) {
  background-color: #fff !important;
  border-color: #dce5f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 26px rgba(7,21,47,.045) !important;
}
.krim-global-shell :where(h1,h2,h3,h4) {
  color: #07152f !important;
}
.krim-global-shell :where(.muted,.subtle,.description,.subtitle,.helper,.help-text) {
  color: #63738b;
}
.krim-global-shell :where(button,.btn,[role="button"],input[type="submit"],a.button) {
  border-radius: 11px !important;
  font-family: inherit !important;
  transition: background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.krim-global-shell :where(button:not(.secondary):not(.ghost):not(.outline):not(.danger):not(.quiet),.btn:not(.secondary):not(.ghost):not(.outline):not(.danger):not(.quiet),input[type="submit"],a.button) {
  background: linear-gradient(105deg,#1769ff,#6247ed) !important;
  color: #fff !important;
  border-color: transparent !important;
  font-weight: 750;
}
.krim-global-shell :where(.secondary,.ghost,.outline,.quiet,button.secondary,button.ghost,button.outline) {
  background: #fff !important;
  color: #123a72 !important;
  border: 1px solid #cbd8e8 !important;
  box-shadow: none !important;
}
.krim-global-shell :where(input,select,textarea) {
  background: #fff !important;
  color: #182741 !important;
  border: 1px solid #cbd8e8 !important;
  border-radius: 11px !important;
  font: inherit;
}
.krim-global-shell :where(input,select,textarea):focus {
  border-color: #1769ff !important;
  box-shadow: 0 0 0 3px rgba(23,105,255,.15) !important;
  outline: none !important;
}
.krim-global-shell :where(table) {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.krim-global-shell :where(th) {
  background: #f3f7fc !important;
  color: #07152f !important;
}
.krim-global-shell :where(td,th) {
  border-color: #dce5f0 !important;
}
.krim-global-shell :where(.success,.status-success,.badge-success) {
  border-color: #b7e7d1;
}
.krim-global-shell :where(.feedback,.alert,.notice,.error,.success) {
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.krim-global-shell :where(a:not(.btn):not(.brand):not(.button)) {
  text-underline-offset: 3px;
}
.krim-global-shell :focus-visible {
  outline: 3px solid #36c9d8 !important;
  outline-offset: 3px;
}
@media(max-width:640px) {
  .krim-global-shell :where(button,.btn,[role="button"],a.button) { min-height: 42px; }
  .krim-global-shell :where(.card,.panel,.metric,.stat,.quote,.payment,.section-card,.workspace-card) { border-radius: 14px !important; }
}


/* Shared hero and navigation finish: same institutional shell, with content-specific accents only. */
.krim-global-shell :where(.hero,.page-hero,.hero-card) {
  background: linear-gradient(118deg,#07152f 0%,#123a72 62%,#1769ff 100%) !important;
  color: #f5f9ff !important;
  border: 1px solid #244b80 !important;
  border-radius: 20px !important;
}
.krim-global-shell :where(.hero,.page-hero,.hero-card) :where(h1,h2,h3,h4,strong,b) {
  color: #fff !important;
}
.krim-global-shell :where(.hero,.page-hero,.hero-card) :where(p,small,.muted,.subtle,.eyebrow,.subtitle) {
  color: #dceaff !important;
}
.krim-global-shell :where(.nav,.navlinks,.nav-links) a {
  text-underline-offset: 4px;
}
.krim-global-shell :where(.chip,.pill,.tag,.status-badge) {
  border-radius: 999px;
}


/* KRIM Global typography and content hierarchy v3 — shared across shipment, warehouse,
   customs and exception workspaces. Normalize legacy Tailwind/font-mono sizing without
   replacing each page's workflow-specific content or behavior. */
.krim-global-shell,
.krim-global-shell :where(button,input,select,textarea,a,p,li,label,td,th,small,span,div) {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.krim-global-shell { font-size: 14px; line-height: 1.6; }
.krim-global-shell :where(h1) {
  font-size: clamp(1.8rem, 3.4vw, 2.65rem) !important;
  line-height: 1.14 !important; font-weight: 800 !important; letter-spacing: -.035em !important;
}
.krim-global-shell :where(h2) {
  font-size: clamp(1.15rem, 2vw, 1.45rem) !important;
  line-height: 1.3 !important; font-weight: 750 !important; letter-spacing: -.02em !important;
}
.krim-global-shell :where(h3) {
  font-size: 1rem !important; line-height: 1.4 !important; font-weight: 750 !important;
}
.krim-global-shell :where(p,li) { font-size: .9rem; line-height: 1.7; }
.krim-global-shell :where(label,th,.eyebrow,.crumb,.badge,.pill,.state) {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: .015em;
}
.krim-global-shell :where(label,th) { font-size: .82rem !important; font-weight: 700 !important; }
.krim-global-shell :where(input,select,textarea) { font-size: .9rem !important; min-height: 42px; }
.krim-global-shell :where(button,.btn,[role="button"],a.button) {
  font-size: .84rem !important; line-height: 1.35; font-weight: 750 !important;
}
.krim-global-shell :where(small,.muted,.subtle,.description,.subtitle,.helper,.help-text,.sub) {
  font-size: .8rem; line-height: 1.6;
}
.krim-global-shell :where(.hero p,.intro p,.welcome p,.page-hero p) { font-size: .95rem !important; line-height: 1.75 !important; }
.krim-global-shell :where(.metric strong,.stat strong,.kpi strong) { font-size: clamp(1.45rem, 2.4vw, 1.9rem) !important; }
.krim-global-shell :where(.card,.panel,.metric,.stat,.section-card,.workspace-card,.detail-cell) { min-width: 0; }
.krim-global-shell :where(code,pre,.font-mono) { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; }
@media (max-width: 640px) {
  .krim-global-shell { font-size: 14px; }
  .krim-global-shell :where(h1) { font-size: clamp(1.65rem, 7vw, 2.1rem) !important; }
  .krim-global-shell :where(p,li) { font-size: .875rem; }
  .krim-global-shell :where(.panel,.card,.section-card) { padding: 16px; }
}


/* Typography normalization: override legacy utility classes on older modules. */
.krim-global-shell :where(p,li) { font-size: .9rem !important; line-height: 1.7 !important; }
.krim-global-shell :where(small,.muted,.subtle,.description,.subtitle,.helper,.help-text,.sub,.crumb) { font-size: .8rem !important; line-height: 1.6 !important; }
.krim-global-shell :where(label,th,td) { font-size: .84rem !important; line-height: 1.55 !important; }
.krim-global-shell :where(.eyebrow,.badge,.pill,.state) { font-size: .72rem !important; line-height: 1.4 !important; }
.krim-global-shell :where(.font-mono) { font-family: Inter, ui-sans-serif, system-ui, sans-serif !important; }
.krim-global-shell :where(.text-xs,.text-sm,.text-base,.text-lg,.text-xl,.text-2xl,.text-3xl) { font-size: inherit; }
.krim-global-shell :where(.text-xs) { font-size: .8rem !important; }
.krim-global-shell :where(.text-sm) { font-size: .875rem !important; }
.krim-global-shell :where(.text-base) { font-size: .95rem !important; }


/* KRIM readability standard: comfortable body copy and legible controls. */
.krim-global-shell{font-size:16px!important;line-height:1.6}
.krim-global-shell :where(p,li){font-size:15px!important;line-height:1.7!important}
.krim-global-shell :where(small,.muted,.subtle,.description,.subtitle,.helper,.help-text,.sub,.crumb){font-size:13px!important;line-height:1.6!important}
.krim-global-shell :where(label,th,td){font-size:13px!important;line-height:1.55!important}
.krim-global-shell :where(.eyebrow,.badge,.pill,.state){font-size:12px!important;line-height:1.4!important}
.krim-global-shell :where(button,.btn,[role="button"],input,select,textarea){font-size:14px}
@media(max-width:640px){
 .krim-global-shell{font-size:16px!important}
 .krim-global-shell :where(p,li){font-size:15px!important}
 .krim-global-shell :where(small,.muted,.subtle,.description,.subtitle,.helper,.help-text,.sub,.crumb){font-size:13px!important}
 .krim-global-shell :where(label,th,td){font-size:13px!important}
 .krim-global-shell :where(.eyebrow,.badge,.pill,.state){font-size:12px!important}
}


/* KRIM unified workspace readability and depth refinement */
body.krim-global-shell,body.krim-global-ui{font-size:16px;line-height:1.6}
body.krim-global-shell :where(h1,h2,h3),body.krim-global-ui :where(h1,h2,h3){letter-spacing:-.035em;line-height:1.18}
body.krim-global-shell :where(h1),body.krim-global-ui :where(h1){font-size:clamp(28px,3.4vw,38px);font-weight:800}
body.krim-global-shell :where(.card,.panel,.workspace-card,.metric,.stat,.section-card),body.krim-global-ui :where(.card,.panel,.workspace-card,.metric,.stat,.section-card){box-shadow:0 12px 30px rgba(7,24,49,.09);border-radius:16px}
body.krim-global-shell :where(button,[role="button"],input[type="submit"]),body.krim-global-ui :where(button,[role="button"],input[type="submit"]){min-height:44px;font-weight:700}
body.krim-global-shell :where(input,select,textarea),body.krim-global-ui :where(input,select,textarea){min-height:44px;font-size:16px}
body.krim-global-shell :where(label,th),body.krim-global-ui :where(label,th){font-weight:700}
body.krim-global-shell :where(small,.muted,.subtle),body.krim-global-ui :where(small,.muted,.subtle){line-height:1.5}
@media(max-width:700px){body.krim-global-shell,body.krim-global-ui{font-size:16px}body.krim-global-shell :where(button,[role="button"],input[type="submit"]),body.krim-global-ui :where(button,[role="button"],input[type="submit"]){min-height:48px}}

/* KRIM: remove redundant identity/session strip above the main page header. */
.topbar,.topline,.announcement,.utility-bar,.announcement-bar,.site-notice-bar{display:none!important}

/* Hide redundant identity strips above the main workspace header. */
.top{display:none!important}


/* KRIM homepage-aligned operating-system theme v1.
   Shared visual language for every workspace that loads this interface contract.
   Preserve page-specific workflows, data states, and layout geometry. */
:root{
 --krim-global-navy:#061a31;--krim-global-navy-2:#0b3154;--krim-global-blue:#1769e8;
 --krim-global-cyan:#43c9df;--krim-global-violet:#365bd6;--krim-global-ink:#132b45;
 --krim-global-muted:#647b91;--krim-global-line:#d9e5ef;--krim-global-page:#f3f7fb;
 --krim-global-card:#fff;--krim-global-radius:17px;
 --krim-global-shadow:0 16px 42px rgba(5,28,51,.085);
}
body.krim-global-shell,body.krim-global-ui{
 background:radial-gradient(ellipse at 88% -8%,rgba(70,157,220,.16),transparent 34%),linear-gradient(180deg,#f4f8fc 0%,#f8fbfe 58%,#f1f6fb 100%)!important;
 color:var(--krim-global-ink)!important;
 font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
 -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
body.krim-global-shell :where(h1,h2,h3,h4),body.krim-global-ui :where(h1,h2,h3,h4){color:var(--krim-global-navy);letter-spacing:-.035em}
body.krim-global-shell :where(.top,.topbar,.topline,.top-strip,.utility-bar),body.krim-global-ui :where(.top,.topbar,.topline,.top-strip,.utility-bar){background:linear-gradient(105deg,#041629,#0b3154 72%,#10476b)!important;color:#eaf5ff!important;border-color:#244d70!important}
body.krim-global-shell :where(.top,.topbar,.topline,.top-strip,.utility-bar) a,body.krim-global-ui :where(.top,.topbar,.topline,.top-strip,.utility-bar) a{color:#fff!important}
body.krim-global-shell :where(header,.header,.nav,[role=banner]),body.krim-global-ui :where(header,.header,.nav,[role=banner]){background:rgba(255,255,255,.97)!important;border-color:#dce7f1!important;box-shadow:0 7px 24px rgba(6,26,49,.065)!important;backdrop-filter:blur(14px)}
body.krim-global-shell :where(.hero,.page-hero,.welcome,.intro,.hero-card,.dashboard-hero),body.krim-global-ui :where(.hero,.page-hero,.welcome,.intro,.hero-card,.dashboard-hero){background:linear-gradient(118deg,#041629 0%,#0a3154 58%,#105077 100%)!important;color:#edf7ff!important;border:1px solid rgba(110,190,224,.28)!important;border-radius:22px!important;box-shadow:0 22px 54px rgba(4,24,45,.18)!important}
body.krim-global-shell :where(.hero,.page-hero,.welcome,.intro,.hero-card,.dashboard-hero) :where(h1,h2,h3,p,small,label),body.krim-global-ui :where(.hero,.page-hero,.welcome,.intro,.hero-card,.dashboard-hero) :where(h1,h2,h3,p,small,label){color:inherit!important}
body.krim-global-shell :where(.card,.panel,.metric,.stat,.quote,.payment,.section-card,.workspace-card,.detail-cell,.module-card,.dashboard-card,.tile),body.krim-global-ui :where(.card,.panel,.metric,.stat,.quote,.payment,.section-card,.workspace-card,.detail-cell,.module-card,.dashboard-card,.tile){background:#fff;border:1px solid var(--krim-global-line)!important;border-radius:var(--krim-global-radius)!important;box-shadow:0 9px 27px rgba(6,30,54,.055)!important}
body.krim-global-shell :where(.card,.panel,.workspace-card,.module-card,.dashboard-card,.tile):hover,body.krim-global-ui :where(.card,.panel,.workspace-card,.module-card,.dashboard-card,.tile):hover{border-color:#b7d2e8!important;box-shadow:0 15px 34px rgba(6,30,54,.09)!important}
body.krim-global-shell :where(button,.btn,[role=button],input[type=submit]),body.krim-global-ui :where(button,.btn,[role=button],input[type=submit]){border-radius:11px;font-weight:750;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
body.krim-global-shell :where(button:not(.secondary):not(.ghost):not(.outline):not(.danger),.btn:not(.secondary):not(.ghost):not(.outline):not(.danger),input[type=submit]),body.krim-global-ui :where(button:not(.secondary):not(.ghost):not(.outline):not(.danger),.btn:not(.secondary):not(.ghost):not(.outline):not(.danger),input[type=submit]){background:linear-gradient(110deg,#1769e8,#315bd7)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 7px 19px rgba(23,105,232,.18)}
body.krim-global-shell :where(.secondary,.ghost,.outline,.btn-secondary),body.krim-global-ui :where(.secondary,.ghost,.outline,.btn-secondary){background:#fff!important;color:#0b3154!important;border:1px solid #cbd9e8!important;box-shadow:none!important}
body.krim-global-shell :where(input,select,textarea),body.krim-global-ui :where(input,select,textarea){background:#fff!important;color:#132b45!important;border:1px solid #cbd9e8!important;border-radius:10px!important}
body.krim-global-shell :where(input,select,textarea):focus,body.krim-global-ui :where(input,select,textarea):focus{border-color:#1769e8!important;box-shadow:0 0 0 3px rgba(23,105,232,.14)!important;outline:0!important}
body.krim-global-shell :where(th),body.krim-global-ui :where(th){background:#edf4fa;color:#0a2d4d}
body.krim-global-shell :where(td,th),body.krim-global-ui :where(td,th){border-color:#dce7f1}
body.krim-global-shell :where(footer),body.krim-global-ui :where(footer){background:linear-gradient(120deg,#041321,#092b49)!important;color:#dceaf7!important}
body.krim-global-shell :where(footer a),body.krim-global-ui :where(footer a){color:#a9d9f7!important}
body.krim-global-shell :focus-visible,body.krim-global-ui :focus-visible{outline:3px solid #43c9df!important;outline-offset:3px}
@media(max-width:760px){
 body.krim-global-shell :where(.hero,.page-hero,.welcome,.intro,.hero-card,.dashboard-hero),body.krim-global-ui :where(.hero,.page-hero,.welcome,.intro,.hero-card,.dashboard-hero){border-radius:17px!important}
 body.krim-global-shell :where(.card,.panel,.workspace-card,.module-card,.dashboard-card,.tile),body.krim-global-ui :where(.card,.panel,.workspace-card,.module-card,.dashboard-card,.tile){border-radius:14px!important}
 body.krim-global-shell :where(button,.btn,[role=button]),body.krim-global-ui :where(button,.btn,[role=button]){min-height:44px}
}
@media(prefers-reduced-motion:reduce){body.krim-global-shell *,body.krim-global-ui *{transition:none!important;animation:none!important}}


/* KRIM homepage dark-anchor correction v2.
   Reserve deep ocean navy backgrounds for the main hero and footer only.
   All other workspace surfaces remain light, with navy used for readable text. */
body.krim-global-shell,body.krim-global-ui{
 background:radial-gradient(ellipse at 88% -8%,rgba(70,157,220,.14),transparent 34%),linear-gradient(180deg,#f4f8fc 0%,#f8fbfe 58%,#f1f6fb 100%)!important;
 color:#132b45!important;
}
body.krim-global-shell :where(.top,.topbar,.topline,.top-strip,.utility-bar),body.krim-global-ui :where(.top,.topbar,.topline,.top-strip,.utility-bar){background:#fff!important;color:#132b45!important;border-color:#dce7f1!important}
body.krim-global-shell :where(.top,.topbar,.topline,.top-strip,.utility-bar) a,body.krim-global-ui :where(.top,.topbar,.topline,.top-strip,.utility-bar) a{color:#1769e8!important}
body.krim-global-shell :where(.hero),body.krim-global-ui :where(.hero){position:relative;background:#082B4C!important;color:#fff!important;border:1px solid rgba(110,190,224,.28)!important;border-radius:22px!important;box-shadow:0 22px 54px rgba(4,24,45,.18)!important;isolation:isolate;overflow:hidden}
body.krim-global-shell :where(.hero):before,body.krim-global-ui :where(.hero):before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 78% 35%,rgba(27,117,174,.52) 0,transparent 42%),radial-gradient(ellipse at 5% 100%,rgba(12,75,121,.55) 0,transparent 45%),linear-gradient(115deg,#061C33 0%,#0A3A64 58%,#082B4C 100%)!important;opacity:1!important}
body.krim-global-shell :where(.hero):after,body.krim-global-ui :where(.hero):after{pointer-events:none}
body.krim-global-shell :where(.hero) :where(h1,h2,h3,p,small,label),body.krim-global-ui :where(.hero) :where(h1,h2,h3,p,small,label){color:inherit!important}
body.krim-global-shell :where(.hero) :where(.eyebrow,.kicker,.hero-tagline),body.krim-global-ui :where(.hero) :where(.eyebrow,.kicker,.hero-tagline){color:#9ADFFF!important}
body.krim-global-shell :where(.hero) :where(.hero-lead,.hero-note),body.krim-global-ui :where(.hero) :where(.hero-lead,.hero-note){color:#E0EDF7!important}
/* Other introductory panels are intentionally light; they are not hero banners. */
body.krim-global-shell :where(.page-hero,.welcome,.intro,.hero-card,.dashboard-hero),body.krim-global-ui :where(.page-hero,.welcome,.intro,.hero-card,.dashboard-hero){background:linear-gradient(135deg,#fff 0%,#edf6fd 100%)!important;color:#132b45!important;border:1px solid #d9e5ef!important;border-radius:18px!important;box-shadow:0 12px 32px rgba(5,28,51,.07)!important}
body.krim-global-shell :where(.page-hero,.welcome,.intro,.hero-card,.dashboard-hero) :where(h1,h2,h3,p,small,label),body.krim-global-ui :where(.page-hero,.welcome,.intro,.hero-card,.dashboard-hero) :where(h1,h2,h3,p,small,label){color:#132b45!important}
body.krim-global-shell :where(.card,.panel,.metric,.stat,.quote,.payment,.section-card,.workspace-card,.detail-cell,.module-card,.dashboard-card,.tile),body.krim-global-ui :where(.card,.panel,.metric,.stat,.quote,.payment,.section-card,.workspace-card,.detail-cell,.module-card,.dashboard-card,.tile){background:#fff!important;color:#132b45!important;border:1px solid #d9e5ef!important;border-radius:17px!important;box-shadow:0 9px 27px rgba(6,30,54,.055)!important}
body.krim-global-shell :where(.card,.panel,.metric,.stat,.quote,.payment,.section-card,.workspace-card,.detail-cell,.module-card,.dashboard-card,.tile) :where(h1,h2,h3,h4,p,small,label),body.krim-global-ui :where(.card,.panel,.metric,.stat,.quote,.payment,.section-card,.workspace-card,.detail-cell,.module-card,.dashboard-card,.tile) :where(h1,h2,h3,h4,p,small,label){color:inherit}
body.krim-global-shell :where(footer),body.krim-global-ui :where(footer){background:linear-gradient(135deg,#020D19 0%,#041A30 52%,#062B4B 100%)!important;color:#D8E8F5!important;border-top:4px solid #168FE0!important;position:relative}
body.krim-global-shell :where(footer) :where(.footer-brand,.footer-col b),body.krim-global-ui :where(footer) :where(.footer-brand,.footer-col b){color:#fff!important}
body.krim-global-shell :where(footer) :where(a,.footer-desc,.footer-brand small,.footer-bottom),body.krim-global-ui :where(footer) :where(a,.footer-desc,.footer-brand small,.footer-bottom){color:#C4D9E9!important}
body.krim-global-shell :where(footer a:hover),body.krim-global-ui :where(footer a:hover){color:#8BD7FF!important}
@media(max-width:760px){body.krim-global-shell :where(.hero),body.krim-global-ui :where(.hero){border-radius:17px!important}body.krim-global-shell :where(.page-hero,.welcome,.intro,.hero-card,.dashboard-hero),body.krim-global-ui :where(.page-hero,.welcome,.intro,.hero-card,.dashboard-hero){border-radius:15px!important}}
