/* BARQLO UX preview v3: presentation only; no app or billing logic.
   Works with existing semantic markup; trial styling, not approved brand identity. */
:root {
  --ux-ink:#132927;--ux-jade:#15745e;--ux-paper:#f6f7f3;
  --ux-surface:#fffefa;--ux-border:#dce6df;--ux-muted:#526b64;
  --ux-shadow:0 14px 42px rgba(18,43,39,.08);
  --ux-radius:20px;--ux-focus:#38b894;
}
:root[data-theme="dark"]{
  --ux-ink:#eef5f1;--ux-jade:#67dcb0;--ux-paper:#0c1417;
  --ux-surface:#141f22;--ux-border:#344744;--ux-muted:#abbeb6;
  --ux-shadow:0 18px 42px rgba(0,0,0,.18);
}
:is(.card,.portal-view,.portal-top,.portal-nav,.auth-card,.feature-disclosure,.editorial-panel){
  border-radius:var(--ux-radius);
}
:is(.button,button,input,select,textarea):focus-visible,
a:focus-visible,summary:focus-visible{
  outline:3px solid var(--ux-focus)!important;outline-offset:3px;
}
:is(.button,.portal-nav button,.nav a){transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s}
.button{min-height:44px;justify-content:center;line-height:1.45}
.button:disabled{opacity:.55;cursor:not-allowed;transform:none}
.editorial{width:min(980px,calc(100% - 36px));padding-block:clamp(38px,7vw,86px)}
.editorial>h1{font-size:clamp(34px,5vw,58px);line-height:1.25;letter-spacing:-.025em;max-width:23ch}
.editorial>.lead{font-size:clamp(16px,2vw,19px);line-height:1.9}
.editorial-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.editorial-grid .card,.editorial-panel{background:var(--ux-surface);border:1px solid var(--ux-border);box-shadow:var(--ux-shadow)}
.editorial-panel{padding:clamp(18px,3vw,36px);margin-block:22px}
.editorial-panel h2{font-size:clamp(19px,2.2vw,27px);margin-block:22px 8px;line-height:1.5}
.editorial-panel p{max-width:78ch}
.editorial-panel :is(a,button,input,select){max-width:100%}
.editorial-panel .estimate{unicode-bidi:plaintext;overflow-wrap:anywhere}
.editorial-panel input[type="range"]{width:100%}
/* Home: protect real .hero-scene layout, align copy and both calls to action. */
.hero.wrap{isolation:isolate}
.hero.wrap::before{width:min(600px,78%);max-width:78%;right:11%;left:auto}
.hero.wrap>.hero-copy,.hero.wrap>.hero-scene{min-width:0}
.hero.wrap .hero-copy .actions .button{min-width:0}
.hero.wrap .hero-copy .actions :is(a,span){overflow-wrap:anywhere}
.hero.wrap .hero-scene{box-sizing:border-box}
.hero.wrap :is(.glimpse-top,.glimpse-inquiry,.glimpse-reply,.glimpse-footer){min-width:0}
.hero.wrap :is(#scene-question,#scene-reply){overflow-wrap:anywhere}
.proof-band .proof{justify-content:center;align-items:center}
.feature-disclosure>summary{cursor:pointer}
.feature-disclosure[open] .disclosure-content{min-width:0}
.demo-grid,.demo-grid>*,.conversation-canvas,.team-disclosure{min-width:0}
.demo-grid :is(input,select,textarea){max-width:100%}
/* Workspace: consistent information density without changing tab behavior. */
.portal-shell{max-width:1480px}
.portal-top,.portal-view,.portal-nav{border-color:var(--ux-border);box-shadow:var(--ux-shadow)}
.portal-view{min-width:0}
.portal-view :is(.tiles,.form-grid,.toolbar,.row){min-width:0}
.portal-view :is(.tile,.panel,.row-main){min-width:0}
.portal-view :is(.tile strong,.row-main,small){overflow-wrap:anywhere}
.portal-nav button.active,.portal-nav button[aria-current="page"]{
  border-color:color-mix(in srgb,var(--ux-jade) 40%,transparent);
  color:var(--ux-jade);
}
.table-wrap{overflow-x:auto;overscroll-behavior-inline:contain}
.data-table{width:100%}
.notice[hidden],.nav-backdrop[hidden]{display:none!important}
/* Directionality for visual currency fragments, not financial calculations. */
:is(.estimate,.price,.tile strong,.money,[data-currency]){font-variant-numeric:tabular-nums}
@media(max-width:950px){
  .editorial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .hero.wrap{width:calc(100% - 32px);max-width:calc(100% - 32px);min-width:0;display:flex;flex-direction:column;align-items:stretch;padding-inline:0}
  .hero.wrap>.hero-copy,.hero.wrap>.hero-scene{min-width:0;max-width:100%;width:100%}
  .hero.wrap .hero-copy .actions{width:100%;max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero.wrap .hero-copy .actions .button{min-width:0;max-width:100%;white-space:normal}
  .hero.wrap .hero-scene{padding:clamp(12px,4vw,18px);min-height:0}
  .nav.wrap{max-width:calc(100% - 32px);min-width:0}
  .nav.wrap>*,.nav.wrap .nav-tools{min-width:0}
  .editorial-grid{grid-template-columns:1fr}
  .portal-top{padding:18px}
  .portal-view{padding:clamp(13px,4vw,20px)}
  .portal-layout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:390px){
  .hero.wrap .hero-copy .actions{grid-template-columns:minmax(0,1fr)}
  .hero.wrap .hero-copy .actions .button{width:100%;font-size:13px;min-height:48px}
  .hero.wrap h1{font-size:clamp(29px,9vw,38px);line-height:1.3;letter-spacing:-.025em}
  .hero.wrap .hero-scene{padding:12px}
  .hero.wrap .glimpse-top{flex-wrap:wrap;gap:6px}
  .nav.wrap{display:flex;flex-wrap:wrap}
  .nav.wrap .nav-tools{width:100%;justify-content:space-between}
  .editorial{width:calc(100% - 24px)}
  .editorial-panel{padding:16px}
  .editorial-grid{gap:10px}
  .portal-shell{width:calc(100% - 20px)}
  .portal-top h1{font-size:25px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* KPI numbers already loaded: hide decorative circular gauge mistaken for loading.
   Backend loading/empty/error handling remains unchanged. */
#command-kpis .command-kpi .kpi-ring{display:none}
#command-kpis .command-kpi{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-width:0}
#command-kpis .command-kpi strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#partner-view .tile strong bdi,#view .partner-hero~.tiles .tile strong bdi{direction:ltr;unicode-bidi:isolate;display:inline-block}
#partner-view .tile strong,#view .partner-hero~.tiles .tile strong{unicode-bidi:plaintext}
