/* GENERATED by scripts/build_rtl_css.js from app.feature.bundle.css for the Arabic and Urdu pages. Do not edit. */
/* Triplem VIP feature CSS production bundle.
 * Generated from the maintained source files listed in app.feature.bundle.manifest.json.
 * Source order is identical to the former index.html stylesheet order.
 * Run: npm run build:styles
 */

/* ===== SOURCE: Assets/style/52-workspace-section-home.css ===== */
/* Triplem VIP workspace section home — 2026-09-16
   The former persistent tab band stays in the DOM as a permission/navigation
   authority for legacy code, but is no longer a visible workspace surface. */
#app > .tabs{
  display:none !important;
}

.workspace-home{
  position:relative;
  width:100%;
  min-height:calc(100dvh - 112px);
  padding:clamp(10px,1.6vw,22px) 0 clamp(22px,3vw,40px);
  display:flex;
  flex-direction:column;
  gap:clamp(14px,2vw,24px);
  overflow:hidden;
  isolation:isolate;
}
.workspace-home.hide{display:none !important}
.workspace-home::before,
.workspace-home::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:-1;
  border-radius:999px;
  opacity:.72;
}
.workspace-home::before{
  width:min(52vw,760px);
  aspect-ratio:1;
  right:-27vw;
  top:-34%;
  background:radial-gradient(circle,color-mix(in srgb,var(--primary) 10%,transparent),transparent 68%);
}
.workspace-home::after{
  width:min(40vw,580px);
  aspect-ratio:1;
  left:-20vw;
  bottom:-28%;
  background:radial-gradient(circle,color-mix(in srgb,var(--primary) 8%,transparent),transparent 70%);
}
.workspace-home-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  min-width:0;
  padding:0 2px;
}
.workspace-home-kicker{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:5px 10px;
  border:1px solid color-mix(in srgb,var(--primary) 22%,var(--line));
  border-radius:999px;
  color:var(--primary);
  background:color-mix(in srgb,var(--primary) 7%,var(--panel));
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.workspace-home-heading h2{
  margin:10px 0 2px;
  color:var(--text);
  font-size:clamp(1.25rem,2vw,1.8rem);
  letter-spacing:-.04em;
}
.workspace-home-heading p{
  margin:0;
  color:var(--muted);
  font-size:.84rem;
  line-height:1.5;
}
.workspace-home-grid{
  flex:1;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  grid-auto-rows:minmax(205px,1fr);
  gap:clamp(10px,1.25vw,18px);
  align-content:center;
  min-width:0;
}
.workspace-home-card{
  --workspace-card-accent:var(--primary);
  appearance:none;
  position:relative;
  min-width:0;
  min-height:205px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:space-between;
  gap:8px;
  padding:14px 15px 13px;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--line) 82%,var(--primary) 18%);
  border-radius:clamp(17px,1.5vw,23px);
  background:radial-gradient(115% 90% at 92% -8%,color-mix(in srgb,var(--primary) 13%,transparent),transparent 57%),
    linear-gradient(145deg,color-mix(in srgb,var(--panel) 97%,var(--primary) 3%),color-mix(in srgb,var(--panel-2) 94%,transparent));
  color:var(--text);
  box-shadow:0 12px 28px color-mix(in srgb,var(--primary) 7%,transparent),
    inset 0 1px 0 color-mix(in srgb,#fff 44%,transparent);
  cursor:pointer;
  text-align:right;
  transform:translateZ(0);
  transition:transform .18s cubic-bezier(.22,.75,.22,1),border-color .18s ease,box-shadow .18s ease,background .18s ease;
  animation:workspaceCardEnter .34s cubic-bezier(.2,.8,.2,1) both;
  animation-delay:calc(var(--workspace-card-index,0) * 24ms);
  contain:layout paint style;
}
.workspace-home-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(115deg,transparent 20%,color-mix(in srgb,#fff 16%,transparent) 45%,transparent 68%);
  transform:translate3d(-115%,0,0);
  transition:transform .48s cubic-bezier(.2,.72,.2,1);
}
.workspace-home-card:hover,
.workspace-home-card:focus-visible{
  transform:translate3d(0,-3px,0);
  border-color:color-mix(in srgb,var(--primary) 42%,var(--line));
  box-shadow:0 17px 34px color-mix(in srgb,var(--primary) 13%,transparent),inset 0 1px 0 color-mix(in srgb,#fff 52%,transparent);
  outline:none;
}
.workspace-home-card:hover::before,
.workspace-home-card:focus-visible::before{transform:translate3d(115%,0,0)}
.workspace-card-art{
  display:grid;
  place-items:center;
  width:132px;
  height:132px;
  min-width:132px;
  min-height:132px;
  max-width:132px;
  max-height:132px;
  aspect-ratio:1 / 1;
  flex:0 0 132px;
  align-self:center;
  color:var(--workspace-card-accent);
}
.workspace-card-svg{
  width:132px;
  height:132px;
  min-width:132px;
  min-height:132px;
  max-width:132px;
  max-height:132px;
  aspect-ratio:1 / 1;
  display:block;
  overflow:visible;
  flex:none;
}
.workspace-card-svg *{
  vector-effect:non-scaling-stroke;
  transform-box:fill-box;
  transform-origin:center;
}
.workspace-card-svg .wh-frame{
  fill:color-mix(in srgb,var(--primary) 5%,transparent);
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.workspace-card-svg .wh-soft{
  fill:none;
  stroke:color-mix(in srgb,currentColor 56%,var(--muted));
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.82;
}
.workspace-card-svg circle.wh-soft,
.workspace-card-svg rect.wh-soft{
  fill:color-mix(in srgb,currentColor 7%,transparent);
}
.workspace-card-svg .wh-accent,
.workspace-card-svg .wh-line{
  fill:none;
  stroke:currentColor;
  stroke-width:2.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.workspace-card-svg .wh-pulse,
.workspace-card-svg .wh-dot{
  fill:currentColor;
  stroke:color-mix(in srgb,var(--panel) 75%,transparent);
  stroke-width:2;
}
.workspace-card-svg .wh-draw{
  stroke-dasharray:180;
  stroke-dashoffset:180;
  animation:workspaceSvgDraw 3.4s ease-in-out infinite;
}
.workspace-card-svg .wh-float{animation:workspaceSvgFloat 3.2s ease-in-out infinite}
.workspace-card-svg .wh-pulse{animation:workspaceSvgPulse 2.2s ease-in-out infinite}
.workspace-card-svg .wh-scan{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;opacity:.7;animation:workspaceSvgScan 2.8s ease-in-out infinite}
.workspace-card-svg .wh-orbit-ring{stroke-dasharray:7 8;animation:workspaceSvgSpin 8s linear infinite}
.workspace-card-svg .wh-spin{stroke-dasharray:9 7;animation:workspaceSvgSpin 7s linear infinite}
.workspace-card-svg .wh-orbit-dot{animation:workspaceSvgPulse 2.1s ease-in-out infinite}
.workspace-card-svg .wh-spark{animation:workspaceSvgSpark 2.5s ease-in-out infinite}
.workspace-card-svg .wh-node-one{animation:workspaceSvgNode 2.8s ease-in-out infinite}
.workspace-card-svg .wh-node-two{animation:workspaceSvgNode 3.1s ease-in-out infinite .2s}
.workspace-card-svg .wh-node-three{animation:workspaceSvgNode 2.9s ease-in-out infinite .4s}
.workspace-card-svg .wh-node-four{animation:workspaceSvgNode 3.2s ease-in-out infinite .1s}
.workspace-card-svg .wh-coin-one{animation:workspaceSvgFloat 2.7s ease-in-out infinite}
.workspace-card-svg .wh-coin-two{animation:workspaceSvgFloat 3.1s ease-in-out infinite .25s}
.workspace-card-copy{
  position:relative;
  z-index:2;
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  text-align:center;
}
.workspace-card-copy strong{
  min-width:0;
  color:var(--text);
  font-size:.94rem;
  line-height:1.22;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
  width:100%;
  text-align:center;
}
.workspace-card-copy small{
  width:100%;
  color:var(--muted);
  font-size:.68rem;
  line-height:1.35;
  text-align:center;
}
.workspace-card-open{
  position:absolute;
  left:11px;
  top:10px;
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--primary) 18%,var(--line));
  border-radius:10px;
  background:color-mix(in srgb,var(--panel) 82%,transparent);
  color:color-mix(in srgb,var(--primary) 78%,var(--text));
  font-size:.66rem;
}

.workspace-section-nav{
  position:sticky;
  top:8px;
  z-index:34;
  width:min(100%,var(--content-max));
  min-height:44px;
  margin:0 auto 10px;
  padding:5px 6px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) minmax(150px,220px);
  gap:7px;
  align-items:center;
  border:1px solid color-mix(in srgb,var(--line) 84%,var(--primary) 16%);
  border-radius:15px;
  background:color-mix(in srgb,var(--panel) 92%,transparent);
  box-shadow:0 8px 22px color-mix(in srgb,var(--primary) 7%,transparent),inset 0 1px 0 color-mix(in srgb,#fff 40%,transparent);
  backdrop-filter:blur(14px) saturate(1.12);
  -webkit-backdrop-filter:blur(14px) saturate(1.12);
}
.workspace-section-nav.hide{display:none !important}
.workspace-home-back{
  width:auto;
  min-width:112px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 10px;
  border:1px solid color-mix(in srgb,var(--primary) 22%,var(--line));
  border-radius:10px;
  background:color-mix(in srgb,var(--primary) 7%,var(--panel));
  color:var(--primary);
  font-size:.7rem;
  font-weight:780;
  white-space:nowrap;
  cursor:pointer;
  transition:transform .15s ease,background .15s ease,border-color .15s ease;
}
.workspace-home-back i{font-size:.68rem;pointer-events:none}
.workspace-home-back span{pointer-events:none}
.workspace-home-back:hover,
.workspace-home-back:focus-visible{
  transform:translateX(1px);
  background:color-mix(in srgb,var(--primary) 12%,var(--panel));
  border-color:color-mix(in srgb,var(--primary) 38%,var(--line));
  outline:none;
}
.workspace-section-current{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:0;
  padding-right:2px;
}
.workspace-section-current span{
  color:var(--muted);
  font-size:.56rem;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.workspace-section-current strong{
  min-width:0;
  color:var(--text);
  font-size:.82rem;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.workspace-section-switch{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  min-width:0;
  height:34px;
  padding:0 11px;
  border:1px solid color-mix(in srgb,var(--line) 88%,var(--primary) 12%);
  border-radius:10px;
  outline:0;
  background:color-mix(in srgb,var(--panel-2) 86%,var(--panel));
  color:var(--text);
  font:inherit;
  font-size:.72rem;
  font-weight:720;
  text-align:center;
  text-align-last:center;
  cursor:pointer;
  box-shadow:none;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.workspace-section-switch:hover,
.workspace-section-switch:focus-visible{
  border-color:color-mix(in srgb,var(--primary) 38%,var(--line));
  background:color-mix(in srgb,var(--primary) 7%,var(--panel));
  box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 8%,transparent);
}
.workspace-section-switch option{color:var(--text);background:var(--panel);text-align:right}

#app .center-wrap,
#app .panel,
#app .panel > .card,
#app .panel .section{min-width:0;max-width:100%}

@keyframes workspaceCardEnter{
  from{opacity:0;transform:translate3d(0,8px,0) scale(.985)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
@keyframes workspaceSvgFloat{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(0,-4px,0)}
}
@keyframes workspaceSvgPulse{
  0%,100%{transform:scale(.92);opacity:.68}
  50%{transform:scale(1.18);opacity:1}
}
@keyframes workspaceSvgDraw{
  0%,14%{stroke-dashoffset:180;opacity:.46}
  42%,72%{stroke-dashoffset:0;opacity:1}
  88%,100%{stroke-dashoffset:-180;opacity:.42}
}
@keyframes workspaceSvgScan{
  0%,100%{transform:translate3d(0,-15px,0);opacity:.16}
  50%{transform:translate3d(0,16px,0);opacity:.9}
}
@keyframes workspaceSvgSpin{to{transform:rotate(360deg)}}
@keyframes workspaceSvgSpark{
  0%,100%{transform:scale(.84) rotate(0deg);opacity:.64}
  50%{transform:scale(1.06) rotate(10deg);opacity:1}
}
@keyframes workspaceSvgNode{
  0%,100%{transform:scale(.88);opacity:.55}
  50%{transform:scale(1.12);opacity:1}
}

@media(max-width:1180px){
  .workspace-home-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(190px,1fr)}
}
@media(max-width:820px){
  #app{overflow-x:clip}
  .workspace-home{min-height:calc(100dvh - 96px);padding-top:4px;gap:12px}
  .workspace-home-heading{padding-inline:2px}
  .workspace-home-heading h2{margin-top:7px;font-size:1.2rem}
  .workspace-home-heading p{font-size:.73rem}
  .workspace-home-kicker{min-height:22px;padding:4px 8px;font-size:.59rem}
  .workspace-home-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-rows:minmax(118px,auto);
    gap:8px;
    align-content:start;
  }
  .workspace-home-card{
    min-height:118px;
    padding:7px 6px 8px;
    gap:3px;
    border-radius:14px;
    align-items:center;
    text-align:center;
    justify-content:center;
  }
  .workspace-card-art{width:66px;height:66px;min-width:66px;min-height:66px;max-width:66px;max-height:66px;flex-basis:66px}
  .workspace-card-svg{width:66px;height:66px;min-width:66px;min-height:66px;max-width:66px;max-height:66px}
  .workspace-card-copy{width:100%;align-items:center;gap:0}
  .workspace-card-copy strong{width:100%;font-size:.68rem;line-height:1.14;text-align:center;overflow-wrap:normal;word-break:normal}
  .workspace-card-copy small,.workspace-card-open{display:none}
  .workspace-section-nav{
    top:5px;
    grid-template-columns:auto minmax(0,1fr);
    min-height:40px;
    margin-bottom:8px;
    padding:4px;
    border-radius:13px;
    gap:5px;
  }
  .workspace-home-back{min-width:104px;height:32px;padding-inline:8px;border-radius:9px;font-size:.64rem;gap:5px}
  .workspace-section-current{display:none}
  .workspace-section-switch{height:32px;padding-inline:8px;border-radius:9px;font-size:.66rem}
}
@media(max-width:380px){
  .workspace-home-grid{gap:6px}
  .workspace-home-card{min-height:108px;padding:6px 4px}
  .workspace-card-art{width:60px;height:60px;min-width:60px;min-height:60px;max-width:60px;max-height:60px;flex-basis:60px}
  .workspace-card-svg{width:60px;height:60px;min-width:60px;min-height:60px;max-width:60px;max-height:60px}
  .workspace-card-copy strong{font-size:.62rem}
  .workspace-section-nav{grid-template-columns:auto minmax(0,1fr)}
  .workspace-home-back{min-width:98px;height:30px;padding-inline:7px;font-size:.6rem}
}

html.triplem-low-power .workspace-home-card{animation:none !important;transition:none !important}
html.triplem-low-power .workspace-card-svg *{animation:none !important}
html.triplem-low-power .workspace-home-card::before{display:none}
html.triplem-low-power .workspace-section-nav{backdrop-filter:none;-webkit-backdrop-filter:none}
@media(prefers-reduced-motion:reduce){
  .workspace-home-card,
  .workspace-card-svg *{animation:none !important;transition:none !important}
  .workspace-home-card::before{display:none}
}

/* Workspace visual refinement — 2026-09-16 rev 002
   Theme-aware multi-colour SVG art using the centralized chart palette. */
.workspace-home{
  margin-top:-10px;
  padding-top:0;
}
.workspace-home-heading{
  align-items:flex-start;
  padding-top:0;
}
.workspace-home-heading > div{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
}
.workspace-home-kicker{
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:var(--primary);
  font-size:.7rem;
  letter-spacing:.12em;
}
.workspace-home-heading p{
  margin:0;
  font-size:.86rem;
}

.workspace-home-card{
  --wh-c1:var(--chart-series-1,var(--primary));
  --wh-c2:var(--chart-series-2,var(--success));
  --wh-c3:var(--chart-series-3,var(--warning));
  --wh-c4:var(--chart-series-4,var(--secondary));
  background:radial-gradient(110% 78% at 92% -5%,color-mix(in srgb,var(--wh-c1) 15%,transparent),transparent 58%),
    radial-gradient(90% 66% at -4% 104%,color-mix(in srgb,var(--wh-c2) 10%,transparent),transparent 64%),
    linear-gradient(145deg,color-mix(in srgb,var(--panel) 97%,var(--wh-c1) 3%),color-mix(in srgb,var(--panel-2) 94%,transparent));
  border-color:color-mix(in srgb,var(--line) 78%,var(--wh-c1) 22%);
  box-shadow:0 12px 28px color-mix(in srgb,var(--wh-c1) 8%,transparent),
    inset 0 1px 0 color-mix(in srgb,#fff 44%,transparent);
}
.workspace-home-card--dashboard{--wh-c1:var(--chart-series-1);--wh-c2:var(--chart-series-2);--wh-c3:var(--chart-series-3);--wh-c4:var(--chart-series-4)}
.workspace-home-card--expenses{--wh-c1:var(--chart-series-2);--wh-c2:var(--chart-series-1);--wh-c3:var(--chart-series-6);--wh-c4:var(--chart-series-3)}
.workspace-home-card--goods{--wh-c1:var(--chart-series-7);--wh-c2:var(--chart-series-2);--wh-c3:var(--chart-series-3);--wh-c4:var(--chart-series-5)}
.workspace-home-card--audit{--wh-c1:var(--chart-series-5);--wh-c2:var(--chart-series-1);--wh-c3:var(--chart-series-2);--wh-c4:var(--chart-series-3)}
.workspace-home-card--triplem-ai{--wh-c1:var(--chart-series-4);--wh-c2:var(--chart-series-5);--wh-c3:var(--chart-series-6);--wh-c4:var(--chart-series-2)}
.workspace-home-card--assets{--wh-c1:var(--chart-series-3);--wh-c2:var(--chart-series-1);--wh-c3:var(--chart-series-2);--wh-c4:var(--chart-series-4)}
.workspace-home-card--loans{--wh-c1:var(--chart-series-2);--wh-c2:var(--chart-series-6);--wh-c3:var(--chart-series-1);--wh-c4:var(--chart-series-3)}
.workspace-home-card--installments{--wh-c1:var(--chart-series-4);--wh-c2:var(--chart-series-3);--wh-c3:var(--chart-series-1);--wh-c4:var(--chart-series-2)}
.workspace-home-card--notes{--wh-c1:var(--chart-series-6);--wh-c2:var(--chart-series-4);--wh-c3:var(--chart-series-3);--wh-c4:var(--chart-series-5)}
.workspace-home-card--bitcoin{--wh-c1:var(--chart-series-3);--wh-c2:var(--chart-series-5);--wh-c3:var(--chart-series-1);--wh-c4:var(--chart-series-2)}
.workspace-home-card--admin{--wh-c1:var(--chart-series-1);--wh-c2:var(--chart-series-6);--wh-c3:var(--chart-series-4);--wh-c4:var(--chart-series-2)}

.workspace-home-card:hover,
.workspace-home-card:focus-visible{
  border-color:color-mix(in srgb,var(--wh-c1) 54%,var(--line));
  box-shadow:0 18px 38px color-mix(in srgb,var(--wh-c1) 13%,transparent),
    0 5px 18px color-mix(in srgb,var(--wh-c2) 7%,transparent),
    inset 0 1px 0 color-mix(in srgb,#fff 50%,transparent);
}
.workspace-card-art{
  position:relative;
  isolation:isolate;
  color:var(--wh-c1);
}
.workspace-card-art::before,
.workspace-card-art::after{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  border-radius:50%;
  transform:translate3d(0,0,0);
}
.workspace-card-art::before{
  width:116px;
  height:116px;
  right:50%;
  top:50%;
  margin-right:-58px;
  margin-top:-58px;
  background:radial-gradient(circle,color-mix(in srgb,var(--wh-c1) 18%,transparent),transparent 70%);
  animation:workspaceArtGlowA 5.6s ease-in-out infinite;
}
.workspace-card-art::after{
  width:86px;
  height:86px;
  right:50%;
  top:50%;
  margin-right:-43px;
  margin-top:-43px;
  background:radial-gradient(circle,color-mix(in srgb,var(--wh-c2) 14%,transparent),transparent 72%);
  animation:workspaceArtGlowB 6.8s ease-in-out infinite;
}
.workspace-card-svg{
  position:relative;
  z-index:1;
  transition:transform .24s cubic-bezier(.2,.75,.2,1);
}
.workspace-home-card:hover .workspace-card-svg,
.workspace-home-card:focus-visible .workspace-card-svg{transform:scale(1.035)}
.workspace-card-svg .wh-gradient-halo{opacity:.86;animation:workspaceHaloBreath 5s ease-in-out infinite}
.workspace-card-svg .wh-frame{
  fill:color-mix(in srgb,var(--wh-c1) 6%,transparent);
  stroke:var(--wh-c1);
}
.workspace-card-svg .wh-soft{
  stroke:color-mix(in srgb,var(--wh-c2) 76%,var(--muted));
  opacity:.9;
}
.workspace-card-svg circle.wh-soft,
.workspace-card-svg rect.wh-soft{fill:color-mix(in srgb,var(--wh-c2) 8%,transparent)}
.workspace-card-svg .wh-accent{stroke:var(--wh-c3)}
.workspace-card-svg .wh-line{stroke:var(--wh-c4)}
.workspace-card-svg .wh-pulse,
.workspace-card-svg .wh-dot{
  fill:var(--wh-c3);
  stroke:color-mix(in srgb,var(--panel) 80%,transparent);
}
.workspace-card-svg .wh-fill-soft{fill:color-mix(in srgb,var(--wh-c3) 11%,transparent)}
.workspace-card-svg .wh-fill-solid{fill:var(--wh-c3);stroke:color-mix(in srgb,var(--wh-c4) 62%,var(--wh-c3))}
.workspace-card-svg .wh-ai-orbit{
  fill:none;
  stroke:color-mix(in srgb,var(--wh-c2) 56%,transparent);
  stroke-width:1.1;
  stroke-dasharray:3.5 8;
  opacity:.52;
}
.workspace-card-svg .wh-particle{fill:var(--wh-c4);opacity:.7}
.workspace-card-svg .wh-particle-two{fill:var(--wh-c2)}
.workspace-card-svg .wh-particle-three{fill:var(--wh-c3)}
.workspace-card-svg .wh-main-shape{animation:workspaceMainShapeFloat 4.8s ease-in-out infinite}
.workspace-card-svg .wh-spin-slow{animation:workspaceSvgSpin 14s linear infinite}
.workspace-card-svg .wh-spin-reverse{animation:workspaceSvgSpinReverse 10s linear infinite}
.workspace-card-svg .wh-particle-one{animation:workspaceParticleOne 3.4s ease-in-out infinite}
.workspace-card-svg .wh-particle-two{animation:workspaceParticleTwo 3.9s ease-in-out infinite .4s}
.workspace-card-svg .wh-particle-three{animation:workspaceParticleThree 4.3s ease-in-out infinite .8s}
.workspace-card-svg .wh-draw-short{
  stroke-dasharray:52;
  stroke-dashoffset:52;
  animation:workspaceShortDraw 3.2s ease-in-out infinite;
}
.workspace-card-svg .wh-wave{stroke-dasharray:5 7;animation:workspaceEnergyDrift 5.4s linear infinite}
.workspace-card-svg .wh-rise{animation:workspaceRise 3s ease-in-out infinite}
.workspace-card-svg .wh-orbit-arc{stroke-dasharray:10 8;animation:workspaceEnergyDrift 5.8s linear infinite}
.workspace-card-svg .wh-calendar-glow{fill:color-mix(in srgb,var(--wh-c4) 10%,transparent);animation:workspaceCalendarGlow 2.8s ease-in-out infinite}
.workspace-card-svg .wh-ai-core{animation:workspaceAiCore 3s ease-in-out infinite}

@keyframes workspaceArtGlowA{
  0%,100%{transform:translate3d(-10px,3px,0) scale(.92);opacity:.62}
  50%{transform:translate3d(7px,-5px,0) scale(1.08);opacity:1}
}
@keyframes workspaceArtGlowB{
  0%,100%{transform:translate3d(3px,-2px,0) scale(1.04);opacity:.55}
  50%{transform:translate3d(-10px,8px,0) scale(.9);opacity:.92}
}
@keyframes workspaceHaloBreath{
  0%,100%{transform:scale(.94);opacity:.56}
  50%{transform:scale(1.06);opacity:.92}
}
@keyframes workspaceMainShapeFloat{
  0%,100%{transform:translate3d(0,1px,0)}
  50%{transform:translate3d(0,-2px,0)}
}
@keyframes workspaceSvgSpinReverse{to{transform:rotate(-360deg)}}
@keyframes workspaceEnergyDrift{
  from{stroke-dashoffset:0}
  to{stroke-dashoffset:-96}
}
@keyframes workspaceParticleOne{
  0%,100%{transform:translate3d(0,0,0) scale(.75);opacity:.35}
  50%{transform:translate3d(5px,-5px,0) scale(1.25);opacity:1}
}
@keyframes workspaceParticleTwo{
  0%,100%{transform:translate3d(0,0,0) scale(.82);opacity:.4}
  50%{transform:translate3d(-6px,4px,0) scale(1.18);opacity:.95}
}
@keyframes workspaceParticleThree{
  0%,100%{transform:translate3d(0,0,0) scale(.8);opacity:.38}
  50%{transform:translate3d(-4px,-6px,0) scale(1.2);opacity:1}
}
@keyframes workspaceShortDraw{
  0%,18%{stroke-dashoffset:52;opacity:.35}
  46%,76%{stroke-dashoffset:0;opacity:1}
  100%{stroke-dashoffset:-52;opacity:.35}
}
@keyframes workspaceRise{
  0%,100%{transform:translate3d(-2px,2px,0);opacity:.58}
  50%{transform:translate3d(2px,-2px,0);opacity:1}
}
@keyframes workspaceCalendarGlow{
  0%,100%{opacity:.35;transform:scaleX(.82)}
  50%{opacity:1;transform:scaleX(1.08)}
}
@keyframes workspaceAiCore{
  0%,100%{transform:scale(.96)}
  50%{transform:scale(1.035)}
}

html.triplem-low-power .workspace-card-art::before,
html.triplem-low-power .workspace-card-art::after{animation:none !important}

@media(max-width:820px){
  .workspace-home{margin-top:-3px;padding-top:0}
  .workspace-home-heading > div{gap:4px}
  .workspace-home-kicker{font-size:.6rem}
  .workspace-home-heading p{font-size:.72rem;line-height:1.35}
  .workspace-card-art::before{width:64px;height:64px;margin-right:-32px;margin-top:-32px}
  .workspace-card-art::after{width:48px;height:48px;margin-right:-24px;margin-top:-24px}
}
@media(prefers-reduced-motion:reduce){
  .workspace-card-art::before,
  .workspace-card-art::after{animation:none !important}
  .workspace-card-svg{transition:none !important}
}


/* Triplem VIP Home refinement — 2026-09-16 rev 005
   Clean navigation controls, no full-width shell bands, and desktop home with no ambient banner surface. */
.workspace-home{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
.workspace-home::before,
.workspace-home::after{
  display:none !important;
  content:none !important;
}
.workspace-section-nav{
  position:sticky;
  top:8px;
  width:min(100%,var(--content-max));
  min-height:0;
  margin:0 auto 10px;
  padding:0 2px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
.workspace-home-back{
  min-width:132px;
  flex:0 0 auto;
}
.workspace-section-switch{
  width:min(220px,38vw);
  flex:0 1 220px;
}
.workspace-section-current{display:none !important}

/* Keep the Wallet home artwork visually square rather than a flattened landscape glyph. */
.workspace-home-card--expenses .workspace-card-svg .wh-main-shape{
  transform-origin:center center;
}

@media(max-width:820px){
  .workspace-section-nav{
    padding:0;
    gap:6px;
  }
  .workspace-home-back{
    min-width:118px;
    flex:0 0 auto;
  }
  .workspace-section-switch{
    width:auto;
    min-width:0;
    flex:1 1 auto;
  }
}

/* Workspace SVG illustration refinement — 2026-09-16 rev 006
   Fuller section-specific artwork, strict animation clipping, and no Wallet top-flap animation. */
.workspace-card-art{
  overflow:hidden;
  border-radius:26px;
  contain:paint;
}
.workspace-card-svg{
  overflow:hidden !important;
  contain:paint;
}
.workspace-card-svg .wh-svg-stage{
  transform-origin:80px 80px;
}
.workspace-card-svg .wh-gradient-halo{
  opacity:.72;
  animation:workspaceHaloBreath 5.4s ease-in-out infinite;
}
.workspace-card-svg .wh-icon-base{
  stroke:color-mix(in srgb,var(--wh-c1) 68%,var(--panel));
  stroke-width:1.55;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.94;
}
.workspace-card-svg .wh-icon-inset{
  fill:color-mix(in srgb,var(--panel) 70%,transparent);
  stroke:color-mix(in srgb,#fff 38%,var(--wh-c2));
  stroke-width:1.15;
  opacity:.72;
}
.workspace-card-svg .wh-fill-primary{fill:var(--wh-c1)}
.workspace-card-svg .wh-fill-secondary{fill:var(--wh-c2)}
.workspace-card-svg .wh-fill-accent{fill:var(--wh-c3);stroke:color-mix(in srgb,var(--wh-c4) 52%,var(--wh-c3));stroke-width:1.1}
.workspace-card-svg .wh-fill-four{fill:var(--wh-c4)}
.workspace-card-svg .wh-chip{
  fill:color-mix(in srgb,var(--panel) 66%,var(--wh-c2) 34%);
  stroke:color-mix(in srgb,var(--wh-c2) 62%,var(--panel));
  stroke-width:.8;
  opacity:.92;
}
.workspace-card-svg .wh-chip-short{opacity:.72}
.workspace-card-svg .wh-beacon{
  fill:var(--wh-c3);
  stroke:color-mix(in srgb,var(--panel) 82%,transparent);
  stroke-width:2;
  animation:workspaceSvgPulse 2.35s ease-in-out infinite;
}
.workspace-card-svg .wh-bright-line,
.workspace-card-svg .wh-bottom-line,
.workspace-card-svg .wh-node-link,
.workspace-card-svg .wh-currency-mark,
.workspace-card-svg .wh-transfer-arrow,
.workspace-card-svg .wh-check,
.workspace-card-svg .wh-fold,
.workspace-card-svg .wh-pencil-line,
.workspace-card-svg .wh-bitcoin-mark,
.workspace-card-svg .wh-gear-spokes,
.workspace-card-svg .wh-growth,
.workspace-card-svg .wh-growth-head,
.workspace-card-svg .wh-coin-mark{
  fill:none;
  stroke:color-mix(in srgb,#fff 72%,var(--wh-c4));
  stroke-width:2.25;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.workspace-card-svg .wh-bottom-line{opacity:.52;stroke-width:1.8}
.workspace-card-svg .wh-check{stroke:var(--wh-c3);stroke-width:4}
.workspace-card-svg .wh-transfer-arrow{stroke:color-mix(in srgb,#fff 78%,var(--wh-c3));stroke-width:3}
.workspace-card-svg .wh-currency-mark{stroke:color-mix(in srgb,#fff 82%,var(--wh-c4));stroke-width:3}
.workspace-card-svg .wh-bitcoin-mark{stroke:color-mix(in srgb,#fff 88%,var(--wh-c4));stroke-width:3.3}
.workspace-card-svg .wh-pencil-line{stroke:color-mix(in srgb,#fff 80%,var(--wh-c4));stroke-width:2}
.workspace-card-svg .wh-fold{stroke:color-mix(in srgb,#fff 68%,var(--wh-c2));stroke-width:2.1}
.workspace-card-svg .wh-growth{stroke:var(--wh-c3);stroke-width:3.2}
.workspace-card-svg .wh-growth-head{stroke:var(--wh-c3);stroke-width:3.2}
.workspace-card-svg .wh-bar{
  opacity:.92;
  transform-origin:center bottom;
  animation:workspaceBarLift 3.2s ease-in-out infinite;
}
.workspace-card-svg .wh-bar-two{animation-delay:.16s}
.workspace-card-svg .wh-bar-three{animation-delay:.32s}
.workspace-card-svg .wh-bar-four{animation-delay:.48s}
.workspace-card-svg .wh-wallet-pocket{
  fill:color-mix(in srgb,var(--panel) 48%,var(--wh-c4) 52%);
  stroke:color-mix(in srgb,#fff 44%,var(--wh-c4));
  stroke-width:1.2;
}
.workspace-card-svg .wh-coin{
  fill:color-mix(in srgb,var(--wh-c3) 78%,var(--panel));
  stroke:color-mix(in srgb,#fff 42%,var(--wh-c3));
  stroke-width:1.1;
}
.workspace-card-svg .wh-wallet-shape .wh-coin-one{animation:workspaceCoinBreathe 3.4s ease-in-out infinite}
.workspace-card-svg .wh-wallet-shape .wh-coin-two{animation:workspaceCoinBreathe 3.8s ease-in-out infinite .3s}
.workspace-card-svg .wh-wallet-shape{
  animation:workspaceWalletBreathe 4.9s ease-in-out infinite;
}
.workspace-card-svg .wh-building{
  stroke:color-mix(in srgb,#fff 34%,var(--wh-c1));
  stroke-width:1.25;
}
.workspace-card-svg .wh-building-small{fill:color-mix(in srgb,var(--wh-c2) 72%,var(--panel))}
.workspace-card-svg .wh-building-tall{fill:color-mix(in srgb,var(--wh-c1) 78%,var(--panel))}
.workspace-card-svg .wh-window{
  fill:color-mix(in srgb,var(--wh-c3) 68%,#fff 32%);
  opacity:.88;
  animation:workspaceWindowGlow 3.8s ease-in-out infinite;
}
.workspace-card-svg .wh-window:nth-of-type(2n){animation-delay:.35s}
.workspace-card-svg .wh-loan-right{opacity:.9}
.workspace-card-svg .wh-calendar-head{fill:color-mix(in srgb,var(--wh-c2) 72%,var(--panel));opacity:.9}
.workspace-card-svg .wh-ring{fill:var(--wh-c4)}
.workspace-card-svg .wh-date{fill:color-mix(in srgb,var(--panel) 58%,var(--wh-c2) 42%);opacity:.82}
.workspace-card-svg .wh-date-active{fill:var(--wh-c3);animation:workspaceDatePulse 2.8s ease-in-out infinite}
.workspace-card-svg .wh-pencil{stroke:color-mix(in srgb,#fff 32%,var(--wh-c4));stroke-width:1.15;animation:workspacePencilNudge 3.7s ease-in-out infinite}
.workspace-card-svg .wh-ai-node{
  fill:color-mix(in srgb,var(--wh-c2) 72%,var(--panel));
  stroke:color-mix(in srgb,#fff 34%,var(--wh-c2));
  stroke-width:1.1;
}
.workspace-card-svg .wh-ai-spark{stroke:color-mix(in srgb,#fff 46%,var(--wh-c3));stroke-width:1.1;animation:workspaceSvgSpark 2.7s ease-in-out infinite}
.workspace-card-svg .wh-gear-ring{
  fill:color-mix(in srgb,var(--panel) 56%,var(--wh-c2) 44%);
  stroke:color-mix(in srgb,#fff 38%,var(--wh-c2));
  stroke-width:2;
  stroke-dasharray:8 5;
}
.workspace-card-svg .wh-scan{
  stroke:color-mix(in srgb,#fff 72%,var(--wh-c4));
  stroke-width:2.2;
  opacity:.72;
}

/* The Wallet must never emit or animate a separate shape above its body. */
.workspace-home-card--expenses .workspace-card-svg .wh-wallet-shape > *{
  transform-origin:center center;
}
.workspace-home-card--expenses .workspace-card-svg .wh-wallet-shape .wh-icon-base,
.workspace-home-card--expenses .workspace-card-svg .wh-wallet-shape .wh-icon-inset,
.workspace-home-card--expenses .workspace-card-svg .wh-wallet-shape .wh-wallet-pocket,
.workspace-home-card--expenses .workspace-card-svg .wh-wallet-shape .wh-chip,
.workspace-home-card--expenses .workspace-card-svg .wh-wallet-shape .wh-bottom-line{
  animation:none !important;
}

@keyframes workspaceBarLift{
  0%,100%{transform:scaleY(.9);opacity:.72}
  50%{transform:scaleY(1.03);opacity:1}
}
@keyframes workspaceCoinBreathe{
  0%,100%{transform:translate3d(0,0,0) scale(.96)}
  50%{transform:translate3d(0,-2px,0) scale(1.04)}
}
@keyframes workspaceWalletBreathe{
  0%,100%{transform:translate3d(0,1px,0)}
  50%{transform:translate3d(0,-1px,0)}
}
@keyframes workspaceWindowGlow{
  0%,100%{opacity:.5}
  50%{opacity:1}
}
@keyframes workspaceDatePulse{
  0%,100%{transform:scale(.94);opacity:.76}
  50%{transform:scale(1.05);opacity:1}
}
@keyframes workspacePencilNudge{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(2px,-2px,0)}
}

html.triplem-low-power .workspace-card-svg .wh-bar,
html.triplem-low-power .workspace-card-svg .wh-window,
html.triplem-low-power .workspace-card-svg .wh-date-active,
html.triplem-low-power .workspace-card-svg .wh-pencil,
html.triplem-low-power .workspace-card-svg .wh-wallet-shape,
html.triplem-low-power .workspace-card-svg .wh-coin{animation:none !important}

@media(max-width:820px){
  .workspace-card-art{border-radius:16px}
  .workspace-card-svg .wh-icon-base{stroke-width:1.35}
}
@media(prefers-reduced-motion:reduce){
  .workspace-card-svg .wh-bar,
  .workspace-card-svg .wh-window,
  .workspace-card-svg .wh-date-active,
  .workspace-card-svg .wh-pencil,
  .workspace-card-svg .wh-wallet-shape,
  .workspace-card-svg .wh-coin{animation:none !important}
}

/* Workspace SVG modern palette + semantic Loans/Bitcoin — 2026-09-16 rev 007
   Restrained two-tone color hierarchy, realistic finance symbols, and clipped micro-motion. */
.workspace-home-card{
  --wh-neutral:color-mix(in srgb,var(--text) 72%,var(--panel));
  --wh-metal:color-mix(in srgb,var(--muted) 42%,var(--panel));
  --wh-c3:color-mix(in srgb,var(--wh-c1) 76%,var(--text) 24%);
  --wh-c4:color-mix(in srgb,var(--wh-c2) 62%,var(--text) 38%);
  background:radial-gradient(84% 66% at 88% 0%,color-mix(in srgb,var(--wh-c1) 9%,transparent),transparent 64%),
    linear-gradient(150deg,color-mix(in srgb,var(--panel) 98%,var(--wh-c1) 2%),color-mix(in srgb,var(--panel-2) 97%,var(--wh-c2) 3%));
  border-color:color-mix(in srgb,var(--line) 88%,var(--wh-c1) 12%);
  box-shadow:0 10px 26px color-mix(in srgb,var(--text) 5%,transparent),inset 0 1px 0 color-mix(in srgb,#fff 36%,transparent);
}
.workspace-home-card--dashboard{--wh-c1:color-mix(in srgb,var(--chart-series-1) 62%,var(--primary) 38%);--wh-c2:color-mix(in srgb,var(--primary-2) 72%,var(--chart-series-2) 28%)}
.workspace-home-card--expenses{--wh-c1:color-mix(in srgb,var(--chart-series-2) 58%,var(--primary) 42%);--wh-c2:color-mix(in srgb,var(--primary-2) 65%,var(--chart-series-1) 35%)}
.workspace-home-card--goods{--wh-c1:color-mix(in srgb,var(--chart-series-7) 54%,var(--primary) 46%);--wh-c2:color-mix(in srgb,var(--primary-2) 72%,var(--chart-series-2) 28%)}
.workspace-home-card--audit{--wh-c1:color-mix(in srgb,var(--chart-series-5) 52%,var(--primary) 48%);--wh-c2:color-mix(in srgb,var(--primary-2) 76%,var(--chart-series-1) 24%)}
.workspace-home-card--triplem-ai{--wh-c1:color-mix(in srgb,var(--chart-series-4) 58%,var(--primary) 42%);--wh-c2:color-mix(in srgb,var(--primary-2) 68%,var(--chart-series-5) 32%)}
.workspace-home-card--assets{--wh-c1:color-mix(in srgb,var(--chart-series-3) 54%,var(--primary) 46%);--wh-c2:color-mix(in srgb,var(--primary-2) 74%,var(--chart-series-1) 26%)}
.workspace-home-card--loans{--wh-c1:color-mix(in srgb,var(--chart-series-2) 56%,var(--primary) 44%);--wh-c2:color-mix(in srgb,var(--primary-2) 72%,var(--chart-series-6) 28%)}
.workspace-home-card--installments{--wh-c1:color-mix(in srgb,var(--chart-series-4) 54%,var(--primary) 46%);--wh-c2:color-mix(in srgb,var(--primary-2) 72%,var(--chart-series-3) 28%)}
.workspace-home-card--notes{--wh-c1:color-mix(in srgb,var(--chart-series-6) 54%,var(--primary) 46%);--wh-c2:color-mix(in srgb,var(--primary-2) 74%,var(--chart-series-4) 26%)}
.workspace-home-card--admin{--wh-c1:color-mix(in srgb,var(--chart-series-1) 64%,var(--primary) 36%);--wh-c2:color-mix(in srgb,var(--primary-2) 74%,var(--chart-series-6) 26%)}
.workspace-home-card--bitcoin{
  --wh-btc-gold:color-mix(in srgb,#f5a524 86%,var(--primary) 14%);
  --wh-btc-deep:color-mix(in srgb,#b86a0b 82%,var(--primary) 18%);
  --wh-btc-light:color-mix(in srgb,#ffd978 90%,var(--primary-contrast) 10%);
  --wh-c1:var(--wh-btc-gold);
  --wh-c2:var(--wh-btc-deep);
}
.workspace-card-svg .wh-gradient-halo{opacity:.46}
.workspace-card-svg .wh-icon-base{opacity:.91;stroke:color-mix(in srgb,var(--wh-c1) 52%,var(--panel));stroke-width:1.25}
.workspace-card-svg .wh-icon-inset{fill:color-mix(in srgb,var(--panel) 82%,var(--wh-c1) 18%);stroke:color-mix(in srgb,var(--text) 18%,var(--wh-c1));opacity:.82}
.workspace-card-svg .wh-chip{fill:color-mix(in srgb,var(--panel) 78%,var(--wh-c2) 22%);stroke:color-mix(in srgb,var(--wh-c2) 42%,var(--line));opacity:.9}
.workspace-card-svg .wh-beacon{fill:var(--wh-c2);stroke:color-mix(in srgb,var(--panel) 88%,transparent)}
.workspace-card-svg .wh-fill-primary{fill:var(--wh-c1)}
.workspace-card-svg .wh-fill-secondary{fill:var(--wh-c2)}
.workspace-card-svg .wh-fill-accent{fill:color-mix(in srgb,var(--wh-c1) 74%,var(--wh-c2) 26%);stroke:color-mix(in srgb,var(--wh-c2) 52%,var(--wh-c1))}
.workspace-card-svg .wh-fill-four{fill:color-mix(in srgb,var(--wh-c2) 74%,var(--wh-neutral) 26%)}

/* Loans: agreement + money + repayment, not generic transfer. */
.workspace-card-svg .wh-loan-paper{stroke:color-mix(in srgb,var(--wh-c1) 62%,var(--panel));stroke-width:1.4}
.workspace-card-svg .wh-loan-paper-inset{fill:color-mix(in srgb,var(--panel) 84%,var(--wh-c1) 16%)}
.workspace-card-svg .wh-loan-check{fill:none;stroke:var(--wh-c2);stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:38;animation:workspaceLoanCheck 3.6s ease-in-out infinite}
.workspace-card-svg .wh-loan-coins{transform-origin:111px 88px;animation:workspaceLoanCoins 3.8s ease-in-out infinite}
.workspace-card-svg .wh-loan-coin{fill:color-mix(in srgb,var(--wh-c2) 76%,var(--panel));stroke:color-mix(in srgb,var(--wh-c2) 72%,var(--text));stroke-width:1}
.workspace-card-svg .wh-loan-coin-back{fill:color-mix(in srgb,var(--wh-c2) 46%,var(--panel))}
.workspace-card-svg .wh-loan-coin-side{fill:color-mix(in srgb,var(--wh-c2) 58%,var(--panel));stroke:color-mix(in srgb,var(--wh-c2) 48%,var(--line));stroke-width:.8}
.workspace-card-svg .wh-loan-coin-side-two{fill:color-mix(in srgb,var(--wh-c2) 64%,var(--panel))}
.workspace-card-svg .wh-loan-coin-top{fill:color-mix(in srgb,var(--wh-c2) 84%,var(--panel))}
.workspace-card-svg .wh-loan-coin-mark{fill:none;stroke:color-mix(in srgb,var(--text) 78%,var(--wh-c2));stroke-width:2.2;stroke-linecap:round}
.workspace-card-svg .wh-loan-repay-arrow{fill:none;stroke:color-mix(in srgb,var(--wh-c1) 76%,var(--text));stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:8 7;animation:workspaceLoanRepay 4.2s linear infinite}
.workspace-card-svg .wh-loan-arrow-dot{fill:var(--wh-c1);animation:workspaceSvgPulse 2.6s ease-in-out infinite}

/* Bitcoin: dimensional, tilted metallic coin with a restrained sheen. */
.workspace-card-svg .wh-bitcoin-scene{animation:none}
.workspace-card-svg .wh-bitcoin-coin{transform-origin:80px 80px;animation:workspaceBitcoinTilt 5.2s ease-in-out infinite}
.workspace-card-svg .wh-bitcoin-edge{stroke:color-mix(in srgb,var(--wh-btc-deep) 86%,#5c3608);stroke-width:1.1}
.workspace-card-svg .wh-bitcoin-edge-back{fill:color-mix(in srgb,var(--wh-btc-deep) 84%,#5d3708)}
.workspace-card-svg .wh-bitcoin-edge-mid{fill:color-mix(in srgb,var(--wh-btc-gold) 64%,var(--wh-btc-deep))}
.workspace-card-svg .wh-bitcoin-face{fill:var(--wh-btc-gold);stroke:color-mix(in srgb,var(--wh-btc-light) 68%,var(--wh-btc-deep));stroke-width:1.6}
.workspace-card-svg .wh-bitcoin-ring{fill:none;stroke:color-mix(in srgb,var(--wh-btc-light) 62%,var(--wh-btc-deep));stroke-width:2.2;opacity:.9}
.workspace-card-svg .wh-bitcoin-mark{stroke:color-mix(in srgb,#fff 78%,var(--wh-btc-light));stroke-width:3.2;filter:none}
.workspace-card-svg .wh-bitcoin-shine{fill:none;stroke:color-mix(in srgb,#fff 74%,var(--wh-btc-light));stroke-width:3;stroke-linecap:round;opacity:.55;animation:workspaceBitcoinShine 3.8s ease-in-out infinite}
.workspace-card-svg .wh-bitcoin-shadow{fill:color-mix(in srgb,var(--text) 16%,transparent);opacity:.32;transform-origin:82px 135px;animation:workspaceBitcoinShadow 5.2s ease-in-out infinite}

@keyframes workspaceLoanCheck{
  0%,18%{stroke-dashoffset:38;opacity:.42}
  42%,82%{stroke-dashoffset:0;opacity:1}
  100%{stroke-dashoffset:-38;opacity:.46}
}
@keyframes workspaceLoanCoins{
  0%,100%{transform:translate3d(0,1px,0)}
  50%{transform:translate3d(0,-2px,0)}
}
@keyframes workspaceLoanRepay{to{stroke-dashoffset:-60}}
@keyframes workspaceBitcoinTilt{
  0%,100%{transform:translate3d(-1px,1px,0) rotate(-1.2deg)}
  50%{transform:translate3d(1px,-1px,0) rotate(1.2deg)}
}
@keyframes workspaceBitcoinShine{
  0%,100%{opacity:.28;transform:translate3d(-2px,2px,0)}
  50%{opacity:.72;transform:translate3d(2px,-2px,0)}
}
@keyframes workspaceBitcoinShadow{
  0%,100%{transform:scaleX(.9);opacity:.24}
  50%{transform:scaleX(1.04);opacity:.34}
}

html.triplem-low-power .workspace-card-svg .wh-loan-check,
html.triplem-low-power .workspace-card-svg .wh-loan-coins,
html.triplem-low-power .workspace-card-svg .wh-loan-repay-arrow,
html.triplem-low-power .workspace-card-svg .wh-loan-arrow-dot,
html.triplem-low-power .workspace-card-svg .wh-bitcoin-coin,
html.triplem-low-power .workspace-card-svg .wh-bitcoin-shine,
html.triplem-low-power .workspace-card-svg .wh-bitcoin-shadow{animation:none !important}
@media(prefers-reduced-motion:reduce){
  .workspace-card-svg .wh-loan-check,
  .workspace-card-svg .wh-loan-coins,
  .workspace-card-svg .wh-loan-repay-arrow,
  .workspace-card-svg .wh-loan-arrow-dot,
  .workspace-card-svg .wh-bitcoin-coin,
  .workspace-card-svg .wh-bitcoin-shine,
  .workspace-card-svg .wh-bitcoin-shadow{animation:none !important}
}

/* Workspace icon system V2 — 2026-09-16 rev 008
   Purpose-built section symbols, restrained theme color, subtle internal motion, strict clipping. */
.workspace-card-art::before,
.workspace-card-art::after{display:none !important}
.workspace-card-art{
  overflow:hidden !important;
  contain:paint;
  border-radius:24px;
}
.workspace-card-svg-v2{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  overflow:hidden !important;
  contain:paint;
}
.workspace-card-svg-v2 .wh-v2-stage{transform-origin:80px 80px}
.workspace-card-svg-v2 .wh-v2-icon{transform-origin:80px 80px}
.workspace-card-svg-v2 .wh-v2-shell,
.workspace-card-svg-v2 .wh-v2-screen,
.workspace-card-svg-v2 .wh-v2-wallet-body,
.workspace-card-svg-v2 .wh-v2-ai-chip,
.workspace-card-svg-v2 .wh-v2-calendar,
.workspace-card-svg-v2 .wh-v2-note-paper,
.workspace-card-svg-v2 .wh-v2-loan-paper,
.workspace-card-svg-v2 .wh-v2-shield,
.workspace-card-svg-v2 .wh-v2-admin-shield{
  fill:url(#wh-v2-main-dashboard);
}
/* SVG-local gradients are keyed per section; these declarations supply modern surfaces. */
.workspace-home-card--dashboard .wh-v2-shell{fill:url(#wh-v2-main-dashboard)}
.workspace-home-card--expenses .wh-v2-wallet-body{fill:url(#wh-v2-main-expenses)}
.workspace-home-card--audit .wh-v2-shield{fill:url(#wh-v2-main-audit)}
.workspace-home-card--triplem-ai .wh-v2-ai-chip{fill:url(#wh-v2-main-triplem-ai)}
.workspace-home-card--loans .wh-v2-loan-paper{fill:url(#wh-v2-main-loans)}
.workspace-home-card--installments .wh-v2-calendar{fill:url(#wh-v2-main-installments)}
.workspace-home-card--notes .wh-v2-note-paper{fill:url(#wh-v2-main-notes)}
.workspace-home-card--admin .wh-v2-admin-shield{fill:url(#wh-v2-main-admin)}

.workspace-card-svg-v2 .wh-v2-screen,
.workspace-card-svg-v2 .wh-v2-shield-inner{
  fill:color-mix(in srgb,var(--panel) 82%,var(--wh-c1) 18%);
  stroke:color-mix(in srgb,var(--line) 70%,var(--wh-c1));
  stroke-width:1.2;
}
.workspace-card-svg-v2 .wh-v2-mini,
.workspace-card-svg-v2 .wh-v2-row,
.workspace-card-svg-v2 .wh-v2-loan-line,
.workspace-card-svg-v2 .wh-v2-note-line{
  fill:color-mix(in srgb,var(--panel) 70%,var(--wh-c2) 30%);
  opacity:.9;
}
.workspace-card-svg-v2 .wh-v2-row-short,
.workspace-card-svg-v2 .wh-v2-loan-line-short{opacity:.66}
.workspace-card-svg-v2 .wh-v2-status,
.workspace-card-svg-v2 .wh-v2-wallet-dot{
  fill:color-mix(in srgb,var(--wh-c2) 84%,#fff 16%);
  stroke:color-mix(in srgb,var(--panel) 90%,transparent);
  stroke-width:2;
}

/* Dashboard */
.workspace-card-svg-v2 .wh-v2-bars rect{
  fill:color-mix(in srgb,var(--wh-c2) 82%,var(--wh-c1));
  transform-box:fill-box;
  transform-origin:center bottom;
  animation:whV2Bar 3.8s ease-in-out infinite;
}
.workspace-card-svg-v2 .wh-v2-bars rect:nth-child(2){animation-delay:.22s;fill:var(--wh-c1)}
.workspace-card-svg-v2 .wh-v2-bars rect:nth-child(3){animation-delay:.44s;fill:color-mix(in srgb,var(--wh-c1) 72%,var(--text) 28%)}
.workspace-card-svg-v2 .wh-v2-trace{
  fill:none;
  stroke:color-mix(in srgb,#fff 82%,var(--wh-c2));
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:86;
  animation:whV2Trace 4.8s ease-in-out infinite;
}

/* Wallet */
.workspace-card-svg-v2 .wh-v2-wallet-body{
  stroke:color-mix(in srgb,var(--wh-c1) 66%,var(--panel));
  stroke-width:1.4;
}
.workspace-card-svg-v2 .wh-v2-wallet-seam{
  fill:none;stroke:color-mix(in srgb,#fff 52%,var(--wh-c2));stroke-width:2;stroke-linecap:round;opacity:.65
}
.workspace-card-svg-v2 .wh-v2-wallet-pocket{
  fill:color-mix(in srgb,var(--panel) 58%,var(--wh-c2) 42%);
  stroke:color-mix(in srgb,#fff 32%,var(--wh-c2));stroke-width:1.2
}
.workspace-card-svg-v2 .wh-v2-wallet-coin{
  fill:color-mix(in srgb,var(--wh-c2) 78%,var(--panel));
  stroke:color-mix(in srgb,#fff 34%,var(--wh-c2));stroke-width:1.1
}
.workspace-card-svg-v2 .wh-v2-wallet-coin-mark{
  fill:none;stroke:color-mix(in srgb,var(--text) 74%,var(--wh-c2));stroke-width:2.1;stroke-linecap:round
}
.workspace-card-svg-v2 .wh-v2-wallet-card{
  fill:color-mix(in srgb,var(--panel) 78%,var(--wh-c1) 22%);
  stroke:color-mix(in srgb,var(--wh-c1) 42%,var(--line));stroke-width:1;
  transform-box:fill-box;transform-origin:center;animation:whV2WalletCard 4.6s ease-in-out infinite
}

/* Inventory */
.workspace-card-svg-v2 .wh-v2-box-top{fill:color-mix(in srgb,var(--wh-c1) 86%,var(--panel));stroke:color-mix(in srgb,var(--wh-c1) 58%,var(--line));stroke-width:1.1}
.workspace-card-svg-v2 .wh-v2-box-left{fill:color-mix(in srgb,var(--wh-c1) 62%,var(--panel));stroke:color-mix(in srgb,var(--wh-c1) 48%,var(--line));stroke-width:1.1}
.workspace-card-svg-v2 .wh-v2-box-right{fill:color-mix(in srgb,var(--wh-c2) 68%,var(--panel));stroke:color-mix(in srgb,var(--wh-c2) 48%,var(--line));stroke-width:1.1}
.workspace-card-svg-v2 .wh-v2-box-line{fill:none;stroke:color-mix(in srgb,#fff 42%,var(--wh-c2));stroke-width:1.8;stroke-linecap:round}
.workspace-card-svg-v2 .wh-v2-label{fill:color-mix(in srgb,var(--panel) 82%,var(--wh-c2) 18%);stroke:color-mix(in srgb,var(--wh-c2) 54%,var(--line));stroke-width:1}
.workspace-card-svg-v2 .wh-v2-scanline{fill:none;stroke:color-mix(in srgb,#fff 78%,var(--wh-c2));stroke-width:2.3;stroke-linecap:round;animation:whV2Scan 3.4s ease-in-out infinite}

/* Audit */
.workspace-card-svg-v2 .wh-v2-shield{stroke:color-mix(in srgb,var(--wh-c1) 60%,var(--line));stroke-width:1.3}
.workspace-card-svg-v2 .wh-v2-check{fill:none;stroke:color-mix(in srgb,#fff 86%,var(--wh-c2));stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:62;animation:whV2Check 4.2s ease-in-out infinite}

/* AI */
.workspace-card-svg-v2 .wh-v2-ai-chip{stroke:color-mix(in srgb,var(--wh-c1) 58%,var(--line));stroke-width:1.3}
.workspace-card-svg-v2 .wh-v2-ai-core{fill:color-mix(in srgb,var(--panel) 76%,var(--wh-c2) 24%);stroke:color-mix(in srgb,var(--wh-c2) 56%,var(--line));stroke-width:1.2;transform-box:fill-box;transform-origin:center;animation:whV2AiCore 3.6s ease-in-out infinite}
.workspace-card-svg-v2 .wh-v2-ai-spark{fill:color-mix(in srgb,var(--wh-c2) 76%,#fff 24%);stroke:color-mix(in srgb,#fff 46%,var(--wh-c2));stroke-width:1}
.workspace-card-svg-v2 .wh-v2-ai-pin{fill:none;stroke:color-mix(in srgb,var(--wh-c1) 58%,var(--muted));stroke-width:2;stroke-linecap:round}
.workspace-card-svg-v2 .wh-v2-ai-node{fill:color-mix(in srgb,var(--wh-c2) 68%,var(--panel));stroke:color-mix(in srgb,var(--wh-c2) 55%,var(--line));stroke-width:1}
.workspace-card-svg-v2 .wh-v2-ai-node-b,.workspace-card-svg-v2 .wh-v2-ai-node-c{animation:whV2Node 3.8s ease-in-out infinite}

/* Assets */
.workspace-card-svg-v2 .wh-v2-building{stroke:color-mix(in srgb,var(--line) 62%,var(--wh-c1));stroke-width:1.1}
.workspace-card-svg-v2 .wh-v2-building-a{fill:color-mix(in srgb,var(--wh-c2) 64%,var(--panel))}
.workspace-card-svg-v2 .wh-v2-building-b{fill:color-mix(in srgb,var(--wh-c1) 76%,var(--panel))}
.workspace-card-svg-v2 .wh-v2-windows rect{fill:color-mix(in srgb,#fff 56%,var(--wh-c2));opacity:.78}
.workspace-card-svg-v2 .wh-v2-window-hot{animation:whV2Window 3.2s ease-in-out infinite}
.workspace-card-svg-v2 .wh-v2-asset-trend,.workspace-card-svg-v2 .wh-v2-asset-head{fill:none;stroke:color-mix(in srgb,#fff 72%,var(--wh-c2));stroke-width:3;stroke-linecap:round;stroke-linejoin:round}

/* Loans */
.workspace-card-svg-v2 .wh-v2-loan-paper{stroke:color-mix(in srgb,var(--wh-c1) 58%,var(--line));stroke-width:1.2}
.workspace-card-svg-v2 .wh-v2-loan-coin{fill:color-mix(in srgb,var(--wh-c2) 76%,var(--panel));stroke:color-mix(in srgb,var(--wh-c2) 56%,var(--line));stroke-width:1.1}
.workspace-card-svg-v2 .wh-v2-loan-coin-b{fill:color-mix(in srgb,var(--wh-c1) 68%,var(--panel));animation:whV2LoanCoin 4.1s ease-in-out infinite}
.workspace-card-svg-v2 .wh-v2-loan-money{fill:none;stroke:color-mix(in srgb,#fff 78%,var(--wh-c2));stroke-width:2;stroke-linecap:round}
.workspace-card-svg-v2 .wh-v2-loan-arrow{fill:none;stroke:color-mix(in srgb,var(--wh-c1) 76%,var(--text));stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:7 7;animation:whV2LoanArrow 4.5s linear infinite}

/* Installments */
.workspace-card-svg-v2 .wh-v2-calendar{stroke:color-mix(in srgb,var(--wh-c1) 58%,var(--line));stroke-width:1.2}
.workspace-card-svg-v2 .wh-v2-calendar-head{fill:color-mix(in srgb,var(--panel) 64%,var(--wh-c2) 36%)}
.workspace-card-svg-v2 .wh-v2-calendar-ring{fill:color-mix(in srgb,var(--wh-c2) 78%,var(--text) 22%)}
.workspace-card-svg-v2 .wh-v2-install-grid rect{fill:color-mix(in srgb,var(--panel) 76%,var(--wh-c1) 24%);stroke:color-mix(in srgb,var(--line) 72%,var(--wh-c1));stroke-width:.8}
.workspace-card-svg-v2 .wh-v2-install-grid .wh-v2-install-dot{fill:color-mix(in srgb,var(--wh-c2) 74%,var(--panel));animation:whV2Install 3.1s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.workspace-card-svg-v2 .wh-v2-install-check{fill:none;stroke:color-mix(in srgb,#fff 82%,var(--wh-c2));stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}

/* Notes */
.workspace-card-svg-v2 .wh-v2-note-paper{stroke:color-mix(in srgb,var(--wh-c1) 58%,var(--line));stroke-width:1.2}
.workspace-card-svg-v2 .wh-v2-note-fold{fill:none;stroke:color-mix(in srgb,#fff 42%,var(--wh-c2));stroke-width:2}
.workspace-card-svg-v2 .wh-v2-pencil-body{fill:color-mix(in srgb,var(--wh-c2) 76%,var(--panel));stroke:color-mix(in srgb,var(--wh-c2) 58%,var(--line));stroke-width:1}
.workspace-card-svg-v2 .wh-v2-pencil-seam{fill:none;stroke:color-mix(in srgb,#fff 72%,var(--wh-c2));stroke-width:2}
.workspace-card-svg-v2 .wh-v2-pencil{transform-origin:105px 107px;animation:whV2Pencil 4.2s ease-in-out infinite}

/* Bitcoin: exact supplied geometry, theme-adaptive fill, subtle contained motion. */
.workspace-home-card--bitcoin{
  --wh-c1:color-mix(in srgb,var(--primary) 72%,var(--chart-series-3) 28%);
  --wh-c2:color-mix(in srgb,var(--primary-2) 68%,var(--chart-series-5) 32%);
}
.workspace-card-svg-v2 .wh-v2-btc-glow{fill:color-mix(in srgb,var(--wh-c1) 11%,transparent);stroke:color-mix(in srgb,var(--wh-c1) 18%,transparent);stroke-width:1}
.workspace-card-svg-v2 .wh-v2-btc-motion{transform-origin:80px 80px;animation:whV2Bitcoin 5.4s ease-in-out infinite}
.workspace-card-svg-v2 .wh-v2-btc-outer{fill:var(--wh-c1);stroke:color-mix(in srgb,var(--wh-c1) 62%,var(--text));stroke-width:.55}
.workspace-card-svg-v2 .wh-v2-btc-mark{fill:color-mix(in srgb,#fff 94%,var(--wh-c2) 6%)}

/* Admin */
.workspace-card-svg-v2 .wh-v2-admin-shield{stroke:color-mix(in srgb,var(--wh-c1) 58%,var(--line));stroke-width:1.2}
.workspace-card-svg-v2 .wh-v2-admin-user{fill:color-mix(in srgb,var(--panel) 78%,var(--wh-c2) 22%);stroke:color-mix(in srgb,var(--wh-c2) 52%,var(--line));stroke-width:1}
.workspace-card-svg-v2 .wh-v2-admin-user-body{fill:color-mix(in srgb,var(--panel) 72%,var(--wh-c2) 28%);stroke:color-mix(in srgb,var(--wh-c2) 52%,var(--line));stroke-width:1}
.workspace-card-svg-v2 .wh-v2-admin-gear{transform-origin:104px 94px}
.workspace-card-svg-v2 .wh-v2-admin-gear-core{animation:whV2AdminCore 3.6s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.workspace-card-svg-v2 .wh-v2-admin-gear-ring{fill:color-mix(in srgb,var(--wh-c2) 68%,var(--panel));stroke:color-mix(in srgb,var(--wh-c2) 58%,var(--line));stroke-width:1.2}
.workspace-card-svg-v2 .wh-v2-admin-gear-core{fill:color-mix(in srgb,#fff 62%,var(--wh-c1))}
.workspace-card-svg-v2 .wh-v2-admin-gear-spokes{fill:none;stroke:color-mix(in srgb,var(--wh-c2) 72%,var(--text));stroke-width:2.2;stroke-linecap:round}
.workspace-card-svg-v2 .wh-v2-fallback{fill:none;stroke:color-mix(in srgb,#fff 70%,var(--wh-c2));stroke-width:3;stroke-linecap:round}

@keyframes whV2Bar{0%,100%{transform:scaleY(.92);opacity:.75}50%{transform:scaleY(1.02);opacity:1}}
@keyframes whV2Trace{0%,15%{stroke-dashoffset:86;opacity:.4}48%,82%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:-86;opacity:.4}}
@keyframes whV2WalletCard{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(1px,0,0)}}
@keyframes whV2Scan{0%,100%{transform:translate3d(0,-8px,0);opacity:.35}50%{transform:translate3d(0,10px,0);opacity:.9}}
@keyframes whV2Check{0%,18%{stroke-dashoffset:62;opacity:.4}48%,84%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:-62;opacity:.45}}
@keyframes whV2AiCore{0%,100%{transform:scale(.96)}50%{transform:scale(1.025)}}
@keyframes whV2Node{0%,100%{opacity:.5}50%{opacity:1}}
@keyframes whV2Window{0%,100%{opacity:.5}50%{opacity:1}}
@keyframes whV2LoanCoin{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-2px,0)}}
@keyframes whV2LoanArrow{to{stroke-dashoffset:-56}}
@keyframes whV2Install{0%,100%{opacity:.66;transform:scale(.96)}50%{opacity:1;transform:scale(1.04)}}
@keyframes whV2Pencil{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(1.5px,-1.5px,0)}}
@keyframes whV2Bitcoin{0%,100%{transform:translate3d(0,1px,0) rotate(-1deg)}50%{transform:translate3d(0,-2px,0) rotate(1deg)}}
@keyframes whV2AdminCore{0%,100%{transform:scale(.92);opacity:.72}50%{transform:scale(1.08);opacity:1}}

html.triplem-low-power .workspace-card-svg-v2 *,
html.triplem-low-power .workspace-card-svg-v2 .wh-v2-icon{animation:none !important}
@media(prefers-reduced-motion:reduce){
  .workspace-card-svg-v2 *,
  .workspace-card-svg-v2 .wh-v2-icon{animation:none !important;transition:none !important}
}
@media(max-width:820px){
  .workspace-card-art{border-radius:15px}
  .workspace-card-svg-v2 .wh-v2-btc-outer{stroke-width:.45}
}


/* Workspace icon precision pass — 2026-09-16 rev 009 */
.workspace-card-svg-v2 .wh-v2-wallet{transform-origin:80px 80px}
.workspace-card-svg-v2 .wh-v2-wallet-body{fill:url(#wh-v2-main-expenses);stroke:color-mix(in srgb,var(--wh-c1) 66%,var(--panel));stroke-width:1.4}
.workspace-card-svg-v2 .wh-v2-wallet-inner{fill:color-mix(in srgb,var(--panel) 82%,var(--wh-c1) 18%);stroke:color-mix(in srgb,var(--line) 72%,var(--wh-c1));stroke-width:1.05}
.workspace-card-svg-v2 .wh-v2-wallet-pocket{fill:color-mix(in srgb,var(--panel) 58%,var(--wh-c2) 42%);stroke:color-mix(in srgb,#fff 30%,var(--wh-c2));stroke-width:1.1}
.workspace-card-svg-v2 .wh-v2-wallet-bottom{fill:none;stroke:color-mix(in srgb,#fff 34%,var(--wh-c2));stroke-width:1.6;stroke-linecap:round;opacity:.6}
.workspace-card-svg-v2 .wh-v2-wallet-card{display:none!important}

.workspace-card-svg-v2 .wh-v2-inventory{transform-origin:80px 80px}
.workspace-card-svg-v2 .wh-v2-inventory-slot{fill:none;stroke:color-mix(in srgb,#fff 72%,var(--wh-c2));stroke-width:2.1;stroke-linecap:round;opacity:.82}
.workspace-card-svg-v2 .wh-v2-inventory-dot{fill:color-mix(in srgb,var(--wh-c2) 82%,#fff 18%);animation:whV2InventoryDot 3.2s ease-in-out infinite}
.workspace-card-svg-v2 .wh-v2-label,.workspace-card-svg-v2 .wh-v2-scanline{display:none!important}

.workspace-card-svg-v2 .wh-v2-loans{transform-origin:80px 80px}
.workspace-card-svg-v2 .wh-v2-loan-coin-main{fill:url(#wh-v2-main-loans);stroke:color-mix(in srgb,var(--wh-c1) 62%,var(--line));stroke-width:1.25;transform-box:fill-box;transform-origin:center;animation:whV2LoanCoinPulse 3.8s ease-in-out infinite}
.workspace-card-svg-v2 .wh-v2-loan-currency{fill:none;stroke:color-mix(in srgb,#fff 88%,var(--wh-c2));stroke-width:2.7;stroke-linecap:round}
.workspace-card-svg-v2 .wh-v2-loan-hand{fill:none;stroke:color-mix(in srgb,var(--text) 54%,var(--wh-c1));stroke-width:6.5;stroke-linecap:round;stroke-linejoin:round}
.workspace-card-svg-v2 .wh-v2-loan-sleeve{fill:color-mix(in srgb,var(--panel) 70%,var(--wh-c2) 30%);stroke:color-mix(in srgb,var(--wh-c2) 46%,var(--line));stroke-width:1}
.workspace-card-svg-v2 .wh-v2-loan-link{fill:none;stroke:color-mix(in srgb,var(--wh-c2) 72%,var(--text));stroke-width:2.6;stroke-linecap:round;opacity:.8}
.workspace-card-svg-v2 .wh-v2-loan-paper,.workspace-card-svg-v2 .wh-v2-loan-line,.workspace-card-svg-v2 .wh-v2-loan-coin,.workspace-card-svg-v2 .wh-v2-loan-money,.workspace-card-svg-v2 .wh-v2-loan-arrow{display:none!important}

.workspace-card-svg-v2 .wh-v2-bitcoin{transform-origin:80px 80px}
.workspace-card-svg-v2 .wh-v2-btc-motion{transform-box:view-box;transform-origin:80px 80px;animation:whV2BitcoinCentered 5.2s ease-in-out infinite}
.workspace-card-svg-v2 .wh-v2-btc-glow{display:none!important}

@keyframes whV2InventoryDot{0%,100%{opacity:.45}50%{opacity:1}}
@keyframes whV2LoanCoinPulse{0%,100%{transform:scale(.985)}50%{transform:scale(1.025)}}
@keyframes whV2BitcoinCentered{0%,100%{transform:rotate(-.8deg) scale(.992)}50%{transform:rotate(.8deg) scale(1.008)}}

html.triplem-low-power .workspace-card-svg-v2 .wh-v2-inventory-dot,
html.triplem-low-power .workspace-card-svg-v2 .wh-v2-loan-coin-main,
html.triplem-low-power .workspace-card-svg-v2 .wh-v2-btc-motion{animation:none!important}
@media(prefers-reduced-motion:reduce){
 .workspace-card-svg-v2 .wh-v2-inventory-dot,
 .workspace-card-svg-v2 .wh-v2-loan-coin-main,
 .workspace-card-svg-v2 .wh-v2-btc-motion{animation:none!important}
}

/* Workspace icon system V3 — finance-reference redesign — 2026-09-16 rev 010
   Filled finance symbols, restrained theme-adaptive palette, contained micro-motion. */
.workspace-home-card{
  --wh-icon-deep:color-mix(in srgb,var(--primary) 78%,var(--text) 22%);
  --wh-icon-deep-2:color-mix(in srgb,var(--primary) 62%,var(--text) 38%);
  --wh-icon-deep-light:color-mix(in srgb,var(--primary) 48%,var(--panel) 52%);
  --wh-icon-accent:color-mix(in srgb,var(--primary-2) 76%,var(--wh-c2) 24%);
  --wh-icon-accent-2:color-mix(in srgb,var(--primary-2) 54%,var(--wh-c1) 46%);
}
.workspace-card-art{
  overflow:hidden!important;
  contain:paint;
}
.workspace-card-svg-v3{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  overflow:hidden!important;
  contain:paint;
}
.workspace-card-svg-v3 .wh-v3-stage,
.workspace-card-svg-v3 .wh-v3-icon{transform-origin:80px 80px}
.workspace-card-svg-v3 .wh-v3-deep{fill:url(#wh-v3-primary-dashboard)}
.workspace-home-card--dashboard .wh-v3-deep{fill:url(#wh-v3-primary-dashboard)}
.workspace-home-card--expenses .wh-v3-deep{fill:url(#wh-v3-primary-expenses)}
.workspace-home-card--goods .wh-v3-deep{fill:url(#wh-v3-primary-goods)}
.workspace-home-card--audit .wh-v3-deep{fill:url(#wh-v3-primary-audit)}
.workspace-home-card--triplem-ai .wh-v3-deep{fill:url(#wh-v3-primary-triplem-ai)}
.workspace-home-card--assets .wh-v3-deep{fill:url(#wh-v3-primary-assets)}
.workspace-home-card--loans .wh-v3-deep{fill:url(#wh-v3-primary-loans)}
.workspace-home-card--installments .wh-v3-deep{fill:url(#wh-v3-primary-installments)}
.workspace-home-card--notes .wh-v3-deep{fill:url(#wh-v3-primary-notes)}
.workspace-home-card--messages .wh-v3-deep{fill:url(#wh-v3-primary-messages)}
.workspace-home-card--admin .wh-v3-deep{fill:url(#wh-v3-primary-admin)}
.workspace-card-svg-v3 .wh-v3-deep-2{fill:var(--wh-icon-deep-2)}
.workspace-card-svg-v3 .wh-v3-deep-light{fill:var(--wh-icon-deep-light)}
.workspace-card-svg-v3 .wh-v3-accent{fill:var(--wh-icon-accent)}
.workspace-card-svg-v3 .wh-v3-panel{fill:color-mix(in srgb,var(--panel) 90%,#fff 10%)}
.workspace-card-svg-v3 .wh-v3-soft-dot{fill:color-mix(in srgb,var(--wh-icon-accent) 62%,var(--panel));opacity:.72}
.workspace-card-svg-v3 .wh-v3-accent-stroke{
  fill:none;
  stroke:var(--wh-icon-accent);
  stroke-width:4.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.workspace-card-svg-v3 .wh-v3-money-mark,
.workspace-card-svg-v3 .wh-v3-small-money-mark{
  fill:none;
  stroke:color-mix(in srgb,#fff 94%,var(--panel));
  stroke-width:2.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.workspace-card-svg-v3 .wh-v3-small-money-mark{stroke-width:2.2}

/* Dashboard */
.workspace-card-svg-v3 .wh-v3-dashboard-bars rect{
  transform-box:fill-box;
  transform-origin:center bottom;
  animation:whV3Bar 4.2s ease-in-out infinite;
}
.workspace-card-svg-v3 .wh-v3-dashboard-bars rect:nth-child(2){animation-delay:.18s}
.workspace-card-svg-v3 .wh-v3-dashboard-bars rect:nth-child(3){animation-delay:.36s}
.workspace-card-svg-v3 .wh-v3-dashboard-arrow{
  stroke-dasharray:120;
  animation:whV3ArrowDraw 5.2s ease-in-out infinite;
}
.workspace-card-svg-v3 .wh-v3-dashboard-arrowhead{animation:whV3ArrowHead 5.2s ease-in-out infinite;transform-box:fill-box;transform-origin:center}

/* Wallet / Expenses */
.workspace-card-svg-v3 .wh-v3-wallet-top{fill:color-mix(in srgb,var(--wh-icon-deep) 88%,var(--panel))}
.workspace-card-svg-v3 .wh-v3-wallet .wh-v3-panel{fill:color-mix(in srgb,var(--panel) 76%,var(--wh-icon-accent) 24%)}
.workspace-card-svg-v3 .wh-v3-money-coin{transform-box:fill-box;transform-origin:center;animation:whV3CoinPulse 3.8s ease-in-out infinite}

/* Inventory */
.workspace-card-svg-v3 .wh-v3-package-seam,
.workspace-card-svg-v3 .wh-v3-package-up{
  fill:none;
  stroke:color-mix(in srgb,#fff 88%,var(--panel));
  stroke-width:2.15;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.workspace-card-svg-v3 .wh-v3-package-tape{animation:whV3InventoryTape 4.6s ease-in-out infinite}

/* Audit */
.workspace-card-svg-v3 .wh-v3-paper-fold{fill:color-mix(in srgb,var(--panel) 76%,var(--wh-icon-accent) 24%)}
.workspace-card-svg-v3 .wh-v3-paper-line{fill:color-mix(in srgb,var(--panel) 72%,var(--wh-icon-accent) 28%)}
.workspace-card-svg-v3 .wh-v3-audit-lens{transform-box:fill-box;transform-origin:center;animation:whV3Lens 4.4s ease-in-out infinite}
.workspace-card-svg-v3 .wh-v3-lens-inner{fill:color-mix(in srgb,var(--panel) 86%,transparent)}
.workspace-card-svg-v3 .wh-v3-lens-bar{fill:var(--wh-icon-deep)}
.workspace-card-svg-v3 .wh-v3-audit-handle{stroke-width:6}

/* AI */
.workspace-card-svg-v3 .wh-v3-ai-network circle{transform-box:fill-box;transform-origin:center;animation:whV3Node 3.6s ease-in-out infinite}
.workspace-card-svg-v3 .wh-v3-ai-network circle:nth-child(2){animation-delay:.25s}
.workspace-card-svg-v3 .wh-v3-ai-network circle:nth-child(3){animation-delay:.5s}
.workspace-card-svg-v3 .wh-v3-ai-network circle:nth-child(4){animation-delay:.75s}
.workspace-card-svg-v3 .wh-v3-ai-network circle:nth-child(5){animation-delay:1s}
.workspace-card-svg-v3 .wh-v3-ai-link{fill:none;stroke:color-mix(in srgb,#fff 76%,var(--wh-icon-accent));stroke-width:2;stroke-linecap:round}
.workspace-card-svg-v3 .wh-v3-ai-label{fill:var(--wh-icon-accent);font:800 27px/1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:-1px}

/* Assets */
.workspace-card-svg-v3 .wh-v3-house-roof{animation:whV3AccentBreath 4.2s ease-in-out infinite}
.workspace-card-svg-v3 .wh-v3-assets-coin{transform-box:fill-box;transform-origin:center;animation:whV3CoinFloat 4s ease-in-out infinite}

/* Loans */
.workspace-card-svg-v3 .wh-v3-loan-coin{transform-box:fill-box;transform-origin:center;animation:whV3CoinPulse 4s ease-in-out infinite}
.workspace-card-svg-v3 .wh-v3-handshake-line{fill:none;stroke:color-mix(in srgb,#fff 78%,var(--wh-icon-accent));stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* Installments */
.workspace-card-svg-v3 .wh-v3-calendar-grid rect{fill:color-mix(in srgb,var(--panel) 82%,var(--wh-icon-accent) 18%)}
.workspace-card-svg-v3 .wh-v3-install-coin{transform-box:fill-box;transform-origin:center;animation:whV3CoinPulse 4.2s ease-in-out infinite}

/* Notes */
.workspace-card-svg-v3 .wh-v3-note-line{fill:color-mix(in srgb,var(--panel) 72%,var(--wh-icon-accent) 28%)}
.workspace-card-svg-v3 .wh-v3-pencil{transform-origin:104px 107px;animation:whV3Pencil 4.4s ease-in-out infinite}
.workspace-card-svg-v3 .wh-v3-pencil-tip{fill:color-mix(in srgb,var(--text) 52%,var(--panel))}

/* Bitcoin: exact supplied reference geometry; only color and centered micro-motion change. */
.workspace-home-card--bitcoin{
  --wh-icon-accent:color-mix(in srgb,var(--primary) 70%,var(--chart-series-3) 30%);
  --wh-icon-accent-2:color-mix(in srgb,var(--primary-2) 66%,var(--chart-series-5) 34%);
}
.workspace-card-svg-v3 .wh-v3-btc-motion{transform-origin:80px 80px;animation:whV3Bitcoin 5.2s ease-in-out infinite}
.workspace-card-svg-v3 .wh-v3-btc-outer{fill:var(--wh-icon-accent)}
.workspace-card-svg-v3 .wh-v3-btc-mark{fill:color-mix(in srgb,#fff 95%,var(--panel) 5%)}

/* Messages */
.workspace-card-svg-v3 .wh-v3-message-back{transform-box:fill-box;transform-origin:center;animation:whV3Message 4.4s ease-in-out infinite}

/* Admin */
.workspace-card-svg-v3 .wh-v3-admin-gear{transform-origin:112px 102px;animation:whV3Gear 7s ease-in-out infinite}
.workspace-card-svg-v3 .wh-v3-gear-teeth{fill:none;stroke:var(--wh-icon-accent);stroke-width:4.8;stroke-linecap:round}
.workspace-card-svg-v3 .wh-v3-fallback{fill:none;stroke:color-mix(in srgb,#fff 80%,var(--wh-icon-accent));stroke-width:3;stroke-linecap:round}

@keyframes whV3Bar{0%,100%{transform:scaleY(.96)}50%{transform:scaleY(1.025)}}
@keyframes whV3ArrowDraw{0%,14%{stroke-dashoffset:120;opacity:.45}46%,84%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:-120;opacity:.5}}
@keyframes whV3ArrowHead{0%,14%{opacity:.45;transform:scale(.94)}46%,84%{opacity:1;transform:scale(1)}100%{opacity:.5;transform:scale(.94)}}
@keyframes whV3CoinPulse{0%,100%{transform:scale(.985)}50%{transform:scale(1.025)}}
@keyframes whV3CoinFloat{0%,100%{transform:translate3d(0,1px,0)}50%{transform:translate3d(0,-1.5px,0)}}
@keyframes whV3InventoryTape{0%,100%{opacity:.78}50%{opacity:1}}
@keyframes whV3Lens{0%,100%{transform:scale(.985)}50%{transform:scale(1.018)}}
@keyframes whV3Node{0%,100%{opacity:.58;transform:scale(.94)}50%{opacity:1;transform:scale(1.06)}}
@keyframes whV3AccentBreath{0%,100%{opacity:.82}50%{opacity:1}}
@keyframes whV3Pencil{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(1px,-1px,0)}}
@keyframes whV3Bitcoin{0%,100%{transform:rotate(-.65deg) scale(.995)}50%{transform:rotate(.65deg) scale(1.005)}}
@keyframes whV3Message{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(1px,1px,0)}}
@keyframes whV3Gear{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}

html.triplem-low-power .workspace-card-svg-v3 *,
html.triplem-low-power .workspace-card-svg-v3 .wh-v3-icon{animation:none!important}
@media(prefers-reduced-motion:reduce){
  .workspace-card-svg-v3 *,
  .workspace-card-svg-v3 .wh-v3-icon{animation:none!important;transition:none!important}
}
@media(max-width:820px){
  .workspace-card-svg-v3 .wh-v3-accent-stroke{stroke-width:4}
  .workspace-card-svg-v3 .wh-v3-money-mark{stroke-width:2.3}
}


/* Triplem VIP Home PNG icon system — 2026-09-16 rev 010
   Static PNG artwork from Assets/logo/icons/. No SVG rendering or icon animation. */
.workspace-card-art{
  position:relative;
  display:grid;
  place-items:center;
  box-sizing:border-box;
  overflow:hidden;
  isolation:isolate;
  border-radius:24px;
  background:rgba(255,255,255,.58);
  border:1px solid rgba(255,255,255,.50);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.52),
    0 7px 20px color-mix(in srgb,var(--text) 6%,transparent);
  -webkit-backdrop-filter:blur(8px) saturate(108%);
  backdrop-filter:blur(8px) saturate(108%);
}
.workspace-card-art::before,
.workspace-card-art::after{content:none!important;display:none!important}
.workspace-card-icon{
  display:block;
  width:78%;
  height:78%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
  margin:auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  transform:none!important;
  animation:none!important;
  transition:none!important;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}
.workspace-card-svg,
.workspace-card-svg-v3{display:none!important}

/* Keep the white glass tile subtle enough to blend with every registered theme. */
html[data-theme="dark"] .workspace-card-art,
body[data-theme="dark"] .workspace-card-art,
.theme-dark .workspace-card-art{
  background:rgba(255,255,255,.13);
  border-color:rgba(255,255,255,.17);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 7px 20px rgba(0,0,0,.12);
}
@media(max-width:820px){
  .workspace-card-art{border-radius:15px;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
  .workspace-card-icon{width:76%;height:76%}
}
@media(max-width:380px){
  .workspace-card-art{border-radius:13px}
  .workspace-card-icon{width:74%;height:74%}
}
html.triplem-low-power .workspace-card-icon{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){
  .workspace-card-icon{animation:none!important;transition:none!important}
}

/* Triplem VIP Home PNG glass-lens refinement — 2026-09-16 rev 011
   Theme-derived lens tint and exact geometric icon centering. */
.workspace-home-card .workspace-card-art{
  --wh-glass-white:rgba(255,255,255,.34);
  --wh-glass-panel:color-mix(in srgb,var(--panel) 74%,var(--wh-glass-white));
  --wh-glass-tint:color-mix(in srgb,var(--wh-glass-panel) 86%,var(--wh-c1,var(--primary)) 14%);
  --wh-glass-tint-2:color-mix(in srgb,var(--panel-2,var(--panel)) 88%,var(--wh-c2,var(--primary-2,var(--primary))) 12%);
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  align-self:center!important;
  justify-self:center!important;
  margin-inline:auto!important;
  overflow:hidden!important;
  isolation:isolate;
  background:linear-gradient(145deg,
      color-mix(in srgb,var(--wh-glass-tint) 90%,rgba(255,255,255,.18)),
      color-mix(in srgb,var(--wh-glass-tint-2) 92%,transparent))!important;
  border:1px solid color-mix(in srgb,var(--wh-c1,var(--primary)) 18%,rgba(255,255,255,.52))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.46),
    inset 0 -1px 0 color-mix(in srgb,var(--wh-c1,var(--primary)) 7%,transparent),
    0 8px 24px color-mix(in srgb,var(--wh-c1,var(--primary)) 8%,transparent)!important;
  -webkit-backdrop-filter:blur(12px) saturate(128%)!important;
  backdrop-filter:blur(12px) saturate(128%)!important;
}
.workspace-home-card .workspace-card-art::before{
  content:""!important;
  display:block!important;
  position:absolute;
  z-index:0;
  inset:1px;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(135deg,rgba(255,255,255,.34) 0%,rgba(255,255,255,.12) 26%,transparent 52%),
    radial-gradient(80% 66% at 82% 88%,color-mix(in srgb,var(--wh-c2,var(--primary)) 10%,transparent),transparent 72%);
  opacity:.78;
  transform:none!important;
  animation:none!important;
}
.workspace-home-card .workspace-card-art::after{
  content:""!important;
  display:block!important;
  position:absolute;
  z-index:0;
  right:12%;
  left:12%;
  top:8%;
  height:1px;
  border-radius:999px;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.68),transparent);
  opacity:.62;
  transform:none!important;
  animation:none!important;
}
.workspace-home-card .workspace-card-icon{
  position:absolute!important;
  z-index:2;
  left:50%!important;
  top:50%!important;
  width:76%!important;
  height:76%!important;
  max-width:76%!important;
  max-height:76%!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:50% 50%!important;
  transform:translate(-50%,-50%)!important;
  transform-origin:50% 50%!important;
}

/* The same lens recipe follows all themes through their central panel/accent tokens. */
html[data-theme="dark"] .workspace-home-card .workspace-card-art,
body[data-theme="dark"] .workspace-home-card .workspace-card-art,
.theme-dark .workspace-home-card .workspace-card-art{
  --wh-glass-white:rgba(255,255,255,.12);
  border-color:color-mix(in srgb,var(--wh-c1,var(--primary)) 22%,rgba(255,255,255,.20))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -1px 0 color-mix(in srgb,var(--wh-c1,var(--primary)) 10%,transparent),
    0 8px 24px rgba(0,0,0,.11)!important;
}
@media(max-width:820px){
  .workspace-home-card .workspace-card-art{
    -webkit-backdrop-filter:blur(8px) saturate(120%)!important;
    backdrop-filter:blur(8px) saturate(120%)!important;
  }
  .workspace-home-card .workspace-card-icon{
    width:74%!important;
    height:74%!important;
    max-width:74%!important;
    max-height:74%!important;
  }
}
@media(max-width:380px){
  .workspace-home-card .workspace-card-icon{
    width:72%!important;
    height:72%!important;
    max-width:72%!important;
    max-height:72%!important;
  }
}

/* Triplem VIP Home mobile PNG centering fix — 2026-09-16 rev 012
   Low-power/reduced-motion modes must not remove the translate used for geometric centering. */
@media(max-width:820px){
  .workspace-home-card .workspace-card-icon,
  html.triplem-low-power .workspace-home-card .workspace-card-icon{
    right:50%!important;
    top:50%!important;
    margin:0!important;
    transform:translate3d(-50%,-50%,0)!important;
    transform-origin:50% 50%!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .workspace-home-card .workspace-card-icon{
    transform:translate3d(-50%,-50%,0)!important;
  }
}

/* ===== SOURCE: Assets/style/35-build011-refinements.css ===== */
/* Triplem VIP Build 011 refinements — menus, filters, notes, admin photos, loan transactions, PDF affordances. */

/* Elevated action menus must never be clipped by tables/details/cards. */
.expense-tx-menu.is-portal,
.loan-tx-menu.is-portal{
  display:grid!important;
  position:fixed!important;
  min-width:182px;
  padding:7px;
  border:1px solid var(--line-strong)!important;
  border-radius:14px!important;
  background:var(--surface-elevated)!important;
  box-shadow:var(--shadow-strong)!important;
  backdrop-filter:blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(var(--glass-saturate));
  overflow:hidden!important;
  isolation:isolate;
}
.expense-tx-menu.is-portal button,
.loan-tx-menu.is-portal button{
  display:flex;align-items:center;gap:9px;width:100%;padding:9px 10px;border:0;border-radius:10px;
  background:transparent;color:var(--text);text-align:right;cursor:pointer;font:inherit;
}
.expense-tx-menu.is-portal button:hover,
.loan-tx-menu.is-portal button:hover{background:var(--surface-hover)}
.expense-tx-menu.is-portal button.is-danger,
.loan-tx-menu.is-portal button.is-danger{color:var(--danger)}

/* Cleaner shared filter surfaces outside Expenses. */
#app .panel:not(#expensesPanel) .compact-filter-row,
#app #goodsPanel .inventory-filter-row{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:8px 0!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
#app .panel:not(#expensesPanel) .compact-filter-row .filter-inline-section,
#app #goodsPanel .inventory-filter-row .filter-inline-section{
  background:color-mix(in srgb,var(--surface-soft) 78%,transparent)!important;
  border:1px solid color-mix(in srgb,var(--line) 86%,transparent)!important;
  box-shadow:none!important;
  border-radius:13px!important;
}
#app .panel:not(#expensesPanel) .compact-filter-row .filter-inline-section:is(:hover,:focus-within),
#app #goodsPanel .inventory-filter-row .filter-inline-section:is(:hover,:focus-within){
  background:color-mix(in srgb,var(--surface-hover) 88%,transparent)!important;
  border-color:var(--line-strong)!important;
}
#app .panel:not(#expensesPanel) .filter-chip{
  background:transparent!important;
  box-shadow:none!important;
}
#app .panel:not(#expensesPanel) .filter-chip:has(input:checked){
  background:var(--primary-soft)!important;
  border-color:color-mix(in srgb,var(--primary) 42%,var(--line))!important;
}

/* Notes — refined paper/sticky-note language without cartoonish handwriting. */
#notesList.notes-grid{gap:16px!important;align-items:stretch}
#notesList > .note-grid-card{
  position:relative!important;
  min-height:205px!important;
  padding:22px 20px 24px!important;
  overflow:visible!important;
  border:1px solid color-mix(in srgb,var(--warning) 20%,var(--line-strong))!important;
  border-radius:8px 8px 10px 14px!important;
  background:linear-gradient(110deg,color-mix(in srgb,var(--surface-elevated) 92%,var(--warning-soft) 8%),color-mix(in srgb,var(--surface-elevated) 86%,var(--primary-soft) 14%))!important;
  box-shadow:0 10px 24px color-mix(in srgb,var(--shadow-color, #0f172a) 12%,transparent),inset 0 1px 0 var(--glass-highlight)!important;
  transform:none!important;
  isolation:isolate;
}
#notesList > .note-grid-card::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;
  background:repeating-linear-gradient(to bottom,transparent 0 31px,color-mix(in srgb,var(--primary) 8%,transparent) 31px 32px);
  opacity:.72;
}
#notesList > .note-grid-card::after{
  content:"";position:absolute;right:8px;left:8px;bottom:-7px;height:12px;pointer-events:none;
  background:linear-gradient(135deg,transparent 6px,color-mix(in srgb,var(--surface-elevated) 92%,var(--warning-soft) 8%) 0) 0 0/14px 12px repeat-x;
  filter:drop-shadow(0 3px 2px color-mix(in srgb,var(--shadow-color, #0f172a) 12%,transparent));
}
#notesList > .note-grid-card:hover,
#notesList > .note-grid-card:focus-visible{
  transform:translateY(-3px)!important;
  border-color:color-mix(in srgb,var(--primary) 45%,var(--line-strong))!important;
  box-shadow:var(--shadow-strong)!important;
  outline:none!important;
}
.note-paper-pencil{
  top:-10px!important;left:15px!important;width:30px!important;height:30px!important;border-radius:9px!important;
  transform:rotate(8deg)!important;font-size:.78rem!important;
  background:var(--primary-gradient)!important;color:var(--on-primary)!important;box-shadow:var(--shadow-soft)!important;
}
.note-paper-head{padding-left:34px!important;gap:8px!important}
.note-grid-title{
  font-family:var(--font,system-ui)!important;font-size:1.02rem!important;font-weight:820!important;line-height:1.32!important;
  color:var(--text-strong)!important;-webkit-line-clamp:2!important;line-clamp:2!important;
}
.note-paper-preview{
  margin:18px 0 16px!important;min-height:82px!important;line-height:26px!important;
  font-family:var(--font,system-ui)!important;font-size:.84rem!important;font-weight:500!important;color:var(--text)!important;
  -webkit-line-clamp:3!important;line-clamp:3!important;
}
.note-paper-foot{padding-top:7px!important;border-top:1px dashed color-mix(in srgb,var(--line-strong) 68%,transparent)!important}
.note-paper-corner{
  width:18px;height:18px;border-radius:2px 2px 2px 6px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--surface-elevated) 50%,transparent) 48%,color-mix(in srgb,var(--primary-soft) 75%,var(--surface-elevated)) 50%);
  box-shadow:-1px -1px 0 color-mix(in srgb,var(--line) 72%,transparent);
}
.note-workspace-modal .modal-dialog{border-radius:22px!important;overflow:hidden!important}
.note-workspace-modal .modal-head{
  background:linear-gradient(110deg,color-mix(in srgb,var(--surface-elevated) 92%,var(--warning-soft) 8%),color-mix(in srgb,var(--surface-elevated) 90%,var(--primary-soft) 10%))!important;
  border-bottom:1px dashed var(--line-strong)!important;
}
.note-workspace-modal .modal-body{background:var(--modal-bg)!important}
.note-detail-content,
.note-create-dialog .note-textarea,
#noteEditContent{
  min-height:180px!important;
  padding:19px 21px!important;
  border:1px solid color-mix(in srgb,var(--warning) 18%,var(--line-strong))!important;
  border-radius:10px!important;
  background:repeating-linear-gradient(to bottom,transparent 0 30px,color-mix(in srgb,var(--primary) 8%,transparent) 30px 31px),
    color-mix(in srgb,var(--surface-elevated) 93%,var(--warning-soft) 7%)!important;
  box-shadow:0 9px 20px color-mix(in srgb,var(--shadow-color, #0f172a) 8%,transparent)!important;
  font-family:var(--font,system-ui)!important;
  font-size:.9rem!important;line-height:31px!important;color:var(--text)!important;
}
.note-create-reminder-card{background:var(--surface-soft)!important;border-color:var(--line)!important}
.note-create-reminder-fields{background:color-mix(in srgb,var(--surface-soft) 85%,transparent)!important}
.note-reminder-toggle-icon,.notes-empty-icon{background:var(--primary-soft)!important;color:var(--primary)!important}
.note-detail-reminder-status{background:var(--warning-soft)!important;border-color:color-mix(in srgb,var(--warning) 32%,var(--line))!important;color:var(--text-strong)!important}
.note-delete-confirm{background:var(--danger-soft)!important;border-color:color-mix(in srgb,var(--danger) 30%,var(--line))!important}

/* Admin photo maintenance — denser presentation + explicit selected deletion. */
.admin-photo-compress-dialog{width:min(940px,calc(100vw - 24px))!important}
.admin-photo-compress-list{gap:9px!important}
.admin-photo-item{padding:10px 11px!important;border-radius:14px!important}
.admin-photo-item-meta{min-width:0!important}
.admin-photo-item-meta strong{display:block;max-width:min(420px,48vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem!important;font-weight:700!important;color:var(--text-strong)!important}
.admin-photo-item-meta span{font-size:.69rem!important;color:var(--muted)!important}
.admin-photo-pane img{max-height:150px!important;object-fit:contain!important}
.admin-unused-photo-panel{padding:11px!important}
.admin-unused-photo-head{align-items:center!important;margin-bottom:9px!important}
.admin-unused-photo-head>div{display:grid;gap:2px;min-width:0}
.admin-unused-photo-head>div>span{max-width:none!important;text-align:right!important;font-size:.7rem!important}
.admin-unused-select-all{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:.73rem;font-weight:750;color:var(--text);cursor:pointer}
.admin-unused-photo-list{display:grid;gap:5px}
.admin-unused-photo-row{
  display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center!important;gap:9px!important;
  padding:8px 9px!important;border:1px solid transparent!important;border-radius:11px;background:transparent!important;cursor:pointer;
}
.admin-unused-photo-row:hover{background:var(--surface-hover)!important}
.admin-unused-photo-row.is-selected{background:var(--primary-soft)!important;border-color:color-mix(in srgb,var(--primary) 30%,var(--line))!important}
.admin-unused-photo-copy{display:grid;gap:1px;min-width:0}
.admin-unused-photo-copy strong{font-size:.76rem!important;font-weight:720!important;color:var(--text-strong);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-unused-photo-copy small{font-size:.66rem!important;color:var(--muted)!important;text-align:right!important}
.admin-unused-photo-copy em{font-style:normal;font-size:.61rem;color:var(--muted);opacity:.72;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Loans — foreground selection modal, clickable rows, elevated row menu, detailed transaction receipt. */
#loanPdfSelectionModal.modal,#loanTransactionDetailModal.modal{z-index:2147482400!important;isolation:isolate!important}
#loanPdfSelectionModal .modal-backdrop,#loanTransactionDetailModal .modal-backdrop{background:var(--overlay-backdrop)!important;backdrop-filter:blur(12px) saturate(1.05)!important;-webkit-backdrop-filter:blur(12px) saturate(1.05)!important}
.loan-transaction-row{cursor:pointer;transition:background .15s ease,box-shadow .15s ease}
.loan-transaction-row:hover,.loan-transaction-row:focus-visible{background:var(--surface-hover)!important;outline:none;box-shadow:inset 3px 0 0 var(--primary)}
.loan-tx-action-wrap{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:5px}
.loan-tx-menu{display:none;position:absolute;left:0;top:calc(100% + 6px);z-index:260;min-width:182px;padding:7px;border:1px solid var(--line-strong);border-radius:14px;background:var(--surface-elevated);box-shadow:var(--shadow-strong)}
.loan-tx-menu.is-open{display:grid}
.loan-tx-detail-dialog{width:min(720px,calc(100vw - 24px))!important}
.loan-tx-hero{display:flex;align-items:center;gap:15px;padding:17px;border:1px solid var(--line-strong);border-radius:19px;background:var(--banner-bg);box-shadow:var(--shadow-soft)}
.loan-tx-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:16px;background:var(--primary-gradient);color:var(--on-primary);font-size:1.15rem;box-shadow:var(--theme-glow-shadow)}
.loan-tx-hero small,.loan-tx-hero span{display:block;color:var(--muted)}.loan-tx-hero strong{display:block;color:var(--text-strong);font-size:1.4rem}
.loan-tx-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.loan-tx-detail-grid>div,.loan-tx-note{padding:12px 13px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}
.loan-tx-detail-grid small,.loan-tx-note small{display:block;color:var(--muted);font-size:.71rem;margin-bottom:5px}.loan-tx-detail-grid strong{color:var(--text-strong);font-size:.86rem}
.loan-tx-note{margin-top:10px}.loan-tx-note p{margin:0;color:var(--text);white-space:pre-wrap}.loan-tx-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:14px}

/* PDF affordance — consistent compact document icon, never generic download arrow. */
.fa-file-pdf{font-size:.88em;line-height:1;vertical-align:-.02em}
.icon-btn .fa-file-pdf,.tiny .fa-file-pdf{font-size:.82em}
.pdf-icon-btn{display:inline-flex!important;align-items:center;gap:6px}

@media(max-width:720px){
  #notesList.notes-grid{grid-template-columns:1fr!important;gap:14px!important}
  #notesList > .note-grid-card{min-height:178px!important;padding:19px 17px 22px!important}
  .note-paper-preview{min-height:65px!important;margin:14px 0!important}
  .admin-photo-item-meta strong{max-width:66vw}
  .admin-photo-compress-toolbar{align-items:stretch!important}
  .loan-tx-detail-grid{grid-template-columns:1fr}.loan-tx-actions{justify-content:stretch}.loan-tx-actions .btn{flex:1}
}

/* ===== SOURCE: Assets/style/31-aziz-live-support.css ===== */
/* Build 143 · Optional Aziz visitor AI support. Additive only. */

/* Always-visible compact launcher mode label. */
.landing-live-chat-launcher .landing-live-chat-launcher-label{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  left:-2px!important;
  bottom:calc(100% + 7px)!important;
  top:auto!important;
  opacity:1!important;
  transform:none!important;
  pointer-events:none!important;
  padding:5px 8px!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--surface-elevated,#fff) 96%,transparent)!important;
  color:var(--text,#17212b)!important;
  border:1px solid var(--line,rgba(15,23,42,.12))!important;
  box-shadow:0 8px 20px rgba(8,18,36,.14)!important;
  font-size:.57rem!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
}
.landing-live-chat-launcher.is-aziz-mode .landing-live-chat-launcher-label{
  background:#ffd84a!important;
  color:#121212!important;
  -webkit-text-fill-color:#121212!important;
  border-color:#e6b900!important;
  box-shadow:0 8px 22px rgba(194,151,0,.24)!important;
}
.landing-live-chat-identity.is-aziz .landing-live-chat-identity-icon{
  color:#9a7300!important;
  background:color-mix(in srgb,#ffd84a 22%,var(--surface-elevated))!important;
  border-color:color-mix(in srgb,#d3a900 34%,var(--line))!important;
}

/* Admin > Live Chat Support > Aziz mode. */
.admin-aziz-mode{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:13px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 5%,var(--surface-elevated)),var(--surface-elevated));
  color:var(--text);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.admin-aziz-mode.is-enabled{
  border-color:color-mix(in srgb,#d7aa00 48%,var(--line));
  background:linear-gradient(135deg,color-mix(in srgb,#ffd84a 12%,var(--surface-elevated)),color-mix(in srgb,var(--primary) 4%,var(--surface-elevated)));
  box-shadow:0 10px 28px color-mix(in srgb,#c79b00 10%,transparent);
}
.admin-aziz-mode-icon{
  width:36px;height:36px;border-radius:11px;display:grid;place-items:center;
  background:color-mix(in srgb,var(--primary) 9%,var(--surface-elevated));
  border:1px solid color-mix(in srgb,var(--primary) 16%,var(--line));
  color:var(--primary);
}
.admin-aziz-mode.is-enabled .admin-aziz-mode-icon{
  background:#ffd84a;color:#151515;border-color:#e5b900;
}
.admin-aziz-mode-copy{display:grid;gap:1px;min-width:0}
.admin-aziz-mode-copy>span{font-size:.49rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}
.admin-aziz-mode-copy>strong{font-size:.72rem;line-height:1.2;color:var(--text)}
.admin-aziz-mode-copy>small{font-size:.53rem;line-height:1.35;color:var(--muted)}
.admin-aziz-switch{position:relative;width:39px;height:22px;display:inline-flex;flex:0 0 auto;cursor:pointer}
.admin-aziz-switch input{position:absolute;opacity:0;pointer-events:none}
.admin-aziz-switch>span{position:absolute;inset:0;border-radius:999px;background:color-mix(in srgb,var(--muted) 24%,var(--surface-soft));border:1px solid var(--line);transition:.18s ease}
.admin-aziz-switch>span::after{content:"";position:absolute;right:3px;top:3px;width:14px;height:14px;border-radius:50%;background:var(--surface-elevated);box-shadow:0 2px 7px rgba(0,0,0,.18);transition:.18s ease}
.admin-aziz-switch input:checked+span{background:#ffd84a;border-color:#d8ad00}
.admin-aziz-switch input:checked+span::after{transform:translateX(-17px);background:#151515}
.admin-aziz-switch input:focus-visible+span{outline:2px solid color-mix(in srgb,var(--primary) 42%,transparent);outline-offset:2px}
.admin-aziz-switch input:disabled+span{opacity:.58;cursor:wait}
.admin-aziz-mode-note{display:flex;align-items:flex-start;gap:7px;padding:7px 9px;border-radius:10px;background:var(--surface-soft);border:1px solid var(--line);color:var(--muted);font-size:.52rem;line-height:1.42}
.admin-aziz-mode-note i{color:var(--primary);margin-top:1px}

@media(max-width:900px){
  .landing-live-chat-launcher .landing-live-chat-launcher-label{display:inline-flex!important;font-size:.54rem!important;padding:5px 7px!important;bottom:calc(100% + 6px)!important}
}
@media(max-width:520px){
  .admin-aziz-mode{grid-template-columns:34px minmax(0,1fr) auto;padding:9px;gap:8px}
  .admin-aziz-mode-icon{width:32px;height:32px;border-radius:10px}
  .admin-aziz-mode-copy>small{font-size:.5rem}
}

/* ===== SOURCE: Assets/style/32-aziz-chat-agent-polish.css ===== */
/* Build 146 · Aziz concise chat, launcher refinement and compact Live Agent controls. */

/* Keep visitor-chat typography independent from currency-symbol fonts. */
#landingLiveChatPanel .landing-live-chat-message p,
#landingLiveChatPanel .landing-live-chat-message-body,
#landingLiveChatPanel .landing-live-chat-message.is-ai p{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-variant-numeric:tabular-nums;
}

/* Move the launcher slightly inward and give it a modest size lift. */
.landing-live-chat-launcher{
  left:34px!important;
  width:64px!important;
  height:64px!important;
}
.landing-live-chat-launcher .live-chat-icon-svg{width:29px!important;height:29px!important}
.landing-live-chat-panel{left:34px!important;bottom:101px!important}

/* Aziz uses only the persistent identity strip; remove the redundant status strip. */
#landingLiveChatStatus.hide{display:none!important}

/* Compact top-right Live Agent action inside the Aziz conversation header. */
.landing-live-chat-head-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.landing-live-chat-agent-top{
  min-width:0;
  height:30px;
  padding:0 8px;
  border:1px solid color-mix(in srgb,var(--primary,#2457d6) 22%,var(--line,rgba(15,23,42,.12)));
  border-radius:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  background:color-mix(in srgb,var(--primary,#2457d6) 7%,var(--surface-soft,rgba(148,163,184,.1)));
  color:var(--text,#17212b);
  cursor:pointer;
  font:inherit;
  font-size:.52rem;
  font-weight:850;
  line-height:1;
  white-space:nowrap;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.landing-live-chat-agent-top i{font-size:.64rem;color:var(--primary,#2457d6)}
.landing-live-chat-agent-top:hover{background:color-mix(in srgb,var(--primary,#2457d6) 12%,var(--surface-soft));border-color:color-mix(in srgb,var(--primary,#2457d6) 34%,var(--line));transform:translateY(-1px)}
.landing-live-chat-agent-top:disabled{opacity:.48;cursor:wait;transform:none}

/* Agent-side end control stays deliberately small and unmistakable. */
.live-support-end-chat-btn{
  min-height:26px!important;
  padding:4px 7px!important;
  gap:4px!important;
  border-color:color-mix(in srgb,var(--danger,#dc2626) 28%,var(--line))!important;
  color:var(--danger,#dc2626)!important;
  background:color-mix(in srgb,var(--danger,#dc2626) 4%,transparent)!important;
}
.live-support-end-chat-btn:hover{background:color-mix(in srgb,var(--danger,#dc2626) 9%,var(--surface-elevated))!important}
.live-support-end-chat-btn i{font-size:.55rem}
.live-support-end-chat-btn span{font-size:.5rem;font-weight:850}

@media(max-width:900px){
  .landing-live-chat-launcher{
    left:16px!important;
    bottom:14px!important;
    width:54px!important;
    height:54px!important;
  }
  .landing-live-chat-launcher .live-chat-icon-svg{width:25px!important;height:25px!important}
  .landing-live-chat-panel{left:6px!important;bottom:74px!important}
  .landing-live-chat-agent-top{height:28px;padding:0 7px;font-size:.49rem}
}

@media(max-width:420px){
  .landing-live-chat-agent-top span{font-size:.47rem}
  .landing-live-chat-agent-top{gap:4px;padding:0 6px}
}

/* Build 153 · authoritative Agent End Chat + visitor presence. */
.live-support-end-chat-btn{
  min-height:32px!important;
  padding:6px 10px!important;
  gap:6px!important;
  border-radius:9px!important;
  border-color:color-mix(in srgb,var(--danger,#dc2626) 38%,var(--line))!important;
  background:color-mix(in srgb,var(--danger,#dc2626) 7%,var(--surface-elevated,transparent))!important;
  color:var(--danger,#dc2626)!important;
  font-weight:850!important;
}
.live-support-end-chat-btn i{font-size:.72rem!important}
.live-support-end-chat-btn span{font-size:.68rem!important;font-weight:850!important;letter-spacing:.01em}
.live-support-end-chat-btn:hover{background:color-mix(in srgb,var(--danger,#dc2626) 13%,var(--surface-elevated))!important}
.live-support-visitor-presence{
  width:max-content;
  max-width:100%;
  margin:7px 0 0!important;
  padding:5px 8px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid color-mix(in srgb,var(--line,#cbd5e1) 72%,transparent);
  background:color-mix(in srgb,var(--surface-soft,rgba(148,163,184,.1)) 78%,transparent);
  font-size:.65rem!important;
  font-weight:750;
  line-height:1.15;
}
.live-support-visitor-presence i{font-size:.52rem}
.live-support-visitor-presence.is-online{color:var(--success,#16803a);border-color:color-mix(in srgb,var(--success,#16803a) 28%,var(--line))}
.live-support-visitor-presence.is-online i{filter:drop-shadow(0 0 4px color-mix(in srgb,var(--success,#16803a) 48%,transparent))}
.live-support-visitor-presence.is-leaving{color:var(--warning,#a16207);border-color:color-mix(in srgb,var(--warning,#a16207) 28%,var(--line))}
.live-support-visitor-presence.is-ended{color:var(--muted,#64748b);border-color:color-mix(in srgb,var(--muted,#64748b) 24%,var(--line))}
.live-support-visitor-presence.is-unknown{color:var(--muted,#64748b)}
.live-support-ended-state{
  min-height:31px;
  padding:6px 10px;
  border-radius:9px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid color-mix(in srgb,var(--line,#cbd5e1) 76%,transparent);
  background:color-mix(in srgb,var(--surface-soft,rgba(148,163,184,.1)) 75%,transparent);
  color:var(--muted,#64748b);
  font-size:.68rem;
  font-weight:800;
}
.message-float-end-chat{white-space:nowrap}

@media(max-width:900px){
  .live-support-end-chat-btn{min-height:30px!important;padding:5px 8px!important}
  .live-support-end-chat-btn span{font-size:.64rem!important}
  .live-support-visitor-presence{font-size:.61rem!important}
}

/* Build 153 · multilingual message direction and shaping. */
.landing-live-chat-message p[dir="auto"],
.chat-bubble-body[dir="auto"],
.message-float-chat-body[dir="auto"]{
  unicode-bidi:plaintext;
  text-align:start;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}


/* Build 157 · Visitor Chat readability and desktop workspace enlargement.
   These are presentation-only overrides; Aziz routing, regional pricing and
   Agent handoff logic remain unchanged. */
@media(min-width:901px){
  #landingLiveChatPanel.landing-live-chat-panel{
    width:min(470px,calc(100vw - 76px))!important;
    max-height:min(770px,calc(100dvh - 124px))!important;
    border-radius:22px!important;
  }
  #landingLiveChatPanel .landing-live-chat-head{padding:14px 15px 12px!important}
  #landingLiveChatPanel .landing-live-chat-brand strong{font-size:.86rem!important}
  #landingLiveChatPanel .landing-live-chat-brand small{font-size:.62rem!important}
  #landingLiveChatPanel .landing-live-chat-start{padding:15px!important}
  #landingLiveChatPanel .landing-live-chat-intro{font-size:.74rem!important;line-height:1.55!important;margin-bottom:13px!important}
  #landingLiveChatPanel .landing-live-chat-fields label>span{font-size:.62rem!important}
  #landingLiveChatPanel .landing-live-chat-fields .input{font-size:.74rem!important;min-height:41px!important}
  #landingLiveChatPanel .landing-live-chat-start-btn{font-size:.74rem!important;min-height:42px!important}
  #landingLiveChatPanel .landing-live-chat-privacy{font-size:.58rem!important}
  #landingLiveChatPanel .landing-live-chat-messages{
    min-height:290px!important;
    max-height:min(500px,calc(100dvh - 300px))!important;
    padding:12px 12px 6px!important;
    gap:9px!important;
  }
  #landingLiveChatPanel .landing-live-chat-message-row{gap:8px!important;max-width:98%!important}
  #landingLiveChatPanel .landing-live-chat-message{max-width:88%!important;padding:10px 11px!important;border-radius:14px!important}
  #landingLiveChatPanel .landing-live-chat-message p{font-size:.79rem!important;line-height:1.52!important}
  #landingLiveChatPanel .landing-live-chat-thinking p{font-size:.75rem!important}
  #landingLiveChatPanel .landing-live-chat-message-meta{margin-bottom:4px!important}
  #landingLiveChatPanel .landing-live-chat-message-meta strong{font-size:.60rem!important}
  #landingLiveChatPanel .landing-live-chat-message-meta>span{font-size:.54rem!important}
  #landingLiveChatPanel .landing-live-chat-actor-badge{font-size:.47rem!important;padding:2px 6px!important}
  #landingLiveChatPanel .landing-live-chat-avatar{width:29px!important;height:29px!important;flex-basis:29px!important}
  #landingLiveChatPanel .landing-live-chat-reply{grid-template-columns:minmax(0,1fr) 42px!important;gap:8px!important;padding:9px 11px!important}
  #landingLiveChatPanel .landing-live-chat-reply textarea{min-height:42px!important;max-height:112px!important;padding:10px 11px!important;font-size:.77rem!important;line-height:1.42!important}
  #landingLiveChatPanel .landing-live-chat-reply button{width:42px!important;height:42px!important}
  #landingLiveChatPanel .landing-live-chat-expiry{font-size:.55rem!important;padding:6px 10px!important}
}

@media(max-width:900px){
  #landingLiveChatPanel .landing-live-chat-brand strong{font-size:.82rem!important}
  #landingLiveChatPanel .landing-live-chat-brand small{font-size:.60rem!important}
  #landingLiveChatPanel .landing-live-chat-intro{font-size:.70rem!important;line-height:1.52!important}
  #landingLiveChatPanel .landing-live-chat-fields label>span{font-size:.60rem!important}
  #landingLiveChatPanel .landing-live-chat-fields .input{font-size:.72rem!important}
  #landingLiveChatPanel .landing-live-chat-message p{font-size:.86rem!important;line-height:1.52!important}
  #landingLiveChatPanel .landing-live-chat-thinking p{font-size:.80rem!important}
  #landingLiveChatPanel .landing-live-chat-message-meta strong{font-size:.61rem!important}
  #landingLiveChatPanel .landing-live-chat-message-meta>span{font-size:.56rem!important}
  #landingLiveChatPanel .landing-live-chat-reply textarea{font-size:.82rem!important;line-height:1.42!important}
}

/* ===== SOURCE: Assets/style/33-live-chat-records-polish.css ===== */
/* Triplem VIP Build 151 · Admin Live Chat Records final layout polish */
#adminLiveChatRecordsModal.modal,
#adminLiveChatTranscriptModal.modal{
  z-index:21000!important;
  padding:clamp(12px,2vw,26px)!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
#adminLiveChatRecordsModal .admin-live-records-sheet{
  width:min(980px,calc(100vw - 32px))!important;
  height:min(86dvh,780px)!important;
  max-height:calc(100dvh - 32px)!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  overflow:hidden!important;
  border-radius:18px!important;
}
#adminLiveChatRecordsModal .admin-live-records-body{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  gap:10px!important;
  overflow:hidden!important;
  padding:12px!important;
}
#adminLiveChatRecordsModal .admin-live-records-toolbar,
#adminLiveChatRecordsModal .admin-live-record-bulkbar,
#adminLiveChatRecordsModal .admin-live-records-meta{
  flex:0 0 auto!important;
  min-width:0!important;
}
#adminLiveChatRecordsModal .admin-live-records-toolbar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:9px!important;
  align-items:center!important;
}
#adminLiveChatRecordsModal .admin-live-record-search{
  min-width:0!important;
  width:100%!important;
}
#adminLiveChatRecordsModal .admin-live-record-bulkbar{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  align-items:center!important;
}
#adminLiveChatRecordsModal .admin-live-record-selected{margin-right:auto!important;white-space:nowrap!important}
#adminLiveChatRecordsModal .admin-live-records-list{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:auto!important;
  display:flex!important;
  flex-direction:column!important;
  align-content:unset!important;
  gap:8px!important;
  padding:2px!important;
  overscroll-behavior:contain!important;
}
#adminLiveChatRecordsModal .admin-live-record-card{
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 70px!important;
  align-items:stretch!important;
  gap:0!important;
  overflow:hidden!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  background:var(--surface-elevated,var(--panel,#fff))!important;
  box-sizing:border-box!important;
}
#adminLiveChatRecordsModal .admin-live-record-check{
  min-width:0!important;
  display:grid!important;
  place-items:center!important;
  border-left:1px solid color-mix(in srgb,var(--line) 72%,transparent)!important;
}
#adminLiveChatRecordsModal .admin-live-record-main{
  min-width:0!important;
  width:100%!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  gap:9px!important;
  align-items:start!important;
  padding:10px 11px!important;
  text-align:right!important;
  overflow:hidden!important;
}
#adminLiveChatRecordsModal .admin-live-record-avatar{width:36px!important;height:36px!important;flex:0 0 36px!important}
#adminLiveChatRecordsModal .admin-live-record-copy,
#adminLiveChatRecordsModal .admin-live-record-top,
#adminLiveChatRecordsModal .admin-live-record-contact,
#adminLiveChatRecordsModal .admin-live-record-preview,
#adminLiveChatRecordsModal .admin-live-record-foot{min-width:0!important;max-width:100%!important}
#adminLiveChatRecordsModal .admin-live-record-top{display:flex!important;justify-content:space-between!important;gap:10px!important;align-items:baseline!important}
#adminLiveChatRecordsModal .admin-live-record-top strong{font-size:.78rem!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#adminLiveChatRecordsModal .admin-live-record-top time{font-size:.62rem!important;white-space:nowrap!important;color:var(--muted)!important}
#adminLiveChatRecordsModal .admin-live-record-contact{font-size:.65rem!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:var(--muted)!important}
#adminLiveChatRecordsModal .admin-live-record-preview{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.35!important;
  font-size:.69rem!important;
}
#adminLiveChatRecordsModal .admin-live-record-foot{display:flex!important;flex-wrap:wrap!important;gap:5px 9px!important;align-items:center!important;margin-top:3px!important}
#adminLiveChatRecordsModal .admin-live-record-foot em{font-size:.6rem!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#adminLiveChatRecordsModal .admin-live-record-card-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  align-items:stretch!important;
  border-right:1px solid color-mix(in srgb,var(--line) 72%,transparent)!important;
}
#adminLiveChatRecordsModal .admin-live-record-pdf,
#adminLiveChatRecordsModal .admin-live-record-trash{
  position:static!important;
  inset:auto!important;
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  min-height:100%!important;
  border:0!important;
  border-radius:0!important;
  display:grid!important;
  place-items:center!important;
  background:transparent!important;
  color:var(--muted)!important;
  cursor:pointer!important;
}
#adminLiveChatRecordsModal .admin-live-record-pdf{color:var(--primary)!important;border-left:1px solid color-mix(in srgb,var(--line) 72%,transparent)!important}
#adminLiveChatRecordsModal .admin-live-record-pdf:hover{background:color-mix(in srgb,var(--primary) 9%,transparent)!important}
#adminLiveChatRecordsModal .admin-live-record-trash:hover{background:color-mix(in srgb,#dc2626 9%,transparent)!important;color:#dc2626!important}

#adminLiveChatTranscriptModal .admin-live-record-thread-sheet{
  width:min(820px,calc(100vw - 32px))!important;
  height:min(88dvh,790px)!important;
  max-height:calc(100dvh - 32px)!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  overflow:hidden!important;
  border-radius:18px!important;
}
#adminLiveChatTranscriptModal .admin-live-record-thread-body{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  max-height:none!important;
  gap:10px!important;
  padding:12px!important;
  overflow:hidden!important;
}
#adminLiveChatTranscriptModal .admin-live-record-summary{
  flex:0 0 auto!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  background:var(--surface-elevated,var(--panel,#fff))!important;
}
#adminLiveChatTranscriptModal .admin-live-record-summary>div{min-width:0!important;padding:9px 10px!important;border:0!important;border-left:1px solid var(--line)!important}
#adminLiveChatTranscriptModal .admin-live-record-summary>div:last-child{border-left:0!important}
#adminLiveChatTranscriptModal .admin-live-record-summary span{font-size:.57rem!important;letter-spacing:.04em!important;color:var(--muted)!important}
#adminLiveChatTranscriptModal .admin-live-record-summary strong{font-size:.7rem!important;line-height:1.25!important;overflow-wrap:anywhere!important}
#adminLiveChatTranscriptModal .admin-live-record-summary small{font-size:.56rem!important;line-height:1.3!important;overflow-wrap:anywhere!important;color:var(--muted)!important}
#adminLiveChatTranscriptModal .admin-live-record-handoffs{flex:0 0 auto!important;max-height:128px!important;overflow:auto!important;border:1px solid var(--line)!important;border-radius:11px!important;padding:8px!important}
#adminLiveChatTranscriptModal .admin-live-record-transcript{
  flex:1 1 auto!important;
  min-height:150px!important;
  max-height:none!important;
  overflow:auto!important;
  display:flex!important;
  flex-direction:column!important;
  align-content:unset!important;
  gap:8px!important;
  padding:10px!important;
  border:1px solid var(--line)!important;
  border-radius:13px!important;
  background:color-mix(in srgb,var(--surface-elevated,var(--panel,#fff)) 84%,transparent)!important;
  overscroll-behavior:contain!important;
}
#adminLiveChatTranscriptModal .admin-live-record-msg{
  flex:0 0 auto!important;
  width:auto!important;
  max-width:82%!important;
  min-width:0!important;
  padding:8px 10px!important;
  border:1px solid var(--line)!important;
  border-radius:13px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
#adminLiveChatTranscriptModal .admin-live-record-msg.guest{align-self:flex-start!important;background:color-mix(in srgb,var(--primary) 8%,var(--surface-elevated,var(--panel,#fff)))!important;border-color:color-mix(in srgb,var(--primary) 22%,var(--line))!important}
#adminLiveChatTranscriptModal .admin-live-record-msg.aziz{align-self:flex-end!important;background:color-mix(in srgb,#7c3aed 8%,var(--surface-elevated,var(--panel,#fff)))!important;border-color:color-mix(in srgb,#7c3aed 22%,var(--line))!important}
#adminLiveChatTranscriptModal .admin-live-record-msg.agent{align-self:flex-end!important;background:color-mix(in srgb,#159467 8%,var(--surface-elevated,var(--panel,#fff)))!important;border-color:color-mix(in srgb,#159467 22%,var(--line))!important}
#adminLiveChatTranscriptModal .admin-live-record-msg.support{align-self:center!important;max-width:90%!important;background:color-mix(in srgb,var(--muted) 6%,var(--surface-elevated,var(--panel,#fff)))!important}
#adminLiveChatTranscriptModal .admin-live-record-msg-meta{display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:baseline!important;margin-bottom:4px!important}
#adminLiveChatTranscriptModal .admin-live-record-msg-meta strong{font-size:.65rem!important;overflow-wrap:anywhere!important}
#adminLiveChatTranscriptModal .admin-live-record-msg-meta span{font-size:.53rem!important;white-space:nowrap!important;color:var(--muted)!important}
#adminLiveChatTranscriptModal .admin-live-record-msg p{margin:0!important;font-size:.68rem!important;line-height:1.5!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:break-word!important}
#adminLiveChatTranscriptModal .admin-live-record-event{flex:0 0 auto!important;max-width:94%!important;overflow:hidden!important}
#adminLiveChatTranscriptModal .admin-live-record-event span{white-space:normal!important;overflow-wrap:anywhere!important}
#adminLiveChatTranscriptModal .admin-live-record-thread-actions{
  flex:0 0 auto!important;
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  gap:7px!important;
  padding-top:8px!important;
  border-top:1px solid var(--line)!important;
}
#adminLiveChatTranscriptModal .admin-live-record-thread-actions>.btn{height:auto!important;min-height:30px!important;max-height:none!important;padding:6px 10px!important;font-size:.58rem!important}
#adminLiveChatTranscriptModal .admin-live-record-pdf-action{color:var(--primary)!important}

@media(max-width:760px){
  #adminLiveChatRecordsModal.modal,#adminLiveChatTranscriptModal.modal{padding:10px!important}
  #adminLiveChatRecordsModal .admin-live-records-sheet,#adminLiveChatTranscriptModal .admin-live-record-thread-sheet{width:100%!important;height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important;border-radius:15px!important}
  #adminLiveChatTranscriptModal .admin-live-record-summary{grid-template-columns:1fr 1fr!important}
  #adminLiveChatTranscriptModal .admin-live-record-summary>div{border-left:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important}
  #adminLiveChatTranscriptModal .admin-live-record-summary>div:nth-child(2n){border-left:0!important}
  #adminLiveChatTranscriptModal .admin-live-record-summary>div:nth-last-child(-n+2){border-bottom:0!important}
  #adminLiveChatTranscriptModal .admin-live-record-msg{max-width:90%!important}
}
@media(max-width:520px){
  #adminLiveChatRecordsModal .admin-live-records-body,#adminLiveChatTranscriptModal .admin-live-record-thread-body{padding:8px!important;gap:8px!important}
  #adminLiveChatRecordsModal .admin-live-records-toolbar{grid-template-columns:minmax(0,1fr)!important}
  #adminLiveChatRecordsModal .admin-live-records-toolbar>.btn{width:100%!important}
  #adminLiveChatRecordsModal .admin-live-record-selected{width:100%!important;margin-right:0!important}
  #adminLiveChatRecordsModal .admin-live-record-card{grid-template-columns:30px minmax(0,1fr) 58px!important}
  #adminLiveChatRecordsModal .admin-live-record-main{grid-template-columns:30px minmax(0,1fr)!important;padding:8px!important;gap:7px!important}
  #adminLiveChatRecordsModal .admin-live-record-avatar{width:29px!important;height:29px!important;flex-basis:29px!important}
  #adminLiveChatRecordsModal .admin-live-record-top{display:grid!important;gap:2px!important}
  #adminLiveChatRecordsModal .admin-live-record-top time{white-space:normal!important}
  #adminLiveChatRecordsModal .admin-live-record-foot em{white-space:normal!important}
  #adminLiveChatTranscriptModal .admin-live-record-summary{grid-template-columns:1fr!important}
  #adminLiveChatTranscriptModal .admin-live-record-summary>div{border-left:0!important;border-bottom:1px solid var(--line)!important}
  #adminLiveChatTranscriptModal .admin-live-record-summary>div:last-child{border-bottom:0!important}
  #adminLiveChatTranscriptModal .admin-live-record-msg{max-width:94%!important}
  #adminLiveChatTranscriptModal .admin-live-record-thread-actions{justify-content:stretch!important}
  #adminLiveChatTranscriptModal .admin-live-record-thread-actions>.btn{flex:1 1 auto!important}
}

/* Build 152: explicit actor titles keep transcript identity unambiguous. */
#adminLiveChatTranscriptModal .admin-live-record-msg-meta strong{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
}
#adminLiveChatTranscriptModal .admin-live-record-msg-meta strong>span{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:inherit!important;
  font-size:inherit!important;
}
#adminLiveChatTranscriptModal .admin-live-record-role-badge{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:18px!important;
  padding:2px 6px!important;
  border-radius:999px!important;
  font-style:normal!important;
  font-size:.47rem!important;
  font-weight:800!important;
  line-height:1!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
  border:1px solid currentColor!important;
  background:color-mix(in srgb,currentColor 9%,transparent)!important;
}
#adminLiveChatTranscriptModal .admin-live-record-role-badge.guest{color:var(--primary)!important}
#adminLiveChatTranscriptModal .admin-live-record-role-badge.aziz{color:#7c3aed!important}
#adminLiveChatTranscriptModal .admin-live-record-role-badge.agent{color:#159467!important}
#adminLiveChatTranscriptModal .admin-live-record-role-badge.support{color:var(--muted)!important}

/* ===== SOURCE: Assets/style/34-build010-upgrades.css ===== */
/* Triplem VIP Build 010 — focused UX upgrades. All visual values resolve through centralized theme tokens. */

/* Notes — tactile paper language without escaping active theme */
.note-grid-card{
  position:relative;overflow:visible;min-height:190px;padding:22px 30px 18px 20px!important;
  background:linear-gradient(90deg,transparent 0 20px,color-mix(in srgb,var(--danger) 26%,transparent) 20px 21px,transparent 21px),
    repeating-linear-gradient(0deg,transparent 0 27px,color-mix(in srgb,var(--line) 68%,transparent) 27px 28px),
    color-mix(in srgb,var(--surface-elevated) 91%,var(--warning-soft) 9%)!important;
  border:1px solid var(--line-strong)!important;box-shadow:var(--shadow)!important;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 8px),97% 100%,93% calc(100% - 5px),89% 100%,84% calc(100% - 6px),79% 100%,74% calc(100% - 5px),69% 100%,64% calc(100% - 7px),59% 100%,53% calc(100% - 5px),48% 100%,42% calc(100% - 6px),36% 100%,30% calc(100% - 5px),24% 100%,18% calc(100% - 6px),12% 100%,6% calc(100% - 5px),0 100%);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.note-grid-card:hover,.note-grid-card:focus-visible{transform:translateY(-4px) rotate(-.25deg);box-shadow:var(--shadow-strong)!important;border-color:var(--primary)!important;outline:none}
.note-grid-card:nth-child(3n+2){transform:rotate(.28deg)}.note-grid-card:nth-child(3n+2):hover{transform:translateY(-4px) rotate(.05deg)}
.note-paper-pencil{position:absolute;left:13px;top:-11px;width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:var(--primary-gradient);color:var(--on-primary);box-shadow:var(--shadow-soft);transform:rotate(11deg)}
.note-paper-head{display:flex;align-items:flex-start;gap:10px;padding-left:30px}.note-grid-title{font-family:Georgia,"Times New Roman",serif;font-size:1.08rem;font-weight:800;color:var(--text-strong);line-height:1.35}.note-paper-reminder{margin-right:auto;color:var(--warning);filter:drop-shadow(0 2px 8px var(--warning-soft))}
.note-paper-preview{margin:16px 0 18px;min-height:72px;line-height:28px;color:var(--text);font-family:"Segoe Print","Bradley Hand",cursive;font-size:.88rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.note-paper-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;color:var(--muted);font-size:.72rem}.note-paper-foot i{color:var(--primary)}
.note-detail-dialog .modal-body,.note-create-dialog .modal-body{background:transparent!important}.note-detail-content,.note-create-dialog .note-textarea,#noteEditContent{position:relative;background:repeating-linear-gradient(0deg,transparent 0 30px,color-mix(in srgb,var(--line) 70%,transparent) 30px 31px),color-mix(in srgb,var(--surface-elevated) 92%,var(--warning-soft) 8%)!important;border:1px solid var(--line-strong)!important;border-radius:18px!important;box-shadow:inset 24px 0 0 color-mix(in srgb,var(--danger-soft) 34%,transparent),var(--shadow-soft)!important;padding:22px 38px 22px 24px!important;line-height:31px!important;font-family:"Segoe Print","Bradley Hand",var(--font,system-ui),cursive!important;color:var(--text)!important}
.note-detail-dialog .modal-head,.note-create-dialog .modal-head{border-bottom:1px dashed var(--line-strong)!important}.note-detail-kicker{color:var(--primary)!important}.note-workspace-modal .modal-dialog{box-shadow:var(--shadow-strong)!important}

/* Account logo maintenance + Admin unused photo cleanup */
.account-logo-maintenance-row{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap}.account-logo-maintenance-row .settings-input{flex:1 1 260px}.admin-unused-photo-panel{margin-top:14px;padding:12px;border:1px solid var(--line-strong);border-radius:16px;background:var(--surface-soft);box-shadow:var(--shadow-soft)}
.admin-unused-photo-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:8px}.admin-unused-photo-head strong{color:var(--text-strong)}.admin-unused-photo-head span{color:var(--muted);font-size:.76rem;max-width:420px;text-align:left}.admin-unused-photo-row{display:flex;justify-content:space-between;gap:12px;padding:9px 10px;border-top:1px dashed var(--line);color:var(--text)}.admin-unused-photo-row small{color:var(--muted);overflow-wrap:anywhere;text-align:left}

/* Expenses — clickable transactions, compact action menu, premium detail receipt */
.expense-tx-row{cursor:pointer;transition:background .16s ease,transform .16s ease}.expense-tx-row:hover,.expense-tx-row:focus-visible{background:var(--surface-hover)!important;outline:none}.expense-tx-row:focus-visible{box-shadow:inset 3px 0 0 var(--primary)}
.expense-tx-action-wrap{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:5px}.expense-tx-menu{display:none;position:absolute;left:0;top:calc(100% + 6px);z-index:250;min-width:175px;padding:7px;border:1px solid var(--line-strong);border-radius:14px;background:var(--surface-elevated);box-shadow:var(--shadow-strong);backdrop-filter:blur(var(--glass-blur)) saturate(var(--glass-saturate));-webkit-backdrop-filter:blur(var(--glass-blur)) saturate(var(--glass-saturate))}.expense-tx-menu.is-open{display:grid}.expense-tx-menu button{display:flex;align-items:center;gap:9px;width:100%;padding:9px 10px;border:0;border-radius:10px;background:transparent;color:var(--text);text-align:right;cursor:pointer}.expense-tx-menu button:hover{background:var(--surface-hover)}.expense-tx-menu button.is-danger{color:var(--danger)}
.expense-tx-detail-dialog{width:min(720px,calc(100vw - 24px))!important}.expense-tx-kicker,.loan-detail-kicker,.dep-method-kicker{margin:0 0 4px;color:var(--primary);font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.expense-tx-hero{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid var(--line-strong);border-radius:20px;background:var(--banner-bg);box-shadow:var(--shadow-soft)}.expense-tx-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:17px;background:var(--primary-gradient);color:var(--on-primary);font-size:1.25rem;box-shadow:var(--theme-glow-shadow)}.expense-tx-hero small,.expense-tx-hero span{display:block;color:var(--muted)}.expense-tx-hero strong{display:block;color:var(--text-strong);font-size:1.45rem}.expense-tx-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.expense-tx-detail-grid>div,.expense-tx-note{padding:13px;border:1px solid var(--line);border-radius:15px;background:var(--surface-soft)}.expense-tx-detail-grid small,.expense-tx-note small{display:block;color:var(--muted);font-size:.72rem;margin-bottom:5px}.expense-tx-detail-grid strong{color:var(--text-strong);font-size:.88rem}.expense-tx-note{margin-top:10px}.expense-tx-note p{margin:0;color:var(--text);white-space:pre-wrap}.expense-tx-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:14px}

/* Loan details + PDF selection */
.loan-detail-pdf-menu-wrap{position:relative}.loan-detail-pdf-menu{display:none;position:absolute;left:0;top:calc(100% + 7px);min-width:205px;padding:7px;border:1px solid var(--line-strong);border-radius:14px;background:var(--surface-elevated);box-shadow:var(--shadow-strong);z-index:260}.loan-detail-pdf-menu.is-open{display:grid}.loan-detail-pdf-menu button{display:flex;align-items:center;gap:10px;padding:10px;border:0;border-radius:10px;background:transparent;color:var(--text);cursor:pointer;text-align:right}.loan-detail-pdf-menu button:hover{background:var(--surface-hover)}
.loan-pdf-selection-dialog{width:min(760px,calc(100vw - 24px))!important}.loan-pdf-select-all{display:flex;align-items:center;gap:9px;padding:12px 14px;border-radius:14px;background:var(--primary-soft);color:var(--text-strong);font-weight:750}.loan-pdf-selection-list{display:grid;gap:7px;margin-top:10px;max-height:min(52vh,500px);overflow:auto}.loan-pdf-selection-row{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft);cursor:pointer}.loan-pdf-selection-row:hover{border-color:var(--line-strong);background:var(--surface-hover)}.loan-pdf-selection-row span{display:grid}.loan-pdf-selection-row small{color:var(--muted)}.loan-pdf-selection-row b{color:var(--text-strong)}
#sectionDetailsModal[data-details-kind="loan"] .section-details-note{padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--primary-soft);color:var(--text)}

/* Bitcoin — compact command surface and clearer security/send/receive dialogs */
.btc-security-notice{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;margin-bottom:12px;border:1px solid var(--warning);border-radius:14px;background:var(--warning-soft);color:var(--text);box-shadow:var(--shadow-soft)}.btc-security-notice>i{color:var(--warning);margin-top:2px}.btc-security-notice p{margin:0;font-size:.75rem;line-height:1.45}
.btc-wallet-access-wrap{width:min(100%,520px)}.btc-wallet-access-trigger{width:100%;display:flex!important;justify-content:space-between;align-items:center;padding:11px 14px!important}.btc-wallet-access-menu{width:min(430px,calc(100vw - 42px));padding:8px!important}.btc-wallet-access-option{display:grid!important;grid-template-columns:34px 1fr;gap:10px;align-items:center;width:100%;padding:9px 10px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--text)!important;text-align:right!important}.btc-wallet-access-option:hover,.btc-wallet-access-option.is-active{background:var(--surface-hover)!important}.btc-wallet-access-option>i{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--primary-soft);color:var(--primary)}.btc-wallet-access-option span{display:grid;gap:2px}.btc-wallet-access-option small{color:var(--muted);font-size:.69rem}
#bitcoinView .card{border-radius:18px!important}#btcLoginSection{background:var(--surface-glass)!important;backdrop-filter:blur(var(--glass-blur));-webkit-backdrop-filter:blur(var(--glass-blur));border-color:var(--line)!important}
#btcSendModal .modal-dialog,#btcReceiveModal .modal-dialog{border:1px solid var(--line-strong)!important;background:var(--modal-bg)!important;box-shadow:var(--shadow-strong)!important}#btcSendModal .modal-head,#btcReceiveModal .modal-head{background:var(--banner-bg)!important;border-bottom:1px solid var(--line)!important}.btc-send-from-box,.btc-send-preview,.btc-receive-address-chip,.btc-guest-fee-box{border-radius:14px!important;background:var(--surface-soft)!important;border-color:var(--line)!important;box-shadow:none!important}.btc-receive-address-chip.is-selected{border-color:var(--primary)!important;background:var(--primary-soft)!important}

/* Asset + depreciation visual hierarchy */
.asset-card,.dep-asset-card{overflow:visible;border-radius:20px!important;box-shadow:var(--shadow)!important}.asset-card:hover,.dep-asset-card:hover{box-shadow:var(--shadow-strong)!important}.dep-accounting-basis{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 12px;padding:11px 13px;border:1px solid var(--line);border-radius:15px;background:var(--surface-soft);color:var(--muted);font-size:.76rem}.dep-accounting-basis strong{color:var(--text-strong)}.dep-accounting-basis>span{display:inline-flex;align-items:center;gap:5px}.dep-review-due{color:var(--warning)!important;background:var(--warning-soft);padding:5px 8px;border-radius:999px}.dep-usage-summary{display:flex;justify-content:space-between;align-items:center;margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}.dep-usage-summary span{color:var(--muted)}.dep-usage-summary strong{color:var(--text-strong)}
.dep-asset-card .asset-card-meta span:first-child{background:var(--primary-soft);color:var(--text);border-color:var(--line-strong)}.dep-summary-card{position:relative;overflow:hidden}.dep-summary-card:after{content:"";position:absolute;width:80px;height:80px;left:-28px;bottom:-34px;border-radius:50%;background:var(--theme-glow-1);filter:blur(2px);pointer-events:none}

@media(max-width:720px){.expense-tx-detail-grid{grid-template-columns:1fr}.expense-tx-actions{justify-content:stretch}.expense-tx-actions .btn{flex:1}.admin-unused-photo-head,.admin-unused-photo-row{display:grid}.admin-unused-photo-head span,.admin-unused-photo-row small{text-align:right}.note-grid-card{min-height:170px}.loan-pdf-selection-row{grid-template-columns:auto 1fr}.loan-pdf-selection-row b{grid-column:2}.btc-wallet-access-wrap{width:100%}}

/* ===== SOURCE: Assets/style/22-landing-hero-polish.css ===== */
/* Triplem VIP landing-page polish — 2026-09-04 build 132
   Visitor-facing only. Intentionally scoped to #lockScreen so authenticated UI is untouched. */

#lockScreen{
  --landing-public-ink:#101828;
  --landing-public-muted:#5f6b7a;
  --landing-public-blue:#2457d6;
  --landing-public-blue-2:#4f7df3;
  --landing-public-navy:#071326;
  --landing-public-navy-2:#0d213d;
  --landing-public-line:rgba(36,87,214,.13);
  color-scheme:light;
  color:var(--landing-public-ink);
  background:radial-gradient(780px 520px at 96% 0%,rgba(75,122,244,.16),transparent 72%),
    radial-gradient(620px 480px at 0% 94%,rgba(87,205,225,.10),transparent 72%),
    linear-gradient(155deg,#f5f8ff 0%,#edf3ff 48%,#f8fbff 100%)!important;
}

/* Public header is deliberately independent from any previously saved dashboard theme. */
#lockScreen .landing-nav{
  border:1px solid rgba(255,255,255,.86)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.93),rgba(243,248,255,.82))!important;
  box-shadow:0 18px 48px rgba(18,48,105,.12),inset 0 1px 0 rgba(255,255,255,.98)!important;
}
#lockScreen .landing-brand-mark,
#lockScreen .landing-nav-btn,
#lockScreen .landing-menu-toggle{color:#26364d!important}
#lockScreen .landing-brand-mark .brand-m-triple{color:var(--landing-public-blue)!important}

#lockScreen .landing-nav-cta--signup{
  min-height:40px;
  padding:9px 14px!important;
  border:1px solid rgba(36,87,214,.30)!important;
  background:linear-gradient(135deg,#2457d6,#4f7df3)!important;
  color:#fff!important;
  box-shadow:0 12px 28px rgba(36,87,214,.25),inset 0 1px 0 rgba(255,255,255,.26)!important;
  font-weight:900;
}
#lockScreen .landing-nav-cta--signup:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(36,87,214,.31)!important}
#lockScreen .landing-nav-cta--signup :is(i,span){color:#fff!important}
#lockScreen .landing-nav-login-compact{
  appearance:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:6px 9px;
  border:1px solid rgba(36,87,214,.12);
  border-radius:999px;
  background:rgba(255,255,255,.62);
  color:#516079;
  font:inherit;
  font-size:.70rem;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}
#lockScreen .landing-nav-login-compact:hover{color:var(--landing-public-blue);border-color:rgba(36,87,214,.25);background:#fff}
#lockScreen .landing-nav-login-compact:focus-visible{outline:2px solid rgba(36,87,214,.38);outline-offset:2px}

/* Hero: one controlled dark system, with explicit contrast for every child. */
#lockScreen .landing-hero-marketing{
  border-color:rgba(255,255,255,.15)!important;
  background:radial-gradient(680px 420px at 96% 2%,rgba(77,124,244,.31),transparent 67%),
    radial-gradient(420px 300px at 3% 100%,rgba(87,205,225,.11),transparent 72%),
    linear-gradient(145deg,#061122 0%,#0b1f3a 56%,#11315a 100%)!important;
  box-shadow:0 34px 88px rgba(3,12,28,.30),inset 0 1px 0 rgba(255,255,255,.10)!important;
}
#lockScreen .landing-hero-marketing .landing-hero-title{overflow:visible!important}
#lockScreen .landing-hero-marketing .landing-brand-name{
  display:block;
  max-width:100%;
  white-space:nowrap;
  overflow:visible;
  color:#f8fbff!important;
  -webkit-text-fill-color:#f8fbff!important;
  text-shadow:0 8px 34px rgba(48,105,232,.18);
  font-size:clamp(2.45rem,5.2vw,4.85rem)!important;
  line-height:.95!important;
  letter-spacing:.035em!important;
}
#lockScreen .landing-hero-marketing .landing-brand-name .brand-m-triple{
  color:#9fc1ff!important;
  -webkit-text-fill-color:#9fc1ff!important;
  text-shadow:0 0 24px rgba(91,140,255,.42);
}
#lockScreen .landing-hero-marketing .landing-tagline{color:#f2f6ff!important;-webkit-text-fill-color:#f2f6ff!important}
#lockScreen .landing-hero-marketing .landing-lead{color:#c4d1e4!important;-webkit-text-fill-color:#c4d1e4!important}
#lockScreen .landing-hero-marketing .landing-eyebrow{
  color:#c9dbff!important;
  background:rgba(255,255,255,.07)!important;
  border-color:rgba(159,193,255,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07)!important;
}
#lockScreen .landing-hero-marketing .landing-hero-trust,
#lockScreen .landing-hero-marketing .landing-hero-trust span{color:#c3cfe0!important}
#lockScreen .landing-hero-marketing .landing-hero-trust i{color:#9fc1ff!important}

/* Free sign-up owns the first visual priority. */
#lockScreen #landingHeroTrialBtn.landing-cta--hero-signup{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:11px!important;
  min-height:62px!important;
  padding:12px 22px!important;
  border-radius:17px!important;
  background:linear-gradient(135deg,#ffffff 0%,#e9f1ff 48%,#bfd3ff 100%)!important;
  color:#143777!important;
  border:1px solid rgba(255,255,255,.52)!important;
  box-shadow:0 20px 46px rgba(68,119,239,.35),0 0 0 5px rgba(255,255,255,.07),inset 0 1px 0 #fff!important;
}
#lockScreen #landingHeroTrialBtn.landing-cta--hero-signup > span{display:grid;text-align:right;gap:1px}
#lockScreen #landingHeroTrialBtn.landing-cta--hero-signup strong{font-size:1.02rem;line-height:1.05;color:#143777!important}
#lockScreen #landingHeroTrialBtn.landing-cta--hero-signup small{font-size:.66rem;font-weight:800;color:#58709d!important;white-space:nowrap}
#lockScreen #landingHeroTrialBtn.landing-cta--hero-signup i{font-size:1.1rem;color:#2457d6!important}
#lockScreen .landing-hero-marketing .landing-cta--public{
  color:#e7efff!important;
  background:rgba(255,255,255,.065)!important;
  border-color:rgba(255,255,255,.13)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
#lockScreen .landing-hero-marketing .landing-cta--public:hover{color:#fff!important;background:rgba(255,255,255,.11)!important;border-color:rgba(159,193,255,.26)!important}
#lockScreen .landing-member-login{
  appearance:none;
  margin-top:10px;
  padding:5px 2px;
  border:0;
  background:transparent;
  color:#9eacc0;
  font:inherit;
  font-size:.69rem;
  cursor:pointer;
}
#lockScreen .landing-member-login i{margin-left:5px;color:#8096b8}
#lockScreen .landing-member-login strong{color:#dbe7fb!important}
#lockScreen .landing-member-login:hover strong{text-decoration:underline;color:#fff!important}

/* Trial details and fraud alert stay dark-glass inside the dark hero. */
#lockScreen .landing-hero-marketing .landing-info-action{
  color:#e9f1ff!important;
  border-color:rgba(255,255,255,.12)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.045))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 10px 28px rgba(0,0,0,.09)!important;
}
#lockScreen .landing-hero-marketing .landing-info-action:hover,
#lockScreen .landing-hero-marketing .landing-info-action:focus-visible{
  border-color:rgba(159,193,255,.28)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.065))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.075),0 14px 30px rgba(0,0,0,.14)!important;
}
#lockScreen .landing-hero-marketing .landing-info-action strong{color:#f5f8ff!important}
#lockScreen .landing-hero-marketing .landing-info-action small{color:#aebed3!important}
#lockScreen .landing-hero-marketing .landing-info-action-arrow{color:#8298b7!important}
#lockScreen .landing-hero-marketing .landing-info-action-icon{color:#a9c7ff!important;background:rgba(63,112,225,.18)!important}
#lockScreen .landing-hero-marketing .landing-info-action--fraud .landing-info-action-icon{color:#ffd18b!important;background:rgba(240,165,0,.14)!important}

/* Offer card replacing fictional wallet data. */
#lockScreen .landing-plan-showcase{
  overflow:hidden;
  padding:16px!important;
  border:1px solid rgba(255,255,255,.70)!important;
  background:radial-gradient(360px 220px at 100% 0%,rgba(79,125,243,.13),transparent 70%),
    linear-gradient(155deg,rgba(255,255,255,.97),rgba(232,240,255,.93))!important;
  color:#152238!important;
  box-shadow:0 30px 72px rgba(0,0,0,.27),inset 0 1px 0 #fff!important;
}
#lockScreen .landing-plan-showcase::after{opacity:.48}
#lockScreen .landing-plan-showcase .landing-showcase-brand{color:#1c2b43!important}
#lockScreen .landing-plan-showcase .landing-showcase-live{background:rgba(36,87,214,.08)!important;color:#2457d6!important}
#lockScreen .landing-plan-showcase .landing-showcase-live i{background:#3f70e1!important;box-shadow:0 0 0 3px rgba(63,112,225,.12)!important}
#lockScreen .landing-plan-list{position:relative;z-index:1;display:grid;gap:9px;margin-top:4px}
#lockScreen .landing-plan-option{
  min-width:0;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  padding:12px 13px;
  border:1px solid rgba(36,87,214,.10);
  border-radius:16px;
  background:rgba(255,255,255,.75);
  box-shadow:0 8px 22px rgba(36,87,214,.055),inset 0 1px 0 rgba(255,255,255,.90);
}
#lockScreen .landing-plan-option.is-monthly{background:linear-gradient(145deg,rgba(242,247,255,.96),rgba(255,255,255,.80));border-color:rgba(36,87,214,.15)}
#lockScreen .landing-plan-option.is-yearly{background:linear-gradient(145deg,#fff9e9,#fffef9);border-color:rgba(214,145,0,.24);box-shadow:0 10px 24px rgba(174,116,0,.08),inset 0 1px 0 #fff}
#lockScreen .landing-plan-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#e9f0ff;color:#2457d6;font-size:.92rem}
#lockScreen .landing-plan-option.is-free .landing-plan-icon{background:#e8f8f1;color:#067647}
#lockScreen .landing-plan-option.is-yearly .landing-plan-icon{background:#fff0c6;color:#a76500}
#lockScreen .landing-plan-copy{min-width:0;display:block}
#lockScreen .landing-plan-copy small,
#lockScreen .landing-plan-copy strong,
#lockScreen .landing-plan-copy em{display:block;color:inherit!important}
#lockScreen .landing-plan-copy small{
  width:max-content;
  max-width:100%;
  min-height:24px;
  display:inline-flex!important;
  align-items:center;
  padding:4px 9px;
  border:1px solid rgba(36,87,214,.12);
  border-radius:999px;
  background:#edf3ff!important;
  color:#173f9f!important;
  font-size:.72rem;
  line-height:1.05;
  font-weight:900;
  text-transform:none;
  letter-spacing:.015em;
  white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86);
}
#lockScreen .landing-plan-option.is-free .landing-plan-copy small{background:#e7f8ef!important;border-color:rgba(6,118,71,.14);color:#05603a!important}
#lockScreen .landing-plan-option.is-monthly .landing-plan-copy small{background:#eaf1ff!important;border-color:rgba(36,87,214,.16);color:#184aa8!important}
#lockScreen .landing-plan-option.is-yearly .landing-plan-copy small{background:#fff0c6!important;border-color:rgba(167,101,0,.18);color:#7b4d00!important}
#lockScreen .landing-plan-copy strong{margin-top:5px;font-size:.94rem;line-height:1.22;color:#17233a!important}
#lockScreen .landing-plan-copy strong b{font-weight:900;color:#2457d6!important}
#lockScreen .landing-plan-option.is-yearly .landing-plan-copy strong b{color:#9a6200!important}
#lockScreen .landing-plan-copy em{margin-top:3px;font-style:normal;font-size:.62rem;font-weight:700;color:#77849a!important}
#lockScreen .landing-plan-badge{padding:5px 8px;border-radius:999px;background:#edf2ff;color:#2457d6!important;font-size:.58rem;font-weight:900;white-space:nowrap}
#lockScreen .landing-plan-option.is-free .landing-plan-badge{background:#e8f8f1;color:#067647!important}
#lockScreen .landing-plan-option.is-yearly .landing-plan-badge{background:#fff0c6;color:#8a5900!important}
#lockScreen .landing-plan-signup{
  position:relative;
  z-index:1;
  width:100%;
  min-height:56px;
  margin-top:11px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid rgba(36,87,214,.28);
  border-radius:15px;
  background:linear-gradient(135deg,#2457d6,#4f7df3);
  color:#fff;
  box-shadow:0 16px 32px rgba(36,87,214,.23),inset 0 1px 0 rgba(255,255,255,.22);
  cursor:pointer;
  text-align:right;
  transition:transform .18s ease,box-shadow .18s ease;
}
#lockScreen .landing-plan-signup:hover{transform:translateY(-1px);box-shadow:0 20px 38px rgba(36,87,214,.29),inset 0 1px 0 rgba(255,255,255,.24)}
#lockScreen .landing-plan-signup > span{display:grid;gap:1px}
#lockScreen .landing-plan-signup strong{font-size:.88rem;color:#fff!important}
#lockScreen .landing-plan-signup small{font-size:.62rem;font-weight:700;color:#dce8ff!important}
#lockScreen .landing-plan-signup i{color:#fff!important}
#lockScreen .landing-plan-trust{position:relative;z-index:1;grid-template-columns:repeat(3,minmax(0,1fr))!important;margin-top:9px!important}
#lockScreen .landing-plan-trust span{background:rgba(36,87,214,.055)!important;color:#52627a!important;border:1px solid rgba(36,87,214,.07)}
#lockScreen .landing-plan-trust i{color:#2457d6!important}
#lockScreen .landing-hero-showcase .landing-showcase-note{color:#9eb0c8!important}

/* Light sections keep a stable visitor palette even if a signed-out browser retained a dashboard theme. */
#lockScreen :is(.landing-trial-banner,.landing-seo-pillar,.landing-owner-questions,.landing-surface-card){color:#17233a}
#lockScreen :is(.landing-trial-banner,.landing-seo-pillar,.landing-owner-questions,.landing-surface-card) :is(h1,h2,h3,h4,strong){color:#17233a}
#lockScreen :is(.landing-trial-banner,.landing-seo-pillar,.landing-owner-questions,.landing-surface-card) :is(p,small,li){color:#607087}

/* Mobile and tablet geometry. Keep sign-up visible in the header at every width. */
@media(max-width:1180px){
  #lockScreen .landing-nav-actions{gap:5px}
  #lockScreen .landing-nav-cta--signup{padding:8px 10px!important;font-size:.72rem}
  #lockScreen .landing-nav-login-compact{padding:6px 8px}
}
@media(max-width:960px){
  #lockScreen .landing-nav-cta--signup span{display:inline!important}
  #lockScreen #sendInquiryBtn{display:none!important}
  #lockScreen .landing-nav-login-compact{display:inline-flex}
  #lockScreen .landing-hero-marketing .landing-brand-name{font-size:clamp(2.35rem,8.4vw,4rem)!important}
}
@media(max-width:820px){
  #lockScreen .landing-visitor-alert-control,
  #lockScreen .landing-nav-login-compact{display:none!important}
  #lockScreen .landing-nav{padding:8px!important;gap:7px}
  #lockScreen .landing-brand{min-width:0!important;flex:1 1 auto!important}
  #lockScreen .landing-brand img{width:min(116px,31vw)!important}
  #lockScreen .landing-nav-actions{flex:0 0 auto!important}
  #lockScreen .landing-nav-cta--signup{min-height:36px!important;padding:7px 9px!important;font-size:.68rem!important;gap:5px!important}
  #lockScreen .landing-menu-toggle{min-width:36px!important;padding:8px!important}
  #lockScreen .landing-menu-toggle span{display:none}
  #lockScreen .landing-mobile-signup{background:linear-gradient(135deg,#2457d6,#4f7df3)!important;color:#fff!important;border-color:transparent!important;font-weight:900}
  #lockScreen .landing-mobile-signup i{color:#fff!important}
  #lockScreen .landing-mobile-login{color:#42526a!important;background:rgba(36,87,214,.045)!important}
  #lockScreen .landing-hero-marketing{padding:28px 20px!important}
  #lockScreen .landing-hero-marketing .landing-brand-name{font-size:clamp(2.25rem,10.5vw,3.55rem)!important}
  #lockScreen .landing-hero-marketing .landing-tagline{font-size:1.02rem!important}
  #lockScreen .landing-plan-showcase{max-width:620px;margin-inline:auto}
}
@media(max-width:620px){
  #lockScreen .landing-hero-marketing{padding:23px 15px!important}
  #lockScreen .landing-hero-marketing .landing-brand-name{font-size:clamp(2.05rem,11vw,3.15rem)!important;letter-spacing:.025em!important}
  #lockScreen .landing-hero-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  #lockScreen #landingHeroTrialBtn.landing-cta--hero-signup{grid-column:1/-1;width:100%!important;min-height:60px!important}
  #lockScreen .landing-hero-actions .landing-cta--public{width:100%!important;min-height:42px!important}
  #lockScreen .landing-hero-actions .landing-cta--founder{grid-column:1/-1}
  #lockScreen .landing-member-login{width:100%;text-align:center}
  #lockScreen .landing-hero-info-actions{grid-template-columns:1fr!important;max-width:100%!important}
  #lockScreen .landing-plan-option{grid-template-columns:38px minmax(0,1fr);gap:9px;padding:11px}
  #lockScreen .landing-plan-icon{width:38px;height:38px;border-radius:11px}
  #lockScreen .landing-plan-badge{grid-column:2;justify-self:start;margin-top:-3px}
  #lockScreen .landing-plan-copy small{min-height:22px;padding:4px 8px;font-size:.68rem}
  #lockScreen .landing-plan-copy strong{margin-top:4px;font-size:.88rem}
  #lockScreen .landing-plan-trust{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #lockScreen .landing-plan-trust span{padding:7px 3px!important;font-size:.54rem!important}
}
@media(max-width:460px){
  #lockScreen .landing-brand img{width:min(102px,29vw)!important}
  #lockScreen .landing-nav-cta--signup{font-size:.63rem!important;padding:7px 8px!important}
  #lockScreen .landing-nav-cta--signup span{max-width:78px;line-height:1.08;text-align:center;white-space:normal}
  #lockScreen .landing-hero-marketing .landing-brand-name{font-size:clamp(1.92rem,10.7vw,2.65rem)!important;letter-spacing:.018em!important}
  #lockScreen #landingHeroTrialBtn.landing-cta--hero-signup strong{font-size:.94rem}
  #lockScreen #landingHeroTrialBtn.landing-cta--hero-signup small{font-size:.61rem}
}
@media(max-width:350px){
  #lockScreen .landing-brand img{width:86px!important}
  #lockScreen .landing-nav-cta--signup span{max-width:64px;font-size:.58rem}
  #lockScreen .landing-hero-marketing .landing-brand-name{font-size:1.82rem!important}
  #lockScreen .landing-plan-trust{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){
  #lockScreen .landing-nav-cta--signup,
  #lockScreen .landing-plan-signup{transition:none!important}
}


/* Build 134 — compact public mobile menu. Visitor-only; authenticated navigation is untouched. */
@media(max-width:820px){
  #lockScreen .landing-mobile-menu{
    top:calc(100% + 6px)!important;
    left:0!important;
    right:auto!important;
    width:min(248px,calc(100vw - 16px))!important;
    max-width:calc(100vw - 16px)!important;
    max-height:min(68dvh,450px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    gap:2px!important;
    padding:7px!important;
    border-radius:14px!important;
    border:1px solid rgba(36,87,214,.14)!important;
    background:linear-gradient(155deg,rgba(255,255,255,.985),rgba(241,246,255,.965))!important;
    box-shadow:0 18px 42px rgba(15,34,68,.18),inset 0 1px 0 rgba(255,255,255,.96)!important;
    backdrop-filter:blur(20px) saturate(1.12)!important;
    -webkit-backdrop-filter:blur(20px) saturate(1.12)!important;
    scrollbar-width:thin;
  }
  #lockScreen .landing-mobile-item{
    min-height:33px!important;
    padding:7px 9px!important;
    border-radius:8px!important;
    font-size:.74rem!important;
    font-weight:780!important;
    line-height:1.16!important;
  }
  #lockScreen .landing-mobile-item-cta{margin-top:2px!important}
  #lockScreen .landing-mobile-signup{
    min-height:37px!important;
    padding:8px 9px!important;
    box-shadow:0 8px 18px rgba(36,87,214,.16)!important;
  }
  #lockScreen .landing-mobile-notification-row{
    min-height:35px!important;
    gap:8px!important;
    margin:2px 0 3px!important;
    padding:7px 9px!important;
    border-radius:9px!important;
    font-size:.70rem!important;
  }
  #lockScreen .landing-mobile-divider{margin:3px 5px 2px!important}
  #lockScreen .landing-mobile-projects-summary{min-height:32px!important}
  #lockScreen .landing-mobile-projects-list{gap:1px!important;padding:1px 5px 0 0!important}
  #lockScreen .landing-mobile-projects-list .landing-mobile-item{font-size:.69rem!important;padding:7px 8px!important}
}
@media(max-width:460px){
  #lockScreen .landing-mobile-menu{width:min(232px,calc(100vw - 14px))!important;max-width:calc(100vw - 14px)!important;padding:6px!important}
  #lockScreen .landing-mobile-item{min-height:31px!important;padding:6px 8px!important;font-size:.71rem!important}
  #lockScreen .landing-mobile-notification-row{padding:6px 8px!important;font-size:.67rem!important}
}


/* Build 157 — compact landing region selector beside the privacy badge. */
#lockScreen .landing-eyebrow-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin-bottom:8px;
  flex-wrap:wrap;
}
#lockScreen .landing-eyebrow-row .landing-eyebrow{margin-bottom:0!important;}
#lockScreen .landing-region-picker{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  border:1px solid rgba(159,193,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
  color:#c9dbff;
  overflow:hidden;
}
#lockScreen .landing-region-picker select{
  appearance:none;
  -webkit-appearance:none;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:inherit!important;
  font:800 .68rem/1 Inter,system-ui,sans-serif!important;
  letter-spacing:.01em;
  min-height:28px;
  padding:0 11px 0 27px!important;
  cursor:pointer;
}
#lockScreen .landing-region-picker select option{color:#111827;background:#fff;font:600 .78rem/1.2 Inter,system-ui,sans-serif;}
#lockScreen .landing-region-picker > i{
  position:absolute;
  left:9px;
  pointer-events:none;
  font-size:.56rem;
  color:#9fc1ff;
}
@media (max-width:560px){
  #lockScreen .landing-eyebrow-row{gap:6px;}
  #lockScreen .landing-region-picker{min-height:27px;}
  #lockScreen .landing-region-picker select{min-height:27px;font-size:.65rem!important;padding-right:10px!important;}
}

/* ===== SOURCE: Assets/style/36-build012-notes-redesign.css ===== */
/* Triplem VIP Notes refinement — sticky-note cards + compact thermal-receipt typography.
   Cards show the title and a short note preview without decorative duplicate note icons. */

#notesList.notes-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(168px,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
}

#notesList > .note-grid-card{
  --note-receipt-font:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  position:relative!important;
  min-width:0!important;
  width:100%!important;
  height:162px!important;
  min-height:162px!important;
  padding:18px 18px 17px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:9px!important;
  overflow:hidden!important;
  border:1px solid color-mix(in srgb,#d7b53f 28%,var(--line-strong))!important;
  border-radius:8px 8px 8px 16px!important;
  clip-path:none!important;
  text-align:right!important;
  color:var(--text-strong)!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface-elevated) 64%,#fff3a8 36%),color-mix(in srgb,var(--surface-elevated) 73%,#f4df7d 27%))!important;
  box-shadow:0 9px 20px rgba(15,23,42,.08),inset 0 1px 0 color-mix(in srgb,#fff 58%,transparent)!important;
  isolation:isolate!important;
  transform:none!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}

/* One restrained folded-paper corner, rather than competing note glyphs. */
#notesList > .note-grid-card::before{content:none!important}
#notesList > .note-grid-card::after{
  content:""!important;
  position:absolute!important;
  left:0!important;
  bottom:0!important;
  right:auto!important;
  top:auto!important;
  width:20px!important;
  height:20px!important;
  opacity:.76!important;
  background:linear-gradient(135deg,transparent 0 49%,color-mix(in srgb,#c9a72f 34%,var(--surface-elevated)) 50% 100%)!important;
  border:0!important;
  filter:drop-shadow(-2px -2px 2px rgba(15,23,42,.05))!important;
  pointer-events:none!important;
}

#notesList > .note-grid-card:hover,
#notesList > .note-grid-card:focus-visible{
  transform:translateY(-2px) rotate(-.2deg)!important;
  border-color:color-mix(in srgb,#c9a72f 58%,var(--primary))!important;
  box-shadow:0 14px 26px rgba(15,23,42,.11),inset 0 1px 0 color-mix(in srgb,#fff 62%,transparent)!important;
  outline:none!important;
}
#notesList > .note-grid-card:active{transform:translateY(0) scale(.987)!important}

#notesList .note-grid-title{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  line-clamp:3!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:anywhere!important;
  color:var(--text-strong)!important;
  font-family:var(--note-receipt-font)!important;
  font-size:.82rem!important;
  font-weight:800!important;
  line-height:1.28!important;
  letter-spacing:.012em!important;
}

#notesList .note-grid-preview{
  width:100%;
  min-width:0;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  line-clamp:4;
  overflow:hidden;
  text-overflow:ellipsis;
  overflow-wrap:anywhere;
  color:color-mix(in srgb,var(--text) 74%,var(--muted));
  font-family:var(--note-receipt-font)!important;
  font-size:.66rem;
  font-weight:540;
  line-height:1.38;
  letter-spacing:.01em;
  white-space:normal;
}

#notesList .note-grid-reminder{
  position:absolute;
  top:8px;
  left:8px;
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border-radius:999px;
  border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line));
  background:color-mix(in srgb,var(--surface-elevated) 74%,var(--primary-soft) 26%);
  color:var(--primary);
  font-size:.55rem;
  box-shadow:0 2px 6px rgba(15,23,42,.07);
}
#notesList > .note-grid-card.has-reminder .note-grid-title{padding-left:20px}

/* Retire legacy paper/icon decorations completely. */
#notesList .note-card-mark,
#notesList .note-paper-pencil,
#notesList .note-paper-head,
#notesList .note-paper-preview,
#notesList .note-paper-foot,
#notesList .note-paper-corner,
#notesList .note-paper-reminder{display:none!important}

/* Notes overlays: smaller, calmer typography on desktop and mobile. */
.note-workspace-modal .modal-dialog{
  --note-receipt-font:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  border-radius:18px!important;
  overflow:hidden!important;
  background:var(--modal-bg)!important;
  border:1px solid var(--line-strong)!important;
  box-shadow:var(--shadow-strong)!important;
}
.note-create-dialog{width:min(610px,calc(100vw - 32px))!important}
.note-detail-dialog{width:min(630px,calc(100vw - 32px))!important}
.note-workspace-modal .modal-head{
  position:relative!important;
  padding-top:12px!important;
  padding-bottom:10px!important;
  background:linear-gradient(135deg,var(--surface-elevated),color-mix(in srgb,var(--surface-elevated) 90%,#fff0a3 10%))!important;
  border-bottom:1px solid var(--line)!important;
}
.note-workspace-modal .modal-head::after{
  content:"";
  position:absolute;
  right:16px;
  left:16px;
  bottom:-1px;
  height:1px;
  background:linear-gradient(90deg,color-mix(in srgb,#c8a52d 60%,var(--primary)),transparent 76%);
  opacity:.34;
  pointer-events:none;
}
.note-workspace-modal .modal-head h3,
.note-detail-heading h3{
  font-family:var(--note-receipt-font)!important;
  font-size:.94rem!important;
  font-weight:800!important;
  line-height:1.24!important;
  letter-spacing:.006em!important;
}
.note-workspace-modal .modal-head .help,
#noteDetailMeta{font-size:.64rem!important;line-height:1.35!important}
.note-detail-kicker{font-size:.58rem!important;letter-spacing:.07em!important;margin-bottom:2px!important}
.note-workspace-modal .modal-body{font-size:.75rem!important}
.note-workspace-modal .field>label{font-size:.66rem!important}
.note-workspace-modal :is(.input,textarea,input){font-size:.75rem}
#noteCreateTitleInput,
#noteEditTitleInput,
.note-create-dialog .note-textarea,
#noteEditContent,
.note-detail-content{
  font-family:var(--note-receipt-font)!important;
}
#noteCreateTitleInput,
#noteEditTitleInput{font-weight:760!important;letter-spacing:.006em!important}
.note-create-dialog .note-textarea,
#noteEditContent{
  min-height:145px!important;
  font-size:.75rem!important;
  line-height:1.55!important;
  resize:vertical;
  background:repeating-linear-gradient(to bottom,transparent 0 21px,color-mix(in srgb,#c8a52d 7%,transparent) 21px 22px),
    color-mix(in srgb,var(--surface-soft) 93%,#fff0a3 7%)!important;
  border:1px solid var(--line)!important;
  border-radius:11px!important;
  color:var(--text)!important;
}
.note-detail-content{
  min-height:155px!important;
  max-height:min(48vh,400px)!important;
  padding:13px 14px!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  border:1px solid var(--line)!important;
  border-radius:11px!important;
  background:repeating-linear-gradient(to bottom,transparent 0 20px,color-mix(in srgb,#c8a52d 8%,transparent) 20px 21px),
    color-mix(in srgb,var(--surface-soft) 91%,#fff0a3 9%)!important;
  color:var(--text)!important;
  font-size:.74rem!important;
  font-weight:520!important;
  line-height:1.55!important;
  letter-spacing:.005em!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
}
.note-field-hint{font-size:.62rem!important}
.note-reminder-toggle-copy strong{font-size:.75rem!important}
.note-reminder-toggle-copy small{font-size:.63rem!important}
.note-detail-reminder-status{font-size:.67rem!important;padding:8px 10px!important}
.note-detail-actions{gap:6px!important;margin-top:10px!important;padding-top:10px!important}
.note-detail-actions .btn,
.note-create-footer .btn,
.note-edit-footer .btn{min-height:32px!important;padding:6px 10px!important;font-size:.68rem!important;border-radius:9px!important}

@media(max-width:720px){
  #notesList.notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  #notesList > .note-grid-card{
    height:138px!important;
    min-height:138px!important;
    padding:14px 12px 13px!important;
    gap:7px!important;
    border-radius:7px 7px 7px 14px!important;
  }
  #notesList .note-grid-title{font-size:.72rem!important;line-height:1.25!important;-webkit-line-clamp:3!important;line-clamp:3!important}
  #notesList .note-grid-preview{font-size:.58rem!important;line-height:1.34!important;-webkit-line-clamp:4;line-clamp:4}
  #notesList .note-grid-reminder{top:6px;left:6px;width:18px;height:18px;font-size:.5rem}

  .note-workspace-modal.modal{padding:14px!important}
  .note-create-dialog,
  .note-detail-dialog{width:calc(100vw - 28px)!important;max-height:calc(100dvh - 28px)!important;border-radius:16px!important}
  .note-workspace-modal .modal-head{padding:10px 11px 8px!important}
  .note-workspace-modal .modal-head h3,
  .note-detail-heading h3{font-size:.84rem!important}
  .note-workspace-modal .modal-head .help,
  #noteDetailMeta{font-size:.58rem!important}
  .note-workspace-modal .modal-body{padding:10px!important;font-size:.7rem!important}
  .note-workspace-modal .field>label{font-size:.61rem!important}
  #noteCreateTitleInput,#noteEditTitleInput{font-size:.69rem!important;min-height:34px!important}
  .note-create-dialog .note-textarea,#noteEditContent{min-height:128px!important;font-size:.68rem!important;line-height:1.5!important}
  .note-detail-content{min-height:135px!important;max-height:43vh!important;padding:11px 12px!important;font-size:.67rem!important;line-height:1.52!important}
  .note-create-reminder-fields{grid-template-columns:1fr!important}
  .note-detail-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
  .note-detail-actions .btn{width:100%!important;margin:0!important;min-height:30px!important;padding:5px 7px!important;font-size:.62rem!important}
  .note-create-footer .btn,.note-edit-footer .btn{flex:1 1 0;min-height:30px!important;font-size:.62rem!important}
}

@media(max-width:360px){
  #notesList.notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  #notesList > .note-grid-card{height:130px!important;min-height:130px!important;padding:12px 10px 11px!important}
  #notesList .note-grid-title{font-size:.66rem!important}
  #notesList .note-grid-preview{font-size:.54rem!important;-webkit-line-clamp:4;line-clamp:4}
  .note-workspace-modal.modal{padding:12px!important}
  .note-create-dialog,.note-detail-dialog{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}
}

@media(prefers-reduced-motion:reduce){#notesList > .note-grid-card{transition:none!important}}


/* Build 001 Notes search cleanup: the shared filter container is useful in
   filter-heavy sections, but Notes only has Search and should not render a
   full-width background band. */
#notesPanel .filter-inline-row.compact-filter-row,
#notesPanel .filter-inline-row.compact-filter-row .compact-filter-main{
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
#notesPanel .filter-inline-row.compact-filter-row{
  padding-right:0 !important;
  padding-left:0 !important;
}

/* 2026-09-15 Notes controls refinement: Notes uses a single search control and
   compact note actions, so shared filter/footer chrome must not create bands. */
#notesPanel .filter-inline-row.compact-filter-row,
#notesPanel .filter-inline-row.compact-filter-row .compact-filter-main,
#notesPanel .filter-inline-row.compact-filter-row .filter-inline-section,
#notesPanel .filter-inline-row.compact-filter-row .compact-filter-search{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
#notesPanel .filter-inline-row.compact-filter-row{
  padding:2px 0 0!important;
}
#notesPanel .filter-inline-row.compact-filter-row .compact-filter-main,
#notesPanel .filter-inline-row.compact-filter-row .filter-inline-section{
  padding:0!important;
}
#notesPanel .filter-inline-row.compact-filter-row .filter-inline-section::before,
#notesPanel .filter-inline-row.compact-filter-row .filter-inline-section::after{
  display:none!important;
  content:none!important;
}

/* Keep New Note, Shortcuts and Actions visually equal and precisely aligned. */
#notesPanel .notes-section-head .title-row{
  align-items:center!important;
  gap:6px!important;
}
#notesPanel .notes-head-actions{
  align-self:flex-start!important;
  align-items:center!important;
  gap:6px!important;
  margin-right:auto!important;
}
#notesPanel :is(
  #newNoteBtn,
  #notesShortcutsBtn,
  .title-row .menu-trigger[data-entry-menu="notes"]
){
  min-height:29px!important;
  height:29px!important;
  width:auto!important;
  padding:0 9px!important;
  margin:0!important;
  border-radius:8px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  font-size:.66rem!important;
  font-weight:750!important;
  line-height:1!important;
  white-space:nowrap!important;
}
#notesPanel :is(#newNoteBtn,#notesShortcutsBtn,.title-row .menu-trigger[data-entry-menu="notes"]) i{
  font-size:.66rem!important;
}

/* Create/Edit action row: no sticky gradient band, just two small centered controls. */
.note-workspace-modal :is(.note-create-footer,.note-edit-footer){
  position:static!important;
  inset:auto!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  margin:7px 0 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  z-index:auto!important;
}
.note-workspace-modal :is(.note-create-footer,.note-edit-footer) .btn{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:88px!important;
  max-width:124px!important;
  min-height:29px!important;
  height:29px!important;
  margin:0!important;
  padding:0 11px!important;
  border-radius:8px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  font-size:.64rem!important;
  font-weight:750!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.note-workspace-modal :is(.note-create-footer,.note-edit-footer) .btn i{
  font-size:.62rem!important;
}

@media(max-width:720px){
  #notesPanel .notes-section-head .section-head-top{gap:8px!important}
  #notesPanel :is(#newNoteBtn,#notesShortcutsBtn,.title-row .menu-trigger[data-entry-menu="notes"]){
    min-height:28px!important;
    height:28px!important;
    padding-inline:8px!important;
    font-size:.63rem!important;
  }
  .note-workspace-modal :is(.note-create-footer,.note-edit-footer) .btn{
    flex:0 0 auto!important;
    min-width:84px!important;
    height:28px!important;
    min-height:28px!important;
    padding-inline:9px!important;
    font-size:.61rem!important;
  }
}

/* 2026-09-15 Notes band removal v2: Notes no longer reuses shared filter/footer
   surface classes. These dedicated rows are layout-only by construction. */
#notesPanel .notes-search-row,
#notesPanel .notes-search-control{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
#notesPanel .notes-search-row{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  margin:0!important;
  padding:2px 0 0!important;
}
#notesPanel .notes-search-control{
  display:flex!important;
  flex:1 1 auto!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  padding:0!important;
}
#notesPanel .notes-search-label{
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
  color:var(--muted)!important;
  font-size:.62rem!important;
  font-weight:700!important;
  letter-spacing:.03em!important;
  line-height:1!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
#notesPanel .notes-search-input{
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  min-height:28px!important;
  height:28px!important;
  margin:0!important;
  padding:2px 8px!important;
  border-radius:7px!important;
  font-size:.74rem!important;
}

.note-workspace-modal .note-action-row{
  grid-column:1 / -1!important;
  position:static!important;
  inset:auto!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:100%!important;
  margin:7px 0 0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  z-index:auto!important;
}
.note-workspace-modal .note-action-row::before,
.note-workspace-modal .note-action-row::after{
  content:none!important;
  display:none!important;
  background:none!important;
  box-shadow:none!important;
}
.note-workspace-modal .note-action-row .btn{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:88px!important;
  max-width:124px!important;
  min-height:29px!important;
  height:29px!important;
  margin:0!important;
  padding:0 11px!important;
  border-radius:8px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  font-size:.64rem!important;
  font-weight:750!important;
  line-height:1!important;
  white-space:nowrap!important;
}
@media(max-width:720px){
  #notesPanel .notes-search-row{padding-top:1px!important}
  #notesPanel .notes-search-label{font-size:.6rem!important}
  #notesPanel .notes-search-input{height:28px!important;min-height:28px!important;font-size:.7rem!important}
  .note-workspace-modal .note-action-row .btn{
    min-width:84px!important;
    height:28px!important;
    min-height:28px!important;
    padding-inline:9px!important;
    font-size:.61rem!important;
  }
}

/* ===== SOURCE: Assets/style/37-build013-filter-cleanup.css ===== */
/* Triplem VIP Build 013 — clean finance filters.
   Filter wrappers are layout-only. The actual form controls remain themed surfaces. */

html.triplem-workspace-themed #app :is(
  #expensesPanel,
  #givenPanel,
  #receivedPanel,
  #takenPanel,
  #returnedPanel,
  #installmentsPanel,
  #assetsPanel
) :is(.compact-filter-row,.compact-filter-main){
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

html.triplem-workspace-themed #app :is(
  #expensesPanel,
  #givenPanel,
  #receivedPanel,
  #takenPanel,
  #returnedPanel,
  #installmentsPanel,
  #assetsPanel
) .compact-filter-row .filter-inline-section{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

html.triplem-workspace-themed #app :is(
  #expensesPanel,
  #givenPanel,
  #receivedPanel,
  #takenPanel,
  #returnedPanel,
  #installmentsPanel,
  #assetsPanel
) .compact-filter-row .filter-inline-section:is(:hover,:focus-within,:active){
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}

/* Keep only the real controls as visible filter surfaces. */
html.triplem-workspace-themed #app :is(
  #expensesPanel,
  #givenPanel,
  #receivedPanel,
  #takenPanel,
  #returnedPanel,
  #installmentsPanel,
  #assetsPanel
) .compact-filter-row :is(.filter-inline-input,.filter-inline-select,.filter-inline-date){
  background:var(--control-bg)!important;
  color:var(--text)!important;
  border:1px solid var(--line)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--glass-highlight) 32%,transparent)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

html.triplem-workspace-themed #app :is(
  #expensesPanel,
  #givenPanel,
  #receivedPanel,
  #takenPanel,
  #returnedPanel,
  #installmentsPanel,
  #assetsPanel
) .compact-filter-row :is(.filter-inline-input,.filter-inline-select,.filter-inline-date):is(:hover,:focus,:focus-visible){
  background:var(--control-hover)!important;
  border-color:var(--line-strong)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 11%,transparent)!important;
}

/* Assets status is one compact dropdown instead of a row of chips. */
#assetsPanel :is(.asset-status-filter-select,.dep-asset-status-filter-select){
  min-width:106px!important;
  max-width:124px!important;
}

/* No rounded filter band at section boundaries. */
#expensesPanel .section-head,
#givenPanel .section-head,
#receivedPanel .section-head,
#takenPanel .section-head,
#returnedPanel .section-head,
#installmentsPanel .section-head,
#assetsPanel .section-head{
  overflow:visible;
}

/* ===== SOURCE: Assets/style/38-build014-inventory-overview-polish.css ===== */
/* Triplem VIP Build 014 — inventory filter cleanup + deterministic overview chevrons. */

/* Inventory filters are layout-only. Remove the card-like band and section bubbles. */
html.triplem-workspace-themed #app #goodsPanel .inventory-filter-row,
html.triplem-workspace-themed #app #goodsPanel .inventory-filter-row .filter-inline-section {
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
html.triplem-workspace-themed #app #goodsPanel .inventory-filter-row .filter-inline-section:is(:hover,:focus-within,:active) {
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
}
html.triplem-workspace-themed #app #goodsPanel .inventory-filter-row :is(.filter-inline-input,.filter-inline-select) {
  background:var(--control-bg) !important;
  color:var(--text) !important;
  border:1px solid var(--line) !important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--glass-highlight) 32%,transparent) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
html.triplem-workspace-themed #app #goodsPanel .inventory-filter-row :is(.filter-inline-input,.filter-inline-select):is(:hover,:focus,:focus-visible) {
  background:var(--control-hover) !important;
  border-color:var(--line-strong) !important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 11%,transparent) !important;
}
#goodsPanel .inventory-filter-layout {
  flex:0 0 auto !important;
}
#goodsPanel .inventory-layout-select {
  min-width:104px !important;
  max-width:128px !important;
}
@media (max-width:560px) {
  #goodsPanel .inventory-filter-layout { flex:0 0 auto !important; }
  #goodsPanel .inventory-layout-select { width:auto !important; min-width:100px !important; }
}

/* Overview chevrons: no hover spin. A right chevron turns down exactly 90° only when open. */
#toggleWalletsBtn.overview-expand-btn,
#toggleMainOverviewBtn.overview-expand-btn,
#toggleWalletsBtn.overview-expand-btn:hover,
#toggleMainOverviewBtn.overview-expand-btn:hover,
.wallets-overview-section.expanded #toggleWalletsBtn.overview-expand-btn,
.main-overview-section.expanded #toggleMainOverviewBtn.overview-expand-btn {
  transform:none !important;
}
.overview-expand-btn {
  transition:background-color .18s ease, color .18s ease, border-color .18s ease !important;
}
.overview-expand-chevron {
  display:inline-block;
  transform:rotate(0deg);
  transform-origin:50% 50%;
  transition:transform .18s ease;
  will-change:transform;
}
.overview-expand-btn:hover .overview-expand-chevron {
  transform:rotate(0deg);
}
.overview-expand-btn[aria-expanded="true"] .overview-expand-chevron,
.overview-expand-btn[aria-expanded="true"]:hover .overview-expand-chevron {
  transform:rotate(90deg);
}
@media (prefers-reduced-motion: reduce) {
  .overview-expand-chevron { transition:none !important; }
}

/* ===== SOURCE: Assets/style/39-assets-depreciation-fixes.css ===== */
/* Build 015 — Assets purchase-wallet + depreciation preview/report polish.
   Uses only centralized semantic theme tokens. */

html.triplem-workspace-themed :is(#assetFormModal,#depAssetFormModal) .asset-wallet-help{
  color:var(--muted) !important;
}

html.triplem-workspace-themed #depAssetFormModal .dep-form-preview{
  background:var(--surface-soft) !important;
  border-color:var(--glass-border) !important;
  color:var(--text) !important;
  box-shadow:inset 0 1px 0 var(--glass-highlight) !important;
}

html.triplem-workspace-themed #depAssetFormModal .dep-preview-grid > div{
  min-width:0;
  padding:10px 11px;
  border:1px solid var(--glass-border) !important;
  border-radius:12px;
  background:var(--card-bg) !important;
  background-image:none !important;
  color:var(--text) !important;
  box-shadow:var(--shadow),inset 0 1px 0 var(--glass-highlight) !important;
  backdrop-filter:blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

html.triplem-workspace-themed #depAssetFormModal .dep-preview-grid small{
  color:var(--muted) !important;
}

html.triplem-workspace-themed #depAssetFormModal .dep-preview-grid strong{
  color:var(--text-strong,var(--text)) !important;
}

.dep-asset-card .asset-card-dropdown .dep-pdf-menu-item i{
  width:1.05em;
  text-align:center;
}

/* Build 016 — keep the desktop ambient motion on phones that were classified
   low-power only because of memory/CPU heuristics. Explicit reduced-motion
   preferences remain respected. */
@media (prefers-reduced-motion: no-preference){
  html.triplem-low-power .floating-circles .circle{
    animation-name:floatMove !important;
    animation-duration:18s !important;
    animation-timing-function:ease-in-out !important;
    animation-iteration-count:infinite !important;
    animation-direction:alternate !important;
    will-change:transform,opacity !important;
  }
  html.triplem-low-power .floating-circles .circle:nth-child(1){animation-duration:20s !important;animation-delay:0s !important}
  html.triplem-low-power .floating-circles .circle:nth-child(2){animation-duration:17s !important;animation-delay:-2s !important}
  html.triplem-low-power .floating-circles .circle:nth-child(3){animation-duration:22s !important;animation-delay:-5s !important}
  html.triplem-low-power .floating-circles .circle:nth-child(4){animation-duration:19s !important;animation-delay:-1s !important}
  html.triplem-low-power .floating-circles .circle:nth-child(5){animation-duration:16s !important;animation-delay:-4s !important}
  html.triplem-low-power .floating-circles .circle:nth-child(6){animation-duration:21s !important;animation-delay:-3s !important}
  html.triplem-low-power .floating-circles .circle:nth-child(7){animation-duration:15s !important;animation-delay:-6s !important}
  html.triplem-low-power .floating-circles .circle:nth-child(8){animation-duration:23s !important;animation-delay:-2.5s !important}
  html.triplem-low-power .floating-circles .circle:nth-child(9){animation-duration:18s !important;animation-delay:-7s !important}

  html.triplem-low-power .summary-watermark-wallet-logo{
    animation:wallet-card-watermark-pulse 4.6s ease-in-out infinite !important;
    will-change:transform,opacity !important;
  }
  html.triplem-low-power .wallet-float-watermark .wallet-float-logo{
    animation-name:var(--wallet-drift,wallet-drift-0) !important;
    animation-duration:var(--d,22s) !important;
    animation-timing-function:ease-in-out !important;
    animation-delay:var(--delay,0s) !important;
    animation-iteration-count:infinite !important;
    animation-direction:alternate !important;
    will-change:transform,opacity !important;
    opacity:.055 !important;
  }
}

/* Native wallet selectors carry the currency code on every wallet option so
   AED.ttf and SAR.otf are used only for their own explicit currency. USD stays
   on the normal UI font even though its glyph is also $. */
#assetFormWallet option[data-currency="AED"],
#depAssetFormWallet option[data-currency="AED"]{font-family:"TriplemCurrencyAED",Inter,system-ui,sans-serif !important}
#assetFormWallet option[data-currency="SAR"],
#depAssetFormWallet option[data-currency="SAR"]{font-family:"TriplemCurrencySAR",Inter,system-ui,sans-serif !important}
#assetFormWallet option[data-currency="USD"],
#depAssetFormWallet option[data-currency="USD"],
#assetFormWallet option[data-currency="PKR"],
#depAssetFormWallet option[data-currency="PKR"],
#assetFormWallet option[data-currency="BTC"],
#depAssetFormWallet option[data-currency="BTC"]{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important}


/* Build 001 requested motion repair: keep Expenses ambient motion composited on
   phones while preserving explicit reduced-motion accessibility preferences. */
@media (prefers-reduced-motion: no-preference){
  #expensesPanel .summary-watermark-wallet-logo{
    transform-origin:50% 50% !important;
    animation:expense-wallet-logo-breathe 4.2s ease-in-out infinite !important;
    animation-play-state:running !important;
    will-change:transform,opacity !important;
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
  }
  #expensesPanel .wallet-float-watermark .wallet-float-logo{
    animation-name:var(--wallet-drift,wallet-drift-0) !important;
    animation-duration:var(--d,22s) !important;
    animation-delay:var(--delay,0s) !important;
    animation-timing-function:ease-in-out !important;
    animation-iteration-count:infinite !important;
    animation-direction:alternate !important;
    animation-play-state:running !important;
    will-change:transform,opacity !important;
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
  }
  html.triplem-low-power #expensesPanel .wallet-float-watermark .wallet-float-logo{
    opacity:.055 !important;
  }
  html.triplem-low-power .floating-circles .circle{
    animation-play-state:running !important;
    transform:translate3d(0,0,0);
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
  }
}

@keyframes expense-wallet-logo-breathe{
  0%,100%{transform:translate3d(0,0,0) scale(.93);opacity:.075}
  50%{transform:translate3d(0,0,0) scale(1.075);opacity:.12}
}

/* ===== SOURCE: Assets/style/40-account-security-session-refinement.css ===== */
/* Triplem VIP Account Security session/history refinement v146. */
.account-security-session-actions{margin:2px 0 4px}.account-security-danger-action{color:var(--danger,#b42318)!important;border-color:color-mix(in srgb,var(--danger,#b42318) 22%,var(--line,rgba(15,23,42,.12)))!important;background:color-mix(in srgb,var(--danger,#b42318) 4%,var(--surface,#fff))!important}.account-security-danger-action i{color:inherit!important}.account-security-history summary>span:last-child{min-width:24px;height:22px;padding:0 7px;border-radius:999px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary,#2457d6) 9%,var(--surface,#fff));color:var(--primary,#2457d6);font-size:10px}.account-security-history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;padding:9px 10px;border:1px solid var(--line,rgba(15,23,42,.09));border-radius:12px;background:color-mix(in srgb,var(--surface-soft,rgba(248,250,252,.88)) 88%,transparent)}.account-security-history-toolbar>small{min-width:0;color:var(--muted,#64748b);font-size:10px;line-height:1.4}.account-security-history-toolbar .btn{flex:0 0 auto}.account-security-history-empty{display:flex!important;align-items:center;justify-content:center;gap:7px;padding:14px 8px!important;color:var(--muted,#64748b);font-size:11px;border-bottom:0!important}.account-security-history-empty i{color:var(--primary,#2457d6)}.history-dot.ended,.history-dot.expired{background:#94a3b8}

@media(max-width:620px){
  .account-security-center-modal .account-security-dialog{width:calc(100vw - 30px);max-width:470px;max-height:calc(100dvh - 30px);margin:auto;border-radius:18px;overflow:hidden}
  .account-security-center-modal .account-security-head{padding:12px 13px 10px;gap:9px;min-height:0}
  .account-security-center-modal .account-security-head h3{font-size:18px;line-height:1.15;margin:1px 0 3px}
  .account-security-center-modal .account-security-head>div>p:not(.account-security-kicker){font-size:10.5px;line-height:1.35;margin:0;max-width:34ch}
  .account-security-center-modal .account-security-kicker{font-size:9px;letter-spacing:.08em;margin-bottom:2px}
  .account-security-center-modal .account-security-head>.btn{width:30px;min-width:30px;height:30px;padding:0;border-radius:9px}
  .account-security-center-modal .account-security-body{padding:9px;gap:8px;overflow-x:hidden}
  .account-security-center-modal .account-security-overview{padding:10px 11px;gap:8px;border-radius:14px}
  .account-security-center-modal .account-security-overview small{font-size:9px}
  .account-security-center-modal .account-security-overview strong{font-size:14px;line-height:1.25}
  .account-security-center-modal .account-security-overview-pills{gap:5px}
  .account-security-center-modal .account-security-state{font-size:9.5px;padding:4px 7px}
  .account-security-center-modal .account-security-card{padding:10px;border-radius:14px}
  .account-security-center-modal .account-security-section-title{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;margin-bottom:7px;align-items:center}
  .account-security-center-modal .account-security-section-title>span:first-child{width:32px;height:32px;border-radius:10px}
  .account-security-center-modal .account-security-section-title strong{font-size:12.5px;line-height:1.2}
  .account-security-center-modal .account-security-section-title small{font-size:10px;line-height:1.3;margin-top:1px}
  .account-security-center-modal .account-security-section-title>.account-security-state,.account-security-center-modal .account-security-section-title>.account-security-count{grid-column:auto;justify-self:end}
  .account-security-center-modal .account-security-count{min-width:24px;height:24px;padding:0 6px;font-size:10px}
  .account-security-center-modal .account-security-row{min-height:34px;padding:8px 10px;border-radius:10px;font-size:11.5px}
  .account-security-center-modal .account-security-toggle-row{padding:9px 2px;gap:9px}
  .account-security-center-modal .account-security-toggle-row>span strong{font-size:11.5px}
  .account-security-center-modal .account-security-toggle-row>span small{font-size:9.5px;line-height:1.3}
  .account-security-center-modal .account-security-toggle-row>i{width:38px;height:22px}
  .account-security-center-modal .account-security-toggle-row>i:after{width:16px;height:16px}
  .account-security-center-modal .account-security-toggle-row input:checked+i:after{transform:translateX(-16px)}
  .account-security-center-modal .account-security-inline-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
  .account-security-center-modal .account-security-inline-actions .btn{width:auto;min-height:31px;padding:6px 9px;font-size:10.5px;border-radius:9px}
  .account-security-center-modal .account-security-trusted-current{font-size:10px;line-height:1.3}
  .account-security-center-modal .account-security-device-list{gap:6px;margin-top:8px}
  .account-security-center-modal .account-security-device{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;padding:8px;border-radius:11px}
  .account-security-center-modal .account-security-device .device-icon{width:29px;height:29px;border-radius:9px;font-size:11px}
  .account-security-center-modal .account-security-device strong{font-size:10.8px;line-height:1.25}
  .account-security-center-modal .account-security-device strong em{font-size:7.5px;padding:2px 4px;margin-right:2px}
  .account-security-center-modal .account-security-device small{font-size:8.8px;line-height:1.3}
  .account-security-center-modal .account-security-device>button,.account-security-center-modal .account-security-device>.account-security-state{grid-column:auto;justify-self:end;margin:0;min-height:29px;padding:5px 7px;font-size:9.5px;white-space:nowrap}
  .account-security-center-modal .account-security-history{margin-top:9px;padding-top:8px}
  .account-security-center-modal .account-security-history summary{font-size:10.8px;align-items:center}
  .account-security-center-modal .account-security-history-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:7px 8px;border-radius:10px}
  .account-security-center-modal .account-security-history-toolbar>small{font-size:8.8px;line-height:1.3}
  .account-security-center-modal .account-security-history-toolbar .btn{min-height:29px;padding:5px 7px;font-size:9.5px;border-radius:8px}
  .account-security-center-modal .account-security-history-list{max-height:190px;margin-top:6px;gap:2px;overflow-x:hidden}
  .account-security-center-modal .account-security-history-list>div{grid-template-columns:auto minmax(0,1fr);gap:7px;padding:7px 2px}
  .account-security-center-modal .account-security-history-list strong{font-size:10px}
  .account-security-center-modal .account-security-history-list small{font-size:8.5px;line-height:1.25}
  .account-security-center-modal .account-security-history-list em{display:none}
  .account-security-center-modal .account-security-fineprint{font-size:9.5px;line-height:1.35;margin:7px 0}
}

@media(max-width:360px){
  .account-security-center-modal .account-security-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
  .account-security-center-modal .account-security-head{padding:10px 11px 9px}
  .account-security-center-modal .account-security-body{padding:8px}
  .account-security-center-modal .account-security-section-title{grid-template-columns:auto minmax(0,1fr)}
  .account-security-center-modal .account-security-section-title>.account-security-state,.account-security-center-modal .account-security-section-title>.account-security-count{grid-column:2;justify-self:start;margin-top:2px}
  .account-security-center-modal .account-security-device{grid-template-columns:auto minmax(0,1fr)}
  .account-security-center-modal .account-security-device>button,.account-security-center-modal .account-security-device>.account-security-state{grid-column:2;justify-self:start}
  .account-security-center-modal .account-security-history-toolbar{grid-template-columns:1fr}
  .account-security-center-modal .account-security-history-toolbar .btn{justify-self:start}
}

/* v147 — bulk trusted-browser control and stronger mobile safe margins. */
.account-security-trusted-actions{align-items:center}
.account-security-trusted-actions .account-security-danger-action{max-width:100%;white-space:normal;text-align:center}

@media(max-width:620px){
  .account-security-center-modal.modal{
    padding:24px 20px!important;
    place-items:center!important;
    overflow:hidden!important;
  }
  .account-security-center-modal .account-security-dialog{
    width:100%!important;
    max-width:440px!important;
    max-height:calc(100dvh - 48px)!important;
    margin:0!important;
    border-radius:17px!important;
    overflow:hidden!important;
  }
  .account-security-center-modal .account-security-body{
    min-width:0!important;
    padding:8px!important;
    gap:7px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-width:none!important;
  }
  .account-security-center-modal .account-security-body::-webkit-scrollbar{width:0!important;height:0!important}
  .account-security-center-modal .account-security-card{min-width:0!important;padding:9px!important;border-radius:13px!important;overflow:hidden!important}
  .account-security-center-modal .account-security-section-title{gap:7px!important;margin-bottom:6px!important}
  .account-security-center-modal .account-security-section-title>span:first-child{width:29px!important;height:29px!important;border-radius:9px!important;font-size:11px!important}
  .account-security-center-modal .account-security-section-title strong{font-size:11.7px!important}
  .account-security-center-modal .account-security-section-title small{font-size:9.2px!important;line-height:1.25!important}
  .account-security-center-modal .account-security-row{min-height:31px!important;padding:6px 8px!important;font-size:10.5px!important;border-radius:9px!important}
  .account-security-center-modal .account-security-inline-actions{gap:5px!important}
  .account-security-center-modal .account-security-inline-actions .btn{
    width:auto!important;
    max-width:100%!important;
    min-height:28px!important;
    padding:5px 7px!important;
    font-size:9.5px!important;
    line-height:1.2!important;
    border-radius:8px!important;
    white-space:normal!important;
  }
  .account-security-center-modal .account-security-trusted-current{font-size:9.2px!important}
  .account-security-center-modal .account-security-device{
    min-width:0!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:start!important;
    gap:6px!important;
    padding:7px!important;
    border-radius:10px!important;
  }
  .account-security-center-modal .account-security-device .device-icon{width:27px!important;height:27px!important;border-radius:8px!important;font-size:10px!important}
  .account-security-center-modal .account-security-device strong{font-size:10.1px!important;line-height:1.2!important}
  .account-security-center-modal .account-security-device small{font-size:8.3px!important;line-height:1.25!important}
  .account-security-center-modal .account-security-device>button,
  .account-security-center-modal .account-security-device>.account-security-state{
    grid-column:2!important;
    justify-self:start!important;
    min-height:26px!important;
    padding:4px 6px!important;
    font-size:8.8px!important;
    margin-top:2px!important;
  }
  .account-security-center-modal .account-security-history-toolbar{grid-template-columns:1fr!important;gap:5px!important;padding:7px!important}
  .account-security-center-modal .account-security-history-toolbar .btn{justify-self:start!important;min-height:26px!important;font-size:8.8px!important}
}

@media(max-width:420px){
  .account-security-center-modal.modal{padding:22px 18px!important}
  .account-security-center-modal .account-security-dialog{max-height:calc(100dvh - 44px)!important}
  .account-security-center-modal .account-security-head{padding:10px 11px 8px!important}
  .account-security-center-modal .account-security-head h3{font-size:16px!important}
  .account-security-center-modal .account-security-head>div>p:not(.account-security-kicker){font-size:9.5px!important;max-width:30ch!important}
  .account-security-center-modal .account-security-overview{padding:9px!important;gap:6px!important}
  .account-security-center-modal .account-security-overview strong{font-size:12.5px!important}
  .account-security-center-modal .account-security-state{font-size:8.5px!important;padding:3px 6px!important}
  .account-security-center-modal .account-security-count{min-width:22px!important;height:22px!important;font-size:9px!important}
  .account-security-center-modal .account-security-toggle-row{padding:7px 1px!important}
  .account-security-center-modal .account-security-toggle-row>span strong{font-size:10.5px!important}
  .account-security-center-modal .account-security-toggle-row>span small{font-size:8.8px!important}
  .account-security-center-modal .account-security-toggle-row>i{width:34px!important;height:20px!important}
  .account-security-center-modal .account-security-toggle-row>i:after{width:14px!important;height:14px!important}
  .account-security-center-modal .account-security-toggle-row input:checked+i:after{transform:translateX(-14px)!important}
}

@media(max-width:340px){
  .account-security-center-modal.modal{padding:18px 14px!important}
  .account-security-center-modal .account-security-dialog{max-height:calc(100dvh - 36px)!important}
}

/* v149 — definitive mobile Account Security viewport and touch-scroll fix.
   The backdrop remains full viewport, while the visible Security card stays
   centered with deliberate safe margins. Only the card body scrolls. */
@media (max-width:620px){
  #accountSecurityCenterModal.account-security-center-modal.modal{
    position:fixed!important;
    inset:0!important;
    width:100%!important;
    height:100dvh!important;
    min-height:100svh!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
    place-items:center!important;
    align-items:center!important;
    justify-items:center!important;
    padding:max(24px,env(safe-area-inset-top)) 18px max(24px,env(safe-area-inset-bottom))!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
    touch-action:none!important;
  }

  #accountSecurityCenterModal.account-security-center-modal>.modal-backdrop{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
  }

  #accountSecurityCenterModal.account-security-center-modal>.account-security-dialog{
    position:relative!important;
    place-self:center!important;
    width:min(430px,100%)!important;
    max-width:430px!important;
    height:min(84dvh,700px)!important;
    max-height:calc(100dvh - 48px)!important;
    min-height:0!important;
    margin:0!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    border-radius:16px!important;
    transform:none!important;
    touch-action:auto!important;
  }

  #accountSecurityCenterModal .account-security-head{
    flex:0 0 auto!important;
    min-width:0!important;
    padding:10px 11px 8px!important;
  }
  #accountSecurityCenterModal .account-security-head h3{font-size:15.5px!important;line-height:1.15!important}
  #accountSecurityCenterModal .account-security-head>div>p:not(.account-security-kicker){font-size:9.2px!important;line-height:1.28!important;max-width:29ch!important}
  #accountSecurityCenterModal .account-security-head>.btn{width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:8px!important}

  #accountSecurityCenterModal .account-security-body{
    position:relative!important;
    flex:1 1 0!important;
    min-width:0!important;
    min-height:0!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-content:start!important;
    gap:6px!important;
    padding:7px 8px 10px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain!important;
    scroll-behavior:auto!important;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
    pointer-events:auto!important;
    contain:none!important;
  }
  #accountSecurityCenterModal .account-security-body::-webkit-scrollbar,
  #accountSecurityCenterModal .account-security-history-list::-webkit-scrollbar{
    width:0!important;
    height:0!important;
    display:none!important;
  }

  #accountSecurityCenterModal .account-security-overview,
  #accountSecurityCenterModal .account-security-onboarding,
  #accountSecurityCenterModal .account-security-card,
  #accountSecurityCenterModal .account-security-card-wide,
  #accountSecurityCenterModal #accountSecurityCenterError{
    grid-column:1!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  #accountSecurityCenterModal .account-security-overview{padding:8px 9px!important;gap:5px!important;border-radius:12px!important}
  #accountSecurityCenterModal .account-security-overview strong{font-size:12px!important;line-height:1.2!important}
  #accountSecurityCenterModal .account-security-overview small{font-size:8.5px!important}
  #accountSecurityCenterModal .account-security-card{padding:8px!important;border-radius:12px!important;overflow:visible!important}
  #accountSecurityCenterModal .account-security-section-title{grid-template-columns:27px minmax(0,1fr) auto!important;gap:6px!important;margin-bottom:5px!important;align-items:center!important}
  #accountSecurityCenterModal .account-security-section-title>span:first-child{width:27px!important;height:27px!important;border-radius:8px!important;font-size:10px!important}
  #accountSecurityCenterModal .account-security-section-title strong{font-size:10.8px!important;line-height:1.18!important}
  #accountSecurityCenterModal .account-security-section-title small{font-size:8.4px!important;line-height:1.22!important;margin-top:1px!important}
  #accountSecurityCenterModal .account-security-state{font-size:8px!important;padding:3px 5px!important}
  #accountSecurityCenterModal .account-security-count{min-width:20px!important;height:20px!important;padding:0 5px!important;font-size:8.5px!important}
  #accountSecurityCenterModal .account-security-row{min-height:29px!important;padding:5px 7px!important;border-radius:8px!important;font-size:9.8px!important;touch-action:manipulation!important}
  #accountSecurityCenterModal .account-security-toggle-row{padding:6px 1px!important;gap:7px!important}
  #accountSecurityCenterModal .account-security-toggle-row>span strong{font-size:9.9px!important}
  #accountSecurityCenterModal .account-security-toggle-row>span small{font-size:8.2px!important;line-height:1.22!important}
  #accountSecurityCenterModal .account-security-toggle-row>i{width:32px!important;height:19px!important;flex:0 0 32px!important}
  #accountSecurityCenterModal .account-security-toggle-row>i:after{width:13px!important;height:13px!important}
  #accountSecurityCenterModal .account-security-toggle-row input:checked+i:after{transform:translateX(-13px)!important}
  #accountSecurityCenterModal .account-security-inline-actions{gap:4px!important;align-items:center!important}
  #accountSecurityCenterModal .account-security-inline-actions .btn,
  #accountSecurityCenterModal .account-security-device>button,
  #accountSecurityCenterModal .account-security-history-toolbar .btn{
    width:auto!important;
    min-width:0!important;
    min-height:25px!important;
    max-width:100%!important;
    padding:4px 6px!important;
    border-radius:7px!important;
    font-size:8.6px!important;
    line-height:1.18!important;
    white-space:normal!important;
    touch-action:manipulation!important;
    pointer-events:auto!important;
  }
  #accountSecurityCenterModal .account-security-trusted-current{min-height:25px!important;padding:4px 6px!important;font-size:8.6px!important;border-radius:7px!important}
  #accountSecurityCenterModal .account-security-device-list{gap:5px!important;margin-top:6px!important}
  #accountSecurityCenterModal .account-security-device{grid-template-columns:25px minmax(0,1fr)!important;gap:5px!important;padding:6px!important;border-radius:9px!important;align-items:start!important;overflow:visible!important}
  #accountSecurityCenterModal .account-security-device .device-icon{width:25px!important;height:25px!important;border-radius:7px!important;font-size:9px!important}
  #accountSecurityCenterModal .account-security-device strong{font-size:9.5px!important;line-height:1.18!important;overflow-wrap:anywhere!important}
  #accountSecurityCenterModal .account-security-device small{font-size:7.8px!important;line-height:1.22!important;overflow-wrap:anywhere!important}
  #accountSecurityCenterModal .account-security-device>button,
  #accountSecurityCenterModal .account-security-device>.account-security-state{grid-column:2!important;justify-self:start!important;margin-top:1px!important}
  #accountSecurityCenterModal .account-security-history{margin-top:6px!important;padding-top:6px!important}
  #accountSecurityCenterModal .account-security-history summary{font-size:9.6px!important;min-height:25px!important;touch-action:manipulation!important}
  #accountSecurityCenterModal .account-security-history-toolbar{grid-template-columns:1fr!important;gap:4px!important;padding:6px!important;border-radius:8px!important}
  #accountSecurityCenterModal .account-security-history-toolbar>small{font-size:7.8px!important;line-height:1.22!important}
  #accountSecurityCenterModal .account-security-history-list{max-height:none!important;overflow:visible!important;margin-top:5px!important}
  #accountSecurityCenterModal .account-security-fineprint{font-size:8.2px!important;line-height:1.28!important;margin:5px 0!important}
}

@media (max-width:380px){
  #accountSecurityCenterModal.account-security-center-modal.modal{
    padding:max(22px,env(safe-area-inset-top)) 16px max(22px,env(safe-area-inset-bottom))!important;
  }
  #accountSecurityCenterModal.account-security-center-modal>.account-security-dialog{
    width:100%!important;
    height:min(83dvh,650px)!important;
    max-height:calc(100dvh - 44px)!important;
  }
  #accountSecurityCenterModal .account-security-section-title{grid-template-columns:25px minmax(0,1fr)!important}
  #accountSecurityCenterModal .account-security-section-title>.account-security-state,
  #accountSecurityCenterModal .account-security-section-title>.account-security-count{grid-column:2!important;justify-self:start!important;margin-top:1px!important}
}

/* v151 — mobile Security Center close-state reliability.
   The mobile viewport rule uses an ID-level display:grid!important declaration,
   so the hidden state must intentionally win at the same specificity. */
#accountSecurityCenterModal.account-security-center-modal.modal.hide,
#accountSecurityCenterModal.account-security-center-modal.modal[aria-hidden="true"]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* ===== SOURCE: Assets/style/41-accounting-suite.css ===== */
/* Triplem VIP Accounting Suite
   Additive accounting workspace. Theme-native, responsive and isolated from
   existing operational modules. */

#accountingPanel{position:relative;min-width:0}
.accounting-panel .accounting-section-head{align-items:flex-start;gap:14px}
.accounting-panel .accounting-section-head h3{margin:0 0 5px}
.accounting-panel .accounting-section-head p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.45;max-width:720px}
.accounting-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.accounting-shell{min-width:0;display:grid;gap:12px}
.accounting-subnav{display:flex;align-items:center;gap:7px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:6px;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--panel) 86%,transparent);box-shadow:0 12px 34px color-mix(in srgb,var(--text) 5%,transparent);scrollbar-width:none;-webkit-overflow-scrolling:touch}
.accounting-subnav::-webkit-scrollbar,.accounting-table-wrap::-webkit-scrollbar,.accounting-modal-dialog .modal-body::-webkit-scrollbar,.accounting-workspace-body::-webkit-scrollbar{display:none;width:0;height:0}
.accounting-nav-btn{appearance:none;border:1px solid transparent;background:transparent;color:var(--muted);border-radius:12px;padding:9px 11px;min-height:38px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font:inherit;font-size:.78rem;font-weight:760;cursor:pointer;scroll-snap-align:start;transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}
.accounting-nav-btn i{font-size:.82rem;opacity:.9}
.accounting-nav-btn:hover{color:var(--text);background:color-mix(in srgb,var(--primary) 7%,var(--panel));border-color:color-mix(in srgb,var(--primary) 16%,var(--line))}
.accounting-nav-btn:active{transform:translateY(1px)}
.accounting-nav-btn.active{color:var(--primary);background:color-mix(in srgb,var(--primary) 11%,var(--panel));border-color:color-mix(in srgb,var(--primary) 28%,var(--line));box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 24%,transparent)}
.accounting-tools-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.accounting-search{position:relative;display:block;min-width:220px;max-width:430px;flex:1}
.accounting-search>i{position:absolute;right:12px;top:50%;transform:translateY(-50%);z-index:1;color:var(--muted);font-size:.78rem;pointer-events:none}
.accounting-search .input{width:100%;padding-right:34px;min-height:38px;font-size:.8rem}
.accounting-context-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.accounting-context-actions:empty{display:none}
.accounting-workspace-body{min-width:0;overflow:visible;display:grid;gap:12px}
.accounting-loading,.accounting-empty,.accounting-schema-notice{border:1px dashed color-mix(in srgb,var(--primary) 24%,var(--line));border-radius:16px;padding:28px 18px;background:color-mix(in srgb,var(--primary) 4%,var(--panel));color:var(--muted);text-align:center}
.accounting-loading{display:flex;align-items:center;justify-content:center;gap:10px;min-height:150px}
.accounting-schema-notice strong{display:block;color:var(--text);font-size:.98rem;margin-bottom:6px}
.accounting-schema-notice p{margin:0 auto 12px;max-width:660px;line-height:1.5;font-size:.84rem}

.accounting-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.accounting-kpi-grid--mini{grid-template-columns:repeat(3,minmax(0,1fr))}
.accounting-kpi{position:relative;min-width:0;border:1px solid var(--line);border-radius:16px;padding:14px;background:linear-gradient(145deg,color-mix(in srgb,var(--panel) 94%,transparent),color-mix(in srgb,var(--primary) 4%,var(--panel-2)));box-shadow:0 12px 28px color-mix(in srgb,var(--text) 4%,transparent);overflow:hidden}
.accounting-kpi:after{content:"";position:absolute;width:70px;height:70px;border-radius:50%;left:-26px;top:-28px;background:color-mix(in srgb,var(--primary) 10%,transparent);filter:blur(.3px);pointer-events:none}
.accounting-kpi-icon{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 11%,var(--panel));color:var(--primary);font-size:.78rem;margin-bottom:10px}
.accounting-kpi small{display:block;color:var(--muted);font-size:.67rem;text-transform:uppercase;letter-spacing:.055em;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-kpi strong{display:block;color:var(--text);font-size:1.06rem;line-height:1.25;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-kpi span{display:block;color:var(--muted);font-size:.69rem;margin-top:3px;line-height:1.35}
.accounting-overview-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:10px}
.accounting-card,.accounting-health-card,.accounting-contact-card,.accounting-dimension-card{border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--panel) 96%,transparent);box-shadow:0 10px 28px color-mix(in srgb,var(--text) 4%,transparent);min-width:0}
.accounting-card{padding:14px}
.accounting-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:11px}
.accounting-card-head h4{margin:0;color:var(--text);font-size:.9rem}
.accounting-card-head p{margin:3px 0 0;color:var(--muted);font-size:.7rem;line-height:1.4}
.accounting-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.accounting-quick-btn{appearance:none;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--panel-2) 82%,var(--panel));color:var(--text);min-height:68px;padding:10px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;font:inherit;text-align:right;cursor:pointer;transition:.18s ease}
.accounting-quick-btn i{color:var(--primary)}
.accounting-quick-btn span{font-size:.74rem;font-weight:800}
.accounting-quick-btn:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--line));background:color-mix(in srgb,var(--primary) 8%,var(--panel));transform:translateY(-1px)}
.accounting-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.accounting-health-card{padding:12px}
.accounting-health-card small{display:block;color:var(--muted);font-size:.66rem;font-weight:750}
.accounting-health-card strong{display:block;color:var(--text);font-size:.88rem;margin-top:4px}
.accounting-performance{display:grid;gap:11px}
.accounting-performance>div{display:grid;grid-template-columns:minmax(95px,.7fr) minmax(120px,1.4fr) auto;align-items:center;gap:9px;font-size:.72rem;color:var(--muted)}
.accounting-performance strong{color:var(--text);font-size:.72rem}
.accounting-meter{height:7px;border-radius:999px;background:color-mix(in srgb,var(--muted) 14%,transparent);overflow:hidden}
.accounting-meter span{display:block;height:100%;border-radius:inherit;background:var(--primary);max-width:100%}

.accounting-list,.accounting-doc-list,.accounting-reconcile-list,.accounting-audit-list{display:grid;gap:7px}
.accounting-list-row,.accounting-journal-row,.accounting-doc-row,.accounting-reconcile-row,.accounting-audit-row{border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--panel) 96%,transparent);min-width:0}
.accounting-list-row,.accounting-journal-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:11px 12px}
.accounting-list-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 10%,var(--panel-2));color:var(--primary);font-size:.76rem}
.accounting-list-main{min-width:0}
.accounting-list-main strong{display:block;color:var(--text);font-size:.79rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-list-main small{display:block;color:var(--muted);font-size:.66rem;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-list-value{text-align:left;min-width:90px}
.accounting-list-value strong{display:block;color:var(--text);font-size:.78rem}
.accounting-list-value small{display:block;color:var(--muted);font-size:.64rem;margin-top:2px}
.accounting-list-actions,.accounting-doc-actions,.accounting-contact-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.accounting-status,.accounting-type-pill,.badge.soft{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:4px 8px;border-radius:999px;border:1px solid color-mix(in srgb,var(--primary) 22%,var(--line));background:color-mix(in srgb,var(--primary) 8%,var(--panel));color:var(--text);font-size:.62rem;font-weight:800;line-height:1.1;text-transform:capitalize;white-space:nowrap}
.accounting-status[data-status="posted"],.accounting-status[data-status="paid"],.accounting-status[data-status="matched"],.accounting-status.green{color:var(--success);border-color:color-mix(in srgb,var(--success) 35%,var(--line));background:color-mix(in srgb,var(--success) 10%,var(--panel))}
.accounting-status[data-status="void"],.accounting-status[data-status="overdue"]{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 32%,var(--line));background:color-mix(in srgb,var(--danger) 9%,var(--panel))}
.accounting-status[data-status="draft"],.accounting-status[data-status="partial"]{color:var(--warning);border-color:color-mix(in srgb,var(--warning) 34%,var(--line));background:color-mix(in srgb,var(--warning) 9%,var(--panel))}

.accounting-doc-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(110px,.7fr) minmax(120px,.7fr) auto;align-items:center;gap:12px;padding:12px}
.accounting-doc-main{min-width:0;display:flex;align-items:center;gap:10px}
.accounting-doc-type{width:34px;height:34px;flex:0 0 auto;border-radius:11px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 10%,var(--panel-2));color:var(--primary);font-size:.78rem}
.accounting-doc-desc{min-width:0}
.accounting-doc-desc strong{display:block;color:var(--text);font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-doc-desc small{display:block;color:var(--muted);font-size:.65rem;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-doc-money{text-align:left}
.accounting-doc-money strong{display:block;color:var(--text);font-size:.78rem}
.accounting-doc-money small{display:block;color:var(--muted);font-size:.64rem;margin-top:2px}

.accounting-contact-grid,.accounting-dimension-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.accounting-contact-card,.accounting-dimension-card{padding:12px;display:grid;gap:10px}
.accounting-contact-info{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;min-width:0}
.accounting-contact-avatar,.accounting-dimension-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 11%,var(--panel-2));color:var(--primary);font-size:.8rem;font-weight:900}
.accounting-contact-info strong,.accounting-dimension-card strong{display:block;color:var(--text);font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-contact-info small,.accounting-dimension-card small{display:block;color:var(--muted);font-size:.64rem;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-contact-meta{display:flex;gap:6px;flex-wrap:wrap;color:var(--muted);font-size:.64rem}
.accounting-contact-meta span{border-radius:8px;background:color-mix(in srgb,var(--panel-2) 80%,transparent);padding:4px 6px}

.accounting-reconcile-row{display:grid;grid-template-columns:90px minmax(0,1fr) 120px minmax(170px,.9fr) auto;align-items:center;gap:10px;padding:11px 12px}
.accounting-reconcile-date{font-size:.68rem;color:var(--muted)}
.accounting-reconcile-main{min-width:0}
.accounting-reconcile-main strong{display:block;color:var(--text);font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-reconcile-main small{display:block;color:var(--muted);font-size:.63rem;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-reconcile-amount{text-align:left;font-weight:800;color:var(--text);font-size:.75rem}
.accounting-suggestion{border:1px solid color-mix(in srgb,var(--primary) 20%,var(--line));background:color-mix(in srgb,var(--primary) 6%,var(--panel));border-radius:10px;padding:7px 8px;min-width:0}
.accounting-suggestion strong,.accounting-suggestion small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.accounting-suggestion strong{font-size:.65rem;color:var(--text)}
.accounting-suggestion small{font-size:.59rem;color:var(--muted);margin-top:2px}

.accounting-table-wrap{width:100%;overflow:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--panel) 97%,transparent)}
.accounting-table,.accounting-report-table{width:100%;border-collapse:separate;border-spacing:0;min-width:650px;color:var(--text);font-size:.7rem}
.accounting-table th,.accounting-table td,.accounting-report-table th,.accounting-report-table td{padding:9px 10px;border-bottom:1px solid color-mix(in srgb,var(--line) 80%,transparent);text-align:right;vertical-align:middle}
.accounting-table th,.accounting-report-table th{position:sticky;top:0;z-index:1;background:color-mix(in srgb,var(--panel-2) 92%,var(--panel));color:var(--muted);font-size:.62rem;text-transform:uppercase;letter-spacing:.035em;font-weight:850;white-space:nowrap}
.accounting-table tbody tr:hover,.accounting-report-table tbody tr:hover{background:color-mix(in srgb,var(--primary) 4%,transparent)}
.accounting-table tr:last-child td,.accounting-report-table tr:last-child td{border-bottom:0}
.accounting-table .num,.accounting-report-table .num{text-align:left;font-variant-numeric:tabular-nums;white-space:nowrap}
.accounting-table tfoot th,.accounting-table tfoot td,.accounting-report-table tfoot th,.accounting-report-table tfoot td{font-weight:850;color:var(--text);background:color-mix(in srgb,var(--primary) 5%,var(--panel))}
.accounting-report-toolbar,.accounting-tax-filter{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.accounting-report-toolbar label,.accounting-tax-filter label{display:grid;gap:4px;color:var(--muted);font-size:.62rem;font-weight:760}
.accounting-report-toolbar .input,.accounting-tax-filter .input{min-height:35px;font-size:.72rem}
.accounting-tax-estimate{border:1px solid color-mix(in srgb,var(--warning) 28%,var(--line));border-radius:14px;background:color-mix(in srgb,var(--warning) 7%,var(--panel));padding:13px}
.accounting-tax-estimate small{display:block;color:var(--muted);font-size:.65rem}
.accounting-tax-estimate strong{display:block;color:var(--text);font-size:1rem;margin-top:4px}

.accounting-audit-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:start;padding:10px 12px}
.accounting-audit-dot{width:9px;height:9px;margin-top:5px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 10%,transparent)}
.accounting-audit-row strong{display:block;color:var(--text);font-size:.72rem}
.accounting-audit-row small{display:block;color:var(--muted);font-size:.61rem;margin-top:3px;line-height:1.4}

/* Forms and purpose-built accounting overlays */
body.accounting-modal-open{overflow:hidden}
.accounting-modal{position:fixed;inset:0;z-index:10080;display:grid;place-items:center;padding:18px}
.accounting-modal>.modal-backdrop{position:absolute;inset:0;background:var(--overlay,rgba(3,8,18,.56));backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.accounting-modal-dialog{position:relative;z-index:1;width:min(650px,calc(100vw - 36px));max-height:min(760px,calc(100dvh - 36px));display:flex;flex-direction:column;overflow:hidden;border:1px solid color-mix(in srgb,var(--primary) 18%,var(--line));border-radius:20px;background:color-mix(in srgb,var(--panel) 96%,transparent);box-shadow:var(--shadow-strong,0 26px 80px rgba(0,0,0,.28));color:var(--text)}
.accounting-modal-wide{width:min(1120px,calc(100vw - 36px))}
.accounting-modal-dialog .modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 17px;border-bottom:1px solid var(--line);background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 6%,var(--panel)),color-mix(in srgb,var(--panel) 96%,transparent));flex:0 0 auto}
.accounting-modal-dialog .modal-head h3{margin:0;color:var(--text);font-size:.98rem}
.accounting-modal-dialog .modal-head p{margin:4px 0 0;color:var(--muted);font-size:.67rem;line-height:1.4}
.accounting-modal-dialog .modal-body{padding:15px 17px;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;min-height:0}
.accounting-modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:11px 17px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--panel-2) 65%,var(--panel));flex:0 0 auto}
.accounting-modal-footer .btn{min-height:34px;padding:7px 12px;font-size:.7rem}
.accounting-form{display:grid;gap:13px}
.accounting-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.accounting-form-grid>label,.accounting-form>label{display:grid;gap:5px;min-width:0;color:var(--muted);font-size:.64rem;font-weight:780}
.accounting-form-grid .input,.accounting-form>.input{width:100%;min-width:0;min-height:37px;font-size:.73rem}
.accounting-form-grid textarea.input,.accounting-form>textarea.input{resize:vertical;line-height:1.45}
.accounting-form-wide{grid-column:1/-1}
.accounting-check{grid-template-columns:auto 1fr!important;align-items:center!important;gap:8px!important;border:1px solid var(--line);border-radius:12px;padding:9px 10px;background:color-mix(in srgb,var(--panel-2) 60%,transparent);color:var(--text)!important}
.accounting-check input{accent-color:var(--primary)}
.accounting-entry-lines-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:2px}
.accounting-entry-lines-head strong{font-size:.76rem;color:var(--text)}
.accounting-entry-lines,.accounting-doc-lines{display:grid;gap:7px}
.accounting-entry-line{display:grid;grid-template-columns:30px minmax(150px,1.1fr) minmax(130px,1fr) minmax(105px,.55fr) minmax(105px,.55fr) minmax(125px,.7fr) 30px;gap:6px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:7px;background:color-mix(in srgb,var(--panel-2) 53%,transparent)}
.accounting-entry-line .input{min-width:0;min-height:34px;font-size:.67rem;padding-right:8px;padding-left:8px}
.accounting-line-no{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:color-mix(in srgb,var(--primary) 9%,var(--panel));color:var(--primary);font-size:.63rem;font-weight:850}
.accounting-entry-totals,.accounting-document-totals{display:flex;justify-content:flex-end;gap:14px;flex-wrap:wrap;border-radius:12px;padding:9px 10px;background:color-mix(in srgb,var(--primary) 5%,var(--panel));border:1px solid color-mix(in srgb,var(--primary) 13%,var(--line));font-size:.68rem;color:var(--muted)}
.accounting-entry-totals strong,.accounting-document-totals strong{color:var(--text)}
.accounting-doc-lines-header{display:grid;grid-template-columns:28px 70px minmax(130px,1.3fr) 60px 85px 78px 105px 120px 115px 90px 28px;gap:5px;padding:0 6px;color:var(--muted);font-size:.56rem;font-weight:800;text-transform:uppercase;letter-spacing:.025em}
.accounting-doc-line{display:grid;grid-template-columns:28px 70px minmax(130px,1.3fr) 60px 85px 78px 105px 120px 115px 90px 28px;gap:5px;align-items:center;border:1px solid var(--line);border-radius:11px;padding:6px;background:color-mix(in srgb,var(--panel-2) 48%,transparent)}
.accounting-doc-line .input{min-width:0;min-height:33px;font-size:.62rem;padding:6px}
.accounting-doc-line-total{text-align:left;color:var(--text);font-size:.64rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-document-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:11px}
.accounting-document-summary>div,.accounting-detail-meta>span{border:1px solid var(--line);border-radius:11px;padding:9px;background:color-mix(in srgb,var(--panel-2) 54%,transparent);min-width:0}
.accounting-document-summary small,.accounting-detail-meta small{display:block;color:var(--muted);font-size:.58rem;text-transform:uppercase;font-weight:800;letter-spacing:.035em}
.accounting-document-summary strong,.accounting-detail-meta strong{display:block;color:var(--text);font-size:.71rem;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.accounting-detail-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.accounting-detail-note{font-size:.7rem;color:var(--muted);line-height:1.5;margin:10px 0}
.accounting-payment-history{margin-top:12px}
.accounting-convert-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px}
.accounting-import-preview{display:grid;gap:5px;margin-top:10px;max-height:220px;overflow:auto;scrollbar-width:none}
.accounting-import-preview::-webkit-scrollbar{display:none}
.accounting-import-preview>div{display:flex;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:9px;padding:7px 8px;font-size:.64rem;background:color-mix(in srgb,var(--panel-2) 55%,transparent)}
.accounting-import-preview span{color:var(--muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.accounting-import-preview strong{color:var(--text);white-space:nowrap}

@media (max-width:1050px){
  .accounting-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .accounting-overview-grid{grid-template-columns:1fr}
  .accounting-contact-grid,.accounting-dimension-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .accounting-doc-row{grid-template-columns:minmax(0,1.25fr) minmax(105px,.55fr) auto}
  .accounting-doc-row>.accounting-doc-money:nth-of-type(2){display:none}
  .accounting-reconcile-row{grid-template-columns:80px minmax(0,1fr) 110px auto}
  .accounting-reconcile-row>.accounting-suggestion{grid-column:2/4}
}

@media (max-width:760px){
  .accounting-panel .accounting-section-head{gap:8px;margin-bottom:10px}
  .accounting-panel .accounting-section-head p{font-size:.7rem;line-height:1.4}
  .accounting-panel .accounting-section-head h3{font-size:.95rem}
  .accounting-head-actions{gap:5px}
  .accounting-head-actions .btn{min-height:31px;padding:6px 9px;font-size:.64rem}
  .accounting-shell{gap:9px}
  .accounting-subnav{margin-inline:-1px;padding:5px;gap:5px;border-radius:13px}
  .accounting-nav-btn{min-height:34px;padding:7px 9px;border-radius:10px;font-size:.66rem;gap:5px}
  .accounting-nav-btn i{font-size:.7rem}
  .accounting-tools-row{align-items:stretch;flex-direction:column;gap:7px}
  .accounting-search{max-width:none;min-width:0;width:100%}
  .accounting-search .input{min-height:34px;font-size:.7rem}
  .accounting-context-actions{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
  .accounting-context-actions::-webkit-scrollbar{display:none}
  .accounting-context-actions .btn{flex:0 0 auto;min-height:31px;padding:6px 9px;font-size:.63rem}
  .accounting-kpi-grid,.accounting-kpi-grid--mini{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .accounting-kpi{padding:10px;border-radius:13px}
  .accounting-kpi-icon{width:27px;height:27px;margin-bottom:7px;border-radius:9px;font-size:.68rem}
  .accounting-kpi strong{font-size:.88rem}
  .accounting-kpi small{font-size:.56rem}
  .accounting-kpi span{font-size:.58rem}
  .accounting-card{padding:10px;border-radius:13px}
  .accounting-card-head{margin-bottom:8px}
  .accounting-card-head h4{font-size:.78rem}
  .accounting-card-head p{font-size:.61rem}
  .accounting-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .accounting-quick-btn{min-height:58px;padding:8px;border-radius:11px}
  .accounting-quick-btn span{font-size:.65rem}
  .accounting-health-grid{gap:6px}
  .accounting-health-card{padding:9px;border-radius:12px}
  .accounting-health-card small{font-size:.57rem}
  .accounting-health-card strong{font-size:.74rem}
  .accounting-performance>div{grid-template-columns:88px 1fr auto;gap:6px;font-size:.61rem}
  .accounting-performance strong{font-size:.61rem}
  .accounting-list-row,.accounting-journal-row{grid-template-columns:auto minmax(0,1fr) auto;padding:9px;gap:7px;border-radius:12px}
  .accounting-list-value{grid-column:2;text-align:right;min-width:0}
  .accounting-list-actions{grid-column:3;grid-row:1/3}
  .accounting-list-main strong{font-size:.7rem}
  .accounting-list-main small,.accounting-list-value small{font-size:.58rem}
  .accounting-list-value strong{font-size:.68rem}
  .accounting-doc-row{grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:9px;border-radius:12px}
  .accounting-doc-main{gap:7px}
  .accounting-doc-type{width:30px;height:30px;border-radius:9px;font-size:.67rem}
  .accounting-doc-desc strong{font-size:.68rem}.accounting-doc-desc small{font-size:.57rem}
  .accounting-doc-row>.accounting-doc-money{grid-column:1;text-align:right;margin-right:37px}
  .accounting-doc-actions{grid-column:2;grid-row:1/3}
  .accounting-contact-grid,.accounting-dimension-grid{grid-template-columns:1fr;gap:7px}
  .accounting-contact-card,.accounting-dimension-card{padding:10px;border-radius:12px}
  .accounting-reconcile-row{grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:9px;border-radius:12px}
  .accounting-reconcile-date{grid-column:1;font-size:.58rem}
  .accounting-reconcile-main{grid-column:1}.accounting-reconcile-amount{grid-column:2;grid-row:1/3;font-size:.67rem}
  .accounting-reconcile-row>.accounting-suggestion{grid-column:1/3}
  .accounting-reconcile-row>.accounting-list-actions{grid-column:1/3;grid-row:auto;justify-content:flex-start}
  .accounting-audit-row{padding:8px 9px;gap:7px}.accounting-audit-row strong{font-size:.64rem}.accounting-audit-row small{font-size:.55rem}
  .accounting-table,.accounting-report-table{font-size:.62rem;min-width:590px}.accounting-table th,.accounting-table td,.accounting-report-table th,.accounting-report-table td{padding:7px 8px}
  .accounting-report-toolbar,.accounting-tax-filter{align-items:stretch;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.accounting-report-toolbar .btn,.accounting-tax-filter .btn{align-self:end;min-height:34px}

  .accounting-modal{padding:16px 14px;align-items:center;justify-items:center}
  .accounting-modal-dialog,.accounting-modal-wide{width:min(100%,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 32px);border-radius:17px}
  .accounting-modal-dialog .modal-head{padding:11px 12px}.accounting-modal-dialog .modal-head h3{font-size:.84rem}.accounting-modal-dialog .modal-head p{font-size:.58rem;margin-top:3px}
  .accounting-modal-dialog .modal-head .icon-btn{width:29px;height:29px;min-width:29px;min-height:29px;font-size:.82rem}
  .accounting-modal-dialog .modal-body{padding:11px 12px;overscroll-behavior:contain}
  .accounting-modal-footer{padding:9px 12px;gap:6px}.accounting-modal-footer .btn{min-height:31px;padding:6px 9px;font-size:.63rem;flex:0 0 auto}
  .accounting-form{gap:10px}.accounting-form-grid{grid-template-columns:1fr;gap:7px}.accounting-form-wide{grid-column:auto}
  .accounting-form-grid>label,.accounting-form>label{font-size:.58rem;gap:4px}.accounting-form-grid .input,.accounting-form>.input{min-height:34px;font-size:.66rem}
  .accounting-journal-head{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-journal-head .accounting-form-wide{grid-column:1/-1}
  .accounting-entry-lines-head strong{font-size:.68rem}
  .accounting-entry-line{grid-template-columns:27px minmax(0,1fr) minmax(0,1fr) 27px;gap:5px;padding:6px}
  .accounting-entry-line>*:nth-child(4),.accounting-entry-line>*:nth-child(5),.accounting-entry-line>*:nth-child(6){grid-column:span 1}
  .accounting-entry-line .input{min-height:31px;font-size:.6rem;padding:5px 6px}
  .accounting-doc-lines-header{display:none}
  .accounting-doc-line{grid-template-columns:25px repeat(2,minmax(0,1fr)) 25px;gap:5px;padding:7px}
  .accounting-doc-line>*{min-width:0}.accounting-doc-line .input{min-height:31px;font-size:.59rem;padding:5px}
  .accounting-doc-line>*:nth-child(n+5):nth-child(-n+10){grid-column:span 1}
  .accounting-doc-line-total{font-size:.6rem;text-align:right}
  .accounting-document-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.accounting-document-summary>div,.accounting-detail-meta>span{padding:7px;border-radius:9px}
  .accounting-detail-meta{grid-template-columns:1fr;gap:6px}.accounting-detail-note{font-size:.62rem}
}

@media (max-width:430px){
  .accounting-kpi-grid,.accounting-kpi-grid--mini{grid-template-columns:1fr 1fr}
  .accounting-kpi{padding:9px}
  .accounting-health-grid{grid-template-columns:1fr 1fr}
  .accounting-report-toolbar,.accounting-tax-filter{grid-template-columns:1fr}
  .accounting-modal{padding:14px 12px}
  .accounting-modal-dialog,.accounting-modal-wide{width:calc(100vw - 24px);max-height:calc(100dvh - 28px)}
  .accounting-journal-head{grid-template-columns:1fr}.accounting-journal-head .accounting-form-wide{grid-column:auto}
  .accounting-entry-line{grid-template-columns:25px minmax(0,1fr) 25px}.accounting-entry-line>*:not(.accounting-line-no):not(.icon-btn){grid-column:2}.accounting-entry-line>.icon-btn{grid-column:3;grid-row:1}
  .accounting-doc-line{grid-template-columns:24px minmax(0,1fr) 24px}.accounting-doc-line>*:not(.accounting-line-no):not(.icon-btn){grid-column:2}.accounting-doc-line>.icon-btn{grid-column:3;grid-row:1}
}

@media (prefers-reduced-motion:reduce){.accounting-nav-btn,.accounting-quick-btn{transition:none}}

.accounting-uuid{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:.72rem;overflow-wrap:anywhere;word-break:break-word}
.accounting-form label>small{display:block;margin-top:5px;font-size:.68rem;line-height:1.35;color:var(--muted)}


/* Build v8: clearer desktop Accounting workspace + explicit Admin feature gate. */
.admin-accounting-access-block{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;border:1px solid color-mix(in srgb,var(--primary) 22%,var(--line));border-radius:15px;background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 7%,var(--panel)),color-mix(in srgb,var(--panel-2) 78%,var(--panel)));box-shadow:0 10px 26px color-mix(in srgb,var(--text) 4%,transparent)}
.admin-accounting-access-copy{display:flex;align-items:center;gap:10px;min-width:0}.admin-accounting-access-icon{width:34px;height:34px;flex:0 0 auto;border-radius:11px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 12%,var(--panel));color:var(--primary)}
.admin-accounting-access-copy strong{display:block;color:var(--text);font-size:.78rem}.admin-accounting-access-copy small{display:block;margin-top:3px;color:var(--muted);font-size:.64rem;line-height:1.4;max-width:620px}
.admin-accounting-switch{display:inline-flex;align-items:center;gap:7px;cursor:pointer;flex:0 0 auto;color:var(--muted);font-size:.65rem;font-weight:800}.admin-accounting-switch input{position:absolute;opacity:0;pointer-events:none}.admin-accounting-switch span{position:relative;width:38px;height:22px;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--muted) 10%,var(--panel-2));transition:.18s ease}.admin-accounting-switch span:after{content:"";position:absolute;width:16px;height:16px;right:2px;top:2px;border-radius:50%;background:var(--muted);transition:.18s ease}.admin-accounting-switch input:checked+span{border-color:color-mix(in srgb,var(--primary) 45%,var(--line));background:color-mix(in srgb,var(--primary) 18%,var(--panel))}.admin-accounting-switch input:checked+span:after{right:18px;background:var(--primary)}.admin-accounting-switch input:focus-visible+span{outline:2px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}.admin-accounting-switch input:disabled+span{opacity:.55;cursor:not-allowed}

@media (min-width:1100px){
  .accounting-panel .accounting-section-head{padding:2px 2px 4px}.accounting-panel .accounting-section-head h3{font-size:1.08rem}.accounting-panel .accounting-section-head p{font-size:.78rem;max-width:780px}
  .accounting-shell{gap:14px}.accounting-subnav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));overflow:visible;padding:7px;gap:6px}.accounting-nav-btn{width:100%;justify-content:center;padding:9px 8px}.accounting-tools-row{padding:10px 11px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--panel) 94%,transparent)}
  .accounting-workspace-body{gap:14px}.accounting-card{padding:16px;border-radius:17px}.accounting-kpi-grid{gap:12px}.accounting-overview-grid{gap:12px}.accounting-report-toolbar{padding:12px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--panel) 95%,transparent)}.accounting-report-toolbar label{min-width:150px}.accounting-report-toolbar label:first-child{min-width:230px}.accounting-report-table{font-size:.72rem}.accounting-report-table th,.accounting-report-table td{padding:10px 11px}
}

@media (max-width:760px){.admin-accounting-access-block{padding:10px;gap:9px;align-items:flex-start}.admin-accounting-access-icon{width:30px;height:30px;border-radius:9px}.admin-accounting-access-copy{gap:8px}.admin-accounting-access-copy strong{font-size:.7rem}.admin-accounting-access-copy small{font-size:.58rem}.admin-accounting-switch{margin-top:3px}.admin-accounting-switch em{display:none}}

/* Build 001 Accounting refinement
   Corrects legacy selector/layout mismatches, clarifies record lifecycles and
   keeps the workspace legible on narrow screens without changing ledger rules. */
.accounting-meter i{display:block;height:100%;border-radius:inherit;background:var(--primary);max-width:100%}
.accounting-panel .accounting-section-head{padding-inline:4px}
.accounting-shell{padding:0 3px 4px}

.accounting-view-guide{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 12px;border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line));border-radius:15px;background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 7%,var(--panel)),color-mix(in srgb,var(--panel) 97%,transparent));box-shadow:0 9px 24px color-mix(in srgb,var(--text) 4%,transparent)}
.accounting-view-guide-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 12%,var(--panel));color:var(--primary)}
.accounting-view-guide small{display:block;color:var(--primary);font-size:.59rem;font-weight:850;text-transform:uppercase;letter-spacing:.055em}
.accounting-view-guide strong{display:block;margin-top:2px;color:var(--text);font-size:.74rem;line-height:1.4}
.accounting-view-guide span{display:block;margin-top:3px;color:var(--muted);font-size:.65rem;line-height:1.45}

/* The original document row markup and its CSS described different structures.
   These placements make every field predictable and stop actions wrapping into
   apparently unrelated rows. */
.accounting-doc-row{grid-template-columns:auto minmax(0,1.35fr) minmax(112px,.55fr) auto auto}
.accounting-doc-type{grid-column:1}
.accounting-doc-main{grid-column:2;display:block;min-width:0}
.accounting-doc-main>strong{display:block;color:var(--text);font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-doc-main>span{display:block;color:var(--muted);font-size:.66rem;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-doc-main>small{display:block;color:var(--muted);font-size:.62rem;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-doc-money{grid-column:3}
.accounting-doc-row>.accounting-status{grid-column:4}
.accounting-doc-row>.accounting-doc-actions{grid-column:5;flex-wrap:nowrap}

.accounting-contact-card{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:10px;row-gap:6px}
.accounting-contact-avatar{grid-column:1;grid-row:1/3}
.accounting-contact-info{grid-column:2;grid-row:1;display:block;min-width:0}
.accounting-contact-info>strong{display:block;color:var(--text);font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-contact-info>span{display:block;margin-top:2px;color:var(--muted);font-size:.65rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-contact-info>small{display:block;margin-top:3px;color:var(--muted);font-size:.61rem;white-space:normal;overflow-wrap:anywhere}
.accounting-contact-meta{grid-column:2;grid-row:2;align-items:center}
.accounting-contact-meta strong{color:var(--text);font-size:.68rem}
.accounting-contact-actions{grid-column:3;grid-row:1/3;align-self:center}

.accounting-dimension-card{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
.accounting-dimension-card>div:nth-child(2){min-width:0}
.accounting-dimension-card>div:nth-child(2)>span{display:block;margin-top:3px;color:var(--muted);font-size:.63rem;line-height:1.4}
.accounting-dimension-actions{display:flex;align-items:center;gap:5px}
.accounting-row-archived,.accounting-card-archived{opacity:.68}
.accounting-row-archived:hover,.accounting-card-archived:hover{opacity:.9}

.accounting-reconcile-row{grid-template-columns:90px minmax(0,1fr) 130px auto}
.accounting-reconcile-main>span{display:block;color:var(--muted);font-size:.62rem;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-reconcile-main .accounting-suggestion{display:block;margin-top:5px;white-space:normal}
.accounting-reconcile-row>.accounting-doc-actions{justify-self:end;flex-wrap:wrap;max-width:220px}
.accounting-reconcile-amount .accounting-status{margin-top:4px}

.accounting-tax-estimate{display:grid;gap:8px}
.accounting-tax-estimate>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:7px;border-bottom:1px solid color-mix(in srgb,var(--warning) 18%,var(--line))}
.accounting-tax-estimate>div:last-of-type{padding-top:3px;border-bottom:0}
.accounting-tax-estimate span{color:var(--muted);font-size:.66rem}
.accounting-tax-estimate strong{margin:0;font-size:.82rem;text-align:left}
.accounting-tax-estimate .total strong{font-size:1rem;color:var(--text)}
.accounting-tax-estimate p{margin:2px 0 0;color:var(--muted);font-size:.61rem;line-height:1.45}
.accounting-tax-code-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.accounting-tax-code-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--panel-2) 58%,var(--panel))}
.accounting-tax-code-card small{display:block;color:var(--muted);font-size:.58rem;font-weight:760;text-transform:uppercase;letter-spacing:.04em}
.accounting-tax-code-card strong{display:block;margin-top:3px;color:var(--text);font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-tax-code-card span{display:block;margin-top:4px;color:var(--primary);font-size:.78rem;font-weight:850}
.accounting-tax-code-actions{display:flex;align-items:center;gap:4px}

.accounting-guide-intro{display:flex;align-items:flex-start;gap:11px;padding:12px;border:1px solid color-mix(in srgb,var(--primary) 25%,var(--line));border-radius:14px;background:color-mix(in srgb,var(--primary) 6%,var(--panel));margin-bottom:11px}
.accounting-guide-intro>i{width:34px;height:34px;flex:0 0 auto;display:grid;place-items:center;border-radius:11px;background:color-mix(in srgb,var(--primary) 12%,var(--panel));color:var(--primary)}
.accounting-guide-intro strong{display:block;color:var(--text);font-size:.78rem}
.accounting-guide-intro span{display:block;margin-top:4px;color:var(--muted);font-size:.66rem;line-height:1.5}
.accounting-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.accounting-guide-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;padding:10px;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--panel-2) 54%,var(--panel));min-width:0}
.accounting-guide-card.active{border-color:color-mix(in srgb,var(--primary) 38%,var(--line));background:color-mix(in srgb,var(--primary) 8%,var(--panel))}
.accounting-guide-card>i{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:color-mix(in srgb,var(--primary) 10%,var(--panel));color:var(--primary);font-size:.7rem}
.accounting-guide-card small{display:block;color:var(--primary);font-size:.56rem;font-weight:850;text-transform:uppercase;letter-spacing:.045em}
.accounting-guide-card strong{display:block;margin-top:2px;color:var(--text);font-size:.68rem;line-height:1.4}
.accounting-guide-card span{display:block;margin-top:3px;color:var(--muted);font-size:.6rem;line-height:1.45}

.accounting-modal-dialog :is(input,select,textarea,button):focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}
.accounting-modal-dialog .modal-body{padding-bottom:max(15px,env(safe-area-inset-bottom))}

@media (max-width:1050px){
  .accounting-doc-row{grid-template-columns:auto minmax(0,1fr) auto auto}
  .accounting-doc-money{grid-column:3}
  .accounting-doc-row>.accounting-status{grid-column:4}
  .accounting-doc-row>.accounting-doc-actions{grid-column:2/5;justify-self:end}
  .accounting-tax-code-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .accounting-reconcile-row{grid-template-columns:80px minmax(0,1fr) 118px auto}
}

@media (max-width:760px){
  .accounting-panel .accounting-section-head{padding-inline:2px}
  .accounting-shell{padding:0}
  .accounting-tools-row{align-items:stretch;flex-direction:column;padding:8px;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--panel) 95%,transparent)}
  .accounting-search{min-width:0;max-width:none;width:100%}
  .accounting-context-actions{width:100%;justify-content:flex-start}
  .accounting-context-actions .btn{min-height:36px}
  .accounting-view-guide{grid-template-columns:auto minmax(0,1fr);padding:9px;gap:8px}
  .accounting-view-guide>.btn{grid-column:2;justify-self:start;min-height:31px}
  .accounting-view-guide-icon{width:30px;height:30px;border-radius:9px}
  .accounting-view-guide strong{font-size:.66rem}.accounting-view-guide span{font-size:.59rem}

  .accounting-doc-row{grid-template-columns:auto minmax(0,1fr) auto;align-items:start}
  .accounting-doc-type{grid-column:1;grid-row:1/3}
  .accounting-doc-main{grid-column:2;grid-row:1}
  .accounting-doc-row>.accounting-status{grid-column:3;grid-row:1}
  .accounting-doc-money{grid-column:2;grid-row:2;text-align:right;margin:0!important}
  .accounting-doc-row>.accounting-doc-actions{grid-column:2/4;grid-row:3;justify-self:start;justify-content:flex-start;flex-wrap:wrap}
  .accounting-doc-main>strong{font-size:.7rem}.accounting-doc-main>span{font-size:.59rem}.accounting-doc-main>small{font-size:.56rem}

  .accounting-contact-grid,.accounting-dimension-grid,.accounting-tax-code-grid{grid-template-columns:1fr}
  .accounting-contact-card,.accounting-dimension-card{padding:9px}
  .accounting-contact-actions .icon-btn,.accounting-dimension-actions .icon-btn,.accounting-tax-code-actions .icon-btn{min-width:32px;min-height:32px}

  .accounting-reconcile-row{grid-template-columns:minmax(0,1fr) auto;align-items:start}
  .accounting-reconcile-date{grid-column:1;grid-row:1}
  .accounting-reconcile-main{grid-column:1;grid-row:2}
  .accounting-reconcile-amount{grid-column:2;grid-row:1/3}
  .accounting-reconcile-row>.accounting-doc-actions{grid-column:1/3;grid-row:3;justify-self:start;justify-content:flex-start;max-width:none}

  .accounting-guide-grid{grid-template-columns:1fr}
  .accounting-guide-intro{padding:10px}
  .accounting-modal-footer{padding-bottom:max(9px,env(safe-area-inset-bottom))}
  .accounting-modal-footer .btn{min-height:36px}
}

/* ---- 3.8: Accounting upgrade (filters, ledger, statements, settings, overview) ---- */
.accounting-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.accounting-chip{appearance:none;border:1px solid var(--line);background:color-mix(in srgb,var(--panel) 92%,transparent);color:var(--muted);border-radius:999px;padding:6px 11px;min-height:32px;display:inline-flex;align-items:center;gap:7px;font:inherit;font-size:.74rem;font-weight:720;cursor:pointer;transition:background .16s ease,color .16s ease,border-color .16s ease}
.accounting-chip em{font-style:normal;font-size:.66rem;font-weight:800;min-width:18px;text-align:center;padding:1px 6px;border-radius:999px;background:color-mix(in srgb,var(--muted) 14%,transparent);color:inherit}
.accounting-chip:hover{color:var(--text);border-color:color-mix(in srgb,var(--primary,#2457d6) 35%,var(--line))}
.accounting-chip.active{background:color-mix(in srgb,var(--primary,#2457d6) 12%,var(--panel));border-color:color-mix(in srgb,var(--primary,#2457d6) 45%,var(--line));color:var(--primary,#2457d6)}
.accounting-chip.active em{background:color-mix(in srgb,var(--primary,#2457d6) 18%,transparent)}
.accounting-chip:focus-visible,.accounting-link:focus-visible,.accounting-settings-tab:focus-visible,.accounting-attention-row:focus-visible,.accounting-row-link:focus-visible{outline:2px solid var(--primary,#2457d6);outline-offset:2px}
.accounting-type-filter .input{min-height:32px;font-size:.74rem;padding-block:4px}
.accounting-link{appearance:none;border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;text-align:right}
.accounting-link:hover strong,.accounting-link:hover{color:var(--primary,#2457d6);text-decoration:underline;text-underline-offset:2px}
.accounting-row-link{cursor:pointer}
.accounting-row-link:hover td{background:color-mix(in srgb,var(--primary,#2457d6) 5%,transparent)}
.accounting-table tr.accounting-row-group td{font-weight:800;font-size:.7rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);background:color-mix(in srgb,var(--muted) 6%,transparent)}
.accounting-table tr.accounting-row-subtotal td{font-weight:760;border-top:1px solid var(--line)}
.accounting-table tr.accounting-row-total td{font-weight:850;border-top:2px solid color-mix(in srgb,var(--text) 35%,var(--line));background:color-mix(in srgb,var(--primary,#2457d6) 5%,transparent)}
.accounting-compare{display:inline-flex!important;grid-auto-flow:column;align-items:center;gap:7px!important;min-height:35px;font-size:.72rem!important;color:var(--text)!important}
.accounting-line-tools{display:inline-flex;gap:6px;flex-wrap:wrap}
.accounting-ledger-toolbar{margin-bottom:10px}
.accounting-month-chart{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:end;height:132px;padding:6px 2px 0}
.accounting-month{display:grid;grid-template-rows:1fr auto;gap:6px;height:100%;min-width:0}
.accounting-month span{font-size:.64rem;font-weight:720;color:var(--muted);text-align:center}
.accounting-month-bars{display:flex;align-items:flex-end;justify-content:center;gap:4px;height:100%}
.accounting-month-bars i{display:block;width:min(16px,40%);border-radius:5px 5px 2px 2px;transition:height .35s ease}
.accounting-month-bars i.in,.accounting-month-legend .in::before{background:var(--success,#16a34a)}
.accounting-month-bars i.out,.accounting-month-legend .out::before{background:color-mix(in srgb,var(--danger,#dc2626) 82%,transparent)}
.accounting-month-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:10px;font-size:.72rem;font-weight:700;color:var(--muted)}
.accounting-month-legend span{display:inline-flex;align-items:center;gap:6px}
.accounting-month-legend .in::before,.accounting-month-legend .out::before{content:"";width:9px;height:9px;border-radius:3px;display:inline-block}
.accounting-month-legend .net{color:var(--text)}
.accounting-attention-list{display:grid;gap:6px}
.accounting-attention-row{appearance:none;border:1px solid var(--line);background:color-mix(in srgb,var(--panel) 92%,transparent);border-radius:12px;padding:9px 11px;display:flex;align-items:center;gap:10px;font:inherit;color:var(--text);text-align:right;cursor:pointer;min-width:0}
.accounting-attention-row:hover{border-color:color-mix(in srgb,var(--primary,#2457d6) 35%,var(--line))}
.accounting-attention-row>strong{font-size:.78rem;white-space:nowrap}
.accounting-attention-main{flex:1;min-width:0;display:grid;gap:2px}
.accounting-attention-main strong{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.accounting-attention-main small{font-size:.68rem;color:var(--muted)}
.accounting-attention-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto;background:var(--warning,#d97706)}
.accounting-attention-dot.red{background:var(--danger,#dc2626)}
.accounting-settings-tabs{display:flex;gap:6px;overflow-x:auto;padding:4px;margin:0 0 14px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--panel) 88%,transparent);scrollbar-width:none}
.accounting-settings-tabs::-webkit-scrollbar{display:none}
.accounting-settings-tab{appearance:none;border:1px solid transparent;background:transparent;color:var(--muted);border-radius:10px;padding:8px 11px;display:inline-flex;align-items:center;gap:7px;font:inherit;font-size:.76rem;font-weight:760;white-space:nowrap;cursor:pointer}
.accounting-settings-tab:hover{color:var(--text)}
.accounting-settings-tab.active{background:color-mix(in srgb,var(--primary,#2457d6) 12%,var(--panel));border-color:color-mix(in srgb,var(--primary,#2457d6) 35%,transparent);color:var(--primary,#2457d6)}
.accounting-settings-pane{display:none}
.accounting-settings-pane.active{display:block}
.accounting-settings-form .accounting-form-grid small{display:block;margin-top:3px;color:var(--muted);font-size:.66rem;font-weight:600}
.accounting-prefix-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.accounting-prefix-grid label{display:grid;gap:4px;font-size:.68rem;font-weight:760;color:var(--muted)}
.accounting-prefix-grid .input{text-transform:uppercase;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.accounting-prefix-grid small{font-size:.64rem;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.accounting-settings-error{margin:10px 0 0;color:var(--danger,#dc2626);font-size:.76rem;font-weight:700;min-height:1em}
.accounting-kpi.loss .accounting-kpi-icon{color:var(--danger,#dc2626)}
@keyframes acctFadeIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
@media (max-width:760px){
  .accounting-prefix-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .accounting-month-chart{height:110px}
  .accounting-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .accounting-chips::-webkit-scrollbar{display:none}
  .accounting-chip{flex:0 0 auto}
  .accounting-compare{grid-column:1/-1}
}
@media (prefers-reduced-motion:reduce){.accounting-month-bars i{transition:none}.accounting-settings-pane.active{animation:none}}
.accounting-health-grid button{appearance:none;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--panel-2) 80%,var(--panel));color:var(--text);min-height:62px;padding:10px 12px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;font:inherit;text-align:right;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.accounting-health-grid button strong{font-size:1.05rem;font-weight:850;font-variant-numeric:tabular-nums;margin:0;color:var(--text)}
.accounting-health-grid button span{font-size:.7rem;font-weight:700;color:var(--muted)}
.accounting-health-grid button:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--line));background:color-mix(in srgb,var(--primary) 7%,var(--panel));transform:translateY(-1px)}
.accounting-health-grid button:focus-visible{outline:2px solid var(--primary,#2457d6);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.accounting-health-grid button{transition:none}.accounting-health-grid button:hover{transform:none}}
@media (max-width:760px){.accounting-kpi-grid--mini{grid-template-columns:repeat(3,minmax(0,1fr))}.accounting-kpi-grid--mini .accounting-kpi{padding:9px}.accounting-kpi-grid--mini .accounting-kpi strong{font-size:.8rem}}

/* ===== SOURCE: Assets/style/42-public-accounting-seo.css ===== */
/* Triplem VIP public Accounting ERP + SEO expansion — 2026-09-07
   Public-facing only. No authenticated workspace behavior is defined here. */

/* Landing accounting spotlight */
.landing-accounting-suite,
.landing-accounting-feature-spotlight {
  position:relative;
  isolation:isolate;
}
.landing-accounting-suite {
  width:min(1180px, calc(100% - 32px));
  margin:clamp(38px, 6vw, 76px) auto;
  padding:clamp(22px, 4vw, 42px);
  border:1px solid color-mix(in srgb, var(--line, #cbd5e1) 60%, transparent);
  border-radius:clamp(24px, 3vw, 34px);
  background:radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--primary, #2457d6) 13%, transparent), transparent 32%),
    linear-gradient(145deg, color-mix(in srgb, var(--panel, #fff) 92%, transparent), color-mix(in srgb, var(--panel-2, #f8fafc) 82%, transparent));
  box-shadow:0 24px 70px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.58);
  overflow:hidden;
}
.landing-accounting-suite::after {
  content:"";
  position:absolute;
  width:280px;
  height:280px;
  left:-130px;
  bottom:-170px;
  border-radius:50%;
  background:color-mix(in srgb, var(--primary, #2457d6) 12%, transparent);
  filter:blur(2px);
  z-index:-1;
}
.landing-accounting-suite-head { max-width:850px; }
.landing-accounting-suite-head h2 { margin:8px 0 10px; }
.landing-accounting-suite-head > p:last-child { color:var(--muted, #64748b); line-height:1.75; }
.landing-accounting-suite-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:24px;
}
.landing-accounting-suite-card {
  min-width:0;
  padding:19px;
  border:1px solid color-mix(in srgb, var(--line, #cbd5e1) 58%, transparent);
  border-radius:20px;
  background:color-mix(in srgb, var(--panel, #fff) 78%, transparent);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.landing-accounting-suite-card i {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  margin-bottom:12px;
  color:var(--primary, #2457d6);
  background:color-mix(in srgb, var(--primary, #2457d6) 11%, transparent);
}
.landing-accounting-suite-card h3 { margin:0 0 7px; font-size:1rem; }
.landing-accounting-suite-card p { margin:0; color:var(--muted, #64748b); font-size:.88rem; line-height:1.65; }
.landing-accounting-flow {
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:10px;
  margin-top:18px;
}
.landing-accounting-flow span {
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:52px;
  padding:11px 13px;
  border:1px solid color-mix(in srgb, var(--line, #cbd5e1) 52%, transparent);
  border-radius:15px;
  color:var(--text, #0f172a);
  background:color-mix(in srgb, var(--panel, #fff) 72%, transparent);
  font-size:.82rem;
  font-weight:700;
}
.landing-accounting-flow span i { color:var(--primary, #2457d6); }
.landing-accounting-suite-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:20px;
}
.landing-accounting-suite-actions a {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:9px 14px;
  border-radius:12px;
  text-decoration:none;
  font-size:.85rem;
  font-weight:750;
  color:var(--text, #0f172a);
  border:1px solid color-mix(in srgb, var(--line, #cbd5e1) 58%, transparent);
  background:color-mix(in srgb, var(--panel, #fff) 76%, transparent);
}
.landing-accounting-suite-actions a:first-child {
  color:#fff;
  border-color:transparent;
  background:var(--primary, #2457d6);
}
.landing-accounting-suite-note {
  margin:16px 0 0;
  padding:11px 14px;
  border-radius:14px;
  color:var(--muted, #64748b);
  background:color-mix(in srgb, var(--primary, #2457d6) 7%, transparent);
  font-size:.8rem;
  line-height:1.55;
}
.landing-accounting-feature-spotlight {
  margin-top:20px;
  padding:clamp(18px, 3vw, 26px);
  border:1px solid color-mix(in srgb, var(--primary, #2457d6) 26%, var(--line, #cbd5e1));
  border-radius:22px;
  background:linear-gradient(145deg, color-mix(in srgb, var(--primary, #2457d6) 8%, var(--panel, #fff)), color-mix(in srgb, var(--panel-2, #f8fafc) 86%, transparent));
}
.landing-accounting-feature-spotlight .landing-card-grid { margin-top:16px; }

/* Public SEO accounting pages — Security Architecture visual parity — 2026-09-10 */
.architecture-page {
  --seo-surface: linear-gradient(155deg, rgba(255,255,255,.88), rgba(248,250,252,.69));
  --seo-surface-strong: linear-gradient(155deg, rgba(255,255,255,.94), rgba(242,247,255,.76));
  --seo-border: rgba(255,255,255,.78);
  --seo-hover-border: rgba(36,87,214,.28);
  --seo-link-bg: rgba(36,87,214,.075);
  --seo-link-bg-hover: rgba(36,87,214,.12);
}

.erp-summary-grid,
.erp-feature-grid,
.erp-report-grid,
.erp-guide-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:1rem;
  margin-top:1.45rem;
}

.architecture-page .erp-feature-card,
.architecture-page .erp-report-card,
.architecture-page .erp-guide-card,
.architecture-page .erp-flow-step,
.architecture-page .erp-ledger-example,
.architecture-page .erp-callout,
.architecture-page .seo-definition {
  color:var(--text-primary);
  border:1px solid var(--seo-border);
  background:var(--seo-surface);
  box-shadow:var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter:blur(12px) saturate(1.08);
  -webkit-backdrop-filter:blur(12px) saturate(1.08);
}
.architecture-page .erp-feature-card,
.architecture-page .erp-report-card,
.architecture-page .erp-guide-card {
  padding:1.15rem;
  border-radius:17px;
}
.architecture-page .erp-flow-step {
  min-width:0;
  padding:1rem;
  border-radius:16px;
}
.architecture-page .erp-ledger-example,
.architecture-page .erp-callout,
.architecture-page .seo-definition {
  border-radius:17px;
}
.architecture-page .erp-feature-card,
.architecture-page .erp-report-card,
.architecture-page .erp-guide-card,
.architecture-page .erp-flow-step {
  transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.architecture-page .erp-feature-card:hover,
.architecture-page .erp-report-card:hover,
.architecture-page .erp-guide-card:hover,
.architecture-page .erp-flow-step:hover {
  transform:translateY(-2px);
  border-color:var(--seo-hover-border);
  box-shadow:var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.92);
  background:var(--seo-surface-strong);
}

.architecture-page .erp-feature-card > i,
.architecture-page .erp-report-card > i,
.architecture-page .erp-guide-card > i {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  margin-bottom:11px;
  border-radius:12px;
  color:var(--brand-blue);
  background:var(--brand-blue-pale);
  border:1px solid rgba(36,87,214,.11);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}
.architecture-page .erp-feature-card h3,
.architecture-page .erp-report-card h3,
.architecture-page .erp-guide-card h3 {
  margin:0 0 7px;
  color:var(--text-primary);
  font-size:.94rem;
}
.architecture-page .erp-feature-card p,
.architecture-page .erp-report-card p,
.architecture-page .erp-guide-card p {
  margin:0;
  color:var(--text-muted);
  line-height:1.65;
  font-size:.73rem;
}

.erp-flow {
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:.7rem;
  margin-top:1.45rem;
}
.architecture-page .erp-flow-step small {
  display:block;
  color:var(--brand-blue);
  text-transform:uppercase;
  letter-spacing:.09em;
  font-size:.60rem;
  font-weight:850;
}
.architecture-page .erp-flow-step strong {
  display:block;
  margin:.4rem 0;
  color:var(--text-primary);
  font-size:.84rem;
}
.architecture-page .erp-flow-step span {
  color:var(--text-muted);
  font-size:.69rem;
  line-height:1.55;
}

.architecture-page .erp-ledger-example {
  padding:1.2rem;
  margin-top:1.35rem;
  overflow:hidden;
}
.architecture-page .erp-ledger-example h3 {
  margin:0 0 .8rem;
  color:var(--text-primary);
}
.erp-ledger-table {
  width:100%;
  border-collapse:collapse;
  color:var(--text-secondary);
  font-size:.82rem;
}
.erp-ledger-table th,
.erp-ledger-table td {
  padding:.75rem .7rem;
  border-bottom:1px solid rgba(36,87,214,.10);
  text-align:right;
  vertical-align:top;
}
.erp-ledger-table th {
  color:var(--text-muted);
  background:rgba(36,87,214,.045);
  font-size:.66rem;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.erp-ledger-table td { color:var(--text-secondary); }
.erp-ledger-table tbody tr:hover td { background:rgba(36,87,214,.035); }
.erp-ledger-table td.num,
.erp-ledger-table th.num {
  text-align:left;
  font-variant-numeric:tabular-nums;
}

.architecture-page .erp-callout,
.architecture-page .seo-definition {
  margin-top:1.35rem;
  padding:1.05rem 1.15rem;
  border-color:rgba(255,255,255,.80);
  background:radial-gradient(180px 100px at 100% 0%, rgba(36,87,214,.055), transparent 72%),
    linear-gradient(155deg, rgba(255,255,255,.91), rgba(244,248,255,.72));
}
.architecture-page .erp-callout strong,
.architecture-page .seo-definition strong {
  color:var(--text-primary);
}
.architecture-page .erp-callout p,
.architecture-page .seo-definition p {
  margin:.38rem 0 0;
  color:var(--text-muted);
  font-size:.74rem;
  line-height:1.65;
}

.erp-inline-links {
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  margin-top:1.15rem;
}
.architecture-page .erp-inline-links a {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  min-height:36px;
  padding:.52rem .72rem;
  border:1px solid rgba(36,87,214,.14);
  border-radius:11px;
  color:var(--brand-blue);
  background:var(--seo-link-bg);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.70);
  text-decoration:none;
  font-size:.72rem;
  font-weight:800;
  transition:color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.architecture-page .erp-inline-links a:hover,
.architecture-page .erp-inline-links a:focus-visible {
  color:var(--brand-blue-dark);
  border-color:rgba(36,87,214,.28);
  background:var(--seo-link-bg-hover);
  transform:translateY(-1px);
}

.architecture-page .erp-guide-card {
  display:block;
  color:inherit;
  text-decoration:none;
}
.architecture-page .erp-guide-card .erp-guide-route,
.architecture-page .guide-card-route {
  display:inline-flex;
  align-items:center;
  gap:.38rem;
  width:fit-content;
  margin-top:.8rem;
  padding:.34rem .52rem;
  border:1px solid rgba(36,87,214,.12);
  border-radius:999px;
  color:var(--brand-blue);
  background:rgba(36,87,214,.065);
  font-size:.68rem;
  font-weight:850;
  line-height:1.2;
}
.architecture-page .erp-guide-card:hover .erp-guide-route,
.architecture-page .guide-card-link:hover .guide-card-route {
  color:var(--brand-blue-dark);
  border-color:rgba(36,87,214,.20);
  background:rgba(36,87,214,.10);
}

.architecture-page .erp-ledger-table kbd,
.architecture-page .erp-feature-card kbd {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:1.8rem;
  padding:.18rem .42rem;
  margin:0 .08rem;
  border:1px solid rgba(36,87,214,.20);
  border-bottom-color:rgba(36,87,214,.34);
  border-radius:.42rem;
  color:var(--brand-blue-dark);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(232,238,251,.90));
  box-shadow:inset 0 1px 0 #fff, 0 2px 0 rgba(36,87,214,.12);
  font:700 .72rem/1.2 Inter, system-ui, sans-serif;
  white-space:nowrap;
}

.architecture-page .seo-primary-guide {
  border-color:rgba(36,87,214,.24) !important;
  background:radial-gradient(210px 130px at 100% 0%, rgba(97,232,247,.09), transparent 72%),
    linear-gradient(155deg, rgba(255,255,255,.94), rgba(235,243,255,.78)) !important;
  box-shadow:var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.94) !important;
}
.architecture-page .seo-primary-guide > i {
  color:#fff !important;
  background:linear-gradient(145deg, var(--brand-blue), var(--brand-blue-light)) !important;
  border-color:rgba(36,87,214,.18) !important;
  box-shadow:0 9px 20px rgba(36,87,214,.18), inset 0 1px 0 rgba(255,255,255,.26) !important;
}
.architecture-page .seo-primary-guide h3 { color:var(--text-primary); }
.architecture-page .seo-primary-guide p { color:var(--text-muted); }

.architecture-page .seo-fresh-tag {
  display:inline-flex;
  align-items:center;
  gap:.34rem;
  width:fit-content;
  margin:.12rem 0 .6rem;
  padding:.30rem .56rem;
  border:1px solid rgba(36,87,214,.14);
  border-radius:999px;
  color:var(--brand-blue);
  background:linear-gradient(145deg, rgba(36,87,214,.10), rgba(97,232,247,.055));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.70);
  font-size:.60rem;
  font-weight:850;
  letter-spacing:.055em;
  line-height:1.2;
  text-transform:uppercase;
}
.architecture-page .seo-fresh-tag i { color:currentColor; }

/* Ensure directory/footer redirect links remain legible on light surfaces. */
.architecture-page .security-source-note a {
  color:var(--brand-blue);
  font-weight:700;
  text-decoration:underline;
  text-decoration-color:rgba(36,87,214,.26);
  text-underline-offset:2px;
}
.architecture-page .security-source-note a:hover {
  color:var(--brand-blue-dark);
  text-decoration-color:currentColor;
}

/* Dark-band prose: Security/style.css defines .security-prose for light sections.
   Override it explicitly here so SEO dark bands never inherit black/light-surface text. */
.architecture-page .security-dark-section .security-prose {
  color:rgba(245,248,255,.84);
}
.architecture-page .security-dark-section .security-prose p,
.architecture-page .security-dark-section .security-prose li,
.architecture-page .security-dark-section .security-prose span {
  color:rgba(245,248,255,.78);
}
.architecture-page .security-dark-section .security-prose p:first-child {
  color:rgba(255,255,255,.92);
}
.architecture-page .security-dark-section .security-prose strong,
.architecture-page .security-dark-section .security-prose b,
.architecture-page .security-dark-section .security-prose em {
  color:#fff;
}
.architecture-page .security-dark-section .security-prose a {
  color:#b9d2ff;
  text-decoration-color:rgba(185,210,255,.40);
}
.architecture-page .security-dark-section .security-prose a:hover {
  color:#fff;
  text-decoration-color:currentColor;
}

/* Triplem AI privacy cards: correct high-contrast treatment inside the dark security band. */
.security-dark-section .security-rail-card {
  color:#f4f7ff;
  border-color:rgba(162,190,255,.18);
  background:linear-gradient(150deg, rgba(18,37,70,.92), rgba(10,25,49,.86));
  box-shadow:0 14px 34px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
}
.security-dark-section .security-rail-card > i {
  color:#dce8ff;
  background:rgba(91,137,255,.18);
  border:1px solid rgba(143,176,255,.20);
}
.security-dark-section .security-rail-card small { color:#a9c5ff; }
.security-dark-section .security-rail-card strong { color:#fff; }
.security-dark-section .security-rail-card span { color:rgba(233,240,255,.76); }
.security-dark-section .security-rail-card:hover {
  border-color:rgba(143,176,255,.34);
  background:linear-gradient(150deg, rgba(24,47,86,.96), rgba(12,30,58,.90));
}

/* Pale text belongs only on genuinely dark sections. */
.architecture-page .security-dark-section .erp-feature-card,
.architecture-page .security-dark-section .erp-report-card,
.architecture-page .security-dark-section .erp-guide-card,
.architecture-page .security-dark-section .erp-flow-step,
.architecture-page .security-dark-section .erp-ledger-example,
.architecture-page .security-dark-section .erp-callout,
.architecture-page .security-dark-section .seo-definition {
  color:#fff;
  border-color:rgba(255,255,255,.11);
  background:linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.architecture-page .security-dark-section .erp-feature-card:hover,
.architecture-page .security-dark-section .erp-report-card:hover,
.architecture-page .security-dark-section .erp-guide-card:hover,
.architecture-page .security-dark-section .erp-flow-step:hover {
  border-color:rgba(143,176,255,.28);
  background:linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.05));
  box-shadow:0 14px 30px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.10);
}
.architecture-page .security-dark-section .erp-feature-card h3,
.architecture-page .security-dark-section .erp-report-card h3,
.architecture-page .security-dark-section .erp-guide-card h3,
.architecture-page .security-dark-section .erp-flow-step strong,
.architecture-page .security-dark-section .erp-ledger-example h3,
.architecture-page .security-dark-section .erp-callout strong,
.architecture-page .security-dark-section .seo-definition strong {
  color:#fff;
}
.architecture-page .security-dark-section .erp-feature-card p,
.architecture-page .security-dark-section .erp-report-card p,
.architecture-page .security-dark-section .erp-guide-card p,
.architecture-page .security-dark-section .erp-flow-step span,
.architecture-page .security-dark-section .erp-callout p,
.architecture-page .security-dark-section .seo-definition p,
.architecture-page .security-dark-section .erp-ledger-table td {
  color:rgba(255,255,255,.68);
}
.architecture-page .security-dark-section .erp-flow-step small,
.architecture-page .security-dark-section .erp-ledger-table th {
  color:#a8c8ff;
}
.architecture-page .security-dark-section .erp-ledger-table th {
  background:rgba(255,255,255,.045);
}
.architecture-page .security-dark-section .erp-ledger-table th,
.architecture-page .security-dark-section .erp-ledger-table td {
  border-bottom-color:rgba(255,255,255,.09);
}
.architecture-page .security-dark-section .erp-feature-card > i,
.architecture-page .security-dark-section .erp-report-card > i,
.architecture-page .security-dark-section .erp-guide-card > i {
  color:#a8c8ff;
  background:rgba(143,176,255,.10);
  border-color:rgba(143,176,255,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.architecture-page .security-dark-section .erp-inline-links a,
.architecture-page .security-dark-section .erp-guide-card .erp-guide-route,
.architecture-page .security-dark-section .guide-card-route,
.architecture-page .security-dark-section .security-source-note a {
  color:#b9d2ff;
}
.architecture-page .security-dark-section .erp-inline-links a,
.architecture-page .security-dark-section .erp-guide-card .erp-guide-route,
.architecture-page .security-dark-section .guide-card-route {
  border-color:rgba(168,200,255,.16);
  background:rgba(255,255,255,.055);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.architecture-page .security-dark-section .erp-inline-links a:hover,
.architecture-page .security-dark-section .erp-guide-card:hover .erp-guide-route,
.architecture-page .security-dark-section .guide-card-link:hover .guide-card-route {
  color:#fff;
  border-color:rgba(168,200,255,.28);
  background:rgba(143,176,255,.10);
}
.architecture-page .security-dark-section .seo-fresh-tag {
  color:#b9d2ff;
  border-color:rgba(168,200,255,.17);
  background:rgba(143,176,255,.075);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.architecture-page .security-dark-section .seo-primary-guide {
  border-color:rgba(143,176,255,.25) !important;
  background:linear-gradient(145deg, rgba(74,112,207,.16), rgba(255,255,255,.045)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.architecture-page .security-dark-section .seo-primary-guide h3 { color:#fff; }
.architecture-page .security-dark-section .seo-primary-guide p { color:rgba(255,255,255,.68); }
.architecture-page .security-dark-section .erp-ledger-table kbd,
.architecture-page .security-dark-section .erp-feature-card kbd {
  color:#e6efff;
  background:rgba(6,15,31,.62);
  border-color:rgba(143,176,255,.24);
  border-bottom-color:rgba(143,176,255,.38);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07), 0 2px 0 rgba(0,0,0,.30);
}

.architecture-page .erp-guide-card:focus-visible,
.architecture-page .erp-inline-links a:focus-visible,
.architecture-page .guide-card-link:focus-visible,
.architecture-page .guide-question-link:focus-visible {
  outline:3px solid rgba(36,87,214,.20);
  outline-offset:3px;
}

@media (max-width: 900px) {
  .landing-accounting-suite-grid,
  .erp-summary-grid,
  .erp-feature-grid,
  .erp-report-grid,
  .erp-guide-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .landing-accounting-flow,
  .erp-flow { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .landing-accounting-suite { width:calc(100% - 24px); margin:28px 12px; padding:18px 14px; border-radius:22px; }
  .landing-accounting-suite-grid,
  .landing-accounting-flow,
  .erp-summary-grid,
  .erp-feature-grid,
  .erp-report-grid,
  .erp-guide-grid,
  .erp-flow { grid-template-columns:1fr; }
  .landing-accounting-suite-card { padding:16px; }
  .landing-accounting-suite-actions { align-items:stretch; }
  .landing-accounting-suite-actions a { justify-content:center; width:100%; }
  .architecture-page .erp-feature-card,
  .architecture-page .erp-report-card,
  .architecture-page .erp-guide-card,
  .architecture-page .erp-flow-step,
  .architecture-page .erp-callout,
  .architecture-page .seo-definition { border-radius:16px; }
  .architecture-page .erp-feature-card,
  .architecture-page .erp-report-card,
  .architecture-page .erp-guide-card { padding:1rem; }
  .architecture-page .erp-inline-links a { min-height:38px; padding:.55rem .70rem; }
  .erp-ledger-example { padding:.85rem; overflow-x:auto; scrollbar-width:none; }
  .erp-ledger-example::-webkit-scrollbar { display:none; }
  .erp-ledger-table { min-width:580px; }
}


/* SEO/GEO authority + internationalization additions 2026-09-11 */
.seo-provenance{position:relative;z-index:2;margin:-1.05rem auto 1rem;width:min(1180px,calc(100% - 32px));display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.55rem .9rem;padding:.72rem 1rem;border:1px solid rgba(36,87,214,.12);border-radius:16px;background:rgba(255,255,255,.78);box-shadow:0 14px 34px rgba(15,23,42,.06);backdrop-filter:blur(14px);color:var(--muted,#64748b);font-size:.76rem;line-height:1.45}
.seo-provenance strong{color:var(--text,#0f172a);font-weight:800}
.seo-provenance a{color:var(--brand-blue,#2457d6);font-weight:750;text-decoration:none}
.seo-provenance a:hover,.seo-provenance a:focus-visible{text-decoration:underline}
.seo-authority-links{display:flex;flex-wrap:wrap;gap:.6rem .75rem;margin-top:1rem}
.seo-authority-links a{display:inline-flex;align-items:center;gap:.42rem;padding:.62rem .78rem;border:1px solid rgba(36,87,214,.13);border-radius:12px;background:rgba(255,255,255,.7);color:var(--brand-blue,#2457d6);font-weight:760;text-decoration:none}
.seo-authority-links a:hover,.seo-authority-links a:focus-visible{border-color:rgba(36,87,214,.3);box-shadow:0 10px 24px rgba(15,23,42,.06)}
.region-language-switch{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.region-language-switch a{display:inline-flex;align-items:center;padding:.5rem .72rem;border-radius:999px;border:1px solid rgba(36,87,214,.16);background:rgba(255,255,255,.72);color:var(--text,#0f172a);font-size:.74rem;font-weight:800;text-decoration:none}
.region-language-switch a[aria-current="page"]{background:rgba(36,87,214,.1);border-color:rgba(36,87,214,.34);color:var(--brand-blue,#2457d6)}
.region-compliance-note{margin-top:1rem;padding:1rem 1.05rem;border-right:3px solid var(--brand-blue,#2457d6);border-radius:14px 0 0 14px;background:rgba(36,87,214,.055);color:var(--muted,#64748b);line-height:1.65}
html[dir="rtl"] body{font-family:"Segoe UI",Tahoma,Arial,sans-serif;text-align:right}
html[dir="rtl"] .hero-name,html[dir="rtl"] .section-title,html[dir="rtl"] h2,html[dir="rtl"] h3{font-family:"Segoe UI",Tahoma,Arial,sans-serif;letter-spacing:0}
html[dir="rtl"] .nav-inner,html[dir="rtl"] .hero-inner,html[dir="rtl"] .footer,html[dir="rtl"] .seo-provenance{direction:rtl}
html[dir="rtl"] .region-compliance-note{border-left:0;border-right:3px solid var(--brand-blue,#2457d6);border-radius:14px 0 0 14px}
@media(max-width:680px){.seo-provenance{width:min(100% - 20px,1180px);margin:-.55rem auto .75rem;padding:.62rem .76rem;font-size:.7rem;justify-content:flex-start}}

/* ===== SOURCE: Assets/style/43-expenses-overlay-refinement.css ===== */
/* Triplem VIP Expenses overlay refinement — compact entry actions and transaction detail presentation. */
/* Expenses overlay refinement: compact pill actions, slimmer optional banner and centered transaction details. */
#expenseTopupForm .modal-footer,
#expenseEntryForm .modal-footer{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  margin-top:4px!important;
  padding:4px 0 1px!important;
}
#expenseTopupForm .modal-footer .btn,
#expenseEntryForm .modal-footer .btn{
  flex:0 0 auto!important;
  min-width:96px!important;
  min-height:34px!important;
  height:34px!important;
  padding:0 15px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  font-size:.72rem!important;
  line-height:1!important;
}
#expenseTopupForm .expense-optional-details,
#expenseEntryForm .expense-optional-details{
  border-radius:13px!important;
}
#expenseTopupForm .expense-optional-details>summary,
#expenseEntryForm .expense-optional-details>summary{
  min-height:36px!important;
  padding:6px 10px!important;
  gap:7px!important;
  font-size:.76rem!important;
  line-height:1.15!important;
}
#expenseTopupForm .expense-optional-details>summary>small,
#expenseEntryForm .expense-optional-details>summary>small{
  font-size:.62rem!important;
  line-height:1.12!important;
}
#expenseTopupForm .expense-optional-chevron,
#expenseEntryForm .expense-optional-chevron{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  font-size:.72rem!important;
}

#expenseTransactionDetailModal.modal{
  place-items:center!important;
  padding:24px!important;
}
#expenseTransactionDetailModal .expense-tx-detail-dialog{
  width:min(620px,calc(100vw - 48px))!important;
  max-width:620px!important;
  max-height:calc(100dvh - 48px)!important;
  margin:auto!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border-radius:20px!important;
}
#expenseTransactionDetailModal .modal-head{
  flex:0 0 auto!important;
  padding:12px 14px 8px!important;
  align-items:center!important;
}
#expenseTransactionDetailModal .modal-head h3{
  font-size:.98rem!important;
}
#expenseTransactionDetailModal .modal-head p{
  margin-top:2px!important;
  font-size:.70rem!important;
  line-height:1.25!important;
}
#expenseTransactionDetailModal .expense-tx-kicker{
  margin-bottom:2px!important;
  font-size:.66rem!important;
}
#expenseTransactionDetailModal .modal-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:8px 14px 14px!important;
  scrollbar-width:none!important;
}
#expenseTransactionDetailModal .modal-body::-webkit-scrollbar{display:none!important}
#expenseTransactionDetailModal .expense-tx-hero{
  gap:10px!important;
  padding:11px 12px!important;
  border-radius:14px!important;
  box-shadow:none!important;
}
#expenseTransactionDetailModal .expense-tx-icon{
  width:42px!important;
  height:42px!important;
  border-radius:13px!important;
  font-size:1.05rem!important;
}
#expenseTransactionDetailModal .expense-tx-hero strong{
  font-size:1.15rem!important;
  line-height:1.15!important;
}
#expenseTransactionDetailModal .expense-tx-hero :is(small,span){
  font-size:.70rem!important;
  line-height:1.2!important;
}
#expenseTransactionDetailModal .expense-tx-detail-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  margin-top:8px!important;
}
#expenseTransactionDetailModal .expense-tx-detail-grid>div,
#expenseTransactionDetailModal .expense-tx-note{
  padding:9px 10px!important;
  border-radius:11px!important;
}
#expenseTransactionDetailModal .expense-tx-detail-grid small,
#expenseTransactionDetailModal .expense-tx-note small{
  margin-bottom:3px!important;
  font-size:.66rem!important;
  line-height:1.15!important;
}
#expenseTransactionDetailModal .expense-tx-detail-grid strong{
  font-size:.81rem!important;
  line-height:1.25!important;
}
#expenseTransactionDetailModal .expense-tx-detail-empty{
  margin-top:8px!important;
  padding:9px 10px!important;
  border-radius:11px!important;
  font-size:.70rem!important;
}
#expenseTransactionDetailModal .expense-tx-note{
  margin-top:8px!important;
}
#expenseTransactionDetailModal .expense-tx-note p{
  font-size:.79rem!important;
  line-height:1.35!important;
}
#expenseTransactionDetailModal .expense-tx-actions{
  justify-content:flex-end!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:7px!important;
  margin-top:10px!important;
}
#expenseTransactionDetailModal .expense-tx-actions .expense-tx-action-icon{
  flex:0 0 36px!important;
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0!important;
  border-radius:50%!important;
  display:inline-grid!important;
  place-items:center!important;
  font-size:.82rem!important;
  line-height:1!important;
}
#expenseTransactionDetailModal .expense-tx-transfer-hero{
  gap:8px!important;
  padding:10px!important;
  border-radius:15px!important;
  box-shadow:none!important;
}
#expenseTransactionDetailModal .expense-tx-transfer-wallet{
  gap:3px!important;
  padding:9px 8px!important;
  border-radius:12px!important;
}
#expenseTransactionDetailModal .expense-tx-transfer-wallet>span{
  width:40px!important;
  height:40px!important;
  border-radius:12px!important;
}
#expenseTransactionDetailModal .expense-tx-transfer-wallet strong{font-size:.78rem!important}
#expenseTransactionDetailModal .expense-tx-transfer-wallet b{font-size:.90rem!important}
#expenseTransactionDetailModal .expense-tx-transfer-arrow i{
  width:30px!important;
  height:30px!important;
}

@media (max-width:720px){
  #expenseModal.modal{
    place-items:center!important;
    padding:max(18px,env(safe-area-inset-top,0px)) max(14px,env(safe-area-inset-left,0px)) max(18px,env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-right,0px))!important;
  }
  #expenseModal .modal-dialog.compact-entry-dialog{
    width:100%!important;
    max-width:100%!important;
    max-height:calc(100dvh - 36px)!important;
    margin:auto!important;
    align-self:center!important;
    border-radius:18px!important;
  }
  #expenseTopupForm .modal-footer .btn,
  #expenseEntryForm .modal-footer .btn{
    min-width:90px!important;
    min-height:32px!important;
    height:32px!important;
    padding:0 12px!important;
    font-size:.67rem!important;
  }
  #expenseTopupForm .expense-optional-details>summary,
  #expenseEntryForm .expense-optional-details>summary{
    min-height:32px!important;
    padding:5px 8px!important;
    gap:5px!important;
    font-size:.64rem!important;
  }
  #expenseTopupForm .expense-optional-details>summary>small,
  #expenseEntryForm .expense-optional-details>summary>small{
    font-size:.51rem!important;
    max-width:44%!important;
  }
  #expenseTopupForm .expense-optional-chevron,
  #expenseEntryForm .expense-optional-chevron{
    width:16px!important;
    height:16px!important;
    flex-basis:16px!important;
    font-size:.64rem!important;
  }

  #expenseTransactionDetailModal.modal{
    place-items:center!important;
    padding:max(18px,env(safe-area-inset-top,0px)) max(14px,env(safe-area-inset-left,0px)) max(18px,env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-right,0px))!important;
  }
  #expenseTransactionDetailModal .expense-tx-detail-dialog{
    width:100%!important;
    max-width:100%!important;
    max-height:calc(100dvh - 36px)!important;
    margin:auto!important;
    align-self:center!important;
    border-radius:18px!important;
  }
  #expenseTransactionDetailModal .modal-head{
    padding:9px 11px 6px!important;
  }
  #expenseTransactionDetailModal .modal-body{
    padding:7px 10px 10px!important;
  }
  #expenseTransactionDetailModal .expense-tx-hero{
    gap:8px!important;
    padding:9px 10px!important;
    border-radius:12px!important;
  }
  #expenseTransactionDetailModal .expense-tx-icon{
    width:38px!important;
    height:38px!important;
    border-radius:11px!important;
  }
  #expenseTransactionDetailModal .expense-tx-hero strong{font-size:1.02rem!important}
  #expenseTransactionDetailModal .expense-tx-detail-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    margin-top:6px!important;
  }
  #expenseTransactionDetailModal .expense-tx-detail-grid>div,
  #expenseTransactionDetailModal .expense-tx-note{
    padding:7px 8px!important;
    border-radius:10px!important;
  }
  #expenseTransactionDetailModal .expense-tx-detail-grid small,
  #expenseTransactionDetailModal .expense-tx-note small{
    margin-bottom:2px!important;
    font-size:.60rem!important;
  }
  #expenseTransactionDetailModal .expense-tx-detail-grid strong{
    font-size:.73rem!important;
  }
  #expenseTransactionDetailModal .expense-tx-note{
    margin-top:6px!important;
  }
  #expenseTransactionDetailModal .expense-tx-note p{
    font-size:.72rem!important;
    line-height:1.3!important;
  }
  #expenseTransactionDetailModal .expense-tx-actions{
    gap:6px!important;
    margin-top:8px!important;
  }
  #expenseTransactionDetailModal .expense-tx-actions .expense-tx-action-icon{
    flex-basis:34px!important;
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    font-size:.76rem!important;
  }
  #expenseTransactionDetailModal .expense-tx-transfer-hero{
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    gap:6px!important;
    padding:8px!important;
  }
  #expenseTransactionDetailModal .expense-tx-transfer-arrow{
    flex-direction:column!important;
  }
  #expenseTransactionDetailModal .expense-tx-transfer-arrow i{
    transform:none!important;
  }
  #expenseTransactionDetailModal .expense-tx-transfer-wallet{
    padding:7px 5px!important;
  }
}

@media (max-width:360px){
  #expenseTransactionDetailModal .expense-tx-detail-grid{
    grid-template-columns:1fr!important;
  }
  #expenseTopupForm .modal-footer,
  #expenseEntryForm .modal-footer{gap:6px!important}
  #expenseTopupForm .modal-footer .btn,
  #expenseEntryForm .modal-footer .btn{
    min-width:84px!important;
    padding-inline:10px!important;
  }
}

/* 2026-09-08 Expenses final touch polish: invisible entry scrollbars + stable wallet filter. */
#expenseModal:has(#expenseTopupForm:not(.hide)) .modal-body,
#expenseModal:has(#expenseEntryForm:not(.hide)) .modal-body{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
#expenseModal:has(#expenseTopupForm:not(.hide)) .modal-body::-webkit-scrollbar,
#expenseModal:has(#expenseEntryForm:not(.hide)) .modal-body::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}

#expensesPanel .expense-wallet-select-control,
#expensesPanel .expense-wallet-select-control:is(:hover,:focus-within,:active){
  transform:none!important;
  filter:none!important;
  box-shadow:none!important;
}
#expensesPanel .expense-wallet-select-control::before,
#expensesPanel .expense-wallet-select-control::after{
  content:none!important;
  display:none!important;
}
#expensesPanel .expense-wallet-select-filter{
  transform:none!important;
  filter:none!important;
  transition:border-color .14s ease,background-color .14s ease,color .14s ease!important;
  -webkit-tap-highlight-color:transparent!important;
  touch-action:manipulation;
}
#expensesPanel .expense-wallet-select-filter:is(:hover,:focus,:focus-visible,:active){
  transform:none!important;
  filter:none!important;
  outline:none!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--glass-highlight,#fff) 38%,transparent)!important;
  border-color:color-mix(in srgb,var(--primary) 48%,var(--line))!important;
}
@media (max-width:768px){
  #expensesPanel .expense-wallet-select-filter,
  #expensesPanel .expense-wallet-select-filter:is(:hover,:focus,:focus-visible,:active){
    transform:none!important;
    filter:none!important;
    animation:none!important;
    transition:border-color .12s ease,background-color .12s ease,color .12s ease!important;
  }
}

/* 2026-09-08 Transfer entry parity with Add Money / Add Expense. */
#transferModal.modal{
  place-items:center!important;
}
#transferModal .transfer-entry-dialog{
  width:min(560px,calc(100vw - 24px))!important;
  max-width:560px!important;
  max-height:min(720px,calc(100dvh - 36px))!important;
  margin:auto!important;
  align-self:center!important;
}
#transferModal .modal-body{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
#transferModal .modal-body::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}
#transferForm .modal-footer{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  margin-top:4px!important;
  padding:4px 0 1px!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border:0!important;
}
#transferForm .modal-footer .btn{
  flex:0 0 auto!important;
  min-width:96px!important;
  min-height:34px!important;
  height:34px!important;
  padding:0 15px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  font-size:.72rem!important;
  line-height:1!important;
}
#transferForm .expense-optional-details{
  border-radius:13px!important;
}
#transferForm .expense-optional-details>summary{
  min-height:36px!important;
  padding:6px 10px!important;
  gap:7px!important;
  font-size:.76rem!important;
  line-height:1.15!important;
}
#transferForm .expense-optional-details>summary::after{
  display:none!important;
  content:none!important;
}
#transferForm .expense-optional-details>summary>small{
  font-size:.62rem!important;
  line-height:1.12!important;
}
#transferForm .expense-optional-chevron{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  display:inline-grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--primary)!important;
  font-size:.72rem!important;
}
#transferForm .expense-chevron-down{display:none}
#transferForm .expense-optional-details[open] .expense-chevron-right{display:none}
#transferForm .expense-optional-details[open] .expense-chevron-down{display:inline-block}
#transferForm .expense-optional-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px 10px!important;
  align-items:stretch!important;
}
#transferForm .expense-optional-grid>.field,
#transferForm .expense-optional-grid>.field.w12,
#transferForm .expense-optional-grid>.expense-optional-wide{
  grid-column:span 1!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
}
#transferForm .expense-optional-grid>.field>label{
  min-height:1.45em!important;
  display:flex!important;
  align-items:flex-end!important;
  column-gap:3px!important;
}
#transferForm .expense-optional-grid .optional-label{
  flex:0 0 auto!important;
  margin:0!important;
  white-space:nowrap!important;
  color:var(--muted)!important;
  font-style:normal!important;
  font-weight:650!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
#transferForm .expense-optional-grid>.field :is(.input,.select){width:100%!important}
#transferForm .transfer-money-input{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:5px;
  align-items:center;
  min-width:0;
}
#transferForm .transfer-money-input .input{min-width:0;width:100%}
#transferForm .transfer-currency-indicator{
  min-width:30px;
  color:var(--muted);
  font-size:.70rem;
  font-weight:750;
  text-align:center;
}
#transferForm .transfer-readonly-amount{
  background:var(--panel-bg,var(--surface-soft))!important;
}
#transferForm .transfer-conversion-help{
  margin-right:3px;
  color:var(--muted);
  font-size:.62rem;
  font-weight:650;
}

@media (max-width:720px){
  #transferModal.modal{
    place-items:center!important;
    padding:max(18px,env(safe-area-inset-top,0px)) max(14px,env(safe-area-inset-left,0px)) max(18px,env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-right,0px))!important;
  }
  #transferModal .transfer-entry-dialog{
    width:100%!important;
    max-width:100%!important;
    max-height:calc(100dvh - 36px)!important;
    margin:auto!important;
    align-self:center!important;
    border-radius:18px!important;
  }
  #transferForm .field>label{
    font-size:.64rem!important;
    line-height:1.18!important;
  }
  #transferForm :is(.input,.select){
    min-height:34px!important;
    height:34px!important;
    padding:5px 7px!important;
    font-size:.70rem!important;
    line-height:1.15!important;
  }
  #transferForm .optional-label{font-size:.54rem!important}
  #transferForm .modal-footer .btn{
    min-width:90px!important;
    min-height:32px!important;
    height:32px!important;
    padding:0 12px!important;
    font-size:.67rem!important;
  }
  #transferForm .expense-optional-details>summary{
    min-height:32px!important;
    padding:5px 8px!important;
    gap:5px!important;
    font-size:.64rem!important;
  }
  #transferForm .expense-optional-details>summary>small{
    max-width:44%!important;
    font-size:.51rem!important;
  }
  #transferForm .expense-optional-chevron{
    width:16px!important;
    height:16px!important;
    flex-basis:16px!important;
    font-size:.64rem!important;
  }
  #transferForm .expense-optional-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px 7px!important;
    padding:5px 8px 9px!important;
  }
  #transferForm .expense-optional-grid>.field>label{
    min-height:2.35em!important;
    margin-bottom:3px!important;
    font-size:.60rem!important;
    line-height:1.16!important;
  }
  #transferForm .transfer-currency-indicator{
    min-width:27px!important;
    font-size:.60rem!important;
  }
  #transferForm .transfer-conversion-help{font-size:.52rem!important}
}

@media (max-width:360px){
  #transferForm .modal-footer{gap:6px!important}
  #transferForm .modal-footer .btn{
    min-width:84px!important;
    padding-inline:10px!important;
  }
}

/* 2026-09-08 Wallet account particulars: entry/edit parity, protected detail view and transfer verification. */
#expenseModal:has(#expenseAccountForm:not(.hide)) .modal-body{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
#expenseModal:has(#expenseAccountForm:not(.hide)) .modal-body::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}
#expenseAccountForm .modal-footer{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  margin-top:4px!important;
  padding:4px 0 1px!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border:0!important;
}
#expenseAccountForm .modal-footer .btn{
  flex:0 0 auto!important;
  min-width:96px!important;
  min-height:34px!important;
  height:34px!important;
  padding:0 15px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  font-size:.72rem!important;
  line-height:1!important;
}
#expenseAccountForm .expense-optional-details,
#editExpenseAccountDetailsGroup .expense-optional-details{
  border-radius:13px!important;
}
#expenseAccountForm .expense-optional-details>summary,
#editExpenseAccountDetailsGroup .expense-optional-details>summary{
  min-height:36px!important;
  padding:6px 10px!important;
  gap:7px!important;
  font-size:.76rem!important;
  line-height:1.15!important;
}
#expenseAccountForm .expense-optional-details>summary::after,
#editExpenseAccountDetailsGroup .expense-optional-details>summary::after{
  display:none!important;
  content:none!important;
}
#expenseAccountForm .expense-optional-details>summary>small,
#editExpenseAccountDetailsGroup .expense-optional-details>summary>small{
  font-size:.62rem!important;
  line-height:1.12!important;
}
#expenseAccountForm .expense-optional-chevron,
#editExpenseAccountDetailsGroup .expense-optional-chevron{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  display:inline-grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--primary)!important;
  font-size:.72rem!important;
}
#expenseAccountForm .expense-chevron-down,
#editExpenseAccountDetailsGroup .expense-chevron-down{display:none}
#expenseAccountForm .expense-optional-details[open] .expense-chevron-right,
#editExpenseAccountDetailsGroup .expense-optional-details[open] .expense-chevron-right{display:none}
#expenseAccountForm .expense-optional-details[open] .expense-chevron-down,
#editExpenseAccountDetailsGroup .expense-optional-details[open] .expense-chevron-down{display:inline-block}
#expenseAccountForm .expense-optional-grid,
#editExpenseAccountDetailsGroup .expense-optional-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px 10px!important;
  align-items:stretch!important;
}
#expenseAccountForm .expense-optional-grid>.field,
#editExpenseAccountDetailsGroup .expense-optional-grid>.field{
  grid-column:span 1!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
}
#expenseAccountForm .expense-optional-grid>.field>label,
#editExpenseAccountDetailsGroup .expense-optional-grid>.field>label{
  min-height:1.45em!important;
  display:flex!important;
  align-items:flex-end!important;
  column-gap:3px!important;
}
#expenseAccountForm .expense-optional-grid .optional-label,
#editExpenseAccountDetailsGroup .expense-optional-grid .optional-label{
  flex:0 0 auto!important;
  margin:0!important;
  white-space:nowrap!important;
  color:var(--muted)!important;
  font-style:normal!important;
  font-weight:650!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
#expenseAccountForm .expense-optional-grid :is(.input,.select),
#editExpenseAccountDetailsGroup .expense-optional-grid :is(.input,.select){width:100%!important}

.transfer-account-mini{
  margin-top:5px;
  padding:6px 7px;
  border:1px solid color-mix(in srgb,var(--line) 82%,transparent);
  border-radius:10px;
  background:color-mix(in srgb,var(--surface-soft) 84%,transparent);
}
.transfer-account-mini-inner{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px 8px;
}
.transfer-account-mini-inner>span{min-width:0;display:flex;flex-direction:column;gap:1px}
.transfer-account-mini-inner small{color:var(--muted);font-size:.54rem;font-weight:700;line-height:1.05;text-transform:uppercase;letter-spacing:.02em}
.transfer-account-mini-inner strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-strong);font-size:.64rem;line-height:1.15;font-weight:750}

#expenseAccountDetailsModal.modal{
  place-items:center!important;
  z-index:1185!important;
  padding:24px!important;
}
#expenseAccountDetailsModal .expense-account-details-dialog{
  width:min(590px,calc(100vw - 48px))!important;
  max-width:590px!important;
  max-height:calc(100dvh - 48px)!important;
  margin:auto!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border-radius:20px!important;
}
#expenseAccountDetailsModal .modal-head{padding:12px 14px 9px!important}
#expenseAccountDetailsModal .modal-head h3{font-size:1rem!important}
#expenseAccountDetailsModal .modal-head p{margin-top:2px!important;font-size:.70rem!important}
#expenseAccountDetailsModal .modal-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:10px 14px 14px!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
#expenseAccountDetailsModal .modal-body::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.expense-account-details-hero{
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-soft);
}
.expense-account-details-logo{
  width:46px;height:46px;flex:0 0 46px;
  display:grid;place-items:center;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface-elevated);
}
.expense-account-details-logo img{max-width:38px;max-height:38px;object-fit:contain}
.expense-account-details-hero>div{min-width:0;display:flex;flex-direction:column;gap:2px}
.expense-account-details-hero small{color:var(--primary);font-size:.59rem;font-weight:850;letter-spacing:.06em}
.expense-account-details-hero strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-strong);font-size:.94rem}
.expense-account-details-hero span{color:var(--muted);font-size:.69rem}
.expense-account-details-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:9px;
}
.expense-account-detail-card{
  min-width:0;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface-elevated);
}
.expense-account-detail-card>small{display:block;margin-bottom:3px;color:var(--muted);font-size:.61rem;font-weight:700}
.expense-account-detail-card>div{min-width:0;display:flex;align-items:center;gap:6px}
.expense-account-detail-card strong{min-width:0;overflow-wrap:anywhere;color:var(--text-strong);font-size:.78rem;line-height:1.22}
.expense-account-detail-card.is-sensitive strong{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.02em}
.expense-account-reveal{width:28px!important;min-width:28px!important;height:28px!important;flex:0 0 28px!important;border-radius:50%!important;font-size:.68rem!important}
.expense-account-details-empty{display:flex;align-items:flex-start;gap:8px;margin-top:9px;padding:10px 11px;border:1px dashed var(--line-strong);border-radius:11px;background:var(--surface-soft);color:var(--muted);font-size:.72rem;line-height:1.35}
.expense-account-details-empty i{margin-top:1px;color:var(--primary)}
.wallet-account-details-btn{white-space:nowrap}

@media(max-width:720px){
  #expenseAccountForm .field>label{font-size:.64rem!important;line-height:1.18!important}
  #expenseAccountForm :is(.input,.select){min-height:34px!important;height:34px!important;padding:5px 7px!important;font-size:.70rem!important;line-height:1.15!important}
  #expenseAccountForm .modal-footer .btn{min-width:90px!important;min-height:32px!important;height:32px!important;padding:0 12px!important;font-size:.67rem!important}
  #expenseAccountForm .expense-optional-details>summary,
  #editExpenseAccountDetailsGroup .expense-optional-details>summary{min-height:32px!important;padding:5px 8px!important;gap:5px!important;font-size:.64rem!important}
  #expenseAccountForm .expense-optional-details>summary>small,
  #editExpenseAccountDetailsGroup .expense-optional-details>summary>small{max-width:44%!important;font-size:.51rem!important}
  #expenseAccountForm .expense-optional-chevron,
  #editExpenseAccountDetailsGroup .expense-optional-chevron{width:16px!important;height:16px!important;flex-basis:16px!important;font-size:.64rem!important}
  #expenseAccountForm .expense-optional-grid,
  #editExpenseAccountDetailsGroup .expense-optional-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px 7px!important;padding:5px 8px 9px!important}
  #expenseAccountForm .expense-optional-grid>.field>label,
  #editExpenseAccountDetailsGroup .expense-optional-grid>.field>label{min-height:2.35em!important;margin-bottom:3px!important;font-size:.60rem!important;line-height:1.16!important}
  .transfer-account-mini{padding:5px 6px;border-radius:9px}
  .transfer-account-mini-inner{gap:3px 6px}
  .transfer-account-mini-inner small{font-size:.48rem}
  .transfer-account-mini-inner strong{font-size:.57rem}
  #expenseAccountDetailsModal.modal{
    padding:max(18px,env(safe-area-inset-top,0px)) max(14px,env(safe-area-inset-left,0px)) max(18px,env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-right,0px))!important;
  }
  #expenseAccountDetailsModal .expense-account-details-dialog{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 36px)!important;margin:auto!important;border-radius:18px!important}
  #expenseAccountDetailsModal .modal-head{padding:10px 11px 7px!important}
  #expenseAccountDetailsModal .modal-body{padding:8px 10px 10px!important}
  .expense-account-details-hero{padding:9px 10px;gap:9px;border-radius:12px}
  .expense-account-details-logo{width:40px;height:40px;flex-basis:40px;border-radius:11px}
  .expense-account-details-logo img{max-width:34px;max-height:34px}
  .expense-account-details-grid{gap:6px;margin-top:7px}
  .expense-account-detail-card{padding:7px 8px;border-radius:10px}
  .expense-account-detail-card>small{font-size:.55rem}
  .expense-account-detail-card strong{font-size:.69rem}
}
@media(max-width:720px){
  #expenseAccountForm .modal-grid{gap:6px!important}
  #expenseAccountForm .field{gap:3px!important;min-width:0!important}
  #expenseAccountForm .optional-label{font-size:.54rem!important}
}
@media(max-width:560px){
  #expenseAccountForm .modal-grid>.field.w6{grid-column:span 6!important}
  #expenseAccountForm .modal-grid>.field.w12,
  #expenseAccountForm .modal-grid>.expense-optional-details{grid-column:span 12!important}
}
@media(max-width:360px){
  #expenseAccountForm .modal-footer{gap:6px!important}
  #expenseAccountForm .modal-footer .btn{min-width:84px!important;padding-inline:10px!important}
}

/* Payment-card safety: the app never accepts a full PAN; only the final four digits are editable. */
#expenseAccountForm .expense-card-last4-input,
#editExpenseAccountDetailsGroup .expense-card-last4-input{
  width:100%;
  min-width:0;
  min-height:38px;
  display:grid;
  grid-template-columns:auto minmax(56px,1fr);
  align-items:center;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  overflow:hidden;
  transition:border-color .16s ease,box-shadow .16s ease;
}
#expenseAccountForm .expense-card-last4-input:focus-within,
#editExpenseAccountDetailsGroup .expense-card-last4-input:focus-within{
  border-color:var(--primary);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent);
}
#expenseAccountForm .expense-card-last4-input>span,
#editExpenseAccountDetailsGroup .expense-card-last4-input>span{
  padding-right:10px;
  color:var(--muted);
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.015em;
  white-space:nowrap;
  pointer-events:none;
}
#expenseAccountForm .expense-card-last4-input>.input,
#editExpenseAccountDetailsGroup .expense-card-last4-input>.input{
  width:100%!important;
  min-width:0!important;
  height:36px!important;
  min-height:36px!important;
  padding:0 2px 0 9px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  color:var(--text-strong)!important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.78rem!important;
  font-weight:800!important;
  letter-spacing:.08em;
}
@media (max-width:720px){
  #expenseAccountForm .expense-card-last4-input,
  #editExpenseAccountDetailsGroup .expense-card-last4-input{min-height:34px;border-radius:9px}
  #expenseAccountForm .expense-card-last4-input>span,
  #editExpenseAccountDetailsGroup .expense-card-last4-input>span{padding-right:8px;font-size:.62rem}
  #expenseAccountForm .expense-card-last4-input>.input,
  #editExpenseAccountDetailsGroup .expense-card-last4-input>.input{height:32px!important;min-height:32px!important;padding-left:7px!important;font-size:.68rem!important}
}

/* Expenses audit lifecycle + compact transaction pagination */
.expense-record-disabled{
  filter:saturate(.2);
  background:color-mix(in srgb,var(--panel, #fff) 84%,var(--muted,#8b93a6) 16%);
}
.expense-record-disabled td{color:var(--muted,#7b8495)!important}
.expense-record-disabled td strong,.expense-record-disabled td b{color:inherit!important}
.expense-record-disabled.is-archived{opacity:.7;filter:grayscale(.72)}
.expense-record-disabled .expense-tx-menu-btn,.expense-record-disabled .expense-record-menu-btn{opacity:.9}
.expense-audit-badge-host{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin-top:.42rem}
.expense-audit-badge{
  display:inline-flex;align-items:center;gap:.34rem;min-height:23px;padding:.18rem .52rem;border-radius:999px;
  border:1px solid color-mix(in srgb,var(--border,#d8dce5) 78%,transparent);font-size:.69rem;font-weight:800;line-height:1.05;
  letter-spacing:.01em;vertical-align:middle;margin-right:.42rem;background:var(--panel,#fff);color:var(--muted,#6d7585);
}
button.expense-audit-badge{font:inherit;cursor:pointer}
.expense-audit-badge.is-deleted{background:color-mix(in srgb,var(--danger,#d84a4a) 9%,var(--panel,#fff));color:var(--danger,#b73a3a)}
.expense-audit-badge.is-archived{background:color-mix(in srgb,var(--text,#202633) 9%,var(--panel,#fff));color:var(--text,#303642)}
.expense-audit-badge.is-edited{background:color-mix(in srgb,var(--primary,#4668df) 9%,var(--panel,#fff));color:var(--primary,#3e5dcc)}
.expense-audit-badge.is-clickable:hover{transform:none;box-shadow:none}
.expense-tx-detail-dialog .expense-audit-badge-host .expense-audit-badge{margin-right:0}
.expense-audit-history-toolbar{display:flex;justify-content:flex-start;margin-bottom:.75rem}
.expense-audit-history-toolbar .btn{min-height:34px;padding:.42rem .72rem;border-radius:999px}
.expense-audit-history{display:grid;gap:.72rem}
.expense-audit-event{border:1px solid var(--border,#e1e4ea);border-radius:14px;padding:.75rem;background:var(--panel,#fff)}
.expense-audit-event header{display:flex;align-items:flex-start;justify-content:space-between;gap:.7rem;margin-bottom:.6rem}
.expense-audit-event-title{font-size:.8rem;font-weight:900}
.expense-audit-event header small{font-size:.69rem;color:var(--muted,#758091);text-align:left}
.expense-audit-diff{display:grid;gap:.38rem}
.expense-audit-diff>div{display:grid;grid-template-columns:minmax(92px,.65fr) minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.5rem;padding:.4rem .48rem;border-radius:9px;background:color-mix(in srgb,var(--panel,#fff) 92%,var(--text,#222) 8%)}
.expense-audit-diff small{font-weight:800;color:var(--muted,#70798a)}
.expense-audit-diff span,.expense-audit-diff strong{font-size:.73rem;overflow-wrap:anywhere}
.expense-audit-diff i{font-size:.62rem;color:var(--muted,#70798a)}
.expense-audit-event-note{font-size:.75rem;color:var(--muted,#70798a);margin:.2rem 0}
.expense-audit-raw{margin-top:.58rem;border-top:1px dashed var(--border,#dde1e8);padding-top:.48rem}
.expense-audit-raw summary{cursor:pointer;font-size:.7rem;font-weight:800;color:var(--muted,#70798a)}
.expense-audit-raw>div{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:.45rem}
.expense-audit-raw label{display:block;font-size:.65rem;font-weight:900;margin-bottom:.2rem}
.expense-audit-raw pre{margin:0;max-height:190px;overflow:auto;border-radius:9px;padding:.55rem;font-size:.63rem;line-height:1.4;background:color-mix(in srgb,var(--panel,#fff) 87%,var(--text,#222) 13%);white-space:pre-wrap;overflow-wrap:anywhere}
.expense-audit-empty{text-align:center;padding:1rem;color:var(--muted,#70798a)}
.expense-pagination{display:flex;align-items:center;justify-content:center;gap:.42rem;padding:.72rem .3rem .12rem}
.expense-pagination-pages{display:flex;align-items:center;gap:.28rem}
.expense-page-number,.expense-page-nav{appearance:none;border:1px solid var(--border,#dce0e7);background:var(--panel,#fff);color:var(--text,#242936);height:31px;min-width:31px;border-radius:999px;display:inline-grid;place-items:center;font-size:.72rem;font-weight:800;padding:0 .48rem;box-shadow:none;transform:none}
.expense-page-number.is-active{background:var(--text,#242936);color:var(--panel,#fff);border-color:var(--text,#242936)}
.expense-page-number:hover,.expense-page-nav:hover{transform:none;box-shadow:none}
.expense-page-nav:disabled{opacity:.35;cursor:not-allowed}
.expense-page-ellipsis{font-size:.75rem;color:var(--muted,#778090);padding:0 .08rem}
.expense-pagination-mobile{display:none;font-size:.72rem;font-weight:800;color:var(--muted,#778090);min-width:46px;text-align:center}
@media(max-width:680px){
  .expense-audit-badge{font-size:.64rem;padding:.16rem .42rem}
  .expense-audit-event{padding:.62rem;border-radius:12px}
  .expense-audit-event header{display:grid;gap:.18rem}
  .expense-audit-event header small{text-align:right}
  .expense-audit-diff>div{grid-template-columns:1fr;gap:.16rem}
  .expense-audit-diff i{transform:rotate(90deg);justify-self:start;margin:.08rem 0}
  .expense-audit-raw>div{grid-template-columns:1fr}
  .expense-pagination-pages{display:none}
  .expense-pagination-mobile{display:inline-block}
  .expense-pagination{padding-top:.58rem}
  .expense-page-nav{height:30px;min-width:38px}
}

/* Build 155 — unmistakable, motion-safe Expenses paging and clickable history affordance. */
.expense-page-number,.expense-page-nav{
  cursor:pointer;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,opacity .16s ease;
  -webkit-tap-highlight-color:transparent;
}
.expense-page-number:not(.is-active):not(:disabled):hover,
.expense-page-nav:not(:disabled):hover{
  background:color-mix(in srgb,var(--panel,#fff) 88%,var(--text,#242936) 12%);
  border-color:color-mix(in srgb,var(--border,#dce0e7) 55%,var(--text,#242936) 45%);
  box-shadow:0 3px 10px color-mix(in srgb,var(--text,#242936) 12%,transparent);
}
.expense-page-number:not(:disabled):active,.expense-page-nav:not(:disabled):active{
  background:color-mix(in srgb,var(--panel,#fff) 82%,var(--text,#242936) 18%);
  box-shadow:none;
}
.expense-page-number:focus-visible,.expense-page-nav:focus-visible{
  outline:2px solid color-mix(in srgb,var(--text,#242936) 70%,transparent);
  outline-offset:2px;
}
.expense-page-number.is-active{cursor:default;box-shadow:0 2px 7px color-mix(in srgb,var(--text,#242936) 14%,transparent)}
.expense-pagination.is-loading .expense-page-number,
.expense-pagination.is-loading .expense-page-nav{pointer-events:none;opacity:.55;cursor:progress}
.expense-tx-row[role="button"]{cursor:pointer;transition:background-color .14s ease,box-shadow .14s ease}
.expense-tx-row[role="button"]:hover td{background:color-mix(in srgb,var(--panel,#fff) 91%,var(--text,#242936) 9%)}
.expense-tx-row[role="button"]:focus-visible{outline:2px solid color-mix(in srgb,var(--text,#242936) 68%,transparent);outline-offset:-2px}
.expense-item-row>summary{cursor:pointer}
.expense-item-row>summary:hover{background:color-mix(in srgb,var(--panel,#fff) 94%,var(--text,#242936) 6%)}
@media(max-width:680px){
  .expense-page-number,.expense-page-nav{box-shadow:none}
  .expense-tx-row[role="button"]:hover td,.expense-item-row>summary:hover{background:inherit}
}

/* Build 167 — wallet details transaction paging. */
.section-details-actions .wallet-account-details-btn,
.section-details-actions .wallet-transactions-btn{
  min-height:30px!important;
  padding:5px 9px!important;
  border-radius:9px!important;
  gap:5px;
  white-space:nowrap;
  font-size:.68rem!important;
}
.section-details-actions .wallet-transactions-btn.is-active{
  color:var(--primary);
  border-color:color-mix(in srgb,var(--primary) 35%,var(--line));
  background:color-mix(in srgb,var(--primary) 7%,var(--panel));
}
.wallet-transactions-view{display:grid;gap:10px;min-width:0}
.wallet-transactions-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:12px;
  padding:0 1px 2px;border-bottom:1px solid var(--line);
}
.wallet-transactions-head>div{display:grid;gap:2px}
.wallet-transactions-head span{font-size:.65rem;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.wallet-transactions-head strong{font-size:.8rem;color:var(--text)}
.wallet-transactions-head small{font-size:.67rem;color:var(--muted);text-align:left}
.wallet-transactions-list{display:grid;gap:6px}
.wallet-transaction-row{
  display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;
  min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:11px;
  background:var(--panel);box-shadow:0 2px 7px rgba(0,0,0,.025);
}
.wallet-transaction-icon{
  width:34px;height:34px;border-radius:9px;display:grid;place-items:center;
  color:var(--primary);background:color-mix(in srgb,var(--primary) 9%,transparent);font-size:.72rem;
}
.wallet-transaction-row.is-in .wallet-transaction-icon{color:var(--success);background:color-mix(in srgb,var(--success) 10%,transparent)}
.wallet-transaction-row.is-out .wallet-transaction-icon{color:var(--danger);background:color-mix(in srgb,var(--danger) 9%,transparent)}
.wallet-transaction-main{display:grid;gap:3px;min-width:0}
.wallet-transaction-title{display:flex;align-items:center;gap:7px;min-width:0}
.wallet-transaction-title strong{font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.wallet-transaction-title span{flex:0 0 auto;font-size:.59rem;font-weight:800;color:var(--muted);padding:2px 5px;border:1px solid var(--line);border-radius:999px;background:var(--panel-2)}
.wallet-transaction-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px;color:var(--muted);font-size:.63rem}
.wallet-transaction-meta span{display:inline-flex;align-items:center;gap:4px;min-width:0}
.wallet-transaction-meta i{font-size:.58rem}
.wallet-transaction-main p{margin:0;color:var(--muted);font-size:.66rem;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wallet-transaction-amount{font-size:.78rem;font-weight:850;white-space:nowrap;text-align:left}
.wallet-transaction-amount.is-in{color:var(--success)}
.wallet-transaction-amount.is-out{color:var(--danger)}
.wallet-transactions-pagination{display:flex;align-items:center;justify-content:center;gap:6px;padding:3px 0 0}
.wallet-transaction-page-numbers{display:flex;align-items:center;gap:4px}
.wallet-transaction-page-number,.wallet-transaction-page-nav{
  appearance:none;border:1px solid var(--line);background:var(--panel);color:var(--text);
  min-width:30px;height:30px;border-radius:8px;padding:0 8px;font:inherit;font-size:.68rem;font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;box-shadow:none;
}
.wallet-transaction-page-number.is-active{background:var(--primary);border-color:var(--primary);color:#fff;cursor:default}
.wallet-transaction-page-number:not(.is-active):hover,.wallet-transaction-page-nav:not(:disabled):hover{background:color-mix(in srgb,var(--primary) 7%,var(--panel));border-color:color-mix(in srgb,var(--primary) 30%,var(--line))}
.wallet-transaction-page-nav:disabled{opacity:.38;cursor:not-allowed}
.wallet-transaction-page-gap{color:var(--muted);font-size:.7rem;padding:0 1px}
.wallet-transactions-loading,.wallet-transactions-empty{
  min-height:210px;border:1px dashed var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel-2) 68%,transparent);
  display:grid;place-items:center;align-content:center;text-align:center;gap:6px;padding:22px;color:var(--muted)
}
.wallet-transactions-loading strong,.wallet-transactions-empty strong{font-size:.82rem;color:var(--text)}
.wallet-transactions-loading small,.wallet-transactions-empty span{font-size:.68rem;max-width:360px}
.wallet-transactions-empty>i{font-size:1.05rem;color:var(--primary)}
.wallet-transactions-empty.is-error>i{color:var(--danger)}
.wallet-transactions-spinner{width:22px;height:22px;border-radius:50%;border:2px solid color-mix(in srgb,var(--primary) 18%,var(--line));border-top-color:var(--primary);animation:walletTransactionsSpin .72s linear infinite}
@keyframes walletTransactionsSpin{to{transform:rotate(360deg)}}
@media(max-width:680px){
  .section-details-actions .wallet-account-details-btn,
  .section-details-actions .wallet-transactions-btn{min-height:28px!important;padding:4px 7px!important;font-size:.63rem!important}
  .section-details-actions .wallet-account-details-btn span,
  .section-details-actions .wallet-transactions-btn span{display:inline}
  .wallet-transactions-head{align-items:flex-start;display:grid;gap:2px}
  .wallet-transactions-head small{text-align:right}
  .wallet-transaction-row{grid-template-columns:30px minmax(0,1fr);gap:8px;padding:8px}
  .wallet-transaction-icon{width:30px;height:30px;border-radius:8px}
  .wallet-transaction-amount{grid-column:2/3;text-align:right;margin-top:1px;font-size:.74rem}
  .wallet-transaction-main p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .wallet-transaction-title{align-items:flex-start;flex-wrap:wrap;gap:4px 6px}
  .wallet-transactions-pagination{gap:4px}
  .wallet-transaction-page-number,.wallet-transaction-page-nav{height:29px;min-width:29px;padding:0 6px;font-size:.64rem}
  .wallet-transaction-page-nav span{display:none}
}
@media(prefers-reduced-motion:reduce){.wallet-transactions-spinner{animation:none}}


/* Wallet transaction overlay polish — preserve scrolling without visible bars. */
#sectionDetailsBody:has(> .wallet-transactions-view){
  scrollbar-width:none;
  -ms-overflow-style:none;
}
#sectionDetailsBody:has(> .wallet-transactions-view)::-webkit-scrollbar{
  display:none;
  width:0;
  height:0;
}
.section-details-actions .wallet-account-details-btn,
.section-details-actions .wallet-transactions-btn{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:6px!important;
}
.section-details-actions .wallet-account-details-btn>i,
.section-details-actions .wallet-transactions-btn>i{
  flex:0 0 auto;
}

/* ===== SOURCE: Assets/style/44-financial-audit-report.css ===== */
/* Triplem VIP Build 001 — Financial Audit & Control Report */
.financial-audit-section{overflow:visible}
.financial-audit-head{padding-bottom:14px}
.financial-audit-readonly{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.02em;color:var(--muted);background:color-mix(in srgb,var(--card) 84%,var(--border));border:1px solid var(--border)}
.financial-audit-export-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.financial-audit-export-tools .btn{min-height:36px;border-radius:12px}
.financial-audit-runbar{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) minmax(160px,1fr) auto;gap:10px;align-items:end;margin-top:14px;padding:12px;border:1px solid var(--border);border-radius:16px;background:color-mix(in srgb,var(--card) 94%,var(--primary) 6%)}
.financial-audit-runbar label{display:grid;gap:5px;min-width:0}
.financial-audit-runbar label>span{font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
.financial-audit-runbar .input,.financial-audit-runbar .select{width:100%;min-height:39px}
.financial-audit-run-btn{min-height:39px;border-radius:12px;white-space:nowrap}
.financial-audit-root{display:grid;gap:14px;margin-top:14px}
.financial-audit-welcome{display:flex;align-items:center;gap:13px;padding:18px;border:1px dashed var(--border);border-radius:16px;background:color-mix(in srgb,var(--card) 97%,var(--primary) 3%);color:var(--muted)}
.financial-audit-welcome>i{font-size:24px;color:var(--primary)}
.financial-audit-welcome div{display:grid;gap:3px}.financial-audit-welcome strong{color:var(--text)}.financial-audit-welcome span{font-size:12px;line-height:1.5}
.financial-audit-loading{display:grid;place-items:center;gap:8px;min-height:220px;border:1px solid var(--border);border-radius:16px;background:var(--card);color:var(--muted);text-align:center}
.financial-audit-loading i{font-size:24px;color:var(--primary)}
.financial-audit-period-banner{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:16px;border:1px solid var(--border);background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 10%,var(--card)),var(--card))}
.financial-audit-period-banner h4{margin:0 0 4px;font-size:16px}.financial-audit-period-banner p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.financial-audit-scope{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.financial-audit-scope span{padding:5px 8px;border-radius:999px;border:1px solid var(--border);font-size:10px;font-weight:800;color:var(--muted);background:var(--card)}.financial-audit-scope span.is-on{color:var(--primary);border-color:color-mix(in srgb,var(--primary) 35%,var(--border))}
.financial-audit-currency-block{display:grid;gap:9px}.financial-audit-currency-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.financial-audit-currency-title h4{margin:0;font-size:14px}.financial-audit-currency-title small{color:var(--muted)}
.financial-audit-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.financial-audit-metric{min-width:0;padding:11px 12px;border:1px solid var(--border);border-radius:14px;background:var(--card);box-shadow:0 8px 22px rgba(15,23,42,.035)}
.financial-audit-metric small{display:block;margin-bottom:5px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.035em;text-transform:uppercase}.financial-audit-metric strong{display:block;min-width:0;font-size:15px;line-height:1.25;overflow-wrap:anywhere}.financial-audit-metric.is-in strong{color:#16834a}.financial-audit-metric.is-out strong{color:#c73535}.financial-audit-metric.is-net strong{color:var(--primary)}
.financial-audit-note{padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:color-mix(in srgb,var(--card) 96%,var(--primary) 4%);font-size:11px;line-height:1.55;color:var(--muted)}
.financial-audit-module-card,.financial-audit-activity-card,.financial-audit-exception-card{border:1px solid var(--border);border-radius:16px;background:var(--card);overflow:hidden}
.financial-audit-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid var(--border)}.financial-audit-card-head h4{margin:0;font-size:14px}.financial-audit-card-head p{margin:3px 0 0;color:var(--muted);font-size:11px}.financial-audit-card-head-main{min-width:0}
.financial-audit-flow-select{min-width:145px;min-height:34px;font-size:12px}
.financial-audit-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px}
.financial-audit-module-row{padding:10px 11px;border:1px solid var(--border);border-radius:12px;background:color-mix(in srgb,var(--card) 97%,var(--primary) 3%)}.financial-audit-module-row-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.financial-audit-module-row-head strong{font-size:12px}.financial-audit-module-row-head span{font-size:10px;color:var(--muted)}.financial-audit-module-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.financial-audit-module-values span{display:grid;gap:2px;font-size:9px;color:var(--muted)}.financial-audit-module-values b{font-size:11px;color:var(--text);font-weight:800}
.financial-audit-exceptions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px}.financial-audit-exception{display:grid;gap:3px;padding:9px 10px;border:1px solid var(--border);border-radius:12px}.financial-audit-exception small{font-size:9px;text-transform:uppercase;color:var(--muted);font-weight:800}.financial-audit-exception strong{font-size:14px}
.financial-audit-table-wrap{overflow-x:auto;scrollbar-width:none}.financial-audit-table-wrap::-webkit-scrollbar{display:none}.financial-audit-table{width:100%;border-collapse:collapse;min-width:900px}.financial-audit-table th{padding:9px 10px;text-align:right;font-size:9px;text-transform:uppercase;letter-spacing:.045em;color:var(--muted);background:color-mix(in srgb,var(--card) 94%,var(--border));border-bottom:1px solid var(--border);white-space:nowrap}.financial-audit-table td{padding:10px;border-bottom:1px solid var(--border);font-size:11px;vertical-align:middle}.financial-audit-table tbody tr{transition:background .16s ease}.financial-audit-table tbody tr:hover{background:color-mix(in srgb,var(--primary) 5%,var(--card))}.financial-audit-table tbody tr:last-child td{border-bottom:0}.financial-audit-ref{font-weight:800;color:var(--primary);font-size:10px}.financial-audit-maincell{display:grid;gap:2px}.financial-audit-maincell strong{font-size:11px}.financial-audit-maincell span{max-width:300px;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.financial-audit-flow{display:inline-flex;align-items:center;justify-content:center;min-width:76px;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.035em;border:1px solid var(--border)}.financial-audit-flow.is-in{color:#16834a;background:rgba(22,131,74,.08)}.financial-audit-flow.is-out{color:#c73535;background:rgba(199,53,53,.08)}.financial-audit-flow.is-internal{color:#7459b5;background:rgba(116,89,181,.08)}.financial-audit-flow.is-noncash{color:#8a6519;background:rgba(138,101,25,.08)}.financial-audit-flow.is-accounting{color:#28708d;background:rgba(40,112,141,.08)}.financial-audit-flow.is-audit{color:var(--muted);background:color-mix(in srgb,var(--card) 80%,var(--border))}.financial-audit-amount{text-align:left;font-weight:800;white-space:nowrap}.financial-audit-amount.is-in{color:#16834a}.financial-audit-amount.is-out{color:#c73535}.financial-audit-muted{color:var(--muted)}
.financial-audit-pagination{display:flex;align-items:center;justify-content:center;gap:6px;padding:12px;border-top:1px solid var(--border)}.financial-audit-page-btn{display:inline-grid;place-items:center;min-width:34px;height:34px;padding:0 9px;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--text);font-weight:800;font-size:11px;cursor:pointer;transition:transform .12s ease,border-color .12s ease,background .12s ease,box-shadow .12s ease}.financial-audit-page-btn:hover:not(:disabled){transform:translateY(-1px);border-color:color-mix(in srgb,var(--primary) 45%,var(--border));background:color-mix(in srgb,var(--primary) 7%,var(--card));box-shadow:0 6px 16px rgba(15,23,42,.08)}.financial-audit-page-btn:active:not(:disabled){transform:translateY(0) scale(.97)}.financial-audit-page-btn.active{background:var(--primary);border-color:var(--primary);color:#fff}.financial-audit-page-btn:disabled{opacity:.38;cursor:not-allowed}.financial-audit-page-status{display:none;color:var(--muted);font-size:11px;font-weight:800;padding:0 4px}
.financial-audit-empty{padding:28px 14px;text-align:center;color:var(--muted);font-size:12px}
@media(max-width:1100px){.financial-audit-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.financial-audit-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.financial-audit-head{padding-right:12px;padding-left:12px}.financial-audit-runbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px;border-radius:14px}.financial-audit-run-btn{grid-column:1/-1;width:100%}.financial-audit-export-tools{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.financial-audit-export-tools .btn{width:100%;min-width:0;padding-right:8px;padding-left:8px}.financial-audit-period-banner{padding:12px;display:grid}.financial-audit-scope{justify-content:flex-start}.financial-audit-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.financial-audit-metric{padding:9px 10px;border-radius:12px}.financial-audit-metric strong{font-size:13px}.financial-audit-module-grid{grid-template-columns:1fr;padding:8px}.financial-audit-exceptions{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px}.financial-audit-card-head{align-items:flex-start;flex-direction:column}.financial-audit-flow-select{width:100%}.financial-audit-pagination .financial-audit-page-btn[data-page-number]{display:none}.financial-audit-page-status{display:inline-block}.financial-audit-table{min-width:760px}.financial-audit-table th,.financial-audit-table td{padding:8px}.financial-audit-root{gap:10px;margin-top:10px}}
@media(max-width:420px){.financial-audit-runbar{grid-template-columns:1fr 1fr}.financial-audit-runbar label:nth-child(3){grid-column:1/-1}.financial-audit-metrics{grid-template-columns:1fr 1fr}.financial-audit-readonly{font-size:9px;padding:4px 7px}}

/* Audit executive summary + selectable report sections */
.financial-audit-section-selector-wrap{display:grid;gap:7px;margin-top:12px;padding:10px 11px;border:1px solid var(--border);border-radius:14px;background:color-mix(in srgb,var(--card) 97%,var(--primary) 3%)}
.financial-audit-section-selector-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.financial-audit-section-selector-head>span{font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}.financial-audit-section-selector-head>small{font-size:9px;color:var(--muted);transition:color .16s ease}.financial-audit-section-selector-head>small.is-visible{color:var(--primary);font-weight:800}
.financial-audit-section-selector{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.financial-audit-scope-chip{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:4px 9px;border:1px solid var(--border);border-radius:999px;background:var(--card);color:var(--muted);font-size:10px;font-weight:850;cursor:pointer;user-select:none;transition:background .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .1s ease}.financial-audit-scope-chip:hover:not(:disabled){border-color:color-mix(in srgb,var(--primary) 42%,var(--border));color:var(--text);box-shadow:0 4px 12px rgba(15,23,42,.06)}.financial-audit-scope-chip:active:not(:disabled){transform:scale(.97)}.financial-audit-scope-chip.is-selected{color:var(--primary);border-color:color-mix(in srgb,var(--primary) 48%,var(--border));background:color-mix(in srgb,var(--primary) 9%,var(--card))}.financial-audit-scope-chip:disabled{opacity:.42;cursor:not-allowed}.financial-audit-scope-check{display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;font-size:7px;background:color-mix(in srgb,var(--card) 78%,var(--border))}.financial-audit-scope-chip.is-selected .financial-audit-scope-check{background:var(--primary);color:#fff}
.financial-audit-runbar{margin-top:8px;padding:9px 10px;border-radius:14px}.financial-audit-date-field .input{min-height:34px!important;height:34px;font-size:11px;padding-top:5px;padding-bottom:5px}.financial-audit-run-btn.needs-run{box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 18%,transparent)}
.financial-audit-export-menu{position:relative}.financial-audit-export-toggle{display:inline-flex!important;align-items:center;gap:7px}.financial-audit-export-angle{font-size:10px;transition:transform .16s ease}.financial-audit-export-menu.is-open .financial-audit-export-angle{transform:rotate(180deg)}
.financial-audit-export-dropdown{position:absolute;z-index:2200;left:0;top:calc(100% + 6px);width:270px;padding:6px;border:1px solid var(--border);border-radius:13px;background:var(--card);box-shadow:0 18px 42px rgba(15,23,42,.16);opacity:0;visibility:hidden;transform:translateY(-4px);pointer-events:none;transition:opacity .14s ease,transform .14s ease,visibility .14s ease}.financial-audit-export-menu.is-open .financial-audit-export-dropdown{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}.financial-audit-export-dropdown>button{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:8px;width:100%;padding:9px;border:0;border-radius:9px;background:transparent;color:var(--text);text-align:right;cursor:pointer}.financial-audit-export-dropdown>button:hover{background:color-mix(in srgb,var(--primary) 7%,var(--card))}.financial-audit-export-dropdown>button>i{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:color-mix(in srgb,var(--primary) 8%,var(--card));color:var(--primary)}.financial-audit-export-dropdown span{display:grid;gap:2px}.financial-audit-export-dropdown strong{font-size:11px}.financial-audit-export-dropdown small{font-size:9px;line-height:1.35;color:var(--muted)}
.financial-audit-period-sections{display:grid;gap:3px;max-width:48%;text-align:left}.financial-audit-period-sections small{font-size:9px;text-transform:uppercase;letter-spacing:.045em;color:var(--muted);font-weight:800}.financial-audit-period-sections strong{font-size:10px;line-height:1.45;color:var(--text);font-weight:750}
.financial-audit-executive-card{border:1px solid var(--border);border-radius:16px;background:var(--card);overflow:hidden}.financial-audit-executive-body{display:grid;gap:12px;padding:12px}.financial-audit-section-summary-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:11px 14px 4px;border-top:1px solid var(--border)}.financial-audit-section-summary-head strong{font-size:12px}.financial-audit-section-summary-head span{max-width:56%;font-size:9px;line-height:1.4;color:var(--muted);text-align:left}
.financial-audit-metric.is-tax-payable strong{color:#b45309}.financial-audit-metric.is-tax-credit strong{color:#16834a}.financial-audit-tax-position b{color:#b45309}.financial-audit-module-grid.is-executive{padding-top:8px}.financial-audit-module-grid.is-executive .financial-audit-module-values{grid-template-columns:repeat(2,minmax(0,1fr))}

@media(max-width:760px){.financial-audit-section-selector-wrap{margin-top:9px;padding:8px}.financial-audit-section-selector-head{align-items:flex-start;flex-direction:column;gap:2px}.financial-audit-section-selector{gap:5px}.financial-audit-scope-chip{min-height:26px;padding:3px 7px;font-size:9px}.financial-audit-export-menu{min-width:0}.financial-audit-export-dropdown{position:fixed;right:12px;left:12px;top:auto;bottom:18px;width:auto;z-index:6000}.financial-audit-period-sections{max-width:none;text-align:right}.financial-audit-section-summary-head{align-items:flex-start;flex-direction:column}.financial-audit-section-summary-head span{max-width:none;text-align:right}.financial-audit-date-field .input{min-height:33px!important;height:33px}.financial-audit-executive-body{padding:9px}}

/* ===== SOURCE: Assets/style/45-triplem-ai.css ===== */
/* Triplem VIP · Triplem AI */
.triplem-ai-section{overflow:hidden;position:relative;isolation:isolate}
.triplem-ai-section:before{content:"";position:absolute;inset:-130px -100px auto auto;width:330px;height:330px;border-radius:50%;background:radial-gradient(circle,rgba(67,97,238,.14),transparent 70%);pointer-events:none;z-index:-1}
.triplem-ai-readonly{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--accent,#2457d6) 10%,transparent);font-size:.72rem;font-weight:700;color:var(--muted)}
.triplem-ai-root{min-height:520px}
.triplem-ai-setup-state,.triplem-ai-unavailable{min-height:430px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:32px 18px}
.triplem-ai-orb{width:76px;height:76px;border-radius:25px;display:grid;place-items:center;font-size:1.6rem;color:#fff;background:linear-gradient(145deg,#172554,#3158d6 62%,#7c3aed);box-shadow:0 18px 44px rgba(37,74,180,.24)}
.triplem-ai-eyebrow,.triplem-ai-settings-kicker{text-transform:uppercase;letter-spacing:.12em;font-size:.66rem;font-weight:800;color:var(--muted)}
.triplem-ai-setup-state h4{font-size:1.45rem;margin:0;color:var(--text)}
.triplem-ai-setup-state>p{max-width:680px;margin:0;color:var(--muted);line-height:1.65}
.triplem-ai-privacy-row{max-width:720px;display:flex;align-items:flex-start;gap:10px;text-align:right;border:1px solid var(--line);background:var(--panel-2);border-radius:15px;padding:12px 14px;color:var(--muted);font-size:.82rem;line-height:1.55}
.triplem-ai-privacy-row i{color:var(--accent,#2457d6);margin-top:2px}
.triplem-ai-connect-btn{margin-top:5px;border-radius:999px;padding-inline:18px}
.triplem-ai-unavailable i{font-size:1.7rem;color:var(--muted)}.triplem-ai-unavailable strong{font-size:1.1rem}.triplem-ai-unavailable span{color:var(--muted)}
.triplem-ai-shell{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:color-mix(in srgb,var(--panel) 96%,transparent);box-shadow:0 12px 38px rgba(15,23,42,.07)}
.triplem-ai-console-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid var(--line);background:linear-gradient(110deg,color-mix(in srgb,var(--panel-2) 94%,#3158d6 6%),var(--panel))}
.triplem-ai-console-brand{display:flex;align-items:center;gap:10px;min-width:0}.triplem-ai-console-brand>div{min-width:0;display:flex;flex-direction:column}.triplem-ai-console-brand strong{font-size:.94rem}.triplem-ai-console-brand small{font-size:.7rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.triplem-ai-mini-orb{width:37px;height:37px;flex:0 0 37px;border-radius:12px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#172554,#3158d6 60%,#7c3aed)}
.triplem-ai-console-actions{display:flex;align-items:center;gap:6px}.triplem-ai-secure-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:.68rem;font-weight:700;background:var(--panel)}
.triplem-ai-capability-strip{display:flex;gap:8px;flex-wrap:wrap;padding:8px 14px;border-bottom:1px solid var(--line);background:var(--panel-2)}.triplem-ai-capability-strip span{font-size:.66rem;color:var(--muted);display:inline-flex;align-items:center;gap:5px}.triplem-ai-capability-strip i{font-size:.62rem;color:var(--accent,#2457d6)}
.triplem-ai-thread{height:min(52vh,520px);min-height:360px;overflow:auto;padding:18px 16px;scrollbar-width:none}.triplem-ai-thread::-webkit-scrollbar{display:none}
.triplem-ai-message{display:flex;gap:10px;max-width:860px;margin:0 auto 16px}.triplem-ai-message.is-user{flex-direction:row-reverse}.triplem-ai-message-avatar{width:31px;height:31px;flex:0 0 31px;border-radius:10px;display:grid;place-items:center;background:var(--panel-2);border:1px solid var(--line);color:var(--muted);font-size:.72rem}.triplem-ai-message.is-ai .triplem-ai-message-avatar{color:#fff;border:0;background:linear-gradient(145deg,#172554,#3158d6 60%,#7c3aed)}
.triplem-ai-message-content{max-width:min(78%,720px)}.triplem-ai-message-label{font-size:.64rem;font-weight:800;color:var(--muted);margin:0 4px 4px 0}.triplem-ai-message.is-user .triplem-ai-message-label{text-align:left;margin-left:4px}.triplem-ai-message-text{padding:11px 13px;border:1px solid var(--line);border-radius:15px 5px 15px 15px;background:var(--panel-2);line-height:1.58;font-size:.84rem;color:var(--text);overflow-wrap:anywhere}.triplem-ai-message.is-user .triplem-ai-message-text{border-radius:5px 15px 15px 15px;background:color-mix(in srgb,var(--accent,#2457d6) 12%,var(--panel));border-color:color-mix(in srgb,var(--accent,#2457d6) 25%,var(--line))}
.triplem-ai-thinking{max-width:860px;margin:0 auto;display:flex;align-items:center;gap:5px;color:var(--muted);font-size:.72rem}.triplem-ai-thinking span{width:6px;height:6px;border-radius:50%;background:var(--accent,#2457d6);animation:triplem-ai-pulse 1s infinite alternate}.triplem-ai-thinking span:nth-child(2){animation-delay:.18s}.triplem-ai-thinking span:nth-child(3){animation-delay:.36s}.triplem-ai-thinking em{font-style:normal;margin-right:5px}@keyframes triplem-ai-pulse{to{opacity:.25;transform:translateY(-2px)}}
.triplem-ai-suggestions{max-width:860px;margin:-4px auto 12px;padding:0 16px;display:flex;gap:7px;flex-wrap:wrap}.triplem-ai-suggestion{appearance:none;border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:999px;padding:7px 10px;cursor:pointer;font:inherit;font-size:.7rem;display:inline-flex;align-items:center;gap:6px;transition:transform .16s ease,border-color .16s ease,color .16s ease}.triplem-ai-suggestion:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--accent,#2457d6) 45%,var(--line));color:var(--text)}
.triplem-ai-composer{max-width:880px;margin:0 auto;padding:10px 16px 14px;position:relative}.triplem-ai-composer textarea{width:100%;min-height:46px;max-height:132px;resize:none;border:1px solid var(--line);background:var(--panel-2);color:var(--text);border-radius:17px;padding:13px 14px 24px 52px;font:inherit;font-size:.84rem;line-height:1.45;outline:none;transition:border-color .16s ease,box-shadow .16s ease;scrollbar-width:none}.triplem-ai-composer textarea::-webkit-scrollbar{display:none}.triplem-ai-composer textarea:focus{border-color:color-mix(in srgb,var(--accent,#2457d6) 55%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--accent,#2457d6) 9%,transparent)}
.triplem-ai-send{position:absolute;left:25px;top:18px;width:34px;height:34px;border:0;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#244fc9,#3158d6);color:#fff;cursor:pointer;box-shadow:0 6px 14px rgba(36,79,201,.2)}.triplem-ai-send:disabled{opacity:.5;cursor:wait}.triplem-ai-composer-foot{position:absolute;right:31px;left:31px;bottom:18px;display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:.59rem;pointer-events:none}.triplem-ai-composer-foot span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.triplem-ai-settings-dialog{width:min(720px,calc(100vw - 28px));max-height:min(88vh,760px)}.triplem-ai-settings-hero{display:flex;gap:12px;align-items:flex-start;padding:13px;border-radius:16px;border:1px solid color-mix(in srgb,var(--accent,#2457d6) 20%,var(--line));background:color-mix(in srgb,var(--accent,#2457d6) 6%,var(--panel-2));margin-bottom:14px}.triplem-ai-settings-icon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;background:var(--panel);border:1px solid var(--line);color:var(--accent,#2457d6)}.triplem-ai-settings-hero strong{display:block;font-size:.87rem;margin-bottom:3px}.triplem-ai-settings-hero p{margin:0;font-size:.75rem;line-height:1.5;color:var(--muted)}
.triplem-ai-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.triplem-ai-settings-field{display:flex;flex-direction:column;gap:6px}.triplem-ai-settings-field>label,.triplem-ai-settings-field>span,.triplem-ai-key-entry>label{font-size:.72rem;font-weight:800;color:var(--text)}.triplem-ai-settings-field>small{font-size:.65rem;color:var(--muted)}.triplem-ai-key-display{min-height:46px;display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:12px;border:1px solid var(--line);background:var(--panel-2)}.triplem-ai-key-display>i{color:var(--muted)}.triplem-ai-key-display.is-configured>i{color:#16a34a}.triplem-ai-key-display div{display:flex;flex-direction:column;min-width:0}.triplem-ai-key-display strong{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.triplem-ai-key-display small{font-size:.61rem;color:var(--muted)}
.triplem-ai-settings-status-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px}.triplem-ai-settings-status-grid>div{border:1px solid var(--line);border-radius:12px;padding:8px 10px;background:var(--panel-2);display:flex;flex-direction:column;gap:2px}.triplem-ai-settings-status-grid span{font-size:.6rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.triplem-ai-settings-status-grid strong{font-size:.72rem;font-weight:700}
.triplem-ai-key-entry{margin-top:13px}.triplem-ai-secret-input{display:flex;gap:6px;align-items:center;margin-top:6px}.triplem-ai-secret-input .input{min-width:0}.triplem-ai-key-entry>p{font-size:.64rem;color:var(--muted);margin:5px 0 0}.triplem-ai-settings-notice{display:flex;gap:8px;align-items:flex-start;margin-top:12px;padding:9px 11px;border-radius:12px;background:var(--panel-2);color:var(--muted);font-size:.68rem;line-height:1.45}.triplem-ai-settings-message{min-height:18px;margin-top:7px;font-size:.7rem;color:var(--accent,#2457d6)}.triplem-ai-settings-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap}.triplem-ai-delete-key{margin-left:auto;color:#b42318}
.triplem-ai-account-card .settings-pill.is-ok{color:#15803d}.triplem-ai-account-settings-row .account-settings-action-icon{background:linear-gradient(145deg,#172554,#3158d6 60%,#7c3aed);color:#fff}
.admin-triplem-ai-access-block{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0;padding:12px 14px;border:1px solid color-mix(in srgb,#6d5ce7 28%,var(--line));border-radius:15px;background:linear-gradient(120deg,color-mix(in srgb,#3158d6 6%,var(--panel-2)),var(--panel-2))}.admin-triplem-ai-access-copy{display:flex;gap:10px;align-items:flex-start}.admin-triplem-ai-access-icon{width:34px;height:34px;flex:0 0 34px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#172554,#3158d6 60%,#7c3aed);color:#fff}.admin-triplem-ai-access-copy strong{display:block;font-size:.8rem}.admin-triplem-ai-access-copy small{display:block;color:var(--muted);font-size:.66rem;line-height:1.45;margin-top:2px}.admin-triplem-ai-switch{display:flex;align-items:center;gap:7px;cursor:pointer}.admin-triplem-ai-switch input{position:absolute;opacity:0;pointer-events:none}.admin-triplem-ai-switch span{width:39px;height:22px;border-radius:999px;background:color-mix(in srgb,var(--muted) 25%,var(--panel));position:relative;transition:.18s}.admin-triplem-ai-switch span:after{content:"";position:absolute;width:16px;height:16px;right:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.15);transition:.18s}.admin-triplem-ai-switch input:checked+span{background:#3158d6}.admin-triplem-ai-switch input:checked+span:after{transform:translateX(-17px)}.admin-triplem-ai-switch em{font-size:.65rem;font-style:normal;color:var(--muted);min-width:20px}.admin-badge.triplem-ai-badge{background:color-mix(in srgb,#6d5ce7 12%,var(--panel-2));color:#6552d8;border-color:color-mix(in srgb,#6d5ce7 25%,var(--line))}
@media(max-width:720px){.triplem-ai-root{min-height:430px}.triplem-ai-console-head{padding:11px}.triplem-ai-secure-pill{display:none}.triplem-ai-capability-strip{padding:7px 10px;gap:6px}.triplem-ai-capability-strip span{font-size:.6rem}.triplem-ai-thread{height:48vh;min-height:300px;padding:13px 10px}.triplem-ai-message{gap:7px;margin-bottom:12px}.triplem-ai-message-avatar{width:27px;height:27px;flex-basis:27px;border-radius:8px}.triplem-ai-message-content{max-width:86%}.triplem-ai-message-text{font-size:.77rem;padding:9px 10px}.triplem-ai-suggestions{padding:0 10px;gap:5px}.triplem-ai-suggestion{font-size:.64rem;padding:6px 8px}.triplem-ai-composer{padding:8px 10px 12px}.triplem-ai-send{left:18px;top:16px}.triplem-ai-composer-foot{right:24px;left:24px;bottom:16px}.triplem-ai-composer-foot span:first-child{display:none}.triplem-ai-settings-grid,.triplem-ai-settings-status-grid{grid-template-columns:1fr}.triplem-ai-settings-dialog{width:calc(100vw - 18px);max-height:calc(100dvh - 28px);margin:auto}.triplem-ai-settings-actions .btn{font-size:.7rem;padding:7px 10px}.admin-triplem-ai-access-block{align-items:flex-start}.admin-triplem-ai-switch{margin-top:5px}}

/* 159 · Triplem AI focused chat workspace refinement */
.triplem-ai-section{padding:0!important;background:var(--panel);overflow:hidden}
.triplem-ai-root{min-height:640px}
.triplem-ai-shell{min-height:640px;display:flex;flex-direction:column;border:0;border-radius:inherit;box-shadow:none;background:linear-gradient(180deg,color-mix(in srgb,var(--panel) 98%,#3158d6 2%),var(--panel))}
.triplem-ai-console-head{min-height:72px;padding:16px 20px;border-bottom:1px solid color-mix(in srgb,var(--accent,#2457d6) 12%,var(--line));background:linear-gradient(115deg,color-mix(in srgb,var(--panel-2) 93%,#3158d6 7%),var(--panel))}
.triplem-ai-console-brand{gap:12px}.triplem-ai-console-brand strong{font-size:1.08rem;letter-spacing:-.015em}.triplem-ai-console-brand small{font-size:.72rem;display:flex;align-items:center;gap:6px;margin-top:2px}
.triplem-ai-mini-orb{width:44px;height:44px;flex-basis:44px;border-radius:14px;font-size:.95rem;box-shadow:0 9px 22px rgba(37,74,180,.18)}
.triplem-ai-status-dot{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px color-mix(in srgb,#22c55e 16%,transparent);flex:0 0 7px}
.triplem-ai-console-actions .icon-btn{width:36px;height:36px;border-radius:11px}.triplem-ai-secure-pill{padding:7px 10px;background:color-mix(in srgb,var(--panel) 92%,#3158d6 8%)}
.triplem-ai-thread{flex:1;height:min(64vh,680px);min-height:470px;padding:24px 20px 18px;background:linear-gradient(180deg,color-mix(in srgb,var(--panel-2) 28%,transparent),transparent 22%)}
.triplem-ai-message{max-width:960px;gap:11px;margin-bottom:17px}.triplem-ai-message-avatar{width:34px;height:34px;flex-basis:34px;border-radius:11px}.triplem-ai-message-content{max-width:min(80%,760px)}
.triplem-ai-message-text{padding:12px 14px;border-radius:16px 6px 16px 16px;font-size:.86rem;line-height:1.62;box-shadow:0 3px 12px rgba(15,23,42,.025)}.triplem-ai-message.is-user .triplem-ai-message-text{border-radius:6px 16px 16px 16px}
.triplem-ai-answer-summary{display:block;margin-top:8px;padding-top:8px;border-top:1px solid color-mix(in srgb,var(--accent,#2457d6) 15%,var(--line));font-size:.82rem}.triplem-ai-answer-summary strong{color:var(--text)}
.triplem-ai-answer-tip{display:flex;align-items:flex-start;gap:7px;margin-top:8px;padding:8px 9px;border-radius:10px;background:color-mix(in srgb,var(--accent,#2457d6) 7%,var(--panel));color:var(--muted);font-size:.8rem}.triplem-ai-answer-tip>i{color:#d69e00;margin-top:2px}.triplem-ai-answer-tip strong{color:var(--text)}
.triplem-ai-thinking{max-width:960px;width:100%;padding:1px 0 8px;font-size:.74rem}.triplem-ai-thinking em{font-weight:700;color:var(--muted)}
.triplem-ai-suggestions{max-width:960px;margin:0 auto;padding:0 20px 12px;gap:7px}.triplem-ai-suggestion{padding:7px 11px;background:color-mix(in srgb,var(--panel-2) 80%,transparent);font-size:.69rem}
.triplem-ai-composer{max-width:none;width:100%;margin:0;padding:14px 20px 18px;border-top:1px solid color-mix(in srgb,var(--accent,#2457d6) 10%,var(--line));background:color-mix(in srgb,var(--panel) 97%,var(--panel-2) 3%)}
.triplem-ai-composer textarea{min-height:58px;max-height:160px;border-radius:18px;padding:14px 16px 27px 58px;background:var(--panel-2);font-size:.86rem;box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 22%,transparent)}
.triplem-ai-composer textarea:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--accent,#2457d6) 10%,transparent),0 8px 22px rgba(15,23,42,.035)}
.triplem-ai-send{left:30px;top:24px;width:38px;height:38px;border-radius:12px;transition:transform .16s ease,box-shadow .16s ease}.triplem-ai-send:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 9px 19px rgba(36,79,201,.25)}
.triplem-ai-composer-foot{right:36px;left:36px;bottom:22px;font-size:.6rem}.triplem-ai-composer-foot span:last-child{font-variant-numeric:tabular-nums}

@media(max-width:720px){.triplem-ai-section{border-radius:16px}.triplem-ai-root,.triplem-ai-shell{min-height:520px}.triplem-ai-console-head{min-height:62px;padding:11px 12px}.triplem-ai-mini-orb{width:38px;height:38px;flex-basis:38px;border-radius:12px}.triplem-ai-console-brand{gap:9px}.triplem-ai-console-brand strong{font-size:.94rem}.triplem-ai-console-brand small{font-size:.64rem;max-width:190px}.triplem-ai-thread{height:58dvh;min-height:350px;padding:16px 10px 12px}.triplem-ai-message{gap:8px;margin-bottom:13px}.triplem-ai-message-avatar{width:29px;height:29px;flex-basis:29px}.triplem-ai-message-content{max-width:88%}.triplem-ai-message-text{font-size:.79rem;line-height:1.55;padding:10px 11px}.triplem-ai-answer-summary{font-size:.76rem}.triplem-ai-answer-tip{font-size:.74rem}.triplem-ai-suggestions{padding:0 10px 9px}.triplem-ai-composer{padding:10px 10px 13px}.triplem-ai-composer textarea{min-height:54px;padding:12px 13px 25px 51px;font-size:.8rem}.triplem-ai-send{left:18px;top:18px;width:36px;height:36px}.triplem-ai-composer-foot{right:23px;left:23px;bottom:17px}.triplem-ai-composer-foot span:first-child{display:none}}

/* 160 · Verified references, AI Draft lifecycle, and compact control polish */
.triplem-ai-composer{padding:12px 20px 25px}
.triplem-ai-composer textarea{min-height:56px;padding:12px 14px 28px 49px}
.triplem-ai-send{left:30px;top:20px;width:32px;height:32px;border-radius:10px;font-size:.76rem;box-shadow:0 5px 12px rgba(36,79,201,.18)}
.triplem-ai-composer-foot{right:35px;left:35px;bottom:7px;min-height:14px;align-items:center;font-size:.58rem;line-height:1.1}
.triplem-ai-records{display:grid;gap:7px;margin-top:8px}
.triplem-ai-record-card{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:9px;padding:8px 9px;border:1px solid color-mix(in srgb,var(--border) 78%,transparent);border-radius:12px;background:color-mix(in srgb,var(--surface) 93%,var(--primary) 7%);color:var(--text);text-align:right;cursor:pointer;transition:transform .15s ease,border-color .15s ease,background .15s ease}
.triplem-ai-record-card:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--primary) 45%,var(--border));background:color-mix(in srgb,var(--surface) 88%,var(--primary) 12%)}
.triplem-ai-record-icon,.triplem-ai-draft-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 13%,var(--surface));color:var(--primary)}
.triplem-ai-record-copy{min-width:0;display:grid;gap:2px}.triplem-ai-record-top{display:flex;align-items:center;gap:6px;min-width:0}.triplem-ai-record-top strong{font-size:.74rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.triplem-ai-record-copy small{font-size:.61rem;color:var(--muted)}.triplem-ai-record-copy em{font-style:normal;font-size:.61rem;color:var(--text-soft,var(--muted));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.triplem-ai-record-open{font-size:.65rem;color:var(--muted)}
.triplem-ai-origin-badge{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;padding:2px 6px;border-radius:999px;background:color-mix(in srgb,#7256e8 13%,var(--surface));border:1px solid color-mix(in srgb,#7256e8 28%,var(--border));color:#7256e8;font-size:.53rem;font-weight:800;line-height:1.25;letter-spacing:.015em;vertical-align:middle}
.triplem-ai-reference-box{margin-top:9px;padding:8px 9px;border:1px solid color-mix(in srgb,var(--border) 82%,transparent);border-radius:11px;background:color-mix(in srgb,var(--surface) 96%,var(--text) 4%)}
.triplem-ai-reference-title{display:flex;align-items:center;gap:6px;margin-bottom:5px;color:var(--muted);font-size:.62rem}.triplem-ai-reference-line{display:grid;grid-template-columns:18px minmax(0,1fr);gap:6px;padding:4px 0;border-top:1px solid color-mix(in srgb,var(--border) 58%,transparent)}.triplem-ai-reference-line:first-of-type{border-top:0}.triplem-ai-reference-line>span{width:17px;height:17px;border-radius:6px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 9%,var(--surface));color:var(--primary);font-size:.52rem;font-weight:800}.triplem-ai-reference-line p{margin:0;display:grid;gap:1px}.triplem-ai-reference-line strong{font-size:.62rem}.triplem-ai-reference-line small{font-size:.58rem;line-height:1.35;color:var(--muted)}
.triplem-ai-pending{padding:7px 14px 8px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--surface) 96%,#7256e8 4%)}.triplem-ai-pending>span{display:flex;align-items:center;gap:6px;margin-bottom:5px;color:var(--muted);font-size:.59rem;font-weight:800;text-transform:uppercase;letter-spacing:.055em}.triplem-ai-drafts.is-compact{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.triplem-ai-drafts.is-compact::-webkit-scrollbar{display:none}.triplem-ai-draft-card{min-width:205px;max-width:290px;display:grid;grid-template-columns:30px minmax(0,1fr) 16px;align-items:center;gap:7px;padding:7px 8px;border:1px solid color-mix(in srgb,#7256e8 24%,var(--border));border-radius:11px;background:var(--surface);color:var(--text);text-align:right;cursor:pointer}.triplem-ai-draft-card>span:nth-child(2){min-width:0;display:grid;gap:2px}.triplem-ai-draft-title{display:flex;align-items:center;gap:5px;min-width:0}.triplem-ai-draft-title strong{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.triplem-ai-draft-card small{font-size:.56rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.triplem-ai-draft-card>.fa-pen-to-square{font-size:.62rem;color:var(--muted)}
.triplem-ai-draft-dialog{width:min(660px,calc(100vw - 24px));max-height:calc(100dvh - 30px);overflow:hidden}.triplem-ai-draft-dialog .modal-head{padding:13px 15px}.triplem-ai-draft-dialog .modal-head h3{display:flex;align-items:center;gap:7px;margin:3px 0}.triplem-ai-draft-dialog .modal-head p{font-size:.66rem;line-height:1.4;margin:2px 0 0}.triplem-ai-draft-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px;padding:13px 15px;overflow:auto}.triplem-ai-draft-field{display:grid;gap:4px}.triplem-ai-draft-field>span{font-size:.62rem;font-weight:800;color:var(--muted)}.triplem-ai-draft-field .input{min-height:36px;height:36px;padding:7px 9px;font-size:.72rem}.triplem-ai-draft-field textarea.input{height:auto;min-height:92px;resize:vertical}.triplem-ai-draft-field.is-wide,.triplem-ai-draft-form .triplem-ai-settings-message{grid-column:1/-1}.triplem-ai-draft-actions{padding:9px 13px;gap:7px}.triplem-ai-draft-actions>div{display:flex;gap:6px;margin-right:auto}.triplem-ai-draft-actions .btn{min-height:32px;padding:6px 10px;font-size:.67rem;border-radius:9px}
.triplem-ai-settings-dialog{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 34px)}.triplem-ai-settings-dialog .settings-sheet-head{padding:13px 15px}.triplem-ai-settings-dialog .settings-sheet-head h3{font-size:1rem;margin:2px 0}.triplem-ai-settings-dialog .settings-sheet-head p{font-size:.64rem}.triplem-ai-settings-dialog .settings-sheet-body{padding:12px 15px;gap:10px}.triplem-ai-settings-hero{padding:10px 11px;gap:9px}.triplem-ai-settings-icon{width:34px;height:34px;min-width:34px;border-radius:10px}.triplem-ai-settings-hero strong{font-size:.73rem}.triplem-ai-settings-hero p{font-size:.62rem;line-height:1.4;margin-top:2px}.triplem-ai-settings-grid{gap:8px}.triplem-ai-settings-field{gap:4px}.triplem-ai-settings-field>label,.triplem-ai-settings-field>span,.triplem-ai-key-entry>label{font-size:.61rem}.triplem-ai-settings-field .input,.triplem-ai-key-entry .input{min-height:36px;height:36px;padding:7px 9px;font-size:.7rem}.triplem-ai-key-display{min-height:45px;padding:7px 9px}.triplem-ai-key-display strong{font-size:.68rem}.triplem-ai-key-display small{font-size:.56rem}.triplem-ai-secret-input .icon-btn{width:29px;height:29px;left:4px;top:50%;transform:translateY(-50%);position:absolute}.triplem-ai-key-entry p,.triplem-ai-settings-notice{font-size:.59rem;line-height:1.4}.triplem-ai-settings-status-grid{gap:7px}.triplem-ai-settings-status-grid>div{padding:7px 9px}.triplem-ai-settings-actions{padding:9px 13px;gap:6px;justify-content:flex-end;align-items:center}.triplem-ai-settings-actions .btn{min-height:31px;padding:6px 9px;font-size:.65rem;border-radius:9px}.triplem-ai-settings-actions .triplem-ai-delete-key{margin-left:auto}
@media(max-width:720px){.triplem-ai-composer{padding:9px 10px 21px}.triplem-ai-composer textarea{min-height:52px;padding:11px 12px 25px 45px}.triplem-ai-send{left:18px;top:16px;width:31px;height:31px}.triplem-ai-composer-foot{right:23px;left:23px;bottom:6px}.triplem-ai-draft-form{grid-template-columns:1fr}.triplem-ai-draft-field.is-wide,.triplem-ai-draft-form .triplem-ai-settings-message{grid-column:auto}.triplem-ai-draft-actions{flex-wrap:wrap}.triplem-ai-draft-actions>div{margin-right:0}.triplem-ai-settings-actions{flex-wrap:wrap}.triplem-ai-settings-actions .triplem-ai-delete-key{margin-left:0}.triplem-ai-record-copy em{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}
.triplem-ai-record-detail-dialog{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 34px);overflow:hidden}.triplem-ai-record-detail-dialog .modal-head{padding:13px 15px}.triplem-ai-record-detail-dialog .modal-head h3{display:flex;align-items:center;gap:7px;margin:3px 0}.triplem-ai-record-detail-dialog .modal-head p{margin:2px 0 0;font-size:.65rem;color:var(--muted);text-transform:capitalize}.triplem-ai-record-detail-dialog .modal-body{padding:12px 15px;overflow:auto}.triplem-ai-record-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.triplem-ai-record-detail-grid>div{min-width:0;border:1px solid var(--line);border-radius:11px;background:var(--panel-2);padding:8px 9px;display:grid;gap:3px}.triplem-ai-record-detail-grid span{font-size:.58rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.triplem-ai-record-detail-grid strong{font-size:.7rem;line-height:1.4;overflow-wrap:anywhere}.triplem-ai-record-detail-dialog .modal-footer{padding:9px 13px}.triplem-ai-record-detail-dialog .modal-footer .btn{min-height:31px;padding:6px 10px;font-size:.65rem}
@media(max-width:720px){.triplem-ai-record-detail-grid{grid-template-columns:1fr}.triplem-ai-record-detail-dialog{width:calc(100vw - 18px)}}

/* Triplem AI · viewport-bound chat and compact settings refinement */
#triplem-aiPanel .triplem-ai-section{
  height:var(--triplem-ai-viewport-height,calc(100dvh - 132px));
  min-height:0!important;
  max-height:var(--triplem-ai-viewport-height,calc(100dvh - 132px));
  display:flex;
  flex-direction:column;
  overscroll-behavior:contain;
  contain:layout paint;
}
#triplem-aiPanel .triplem-ai-root{
  flex:1 1 auto;
  width:100%;
  height:100%;
  min-height:0!important;
  overflow:hidden;
}
#triplem-aiPanel .triplem-ai-shell{
  width:100%;
  height:100%;
  min-height:0!important;
  max-height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
#triplem-aiPanel .triplem-ai-console-head,
#triplem-aiPanel .triplem-ai-pending,
#triplem-aiPanel .triplem-ai-suggestions,
#triplem-aiPanel .triplem-ai-composer{flex:0 0 auto;position:relative;z-index:2}
#triplem-aiPanel .triplem-ai-thread{
  flex:1 1 auto;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:color-mix(in srgb,var(--muted) 32%,transparent) transparent;
  position:relative;
  z-index:1;
}
#triplem-aiPanel .triplem-ai-thread::-webkit-scrollbar{display:block;width:6px}
#triplem-aiPanel .triplem-ai-thread::-webkit-scrollbar-track{background:transparent}
#triplem-aiPanel .triplem-ai-thread::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 26%,transparent);border-radius:999px}
#triplem-aiPanel .triplem-ai-thread:hover::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 42%,transparent)}
#triplem-aiPanel .triplem-ai-console-head{box-shadow:0 8px 24px rgba(15,23,42,.025)}
#triplem-aiPanel .triplem-ai-composer{box-shadow:0 -10px 28px rgba(15,23,42,.035)}

.triplem-ai-settings-dialog{
  width:min(560px,calc(100vw - 24px))!important;
  max-height:calc(100dvh - 28px)!important;
  overflow:hidden;
  border-radius:18px;
}
.triplem-ai-settings-dialog .settings-sheet-head{
  min-height:0;
  padding:11px 13px!important;
  gap:12px;
  align-items:center;
}
.triplem-ai-settings-dialog .settings-sheet-head>div{min-width:0}
.triplem-ai-settings-dialog .settings-sheet-head h3{font-size:.92rem!important;line-height:1.2;margin:2px 0!important}
.triplem-ai-settings-dialog .settings-sheet-head p{font-size:.59rem!important;line-height:1.35;margin:2px 0 0!important}
.triplem-ai-settings-kicker{font-size:.56rem;letter-spacing:.1em}
.triplem-ai-settings-close{width:28px!important;height:28px!important;min-width:28px;border-radius:9px!important;font-size:.72rem}
.triplem-ai-settings-dialog .settings-sheet-body{
  padding:10px 13px!important;
  gap:8px!important;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.triplem-ai-settings-hero{
  margin:0 0 9px!important;
  padding:8px 9px!important;
  gap:8px!important;
  align-items:center!important;
  border-radius:12px!important;
}
.triplem-ai-settings-icon{width:30px!important;height:30px!important;min-width:30px!important;flex-basis:30px!important;border-radius:9px!important;font-size:.7rem}
.triplem-ai-settings-hero strong{font-size:.67rem!important;line-height:1.25;margin:0!important}
.triplem-ai-settings-hero p{font-size:.57rem!important;line-height:1.35!important;margin:2px 0 0!important}
.triplem-ai-settings-grid{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:8px!important;align-items:start}
.triplem-ai-settings-field{gap:4px!important;min-width:0}
.triplem-ai-settings-field>label,.triplem-ai-settings-field>span,.triplem-ai-key-entry>label{font-size:.59rem!important;line-height:1.2}
.triplem-ai-settings-field>small{font-size:.54rem!important;line-height:1.3;min-height:1.3em}
.triplem-ai-settings-field .input,.triplem-ai-key-entry .input{height:34px!important;min-height:34px!important;padding:6px 9px!important;border-radius:10px;font-size:.66rem!important}
.triplem-ai-key-display{height:44px;min-height:44px!important;padding:6px 8px!important;gap:8px!important;border-radius:10px!important}
.triplem-ai-key-display>i{width:18px;text-align:center;font-size:.7rem}
.triplem-ai-key-display strong{font-size:.64rem!important;line-height:1.2}
.triplem-ai-key-display small{font-size:.52rem!important;line-height:1.25;margin-top:1px}
.triplem-ai-settings-status-grid{margin-top:8px!important;gap:7px!important}
.triplem-ai-settings-status-grid>div{padding:6px 8px!important;border-radius:10px!important;gap:1px!important}
.triplem-ai-settings-status-grid span{font-size:.51rem!important}
.triplem-ai-settings-status-grid strong{font-size:.62rem!important;line-height:1.25}
.triplem-ai-key-entry{margin-top:9px!important}
.triplem-ai-secret-input{display:block!important;position:relative!important;margin-top:5px!important;width:100%}
.triplem-ai-secret-input .input{width:100%;padding-left:39px!important}
.triplem-ai-secret-input .triplem-ai-key-eye{
  position:absolute!important;
  top:50%!important;
  left:4px!important;
  transform:translateY(-50%)!important;
  width:27px!important;
  height:27px!important;
  min-width:27px!important;
  margin:0!important;
  border-radius:8px!important;
  font-size:.66rem;
  z-index:3;
}
#triplemAiApiKey::-ms-reveal,#triplemAiApiKey::-ms-clear{display:none!important;width:0!important;height:0!important}
#triplemAiApiKey::-webkit-credentials-auto-fill-button{visibility:hidden!important;display:none!important;pointer-events:none!important;position:absolute!important;left:0!important}
.triplem-ai-key-entry>p{font-size:.54rem!important;line-height:1.35!important;margin:4px 1px 0!important}
.triplem-ai-settings-notice{margin-top:8px!important;padding:7px 8px!important;gap:7px!important;border-radius:10px!important;font-size:.55rem!important;line-height:1.35!important}
.triplem-ai-settings-notice>i{margin-top:1px;flex:0 0 auto}
.triplem-ai-settings-message{min-height:14px!important;margin-top:5px!important;font-size:.59rem!important;line-height:1.3}
.triplem-ai-settings-actions{padding:8px 11px!important;gap:5px!important;min-height:0;align-items:center!important}
.triplem-ai-settings-actions .btn{height:29px!important;min-height:29px!important;padding:5px 8px!important;border-radius:8px!important;font-size:.6rem!important;gap:5px}
.triplem-ai-settings-actions .btn i{font-size:.62rem}
.triplem-ai-settings-actions .triplem-ai-delete-key{margin-left:auto!important}

@media(max-width:720px){
  #triplem-aiPanel .triplem-ai-section{height:var(--triplem-ai-viewport-height,calc(100dvh - 96px));max-height:var(--triplem-ai-viewport-height,calc(100dvh - 96px))}
  #triplem-aiPanel .triplem-ai-thread{scrollbar-gutter:auto;scrollbar-width:none}
  #triplem-aiPanel .triplem-ai-thread::-webkit-scrollbar{display:none}
  .triplem-ai-settings-dialog{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;border-radius:16px}
  .triplem-ai-settings-grid,.triplem-ai-settings-status-grid{grid-template-columns:1fr!important}
  .triplem-ai-settings-dialog .settings-sheet-head{padding:10px 11px!important}
  .triplem-ai-settings-dialog .settings-sheet-body{padding:9px 11px!important}
  .triplem-ai-settings-actions{padding:7px 9px!important;flex-wrap:nowrap!important}
  .triplem-ai-settings-actions .btn{white-space:nowrap;padding-inline:7px!important}
  .triplem-ai-settings-actions .triplem-ai-delete-key{margin-left:auto!important}
}



/* 2026-09-10 Triplem AI viewport lock: the app page never becomes the chat scroller. */
html.triplem-ai-workspace-active,body.triplem-ai-workspace-active{overflow:hidden!important;overscroll-behavior:none!important}
body.triplem-ai-workspace-active #triplem-aiPanel.active{height:var(--triplem-ai-viewport-height,calc(100dvh - 16px));max-height:var(--triplem-ai-viewport-height,calc(100dvh - 16px));overflow:hidden!important}
body.triplem-ai-workspace-active #triplem-aiPanel.active>.triplem-ai-section{height:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important}
body.triplem-ai-workspace-active #triplem-aiPanel .triplem-ai-root,body.triplem-ai-workspace-active #triplem-aiPanel .triplem-ai-shell{height:100%!important;min-height:0!important;overflow:hidden!important}
body.triplem-ai-workspace-active #triplem-aiPanel .triplem-ai-thread{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;touch-action:pan-y}

/* ===== SOURCE: Assets/style/47-section-keyboard-shortcuts.css ===== */
/* Triplem VIP reusable desktop-only section keyboard shortcuts. */
.section-shortcuts-tag{display:none!important}

@media (min-width:900px) and (any-hover:hover) and (any-pointer:fine){
  .section-shortcuts-tag{
    display:inline-flex!important;
    align-items:center;
    gap:6px;
    min-height:28px;
    padding:4px 9px;
    border-radius:999px;
    white-space:nowrap;
    line-height:1;
  }
  .section-shortcuts-tag i{font-size:.78rem}
}

.section-shortcuts-dialog{
  width:min(540px,calc(100vw - 32px));
  max-width:540px;
  border-radius:18px;
  overflow:hidden;
}

.section-shortcuts-head{
  align-items:flex-start;
  gap:14px;
  padding-bottom:11px;
}

.section-shortcuts-head h3{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0;
}

.section-shortcuts-head p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:.78rem;
  line-height:1.4;
}

.section-shortcuts-body{
  display:grid;
  gap:7px;
  padding-top:4px;
}

.section-shortcut-row{
  display:grid;
  grid-template-columns:minmax(190px,auto) 1fr;
  align-items:center;
  gap:15px;
  min-height:52px;
  padding:9px 11px;
  border:1px solid var(--border);
  border-radius:13px;
  background:color-mix(in srgb,var(--card) 94%,var(--primary) 6%);
}

.section-shortcut-row>div:last-child{
  min-width:0;
  display:grid;
  gap:2px;
}

.section-shortcut-row strong{
  font-size:.84rem;
  line-height:1.2;
}

.section-shortcut-row small{
  color:var(--muted);
  font-size:.72rem;
  line-height:1.35;
}

.section-shortcut-keys{
  display:flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
}

.section-shortcut-keys span{
  color:var(--muted);
  font-size:.7rem;
}

.section-shortcut-keys kbd{
  min-width:28px;
  height:27px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border:1px solid var(--border);
  border-bottom-width:2px;
  border-radius:7px;
  background:var(--card);
  color:var(--text);
  font:700 .7rem/1 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  box-shadow:0 1px 0 color-mix(in srgb,var(--text) 10%,transparent);
}

.section-shortcuts-foot{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:10px;
  padding:8px 10px;
  border-radius:10px;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.35;
  background:color-mix(in srgb,var(--card) 96%,var(--text) 4%);
}

@media (max-width:899px),(any-hover:none),(any-pointer:coarse){
  .section-shortcuts-modal{display:none!important}
}

/* Windows app (3.8): two-key shortcuts work at every window size, so the
   section "Shortcuts" tags stay visible there; they open the full list. */
html.triplem-app-keys .section-shortcuts-tag{
  display:inline-flex!important;
  align-items:center;
  gap:6px;
  min-height:28px;
  padding:4px 9px;
  border-radius:999px;
  white-space:nowrap;
  line-height:1;
}

/* ===== SOURCE: Assets/style/48-installment-bought-sold.css ===== */
/* 163 — Bought / Sold installment plans. Compact, responsive, theme-safe. */
.installment-plan-mode{
  display:inline-grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:3px;
  width:min(100%,520px);
  margin:8px 0 10px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:11px;
  background:color-mix(in srgb,var(--card) 92%,var(--muted) 8%);
}
.installment-plan-mode-btn{
  min-width:0;
  min-height:32px;
  border:0;
  border-radius:8px;
  padding:6px 9px;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:.73rem;
  font-weight:720;
  line-height:1.15;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease;
}
.installment-plan-mode-btn.active{
  background:var(--card);
  color:var(--primary);
  box-shadow:0 1px 4px rgba(15,23,42,.08);
}
.installment-plan-mode-btn:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:1px}
.installment-type-badge{font-size:.61rem!important;padding:2px 6px!important;letter-spacing:.02em}
.installment-type-badge.is-sold{color:#067647;background:rgba(18,183,106,.1);border-color:rgba(18,183,106,.2)}
.installment-type-badge.is-bought{color:#2457d6;background:rgba(36,87,214,.08);border-color:rgba(36,87,214,.16)}
.installment-optional-details{
  border:1px solid var(--line);
  border-radius:11px;
  background:color-mix(in srgb,var(--card) 96%,var(--primary) 4%);
  overflow:hidden;
}
.installment-optional-details>summary{
  min-height:38px;
  padding:8px 10px;
  list-style:none;
  cursor:pointer;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:8px;
  font-size:.74rem;
  font-weight:730;
  color:var(--text);
}
.installment-optional-details>summary::-webkit-details-marker{display:none}
.installment-optional-details>summary>span:first-child{display:flex;align-items:center;gap:6px;min-width:0}
.installment-optional-details>summary>small{font-size:.65rem;font-weight:550;color:var(--muted);white-space:nowrap}
.installment-optional-details .expense-optional-chevron{font-size:.68rem;color:var(--muted)}
.installment-optional-details .expense-chevron-down{display:none}
.installment-optional-details[open] .expense-chevron-right{display:none}
.installment-optional-details[open] .expense-chevron-down{display:inline-block}
.installment-optional-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 9px;
  padding:9px 10px 10px;
  border-top:1px solid var(--line);
}
.installment-optional-grid>.field{grid-column:auto!important;margin:0!important;min-width:0}
.installment-optional-grid>.expense-optional-wide{grid-column:1/-1!important}
.installment-optional-grid label{font-size:.66rem!important;margin-bottom:3px!important;color:var(--muted)!important}
.installment-optional-grid :is(.input,.select){min-height:32px!important;height:32px!important;padding:5px 8px!important;font-size:.72rem!important;width:100%!important}
.installment-details-card{
  border:1px solid var(--line);
  border-radius:10px;
  padding:9px 10px;
  background:color-mix(in srgb,var(--card) 97%,var(--primary) 3%);
}
.installment-details-card h4{margin:0 0 7px;font-size:.74rem;color:var(--text)}
.installment-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px}
.installment-detail-row{min-width:0;display:flex;flex-direction:column;gap:1px}
.installment-detail-row small{font-size:.61rem;color:var(--muted)}
.installment-detail-row strong{font-size:.71rem;font-weight:650;word-break:break-word;color:var(--text)}
.installment-plan-card[data-plan-type="sold"] .ip-progress-fill{background:linear-gradient(90deg,#12b76a,#039855)}
#installmentPlanModal .ipo-actions .btn,#installmentEditModal .modal-footer .btn{min-height:31px;padding:5px 10px;font-size:.7rem}
#installmentEditModal .modal-dialog,#entryModal .modal-dialog.compact-entry-dialog{max-width:min(680px,calc(100vw - 24px))}
@media (max-width:640px){
  .installment-plan-mode{display:grid;width:100%;margin:7px 0 9px}
  .installment-plan-mode-btn{min-height:31px;padding:5px 6px;font-size:.67rem;gap:4px}
  .installment-plan-mode-btn i{font-size:.67rem}
  .installment-optional-details>summary{grid-template-columns:minmax(0,1fr) auto;padding:8px 9px}
  .installment-optional-details>summary>small{display:none}
  .installment-optional-grid{grid-template-columns:1fr;gap:7px;padding:8px 9px}
  .installment-optional-grid>.expense-optional-wide{grid-column:auto!important}
  .installment-details-grid{grid-template-columns:1fr}
  #entryModal .modal-dialog.compact-entry-dialog,#installmentEditModal .modal-dialog{width:calc(100vw - 12px);max-width:none;max-height:calc(100dvh - 12px)}
}

/* 2026-09-15 — schedule calculation mode: installment count or fixed monthly amount. */
.installment-calc-mode{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px;
  width:min(100%,300px);
  padding:3px;
  border:1px solid var(--line);
  border-radius:10px;
  background:color-mix(in srgb,var(--card) 94%,var(--muted) 6%);
}
.installment-calc-choice{margin:0!important;cursor:pointer;min-width:0}
.installment-calc-choice>input{position:absolute;opacity:0;pointer-events:none}
.installment-calc-choice>span{
  min-height:31px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:5px 9px;
  border-radius:7px;
  color:var(--muted);
  font-size:.71rem;
  font-weight:760;
  line-height:1;
  transition:background .14s ease,color .14s ease,box-shadow .14s ease;
}
.installment-calc-choice>span i{
  width:15px;
  height:15px;
  display:grid;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--muted) 42%,transparent);
  border-radius:50%;
  font-size:.47rem;
  color:transparent;
  transition:background .14s ease,border-color .14s ease,color .14s ease;
}
.installment-calc-choice>input:checked+span{
  background:var(--card);
  color:var(--primary);
  box-shadow:0 1px 4px rgba(15,23,42,.08);
}
.installment-calc-choice>input:checked+span i{
  color:#fff;
  border-color:var(--primary);
  background:var(--primary);
}
.installment-calc-choice>input:focus-visible+span{outline:2px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:1px}
@media (max-width:640px){
  .installment-calc-mode{width:100%}
  .installment-calc-choice>span{min-height:30px;font-size:.68rem}
}

/* ===== SOURCE: Assets/style/50-dashboard-financial-timeline.css ===== */
/* Dashboard > Financial Timeline */
.dashboard-main-tabs{display:inline-flex;align-items:center;gap:3px;padding:3px;margin:0 0 12px;border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--panel-2) 86%,transparent);max-width:100%}
.dashboard-main-tab{appearance:none;border:0;background:transparent;color:var(--muted);font:inherit;font-size:.78rem;font-weight:700;line-height:1;padding:8px 11px;border-radius:7px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;transition:background .16s ease,color .16s ease,transform .16s ease}
.dashboard-main-tab i{font-size:.72rem}.dashboard-main-tab:hover{color:var(--text);background:color-mix(in srgb,var(--primary) 8%,transparent)}
.dashboard-main-tab.active{background:var(--primary);color:#fff;box-shadow:0 3px 10px color-mix(in srgb,var(--primary) 20%,transparent)}
.financial-timeline-root{display:grid;gap:12px;min-width:0}.timeline-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) auto auto auto 34px;gap:7px;align-items:center}
.timeline-search{height:34px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:var(--input);color:var(--muted)}
.timeline-search:focus-within{border-color:color-mix(in srgb,var(--primary) 55%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 10%,transparent)}
.timeline-search i{font-size:.72rem}.timeline-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:.78rem}.timeline-search input::placeholder{color:var(--muted)}
.timeline-filter,.timeline-refresh-btn{height:34px;border:1px solid var(--line);border-radius:9px;background:var(--input);color:var(--text);font:inherit;font-size:.75rem;font-weight:650;padding:0 9px;outline:0}
.timeline-filter:focus,.timeline-refresh-btn:focus-visible{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 10%,transparent)}
.timeline-refresh-btn{width:34px;padding:0;display:grid;place-items:center;cursor:pointer}.timeline-refresh-btn:hover{color:var(--primary);background:color-mix(in srgb,var(--primary) 8%,var(--input))}
.timeline-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.timeline-summary-grid article{min-height:58px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;background:linear-gradient(145deg,color-mix(in srgb,var(--panel) 96%,var(--primary) 4%),var(--panel));display:grid;align-content:center;gap:4px;min-width:0}
.timeline-summary-grid article span:first-child{font-size:.66rem;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.045em}.timeline-summary-grid article>strong{font-size:.88rem;color:var(--text);display:flex;flex-wrap:wrap;gap:4px;min-width:0}.timeline-summary-grid article.is-inflow>strong{color:var(--success)}.timeline-summary-grid article.is-outflow>strong{color:var(--danger)}
.timeline-summary-currency{font-size:.75rem!important;text-transform:none!important;letter-spacing:0!important;color:inherit!important;display:inline-flex;align-items:center;padding:2px 5px;border-radius:5px;background:color-mix(in srgb,currentColor 7%,transparent)}
.timeline-stream{display:grid;gap:14px}.timeline-day{display:grid;grid-template-columns:116px minmax(0,1fr);gap:10px;align-items:start}.timeline-day>header{position:sticky;top:8px;padding:7px 4px}.timeline-day>header>div{display:grid;gap:2px}.timeline-day>header strong{font-size:.76rem;color:var(--text)}.timeline-day>header span{font-size:.66rem;color:var(--muted)}
.timeline-day-list{position:relative;display:grid;gap:6px;padding-right:15px}.timeline-day-list:before{content:"";position:absolute;right:3px;top:17px;bottom:17px;width:1px;background:color-mix(in srgb,var(--primary) 26%,var(--line))}
.timeline-event-card{position:relative;width:100%;min-width:0;text-align:right;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--text);padding:10px 10px 10px 28px;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:9px;align-items:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.035);transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease}
.timeline-event-card:before{content:"";position:absolute;right:-15px;top:50%;width:8px;height:8px;border-radius:50%;transform:translateY(-50%);background:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--panel) 82%,transparent),0 0 0 4px color-mix(in srgb,var(--primary) 28%,var(--line))}.timeline-event-card:hover{border-color:color-mix(in srgb,var(--primary) 42%,var(--line));background:color-mix(in srgb,var(--panel) 97%,var(--primary) 3%);box-shadow:0 6px 18px rgba(0,0,0,.07);transform:translateY(-1px)}
.timeline-event-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-size:.76rem}.timeline-event-card.is-inflow .timeline-event-icon{color:var(--success);background:color-mix(in srgb,var(--success) 12%,transparent)}.timeline-event-card.is-outflow .timeline-event-icon{color:var(--danger);background:color-mix(in srgb,var(--danger) 10%,transparent)}.timeline-event-card.is-transfer .timeline-event-icon{color:var(--primary)}
.timeline-event-main{display:grid;min-width:0;gap:2px}.timeline-event-kicker{display:flex;align-items:center;gap:5px;min-width:0}.timeline-event-kicker b{font-size:.62rem;text-transform:uppercase;letter-spacing:.045em;color:var(--muted)}.timeline-event-kicker em{font-style:normal;font-size:.61rem;color:var(--muted);padding-right:5px;border-right:1px solid var(--line)}.timeline-event-main>strong{font-size:.79rem;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-event-main>small{font-size:.69rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-status{font-size:.58rem!important;padding:2px 5px;border-radius:999px;background:var(--panel-2);border:1px solid var(--line);color:var(--muted)!important;text-transform:capitalize!important;letter-spacing:0!important}
.timeline-event-side{display:grid;justify-items:end;gap:2px;white-space:nowrap}.timeline-event-side time{font-size:.62rem;color:var(--muted)}.timeline-amount{font-size:.76rem;font-weight:800}.timeline-amount.is-inflow{color:var(--success)}.timeline-amount.is-outflow{color:var(--danger)}.timeline-amount.is-transfer{color:var(--primary)}.timeline-secondary-amount{font-size:.62rem;color:var(--muted)}.timeline-event-open{position:absolute;left:9px;top:50%;transform:translateY(-50%);font-size:.58rem;color:var(--muted);opacity:.6}
.timeline-more-wrap{display:flex;justify-content:center;padding:2px 0 8px}.timeline-more-btn{min-height:32px!important;padding:6px 13px!important;font-size:.72rem!important;border-radius:8px!important}.timeline-empty{min-height:180px;border:1px dashed var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel-2) 65%,transparent);display:grid;place-items:center;align-content:center;text-align:center;gap:5px;padding:24px;color:var(--muted)}.timeline-empty i{font-size:1.2rem;color:var(--primary)}.timeline-empty strong{font-size:.86rem;color:var(--text)}.timeline-empty span{font-size:.72rem;max-width:380px}.timeline-empty.is-error i{color:var(--danger)}
.timeline-loading{display:grid;gap:7px}.timeline-loading span{height:64px;border-radius:11px;border:1px solid var(--line);background:linear-gradient(90deg,var(--panel),color-mix(in srgb,var(--panel-2) 75%,var(--primary) 5%),var(--panel));background-size:220% 100%;animation:timelineShimmer 1.2s linear infinite}@keyframes timelineShimmer{to{background-position:-220% 0}}
@media(max-width:900px){.timeline-toolbar{grid-template-columns:minmax(150px,1fr) repeat(2,minmax(0,auto)) 34px}.timeline-toolbar #timelineRangeFilter{grid-column:auto}.timeline-day{grid-template-columns:92px minmax(0,1fr)}.timeline-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dashboard-main-tabs{width:100%;display:grid;grid-template-columns:1fr 1fr}.dashboard-main-tab{justify-content:center;font-size:.72rem;padding:8px}.timeline-toolbar{grid-template-columns:minmax(0,1fr) 34px}.timeline-search{grid-column:1/-1}.timeline-filter{min-width:0;width:100%}.timeline-toolbar #timelineRangeFilter{grid-column:1/2}.timeline-summary-grid{gap:6px}.timeline-summary-grid article{min-height:52px;padding:8px 9px;border-radius:9px}.timeline-day{grid-template-columns:1fr;gap:4px}.timeline-day>header{position:static;padding:3px 2px}.timeline-day>header>div{display:flex;justify-content:space-between;align-items:center}.timeline-day-list{padding-right:13px}.timeline-event-card{grid-template-columns:29px minmax(0,1fr);padding:9px 8px 9px 24px;border-radius:9px;gap:8px}.timeline-event-icon{width:29px;height:29px;border-radius:8px}.timeline-event-side{grid-column:2/3;display:flex;justify-content:flex-start;align-items:center;gap:7px;margin-top:2px}.timeline-event-main>strong{font-size:.76rem}.timeline-event-main>small{font-size:.66rem}.timeline-event-kicker em{display:none}.timeline-event-open{left:8px}.timeline-day-list:before{right:2px}.timeline-event-card:before{right:-13px}}
@media(prefers-reduced-motion:reduce){.timeline-event-card,.dashboard-main-tab{transition:none}.timeline-loading span{animation:none}}
.timeline-day-net{display:flex;flex-wrap:wrap;gap:3px;margin-top:2px;color:var(--muted);font-size:.61rem}.timeline-day-net .timeline-summary-currency{font-size:.61rem!important;padding:1px 4px;background:var(--panel-2)}
@media(max-width:600px){.timeline-day-net{margin-right:auto;margin-top:0;justify-content:flex-end}}

/* Build 167 — record-opening feedback and stable timeline interaction. */
.timeline-event-card.is-opening{cursor:progress;pointer-events:none;opacity:.72;transform:none!important}
.timeline-event-card.is-opening .timeline-event-open{display:none}
.timeline-event-card.is-opening:after{content:"";position:absolute;left:9px;top:50%;width:11px;height:11px;margin-top:-6px;border-radius:50%;border:2px solid color-mix(in srgb,var(--primary) 18%,var(--line));border-top-color:var(--primary);animation:timelineRecordSpin .7s linear infinite}
.timeline-record-loader{position:fixed;inset:0;z-index:2147481600;display:grid;place-items:center;padding:16px;background:color-mix(in srgb,#0f172a 10%,transparent);pointer-events:auto}
.timeline-record-loader.hide{display:none!important}
.timeline-record-loader-card{display:flex;align-items:center;gap:11px;width:min(340px,calc(100vw - 30px));padding:13px 14px;border:1px solid var(--line);border-radius:13px;background:var(--panel);color:var(--text);box-shadow:0 16px 48px rgba(15,23,42,.2)}
.timeline-record-loader-card>div{display:grid;gap:2px;min-width:0}.timeline-record-loader-card strong{font-size:.78rem}.timeline-record-loader-card small{font-size:.67rem;color:var(--muted);line-height:1.35}
.timeline-record-loader-spinner{width:22px;height:22px;flex:0 0 22px;border-radius:50%;border:2px solid color-mix(in srgb,var(--primary) 18%,var(--line));border-top-color:var(--primary);animation:timelineRecordSpin .7s linear infinite}
@keyframes timelineRecordSpin{to{transform:rotate(360deg)}}
@media(max-width:600px){.timeline-record-loader-card{padding:12px;border-radius:11px}.timeline-record-loader-card strong{font-size:.75rem}}
@media(prefers-reduced-motion:reduce){.timeline-event-card.is-opening:after,.timeline-record-loader-spinner{animation:none}}

/* ===== SOURCE: Assets/style/51-messages-compose-receipts.css ===== */
/* Build 166/167: Messages compose viewport overlay + private message receipts. */

body > #messagesNewComposer.messages-compose{
  position:fixed;
  inset:0;
  z-index:2147481800;
  display:grid;
  place-items:center;
  margin:0!important;
  padding:14px;
  overflow:auto;
  overscroll-behavior:contain;
  isolation:isolate;
}
#messagesNewComposer.messages-compose.hide{display:none!important}
#messagesNewComposer .messages-compose-backdrop{
  position:absolute;
  inset:0;
  background:color-mix(in srgb,#0f172a 42%,transparent);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
#messagesNewComposer .messages-compose-card{
  position:relative;
  z-index:1;
  width:min(510px,calc(100vw - 28px));
  max-height:min(620px,calc(100dvh - 28px));
  overflow:auto;
  padding:15px;
  border:1px solid color-mix(in srgb,var(--primary,#2457d6) 16%,var(--line));
  border-radius:15px;
  background:var(--panel,#fff);
  box-shadow:0 22px 64px rgba(15,23,42,.24);
}
#messagesNewComposer .messages-compose-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 7px;
  padding:0 0 8px;
  border-bottom:1px solid var(--line);
}
#messagesNewComposer .messages-compose-head h4{
  margin:0;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.94rem;
}
#messagesNewComposer .messages-compose-head h4::before{
  content:"\f304";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  flex:0 0 28px;
  border-radius:9px;
  background:color-mix(in srgb,var(--primary,#2457d6) 10%,var(--panel,#fff));
  color:var(--primary,#2457d6);
  font-size:.72rem;
}
#messagesNewComposer .messages-compose-head .btn{
  width:30px;
  height:30px;
  min-width:30px;
  min-height:30px;
  padding:0;
  border-radius:9px;
}
#messagesNewComposer .help{
  margin:7px 0 10px;
  font-size:.72rem;
  line-height:1.42;
}
#messagesNewComposer .form-group{margin-bottom:9px}
#messagesNewComposer .form-label{
  display:block;
  margin-bottom:4px;
  font-size:.71rem;
  font-weight:750;
}
#messagesNewComposer .input,
#messagesNewComposer .select{
  min-height:36px;
  padding-top:7px;
  padding-bottom:7px;
  border-radius:10px;
  font-size:.78rem;
}
#messagesNewComposer .messages-textarea{
  min-height:94px;
  max-height:170px;
  resize:vertical;
  line-height:1.42;
}
#messagesNewComposer #inquiryFormError{margin-top:2px}
#messagesNewComposer .messages-compose-actions{
  display:flex;
  justify-content:flex-end;
  margin:9px 0 0;
  padding:9px 0 0;
  border-top:1px solid var(--line);
  background:transparent;
}
#messagesNewComposer .messages-compose-actions .btn{
  min-width:116px;
  min-height:35px;
  justify-content:center;
  border-radius:10px;
  font-size:.75rem;
}
body.messages-compose-open{overflow:hidden!important}

.chat-message-time-status{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  white-space:nowrap;
}
.message-delivery-tick{
  display:inline-grid;
  place-items:center;
  width:15px;
  height:15px;
  font-size:.62rem;
  line-height:1;
  transition:color .2s ease,transform .2s ease;
}
.message-delivery-tick.is-sent{color:#94a3b8}
.message-delivery-tick.is-delivered{color:#f97316}
.message-delivery-tick.is-read{color:#166534}
.message-delivery-tick.is-read i{transform:scale(1.04)}

@media (max-width:600px){
  body > #messagesNewComposer.messages-compose{
    place-items:center;
    padding:9px;
  }
  #messagesNewComposer .messages-compose-card{
    width:min(100%,430px);
    max-height:calc(100dvh - 18px);
    padding:13px;
    border-radius:14px;
  }
  #messagesNewComposer .messages-compose-head{margin-bottom:6px;padding-bottom:7px}
  #messagesNewComposer .help{margin:6px 0 9px;font-size:.69rem}
  #messagesNewComposer .form-group{margin-bottom:8px}
  #messagesNewComposer .messages-textarea{min-height:86px;max-height:145px}
  #messagesNewComposer .messages-compose-actions{margin-top:8px;padding-top:8px}
  #messagesNewComposer .messages-compose-actions .btn{width:100%;min-height:36px}
  #messagesNewComposer .input,
  #messagesNewComposer .select,
  #messagesNewComposer textarea{font-size:16px!important}
  .chat-bubble{max-width:88%}
  .chat-bubble-meta{gap:7px}
}

/* ===== SOURCE: Assets/style/53-company-team-management.css ===== */
/* Company Team Management 2026-09-17
 * Compact, theme-native company administration surface. All visual surfaces use
 * central theme tokens so white/light/dark/pink/green/red/neon themes remain legible.
 */
#companyTeamModal .company-team-dialog {
  width:min(780px, calc(100vw - 24px));
  max-height:min(760px, calc(100dvh - 24px));
  overflow:hidden;
  padding:0;
  background:var(--modal-bg) !important;
  color:var(--text) !important;
  border:1px solid var(--line-strong) !important;
  border-radius:18px;
  box-shadow:var(--shadow-lg, 0 20px 55px rgba(0,0,0,.18));
}

#companyTeamModal .company-team-head {
  min-height:0;
  padding:14px 16px 12px;
  background:var(--modal-bg) !important;
  border-bottom:1px solid var(--line) !important;
}

#companyTeamModal .company-team-head h3 {
  margin:2px 0 1px;
  color:var(--text-strong) !important;
  font-size:1.02rem;
  line-height:1.2;
}

#companyTeamModal .company-team-head p {
  margin:0;
  color:var(--muted) !important;
  font-size:.72rem;
  line-height:1.35;
}

#companyTeamModal .company-team-kicker {
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--primary) !important;
  font-size:.64rem !important;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}

#companyTeamModal .company-team-shell {
  display:grid;
  grid-template-columns:94px minmax(0, 1fr);
  min-height:0;
  height:calc(min(760px, 100dvh - 24px) - 70px);
  max-height:calc(min(760px, 100dvh - 24px) - 70px);
  overflow:hidden;
  background:var(--modal-bg) !important;
}

#companyTeamModal .company-team-nav {
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:10px 8px;
  background:var(--surface-soft) !important;
  border-left:1px solid var(--line) !important;
}

#companyTeamModal .company-team-nav-btn,
#companyTeamModal .company-team-icon-btn {
  appearance:none;
  border:1px solid transparent;
  background:transparent !important;
  color:var(--muted) !important;
  font:inherit;
  cursor:pointer;
  transition:.16s ease;
}

#companyTeamModal .company-team-nav-btn {
  min-height:48px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:6px 4px;
  border-radius:11px;
  font-size:.64rem;
  font-weight:700;
}

#companyTeamModal .company-team-nav-btn i { font-size:.88rem; }

#companyTeamModal .company-team-nav-btn:hover,
#companyTeamModal .company-team-nav-btn.is-active {
  color:var(--primary) !important;
  background:var(--control-hover) !important;
  border-color:var(--line-strong) !important;
}

#companyTeamModal .company-team-body {
  min-height:0;
  height:100%;
  max-height:100%;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:14px;
  background:var(--modal-bg) !important;
  color:var(--text) !important;
}

#companyTeamModal .company-team-panel { color:var(--text) !important; }

#companyTeamModal .company-team-body::-webkit-scrollbar,
#companyTeamModal .company-team-nav::-webkit-scrollbar,
#companyTeamModal .company-team-activity-list::-webkit-scrollbar { width:0; height:0; display:none; }

#companyTeamModal .company-team-panel,
#companyTeamModal .company-team-list,
#companyTeamModal .company-team-access-list,
#companyTeamModal .company-team-activity-list,
#companyTeamModal .company-team-compact-form,
#companyTeamModal .company-team-billing-form {
  background:transparent !important;
  color:var(--text) !important;
}

#companyTeamModal .empty,
#companyTeamModal .empty.tiny {
  background:transparent !important;
  color:var(--muted) !important;
  border-color:var(--line) !important;
}

#companyTeamModal .company-team-activity-main strong,
#companyTeamModal .company-team-activity-main span,
#companyTeamModal .cta-line,
#companyTeamModal .cta-line * { color:var(--text) !important; }
#companyTeamModal .cta-line { background:var(--card-bg) !important; border-color:var(--line) !important; }
#companyTeamModal .cta-mod,
#companyTeamModal .cta-time { color:var(--muted) !important; }
#companyTeamModal .cta-mod { background:var(--surface-soft) !important; border-color:var(--line) !important; }

#companyTeamModal input[type="checkbox"],
#companyTeamModal input[type="radio"] { accent-color:var(--primary); }

#companyTeamModal .company-team-member-editor {
  scroll-margin-block:14px;
}

#companyTeamModal .company-team-panel-head,
#companyTeamModal .company-team-activity-toolbar {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

#companyTeamModal .company-team-panel-head h4 {
  margin:0;
  color:var(--text-strong) !important;
  font-size:.9rem;
}

#companyTeamModal .company-team-panel-head p {
  margin:2px 0 0;
  color:var(--muted) !important;
  font-size:.69rem;
}

#companyTeamModal .company-team-panel-icon {
  color:var(--primary) !important;
  opacity:.82;
}

#companyTeamModal .company-team-seats,
#companyTeamModal .company-team-title-badge,
#companyTeamModal .company-team-chip,
#companyTeamModal .company-team-access-flags span {
  background:var(--surface-soft) !important;
  color:var(--text) !important;
  border:1px solid var(--line) !important;
}

#companyTeamModal .company-team-seats {
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 8px;
  border-radius:999px;
  font-size:.67rem;
  font-weight:750;
  white-space:nowrap;
}

#companyTeamModal .company-team-seats.is-full {
  color:var(--warning) !important;
  border-color:currentColor !important;
}

#companyTeamModal .company-team-list,
#companyTeamModal .company-team-access-list {
  display:flex;
  flex-direction:column;
  gap:7px;
}

#companyTeamModal .company-team-member,
#companyTeamModal .company-team-access-row,
#companyTeamModal .company-team-perm-editor,
#companyTeamModal .company-team-security-note,
#companyTeamModal .company-team-pending,
#companyTeamModal .company-team-quote,
#companyTeamModal .company-team-stat-grid > div,
#companyTeamModal .company-team-activity-list,
#companyTeamModal .company-team-activity-row {
  background:var(--card-bg) !important;
  color:var(--text) !important;
  border-color:var(--line) !important;
}

#companyTeamModal .company-team-member {
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
}

#companyTeamModal .company-team-member-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}

#companyTeamModal .company-team-member-name {
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  flex-wrap:wrap;
}

#companyTeamModal .company-team-member-name strong {
  color:var(--text-strong) !important;
  font-size:.83rem;
}

#companyTeamModal .company-team-member-name code {
  color:var(--muted) !important;
  font-size:.68rem;
}

#companyTeamModal .company-team-title-badge {
  display:inline-flex;
  padding:2px 6px;
  border-radius:999px;
  font-size:.61rem;
  font-weight:750;
}

#companyTeamModal .company-team-chip-row {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:7px;
}

#companyTeamModal .company-team-chip {
  padding:2px 6px;
  border-radius:999px;
  font-size:.61rem;
  font-weight:650;
}

#companyTeamModal .company-team-chip.is-on { color:var(--primary) !important; }
#companyTeamModal .company-team-chip.is-off { color:var(--muted) !important; }

#companyTeamModal .company-team-member-actions {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:8px;
}

#companyTeamModal .company-team-icon-btn {
  min-height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:5px 8px;
  border-radius:9px;
  border-color:var(--line) !important;
  background:var(--control-bg) !important;
  font-size:.67rem;
  font-weight:700;
}

#companyTeamModal .company-team-icon-btn:hover:not(:disabled) {
  background:var(--control-hover) !important;
  color:var(--text-strong) !important;
  border-color:var(--line-strong) !important;
}

#companyTeamModal .company-team-icon-btn.is-danger { color:var(--danger) !important; }
#companyTeamModal .company-team-icon-btn:disabled { opacity:.45; cursor:default; }

#companyTeamModal .company-team-compact-form,
#companyTeamModal .company-team-billing-form,
#companyTeamModal .company-team-edit-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:9px;
}

#companyTeamModal .company-team-form-wide { grid-column:1 / -1; }

#companyTeamModal .form-label,
#companyTeamModal .help,
#companyTeamModal .company-team-activity-count,
#companyTeamModal .company-team-activity-page { color:var(--muted) !important; }

#companyTeamModal .input,
#companyTeamModal .admin-password-row,
#companyTeamModal .admin-check-grid,
#companyTeamModal .company-team-perm-grid,
#companyTeamModal .admin-check-item {
  background:var(--control-bg) !important;
  color:var(--text) !important;
  border-color:var(--line) !important;
}

#companyTeamModal .input {
  min-height:36px;
  padding:7px 9px;
  font-size:.78rem;
}

#companyTeamModal .input::placeholder { color:var(--muted) !important; opacity:.72; }

#companyTeamModal .company-team-perm-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(132px, 1fr));
  gap:6px;
  padding:7px;
  border:1px solid var(--line);
  border-radius:10px;
}

#companyTeamModal .admin-check-item {
  min-height:32px;
  display:flex;
  align-items:center;
  gap:6px;
  padding:5px 7px;
  border:1px solid var(--line);
  border-radius:8px;
  font-size:.69rem;
}

#companyTeamModal .company-team-security-note,
#companyTeamModal .company-team-pending {
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  color:var(--muted) !important;
  font-size:.68rem;
}

#companyTeamModal .company-team-security-note i,
#companyTeamModal .company-team-pending i { color:var(--primary) !important; margin-top:1px; }

#companyTeamModal .company-team-form-actions,
#companyTeamModal .company-team-perm-editor-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

#companyTeamModal .company-team-form-actions .lock-error { flex:1 1 auto; margin:0; }

#companyTeamModal .company-team-perm-editor {
  margin-top:9px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:11px;
}

#companyTeamModal .company-team-access-row {
  display:grid;
  grid-template-columns:minmax(140px, .8fr) minmax(0, 1.6fr) auto;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:10px;
}

#companyTeamModal .company-team-access-row > div:first-child { display:flex; flex-direction:column; min-width:0; }
#companyTeamModal .company-team-access-row strong { color:var(--text-strong) !important; font-size:.75rem; }
#companyTeamModal .company-team-access-row > div:first-child span { color:var(--muted) !important; font-size:.64rem; }
#companyTeamModal .company-team-access-flags { display:flex; gap:4px; flex-wrap:wrap; }
#companyTeamModal .company-team-access-flags span { padding:2px 5px; border-radius:999px; font-size:.59rem; }

#companyTeamModal .company-team-stat-grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:7px;
  margin-bottom:9px;
}

#companyTeamModal .company-team-stat-grid > div {
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:10px;
}

#companyTeamModal .company-team-stat-grid span { color:var(--muted) !important; font-size:.6rem; }
#companyTeamModal .company-team-stat-grid strong { color:var(--text-strong) !important; font-size:.8rem; }
#companyTeamModal .company-team-pending { margin-bottom:9px; }
#companyTeamModal .company-team-pending div { display:flex; flex-direction:column; gap:1px; }
#companyTeamModal .company-team-pending strong { color:var(--text-strong) !important; }

#companyTeamModal .company-team-quote {
  min-height:36px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:2px 8px;
  padding:7px 9px;
  border:1px solid var(--line);
  border-radius:10px;
}
#companyTeamModal .company-team-quote span,
#companyTeamModal .company-team-quote small { color:var(--muted) !important; font-size:.62rem; }
#companyTeamModal .company-team-quote strong { color:var(--text-strong) !important; font-size:.77rem; }
#companyTeamModal .company-team-quote small { grid-column:1 / -1; }

#companyTeamModal .company-team-bank-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:7px;
}
#companyTeamModal .company-team-bank-grid .signup-bank-card {
  margin:0;
  background:var(--card-bg) !important;
  color:var(--text) !important;
  border-color:var(--line) !important;
}
#companyTeamModal .company-team-bank-grid .signup-bank-card.selected { border-color:var(--primary) !important; background:var(--surface-soft) !important; }
#companyTeamModal .company-team-bank-grid .signup-bank-card strong { color:var(--text-strong) !important; }
#companyTeamModal .company-team-bank-grid .signup-bank-card small { color:var(--muted) !important; }
#companyTeamModal .company-team-billing-form.is-pending { opacity:.58; pointer-events:none; }

#companyTeamModal .company-team-activity-list {
  border:1px solid var(--line);
  border-radius:10px;
  overflow:auto;
  max-height:min(54vh, 430px);
}
#companyTeamModal .cta-line { border-color:var(--line) !important; color:var(--text) !important; }
#companyTeamModal .cta-actor,
#companyTeamModal .cta-summary { color:var(--text) !important; }
#companyTeamModal .cta-mod { background:var(--surface-soft) !important; color:var(--muted) !important; }
#companyTeamModal .cta-time { color:var(--muted) !important; }

@media (max-width: 700px) {
  #companyTeamModal .company-team-dialog {
    width:calc(100vw - 14px);
    max-height:calc(100dvh - 14px);
    border-radius:15px;
  }
  #companyTeamModal .company-team-shell {
    grid-template-columns:1fr;
    grid-template-rows:auto minmax(0, 1fr);
    height:calc(100dvh - 82px);
    max-height:calc(100dvh - 82px);
  }
  #companyTeamModal .company-team-nav {
    flex-direction:row;
    overflow-x:auto;
    border-left:0 !important;
    border-bottom:1px solid var(--line) !important;
    padding:6px 7px;
  }
  #companyTeamModal .company-team-nav-btn {
    min-width:58px;
    min-height:42px;
    flex:1 0 58px;
  }
  #companyTeamModal .company-team-body { padding:10px; }
  #companyTeamModal .company-team-compact-form,
  #companyTeamModal .company-team-billing-form,
  #companyTeamModal .company-team-edit-grid,
  #companyTeamModal .company-team-bank-grid { grid-template-columns:1fr; }
  #companyTeamModal .company-team-stat-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  #companyTeamModal .company-team-access-row { grid-template-columns:1fr auto; }
  #companyTeamModal .company-team-access-flags { grid-column:1 / -1; grid-row:2; }
  #companyTeamModal .company-team-form-actions { align-items:stretch; flex-direction:column; }
  #companyTeamModal .company-team-form-actions .btn { width:100%; }
  #companyTeamModal .company-team-member-actions .company-team-icon-btn span { display:none; }
  #companyTeamModal .company-team-member-actions .company-team-icon-btn { width:32px; padding-inline:0; }
}

/* 2026-09-22 — team billing support contact */
#companyTeamModal .company-team-billing-contact a{color:var(--primary)!important;font-weight:800;text-decoration:none;overflow-wrap:anywhere}
#companyTeamModal .company-team-billing-contact a:hover,#companyTeamModal .company-team-billing-contact a:focus-visible{text-decoration:underline;outline:none}

/* ===== SOURCE: Assets/style/54-insurance.css ===== */
/* Triplem VIP Insurance module. Uses the existing theme variables and modal primitives. */
.insurance-shell{display:grid;gap:12px}.insurance-head-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.insurance-view-tabs{display:flex;gap:6px;overflow:auto;scrollbar-width:none;padding:2px 0}.insurance-view-tabs::-webkit-scrollbar{display:none}.insurance-view-tab{white-space:nowrap}.insurance-view-tab.active{background:var(--accent);color:var(--accent-contrast,#fff);border-color:transparent}.insurance-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.insurance-kpi{border:1px solid var(--border);background:var(--panel-2);border-radius:14px;padding:10px 12px;min-width:0}.insurance-kpi span{display:block;color:var(--muted);font-size:.72rem;font-weight:700;letter-spacing:.02em}.insurance-kpi strong{display:block;margin-top:4px;font-size:1rem;line-height:1.2;overflow-wrap:anywhere}.insurance-kpi.loss strong,.insurance-amount-loss{color:var(--danger,#c83d4c)}.insurance-toolbar{display:flex;gap:7px;align-items:end;flex-wrap:wrap}.insurance-toolbar .form-group{margin:0;min-width:120px;flex:1 1 140px}.insurance-toolbar .insurance-search{flex:2 1 220px}.insurance-list{display:grid;gap:8px}.insurance-row{border:1px solid var(--border);background:var(--panel);border-radius:14px;padding:11px 12px;display:grid;grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(100px,.8fr)) auto;gap:10px;align-items:center;transition:.18s ease}.insurance-row:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--accent) 35%,var(--border))}.insurance-row-main{min-width:0}.insurance-row-main strong,.insurance-row-main small{display:block}.insurance-row-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.insurance-row-main small,.insurance-cell small{color:var(--muted);font-size:.72rem}.insurance-cell{min-width:0}.insurance-cell b{display:block;font-size:.83rem;overflow-wrap:anywhere}.insurance-actions{display:flex;gap:5px;justify-content:flex-end}.insurance-empty{border:1px dashed var(--border);border-radius:14px;padding:24px 14px;text-align:center;color:var(--muted)}.insurance-empty i{font-size:1.35rem;display:block;margin-bottom:7px}.insurance-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.insurance-form-grid .wide{grid-column:1/-1}.insurance-form-grid label{font-size:.76rem;font-weight:700;color:var(--muted)}.insurance-form-grid label .input,.insurance-form-grid label .select{margin-top:5px;width:100%}.insurance-customer-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.insurance-customer-mode{border:1px solid var(--border);border-radius:11px;padding:8px;background:var(--panel-2);font-size:.76rem;font-weight:700;cursor:pointer}.insurance-customer-mode.active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}.insurance-customer-search-wrap{position:relative;isolation:isolate}.insurance-customer-search-results{position:absolute;right:0;left:0;top:calc(100% + 4px);z-index:9999;display:grid;gap:4px;max-height:220px;overflow:auto;border:1px solid var(--border);border-radius:11px;background:var(--bg,#fff)!important;background-color:var(--bg,#fff)!important;opacity:1!important;background-image:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:4px;scrollbar-width:thin;box-shadow:0 12px 28px color-mix(in srgb,#000 18%,transparent)}.insurance-customer-search-results:empty{display:none}.insurance-customer-search-result{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text);text-align:right;cursor:pointer}.insurance-customer-search-result:hover,.insurance-customer-search-result.selected{background:var(--panel);border-color:var(--accent)}.insurance-customer-search-result>span{display:grid;gap:2px;min-width:0}.insurance-customer-search-result strong{font-size:.72rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.insurance-customer-search-result small{color:var(--muted);font-size:.58rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.insurance-customer-search-result>i{color:var(--muted);font-size:.62rem;flex:0 0 auto}
.insurance-calc{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.insurance-calc-item{padding:9px;border-radius:11px;background:var(--panel-2);border:1px solid var(--border)}.insurance-calc-item span{display:block;color:var(--muted);font-size:.7rem}.insurance-calc-item strong{display:block;margin-top:3px;font-size:.9rem}.insurance-warning{grid-column:1/-1;border-radius:10px;padding:8px 10px;font-size:.75rem;background:color-mix(in srgb,var(--warning,#d89b24) 12%,transparent);border:1px solid color-mix(in srgb,var(--warning,#d89b24) 35%,var(--border))}.insurance-warning.loss{background:color-mix(in srgb,var(--danger,#c83d4c) 10%,transparent);border-color:color-mix(in srgb,var(--danger,#c83d4c) 35%,var(--border))}.insurance-modal .modal-dialog{max-width:660px}.insurance-modal .modal-body{max-height:min(76vh,720px);overflow:auto;scrollbar-width:none}.insurance-modal .modal-body::-webkit-scrollbar{display:none}.insurance-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.insurance-detail{border:1px solid var(--border);background:var(--panel-2);border-radius:11px;padding:9px}.insurance-detail span{display:block;color:var(--muted);font-size:.7rem}.insurance-detail strong{display:block;margin-top:3px;font-size:.84rem;overflow-wrap:anywhere}.insurance-detail-wide{grid-column:1/-1}.insurance-document{background:#fff;color:#16191d;border-radius:12px;padding:26px;min-height:520px}.insurance-document-head{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #dce0e6;padding-bottom:16px}.insurance-document h2{margin:0;font-size:1.45rem}.insurance-document p{margin:3px 0;font-size:.78rem}.insurance-document .doc-muted{color:#68717d}.insurance-document-meta{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.insurance-document-table{width:100%;border-collapse:collapse;font-size:.8rem}.insurance-document-table th,.insurance-document-table td{padding:9px 7px;border-bottom:1px solid #e7e9ed;text-align:right}.insurance-document-table th:last-child,.insurance-document-table td:last-child{text-align:left}.insurance-document-total{margin-right:auto;width:min(320px,100%);padding-top:14px}.insurance-document-total div{display:flex;justify-content:space-between;gap:15px;padding:5px 0}.insurance-document-total .grand{border-top:1px solid #cbd0d8;margin-top:5px;padding-top:10px;font-size:1rem;font-weight:800}.insurance-pager{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:9px}.insurance-report-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.insurance-temp-card{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid var(--border);border-radius:13px;padding:10px 12px;background:var(--panel-2)}
@media(max-width:860px){.insurance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.insurance-row{grid-template-columns:minmax(0,1fr) auto}.insurance-row .insurance-cell{grid-column:1/-1;display:grid;grid-template-columns:110px 1fr;gap:8px;padding-top:3px;border-top:1px solid var(--border)}.insurance-actions{grid-column:2;grid-row:1;align-self:start}.insurance-report-summary{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:600px){.insurance-shell{gap:9px}.insurance-kpis{grid-template-columns:1fr 1fr;gap:6px}.insurance-kpi{padding:8px 9px;border-radius:11px}.insurance-kpi strong{font-size:.88rem}.insurance-toolbar{display:grid;grid-template-columns:1fr 1fr}.insurance-toolbar .form-group,.insurance-toolbar .insurance-search{min-width:0}.insurance-toolbar .insurance-search{grid-column:1/-1}.insurance-toolbar .insurance-toolbar-actions{grid-column:1/-1;display:flex;gap:6px}.insurance-form-grid{grid-template-columns:1fr}.insurance-form-grid .wide,.insurance-calc{grid-column:1}.insurance-customer-modes{grid-template-columns:1fr}.insurance-calc{grid-template-columns:1fr 1fr}.insurance-calc-item:last-child{grid-column:1/-1}.insurance-detail-grid{grid-template-columns:1fr}.insurance-detail-wide{grid-column:1}.insurance-report-summary{grid-template-columns:1fr}.insurance-modal .modal-dialog{width:min(96vw,660px);max-height:96dvh}.insurance-document{padding:16px}.insurance-document-head,.insurance-document-meta{display:block}.insurance-document-meta>div+div{margin-top:12px}.insurance-temp-card{align-items:flex-start;flex-direction:column}}
.insurance-report-record{border:1px solid var(--border);background:var(--panel);border-radius:14px;padding:10px 12px;display:grid;gap:9px}.insurance-report-record-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.insurance-report-record-head>div{min-width:0}.insurance-report-record-head strong,.insurance-report-record-head small{display:block}.insurance-report-record-head small{color:var(--muted);font-size:.71rem;margin-top:2px;overflow-wrap:anywhere}.insurance-report-money-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.insurance-report-money{border:1px solid var(--border);background:var(--panel-2);border-radius:10px;padding:7px 8px;min-width:0}.insurance-report-money span{display:block;color:var(--muted);font-size:.66rem;line-height:1.2}.insurance-report-money strong{display:block;margin-top:3px;font-size:.78rem;overflow-wrap:anywhere}
@media(max-width:960px){.insurance-report-money-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.insurance-report-money-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.insurance-report-record{padding:9px}.insurance-report-money{padding:7px}}

/* Admin Insurance access control: keep the long user form independently
   scrollable while actions remain stable and reachable on desktop/mobile. */
#adminCreateUserModal .admin-settings-sheet,
#adminEditUserModal .admin-settings-sheet{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
#adminCreateUserModal .admin-user-access-scroll,
#adminEditUserModal .admin-user-access-scroll{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:none;
}
#adminCreateUserModal .admin-user-access-scroll::-webkit-scrollbar,
#adminEditUserModal .admin-user-access-scroll::-webkit-scrollbar{width:0;height:0}
#adminCreateUserModal .admin-user-access-footer,
#adminEditUserModal .admin-user-access-footer{
  flex:0 0 auto;
  margin:0;
  padding:8px 10px 10px;
  border-top:1px solid color-mix(in srgb,var(--line) 72%,transparent);
  background:color-mix(in srgb,var(--panel) 94%,transparent);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
@media (max-width:560px){
  #adminCreateUserModal .admin-user-access-footer,
  #adminEditUserModal .admin-user-access-footer{padding:7px 8px calc(8px + env(safe-area-inset-bottom,0px))}
}


/* Insurance 172 — provider/policy separation and compact native overlays. */
.insurance-policy-note{display:flex;align-items:center;gap:6px;flex:1 1 320px;min-width:0;color:var(--muted);font-size:.72rem;line-height:1.25}
.insurance-policy-note i{color:var(--accent);font-size:.72rem;flex:0 0 auto}
.insurance-modal .insurance-entry-dialog{width:min(620px,calc(100vw - 20px));max-width:620px;max-height:min(760px,calc(100dvh - 24px));border-radius:16px;overflow:hidden}
.insurance-modal .insurance-entry-dialog .modal-head{padding:9px 12px 6px;gap:8px;align-items:center}
.insurance-modal .insurance-entry-dialog .modal-head h3{font-size:.94rem;line-height:1.15}
.insurance-modal .insurance-entry-dialog .modal-head p{margin:2px 0 0;font-size:.67rem;line-height:1.25;color:var(--muted)}
.insurance-modal .insurance-entry-dialog .modal-body{padding:7px 12px 8px;max-height:none;min-height:0;overflow:auto;scrollbar-width:none}
.insurance-modal .insurance-entry-dialog .modal-body::-webkit-scrollbar{display:none}
.insurance-modal .insurance-entry-dialog .modal-footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:0;padding:7px 12px 10px;border-top:1px solid color-mix(in srgb,var(--border) 72%,transparent);background:color-mix(in srgb,var(--panel) 96%,transparent)}
.insurance-modal .insurance-entry-dialog .modal-footer .btn{flex:0 0 auto;min-width:82px;min-height:30px;height:30px;padding:0 11px;border-radius:8px;font-size:.68rem;line-height:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
.insurance-modal .insurance-form-grid{gap:7px 9px;align-items:start}
.insurance-modal .insurance-form-grid label{display:block;min-width:0;font-size:.68rem;line-height:1.2;font-weight:700;color:var(--muted)}
.insurance-modal .insurance-form-grid label .input,.insurance-modal .insurance-form-grid label .select{margin-top:3px;width:100%;min-height:31px;height:31px;padding:4px 8px;border-radius:8px;font-size:.74rem;line-height:1.1}
.insurance-modal .insurance-form-grid label textarea.input{height:auto;min-height:50px;max-height:82px;resize:vertical;padding-top:6px;padding-bottom:6px}
.insurance-modal .insurance-master-form{max-width:560px;margin:0 auto}
.insurance-modal .insurance-customer-modes{gap:5px}
.insurance-modal .insurance-customer-mode{min-height:30px;padding:4px 7px;border-radius:8px;font-size:.67rem;line-height:1.1}
.insurance-modal .insurance-sale-meta,.insurance-modal .insurance-price-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.insurance-modal .insurance-calc{gap:6px}
.insurance-modal .insurance-calc-item{padding:7px 8px;border-radius:9px;min-height:48px}
.insurance-modal .insurance-calc-item span{font-size:.62rem;line-height:1.15}
.insurance-modal .insurance-calc-item strong{margin-top:3px;font-size:.78rem;line-height:1.15}
.insurance-modal .insurance-warning{padding:6px 8px;border-radius:8px;font-size:.66rem;line-height:1.3}
.insurance-modal #insuranceExistingCustomerFields .help{font-size:.62rem;line-height:1.2;margin-top:3px}
.insurance-modal #insuranceExistingCustomerFields .select{margin-top:4px!important}
.insurance-modal .insurance-detail{padding:7px 8px;border-radius:9px}
.insurance-modal .insurance-detail span{font-size:.63rem}
.insurance-modal .insurance-detail strong{font-size:.76rem;line-height:1.25}
@media(max-width:600px){
  .insurance-policy-note{grid-column:1/-1;font-size:.66rem}
  .insurance-modal .insurance-entry-dialog{width:calc(100vw - 12px);max-width:none;max-height:calc(100dvh - 12px);border-radius:14px}
  .insurance-modal .insurance-entry-dialog .modal-head{padding:8px 9px 5px}
  .insurance-modal .insurance-entry-dialog .modal-body{padding:6px 9px 7px}
  .insurance-modal .insurance-entry-dialog .modal-footer{padding:6px 9px calc(7px + env(safe-area-inset-bottom,0px));gap:5px}
  .insurance-modal .insurance-entry-dialog .modal-footer .btn{min-width:76px;height:29px;min-height:29px;padding:0 9px;font-size:.65rem}
  .insurance-modal .insurance-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 7px}
  .insurance-modal .insurance-form-grid .wide{grid-column:1/-1}
  .insurance-modal .insurance-customer-modes{grid-template-columns:repeat(3,minmax(0,1fr))}
  .insurance-modal .insurance-sale-meta,.insurance-modal .insurance-price-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .insurance-modal .insurance-calc{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .insurance-modal .insurance-calc-item:last-child{grid-column:auto}
  .insurance-modal .insurance-calc-item{padding:6px 5px;text-align:center}
  .insurance-modal .insurance-calc-item span{font-size:.56rem}
  .insurance-modal .insurance-calc-item strong{font-size:.7rem}
  .insurance-modal .insurance-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .insurance-modal .insurance-detail-wide{grid-column:1/-1}
}
@media(max-width:390px){
  .insurance-modal .insurance-sale-meta,.insurance-modal .insurance-price-grid{gap:4px}
  .insurance-modal .insurance-form-grid label{font-size:.64rem}
  .insurance-modal .insurance-form-grid label .input,.insurance-modal .insurance-form-grid label .select{font-size:.69rem;padding-inline:6px}
  .insurance-modal .insurance-customer-mode{font-size:.61rem;padding-inline:4px}
}

/* Insurance records refinement — compact filters, per-sale document menu and report views. */
.insurance-filter-toolbar{
  display:grid;
  grid-template-columns:minmax(180px,1.45fr) repeat(5,minmax(105px,.9fr)) auto;
  gap:6px;
  align-items:end;
  padding:7px;
  border:1px solid var(--border);
  border-radius:12px;
  background:color-mix(in srgb,var(--panel) 82%,transparent);
}
.insurance-report-filter-toolbar{
  grid-template-columns:minmax(175px,1.35fr) minmax(145px,1.05fr) repeat(5,minmax(102px,.82fr)) auto;
}
.insurance-filter-toolbar .insurance-filter-field{
  min-width:0;
  margin:0;
  flex:none;
}
.insurance-filter-toolbar .insurance-search{min-width:0;flex:none}
.insurance-filter-toolbar .form-label{
  display:block;
  margin:0 0 3px;
  font-size:.61rem;
  line-height:1;
  font-weight:750;
  color:var(--muted);
  letter-spacing:.01em;
}
.insurance-filter-toolbar .input,
.insurance-filter-toolbar .select{
  width:100%;
  min-width:0;
  height:30px;
  min-height:30px;
  padding:3px 7px;
  border-radius:8px;
  font-size:.69rem;
  line-height:1;
}
.insurance-filter-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
  flex-wrap:nowrap;
  min-height:30px;
}
.insurance-filter-actions .btn{
  min-width:0;
  height:30px;
  min-height:30px;
  padding:0 8px;
  border-radius:8px;
  font-size:.64rem;
  line-height:1;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.insurance-filter-actions .btn i{font-size:.64rem}

.insurance-sale-menu-wrap{position:relative;display:inline-flex;align-items:center}
.insurance-sale-menu{
  display:none;
  position:absolute;
  left:0;
  top:calc(100% + 5px);
  z-index:420;
  width:max-content;
  min-width:218px;
  max-width:min(260px,calc(100vw - 22px));
  padding:5px;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--panel);
  box-shadow:0 14px 34px rgba(0,0,0,.18);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.insurance-sale-menu.is-open{display:grid;gap:2px}
.insurance-sale-menu button{
  width:100%;
  min-height:31px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--text);
  display:grid;
  grid-template-columns:18px minmax(0,1fr);
  gap:7px;
  align-items:center;
  padding:6px 8px;
  text-align:right;
  font:inherit;
  font-size:.68rem;
  cursor:pointer;
}
.insurance-sale-menu button:hover,.insurance-sale-menu button:focus-visible{background:var(--panel-2);outline:none}
.insurance-sale-menu button i{width:18px;text-align:center;color:var(--accent);font-size:.72rem}
.insurance-sale-menu button span{white-space:nowrap}
.insurance-actions{overflow:visible;position:relative}

.insurance-report-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:8px 1px 5px;
}
.insurance-report-heading strong,.insurance-report-heading span{display:block}
.insurance-report-heading strong{font-size:.76rem;line-height:1.15}
.insurance-report-heading span{margin-top:1px;color:var(--muted);font-size:.62rem;line-height:1.2}
.insurance-report-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(225px,1fr));
  gap:6px;
  margin-bottom:7px;
}
.insurance-report-total-card{
  min-width:0;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--panel-2);
  padding:7px 8px;
}
.insurance-report-total-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.insurance-report-total-head strong{font-size:.72rem}
.insurance-report-total-head span{color:var(--muted);font-size:.59rem;white-space:nowrap}
.insurance-report-total-values{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:4px}
.insurance-report-total-values>div{min-width:0;border-radius:7px;background:color-mix(in srgb,var(--panel) 68%,transparent);padding:5px 6px}
.insurance-report-total-values span,.insurance-report-total-values strong{display:block;min-width:0}
.insurance-report-total-values span{font-size:.56rem;line-height:1.15;color:var(--muted)}
.insurance-report-total-values strong{margin-top:2px;font-size:.69rem;line-height:1.15;overflow-wrap:anywhere}
.insurance-report-list{gap:6px}
.insurance-report-money-grid{gap:5px}
.insurance-report-money-grid-1{grid-template-columns:minmax(150px,260px)}
.insurance-report-money-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.insurance-report-money-grid-6{grid-template-columns:repeat(6,minmax(0,1fr))}

@media(max-width:1180px){
  .insurance-filter-toolbar,.insurance-report-filter-toolbar{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .insurance-filter-toolbar .insurance-search{grid-column:span 2}
  .insurance-filter-toolbar .insurance-filter-actions{grid-column:span 2;justify-content:flex-end}
  .insurance-report-filter-toolbar .insurance-filter-actions{grid-column:1/-1;justify-content:center}
}
@media(max-width:700px){
  .insurance-filter-toolbar,.insurance-report-filter-toolbar{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px;
    padding:6px;
    border-radius:10px;
  }
  .insurance-filter-toolbar .insurance-search,
  .insurance-report-filter-toolbar .insurance-search,
  .insurance-report-filter-toolbar .insurance-report-view{grid-column:1/-1}
  .insurance-filter-toolbar .form-label{font-size:.58rem;margin-bottom:2px}
  .insurance-filter-toolbar .input,.insurance-filter-toolbar .select{height:29px;min-height:29px;padding:3px 6px;font-size:.66rem}
  .insurance-filter-toolbar .insurance-filter-actions,
  .insurance-report-filter-toolbar .insurance-filter-actions{grid-column:1/-1;justify-content:center;gap:4px}
  .insurance-filter-actions .btn{height:29px;min-height:29px;padding:0 8px;font-size:.61rem}
  .insurance-report-heading{margin-top:7px}
  .insurance-report-summary{grid-template-columns:1fr;gap:5px}
  .insurance-report-total-card{padding:6px 7px}
  .insurance-report-money-grid-1{grid-template-columns:1fr}
  .insurance-report-money-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .insurance-sale-menu{left:0;min-width:210px}
}
@media(max-width:420px){
  .insurance-filter-actions .btn span{display:none}
  .insurance-filter-actions .btn{width:30px;padding:0}
  .insurance-filter-actions .btn i{font-size:.7rem}
  .insurance-report-money-grid-3{grid-template-columns:1fr}
  .insurance-report-total-values{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Insurance UI refinement 2026-09-21 — compact controls, thin reports and complete theme parity. */
#insurancePanel .insurance-shell,
.insurance-modal{
  --insurance-surface:var(--surface-elevated,var(--panel,#fff));
  --insurance-soft:var(--surface-soft,var(--panel-2,var(--panel,#fff)));
  --insurance-line:var(--line,var(--border,rgba(148,163,184,.25)));
  --insurance-primary:var(--primary,var(--accent,#2457d6));
  color:var(--text,#17212b);
}
#insurancePanel .insurance-shell :is(.insurance-kpi,.insurance-row,.insurance-report-table,.insurance-temp-card),
.insurance-modal .modal-dialog{
  color:var(--text,#17212b);
  border-color:var(--insurance-line)!important;
}
#insurancePanel .insurance-kpi,
#insurancePanel .insurance-temp-card,
#insurancePanel .insurance-report-table,
.insurance-modal .modal-dialog{background:var(--insurance-surface)!important}
#insurancePanel .insurance-row,
#insurancePanel .insurance-customer-mode,
#insurancePanel .insurance-report-line-record,
#insurancePanel .insurance-report-line-total,
.insurance-modal :is(.insurance-detail,.insurance-calc-item,.insurance-customer-mode){background:var(--insurance-soft)!important;color:var(--text,#17212b)!important}
#insurancePanel :is(.input,.select),
.insurance-modal :is(.input,.select,input:not([type="hidden"]),select,textarea){
  background:var(--control-bg,var(--insurance-surface))!important;
  color:var(--text,#17212b)!important;
  -webkit-text-fill-color:var(--text,#17212b)!important;
  border-color:var(--insurance-line)!important;
}
#insurancePanel select option,.insurance-modal select option{background:var(--control-bg,var(--insurance-surface))!important;color:var(--text,#17212b)!important}
#insurancePanel :is(.form-label,.insurance-row-main small,.insurance-cell small,.help),
.insurance-modal :is(.form-label,label,.help,.modal-head p){color:var(--muted,#667085)!important}
#insurancePanel .btn.ghost,.insurance-modal .btn.ghost,#insurancePanel .icon-btn.ghost,.insurance-modal .icon-btn.ghost{
  background:var(--control-bg,var(--insurance-surface))!important;
  color:var(--text,#17212b)!important;
  border:1px solid var(--insurance-line)!important;
  box-shadow:none!important;
}
#insurancePanel .btn.danger,.insurance-modal .btn.danger{
  background:var(--danger-soft,color-mix(in srgb,var(--danger,#c83d4c) 10%,var(--insurance-surface)))!important;
  color:var(--danger,#c83d4c)!important;
  border:1px solid color-mix(in srgb,var(--danger,#c83d4c) 30%,var(--insurance-line))!important;
}
#insurancePanel .btn.primary,.insurance-modal .btn.primary{background:var(--insurance-primary)!important;color:var(--on-primary,var(--primary-contrast,#fff))!important;box-shadow:none!important}
#insurancePanel .btn:hover,.insurance-modal .btn:hover,#insurancePanel .icon-btn:hover,.insurance-modal .icon-btn:hover{transform:none;box-shadow:none}

/* Smaller, simpler Insurance actions everywhere. */
#insurancePanel .btn,.insurance-modal .btn{
  min-height:27px!important;height:27px!important;min-width:0!important;
  padding:0 8px!important;border-radius:7px!important;font-size:.62rem!important;line-height:1!important;
  display:inline-flex;align-items:center;justify-content:center;gap:4px;font-weight:750;
}
#insurancePanel .btn i,.insurance-modal .btn i{font-size:.6rem}
#insurancePanel .icon-btn,.insurance-modal .icon-btn{
  width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;
  border-radius:7px!important;font-size:.7rem!important;box-shadow:none!important;
}
#insurancePanel .insurance-head-actions,#insurancePanel .insurance-toolbar-actions,#insurancePanel .insurance-actions,.insurance-modal .modal-footer{gap:4px!important}
#insurancePanel .insurance-view-tabs{gap:4px;padding:1px 0}
#insurancePanel .insurance-view-tab{height:27px!important;padding:0 8px!important;border-radius:7px!important;font-size:.61rem!important}
#insurancePanel .insurance-view-tab.active{background:var(--insurance-primary)!important;color:var(--on-primary,var(--primary-contrast,#fff))!important}
#insurancePanel .insurance-pager{gap:5px;margin-top:6px}
#insurancePanel .insurance-pager .help{font-size:.58rem}
.insurance-modal .insurance-entry-dialog .modal-footer{padding:6px 10px 8px!important;background:var(--insurance-surface)!important}
.insurance-modal .insurance-entry-dialog .modal-footer .btn{min-width:68px!important;height:27px!important;min-height:27px!important;padding:0 8px!important;font-size:.61rem!important}

/* Compact filters and dropdowns. */
.insurance-filter-toolbar,.insurance-report-filter-toolbar{
  gap:4px!important;padding:5px!important;border-radius:9px!important;
  background:var(--insurance-soft)!important;border-color:var(--insurance-line)!important;
}
.insurance-filter-toolbar .form-label{font-size:.56rem!important;margin-bottom:2px!important}
.insurance-filter-toolbar .input,.insurance-filter-toolbar .select{
  height:27px!important;min-height:27px!important;padding:2px 6px!important;border-radius:7px!important;font-size:.63rem!important;
}
.insurance-filter-actions{min-height:27px!important;gap:3px!important}
.insurance-filter-actions .btn{height:27px!important;min-height:27px!important;padding:0 7px!important;font-size:.59rem!important}
.insurance-sale-menu{
  min-width:188px!important;max-width:min(220px,calc(100vw - 18px))!important;padding:4px!important;border-radius:9px!important;
  background:var(--insurance-surface)!important;color:var(--text,#17212b)!important;border-color:var(--insurance-line)!important;
  box-shadow:0 10px 24px color-mix(in srgb,#000 16%,transparent)!important;
}
.insurance-sale-menu button{
  min-height:27px!important;padding:4px 6px!important;border-radius:6px!important;font-size:.61rem!important;
  grid-template-columns:15px minmax(0,1fr)!important;gap:5px!important;color:var(--text,#17212b)!important;
}
.insurance-sale-menu button:hover,.insurance-sale-menu button:focus-visible{background:var(--insurance-soft)!important}
.insurance-sale-menu button i{width:15px!important;font-size:.62rem!important;color:var(--insurance-primary)!important}

/* Thin desktop financial report list. */
.insurance-report-heading{margin:6px 1px 4px!important}
.insurance-report-heading strong{font-size:.7rem!important}
.insurance-report-heading span{font-size:.57rem!important;color:var(--muted,#667085)!important}
.insurance-report-table{border:1px solid var(--insurance-line);border-radius:10px;padding:0;min-width:0}
.insurance-report-list{display:grid;gap:0!important}
.insurance-report-line{
  display:grid;align-items:center;gap:5px;min-width:0;padding:5px 7px;border-bottom:1px solid var(--insurance-line);
  color:var(--text,#17212b);
}
.insurance-report-cols-1{grid-template-columns:minmax(260px,2fr) minmax(105px,.72fr) 60px}
.insurance-report-cols-3{grid-template-columns:minmax(260px,1.9fr) repeat(3,minmax(100px,.72fr)) 60px}
.insurance-report-cols-6{grid-template-columns:minmax(250px,1.7fr) repeat(6,minmax(88px,.7fr)) 60px}
.insurance-report-line-head{padding-top:5px;padding-bottom:5px;background:var(--insurance-soft)!important;color:var(--muted,#667085);font-size:.53rem;font-weight:850;text-transform:uppercase;letter-spacing:.025em;border-radius:9px 9px 0 0}
.insurance-report-line-record{min-height:38px;background:var(--insurance-surface)!important}
.insurance-report-line-record:hover{background:color-mix(in srgb,var(--insurance-primary) 4%,var(--insurance-surface))!important}
.insurance-report-item{min-width:0;display:grid;gap:1px}
.insurance-report-item strong{font-size:.64rem;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insurance-report-item span{font-size:.53rem;line-height:1.15;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insurance-report-line-value{min-width:0;text-align:left;font-size:.62rem;font-weight:780;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insurance-report-line-value span{font-size:inherit}
.insurance-report-line-actions{display:flex;align-items:center;justify-content:flex-end;gap:3px;min-width:0}
.insurance-report-line-action-head{text-align:left}
.insurance-report-totals{display:grid;gap:0}
.insurance-report-line-total{min-height:36px;background:color-mix(in srgb,var(--insurance-primary) 6%,var(--insurance-soft))!important;font-weight:850;border-bottom:0}
.insurance-report-line-total+.insurance-report-line-total{border-top:1px solid var(--insurance-line)}
.insurance-report-line-total .insurance-report-item strong{color:var(--insurance-primary)}
.insurance-report-total-empty{padding:7px;text-align:center;color:var(--muted,#667085);font-size:.59rem}
/* Retire the old card-style report treatment without disturbing old markup fallbacks. */
.insurance-report-summary,.insurance-report-record,.insurance-report-money-grid{display:none!important}

/* Customer document preview: aligned issuer and customer boxes in one row. */
.insurance-document{background:#fff!important;color:#16191d!important;padding:20px!important;min-height:480px}
.insurance-document-head{align-items:flex-end;padding-bottom:10px!important;border-color:#dce0e6!important}
.insurance-document-head h2{font-size:1.25rem!important}
.insurance-document-date{display:grid;gap:2px;text-align:left}
.insurance-document-date span,.insurance-document-party>span,.insurance-document-context span{font-size:.58rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#68717d}
.insurance-document-date strong{font-size:.74rem}
.insurance-document-party-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 8px}
.insurance-document-party{border:1px solid #dce0e6;border-radius:9px;padding:9px 10px;min-height:96px;background:#f9fafb}
.insurance-document-party strong{display:block;margin:3px 0 4px;font-size:.8rem}
.insurance-document-party p{margin:2px 0!important;font-size:.65rem!important;line-height:1.25;color:#4b5563}
.insurance-document-context{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px}
.insurance-document-context>div{border-bottom:1px solid #e7e9ed;padding:6px 2px}
.insurance-document-context strong{display:block;margin-top:2px;font-size:.7rem}
.insurance-document-table{font-size:.72rem!important}
.insurance-document-table th,.insurance-document-table td{padding:7px 5px!important}
.insurance-document-total{padding-top:10px!important}
.insurance-document-total div{padding:4px 0!important;font-size:.72rem}
.insurance-document-total .grand{font-size:.86rem!important;padding-top:8px!important}
.insurance-document-note{margin-top:14px!important}

@media(max-width:1180px){
  .insurance-report-cols-6{grid-template-columns:minmax(220px,1.6fr) repeat(6,minmax(78px,.7fr)) 56px}
  .insurance-report-line{gap:4px;padding-inline:6px}
  .insurance-report-line-value{font-size:.58rem}
}
@media(max-width:700px){
  #insurancePanel .btn,.insurance-modal .btn{height:26px!important;min-height:26px!important;font-size:.59rem!important;padding-inline:7px!important}
  #insurancePanel .icon-btn,.insurance-modal .icon-btn{width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important}
  .insurance-filter-toolbar,.insurance-report-filter-toolbar{gap:4px!important;padding:5px!important}
  .insurance-filter-toolbar .input,.insurance-filter-toolbar .select{height:26px!important;min-height:26px!important;font-size:.61rem!important}
  .insurance-report-line-head{display:none}
  .insurance-report-line-record,.insurance-report-line-total{grid-template-columns:repeat(2,minmax(0,1fr))!important;position:relative;padding:7px 8px;gap:5px 7px;min-height:0}
  .insurance-report-line-record+.insurance-report-line-record{border-top:0}
  .insurance-report-item{grid-column:1/-1;padding-left:58px}
  .insurance-report-line-value{text-align:right;display:grid;gap:1px;white-space:normal}
  .insurance-report-line-value::before{content:attr(data-label);font-size:.5rem;color:var(--muted,#667085);font-weight:700}
  .insurance-report-line-actions{position:absolute;left:7px;top:7px}
  .insurance-report-line-total>div:last-child{display:none}
  .insurance-document-party-row,.insurance-document-context{grid-template-columns:1fr}
  .insurance-document-party{min-height:0}
}
@media(max-width:420px){
  .insurance-sale-menu{min-width:178px!important}
  .insurance-report-line-record,.insurance-report-line-total{grid-template-columns:1fr!important}
  .insurance-report-item{padding-left:56px}
}

/* Final density pass: keep Insurance visually advanced but deliberately quiet. */
#insurancePanel .insurance-shell{gap:8px!important}
#insurancePanel .insurance-kpis{gap:5px!important}
#insurancePanel .insurance-kpi{padding:7px 8px!important;border-radius:10px!important}
#insurancePanel .insurance-kpi span{font-size:.59rem!important;letter-spacing:.01em!important}
#insurancePanel .insurance-kpi strong{margin-top:2px!important;font-size:.78rem!important;color:var(--text,#17212b)}
#insurancePanel .insurance-list{gap:5px}
#insurancePanel .insurance-row{padding:7px 8px!important;border-radius:10px!important;gap:7px!important;transform:none!important}
#insurancePanel .insurance-row-main strong{font-size:.72rem!important;color:var(--text,#17212b)}
#insurancePanel .insurance-row-main small,#insurancePanel .insurance-cell small{font-size:.58rem!important}
#insurancePanel .insurance-cell b{font-size:.67rem!important;color:var(--text,#17212b)}
#insurancePanel .insurance-empty{padding:16px 10px!important;border-radius:10px!important;font-size:.65rem}
#insurancePanel .insurance-empty i{font-size:1rem!important;margin-bottom:5px!important}
#insurancePanel .insurance-temp-card{padding:7px 8px!important;border-radius:9px!important}
#insurancePanel .insurance-temp-card strong{font-size:.69rem}
#insurancePanel .insurance-temp-card .help{font-size:.57rem}
#insurancePanel .insurance-customer-mode.active,.insurance-modal .insurance-customer-mode.active{
  background:color-mix(in srgb,var(--insurance-primary) 9%,var(--insurance-surface))!important;
  color:var(--insurance-primary)!important;border-color:color-mix(in srgb,var(--insurance-primary) 60%,var(--insurance-line))!important;
}
.insurance-modal .insurance-entry-dialog{width:min(590px,calc(100vw - 20px))!important;max-width:590px!important;border-radius:13px!important}
.insurance-modal .insurance-entry-dialog .modal-head{padding:8px 10px 5px!important}
.insurance-modal .insurance-entry-dialog .modal-head h3{font-size:.86rem!important}
.insurance-modal .insurance-entry-dialog .modal-head p{font-size:.6rem!important}
.insurance-modal .insurance-entry-dialog .modal-body{padding:6px 10px 7px!important}
.insurance-modal .insurance-form-grid{gap:5px 7px!important}
.insurance-modal .insurance-form-grid label{font-size:.61rem!important}
.insurance-modal .insurance-form-grid label .input,.insurance-modal .insurance-form-grid label .select{
  height:28px!important;min-height:28px!important;margin-top:2px!important;padding:3px 7px!important;border-radius:7px!important;font-size:.67rem!important;
}
.insurance-modal .insurance-form-grid label textarea.input{height:auto!important;min-height:44px!important;max-height:72px!important}
.insurance-modal .insurance-customer-mode{height:27px!important;min-height:27px!important;padding:3px 6px!important;border-radius:7px!important;font-size:.6rem!important;color:var(--text,#17212b)}
.insurance-modal .insurance-calc-item{padding:6px 7px!important;min-height:42px!important;border-radius:8px!important}
.insurance-modal .insurance-calc-item span{font-size:.55rem!important}
.insurance-modal .insurance-calc-item strong{font-size:.69rem!important}
.insurance-modal .insurance-detail{padding:6px 7px!important;border-radius:8px!important}
.insurance-modal .insurance-detail span{font-size:.56rem!important}
.insurance-modal .insurance-detail strong{font-size:.68rem!important}
@media(max-width:700px){
  #insurancePanel .insurance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #insurancePanel .insurance-row{grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important}
  #insurancePanel .insurance-row .insurance-cell{display:none}
  #insurancePanel .insurance-row-main small{white-space:normal;line-height:1.25}
  .insurance-modal .insurance-entry-dialog{width:calc(100vw - 10px)!important;max-width:none!important;border-radius:11px!important}
}

/* Insurance 173 — floating row menus, compact document actions and customer duplicate guard. */
#insurancePanel .insurance-clickable-row{cursor:pointer}
#insurancePanel .insurance-clickable-row:focus-visible{outline:2px solid color-mix(in srgb,var(--insurance-primary,var(--accent)) 55%,transparent);outline-offset:1px}
#insurancePanel .insurance-row-menu-btn{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;border-radius:6px!important;font-size:.62rem!important}

.insurance-floating-menu{
  position:fixed;z-index:2147483647!important;display:grid;gap:2px;
  min-width:164px;max-width:min(220px,calc(100vw - 16px));padding:4px;
  border:1px solid var(--insurance-line,var(--border));border-radius:9px;
  background:var(--insurance-surface,var(--panel));color:var(--text,#17212b);
  box-shadow:0 12px 30px color-mix(in srgb,#000 18%,transparent);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)
}
.insurance-floating-menu button{
  width:100%;min-height:25px;border:0;border-radius:6px;background:transparent;color:inherit;
  display:grid;grid-template-columns:14px minmax(0,1fr);gap:5px;align-items:center;
  padding:4px 6px;text-align:right;font:inherit;font-size:.59rem;font-weight:700;cursor:pointer
}
.insurance-floating-menu button:hover,.insurance-floating-menu button:focus-visible{background:var(--insurance-soft,var(--panel-2));outline:none}
.insurance-floating-menu button i{width:14px;text-align:center;font-size:.6rem;color:var(--insurance-primary,var(--accent))}
.insurance-floating-menu button.danger,.insurance-floating-menu button.danger i{color:var(--danger,#c83d4c)}
.insurance-floating-menu button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.insurance-modal .insurance-document-dialog{
  width:min(760px,calc(100vw - 20px))!important;max-width:760px!important;
  max-height:calc(100dvh - 20px);overflow:hidden;border-radius:13px!important
}
.insurance-modal .insurance-document-dialog .modal-head{padding:8px 10px 5px!important}
.insurance-modal .insurance-document-dialog .modal-head h3{font-size:.84rem!important}
.insurance-modal .insurance-document-dialog .modal-head p{font-size:.58rem!important;margin-top:1px!important}
.insurance-modal .insurance-document-dialog .modal-body{padding:6px 10px!important;overflow:auto;min-height:0;scrollbar-width:none}
.insurance-modal .insurance-document-dialog .modal-body::-webkit-scrollbar{display:none}
.insurance-modal .insurance-document-dialog .modal-footer{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  padding:6px 10px 8px!important;margin:0!important;border-top:1px solid var(--insurance-line,var(--border))!important;
  background:var(--insurance-surface,var(--panel))!important
}
.insurance-modal .insurance-document-dialog .modal-footer .btn{
  width:auto!important;min-width:54px!important;height:25px!important;min-height:25px!important;
  padding:0 7px!important;border-radius:6px!important;font-size:.58rem!important;line-height:1!important
}

#insuranceDuplicateCustomerModal .insurance-entry-dialog{width:min(390px,calc(100vw - 18px))!important;max-width:390px!important}
#insuranceDuplicateCustomerModal .modal-body{padding:6px 10px!important}
#insuranceDuplicateCustomerModal .insurance-duplicate-box{display:grid;gap:7px;padding:1px 0}
#insuranceDuplicateCustomerModal .insurance-duplicate-box p{margin:0;color:var(--text,#17212b);font-size:.64rem;line-height:1.3}
#insuranceDuplicateCustomerModal .insurance-duplicate-box .form-label{font-size:.58rem;margin:0}
#insuranceDuplicateCustomerModal .insurance-duplicate-box .select{height:27px!important;min-height:27px!important;margin-top:3px!important;font-size:.62rem!important}
#insuranceDuplicateCustomerModal .modal-footer .btn{min-width:62px!important;height:25px!important;min-height:25px!important;font-size:.57rem!important;padding:0 7px!important}

.insurance-modal input[readonly][name="customer_id"]{opacity:.82;cursor:default}

@media(max-width:600px){
  .insurance-floating-menu{min-width:154px;max-width:calc(100vw - 12px);padding:3px}
  .insurance-floating-menu button{min-height:24px;font-size:.57rem;padding:4px 5px}
  .insurance-modal .insurance-document-dialog{width:calc(100vw - 8px)!important;max-height:calc(100dvh - 8px);border-radius:10px!important}
  .insurance-modal .insurance-document-dialog .modal-footer{padding-bottom:calc(7px + env(safe-area-inset-bottom,0px))!important}
}

/* Insurance 174 — My Commission receivables and settlement ledger. */
.insurance-commission-filter-toolbar{grid-template-columns:minmax(190px,1.45fr) repeat(4,minmax(108px,.85fr)) auto}
.insurance-commission-heading{margin:6px 1px 4px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.insurance-commission-heading strong{display:block;font-size:.7rem;color:var(--text,#17212b)}
.insurance-commission-heading span{display:block;margin-top:1px;font-size:.56rem;color:var(--muted,#667085)}
.insurance-commission-table{border:1px solid var(--insurance-line,var(--border));border-radius:10px;overflow:hidden;background:var(--insurance-surface,var(--panel))}
.insurance-commission-list{display:grid;gap:0}
.insurance-commission-line{display:grid;grid-template-columns:minmax(210px,1.65fr) repeat(6,minmax(78px,.66fr)) minmax(105px,.78fr) 34px;gap:5px;align-items:center;min-width:0;padding:5px 7px;border-bottom:1px solid var(--insurance-line,var(--border));color:var(--text,#17212b)}
.insurance-commission-head{min-height:28px;background:var(--insurance-soft,var(--panel-2));color:var(--muted,#667085);font-size:.51rem;font-weight:850;text-transform:uppercase;letter-spacing:.02em}
.insurance-commission-head>div:not(:first-child){text-align:left}.insurance-commission-head>div:nth-last-child(2){text-align:right}
.insurance-commission-record{min-height:38px;background:var(--insurance-surface,var(--panel));cursor:pointer}
.insurance-commission-record:hover{background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 4%,var(--insurance-surface,var(--panel)))}
.insurance-commission-item{min-width:0;display:grid;gap:1px}.insurance-commission-item strong{font-size:.64rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-commission-item span{font-size:.52rem;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insurance-commission-value{min-width:0;text-align:left;font-size:.61rem;font-weight:760;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insurance-amount-outstanding{color:var(--warning,#b7791f)}
.insurance-commission-status-cell{min-width:0;display:grid;justify-items:start;gap:2px}.insurance-commission-status-cell small{font-size:.48rem;color:var(--muted,#667085);white-space:nowrap}
.insurance-commission-status{display:inline-flex;align-items:center;min-height:19px;padding:2px 6px;border-radius:999px;border:1px solid var(--insurance-line,var(--border));font-size:.5rem;font-weight:800;line-height:1;white-space:nowrap;background:var(--insurance-soft,var(--panel-2));color:var(--text,#17212b)}
.insurance-commission-status.outstanding{color:var(--warning,#b7791f);border-color:color-mix(in srgb,var(--warning,#b7791f) 32%,var(--insurance-line));background:color-mix(in srgb,var(--warning,#b7791f) 8%,var(--insurance-surface))}
.insurance-commission-status.partial{color:var(--insurance-primary,var(--accent));border-color:color-mix(in srgb,var(--insurance-primary,var(--accent)) 32%,var(--insurance-line));background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 8%,var(--insurance-surface))}
.insurance-commission-status.received{color:var(--success,#20845c);border-color:color-mix(in srgb,var(--success,#20845c) 32%,var(--insurance-line));background:color-mix(in srgb,var(--success,#20845c) 8%,var(--insurance-surface))}
.insurance-commission-status.none{color:var(--muted,#667085)}.insurance-commission-status.none.loss{color:var(--danger,#c83d4c)}
.insurance-commission-totals{display:grid;gap:0;background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 4%,var(--insurance-soft,var(--panel-2)))}
.insurance-commission-total-line{display:grid;grid-template-columns:56px 75px repeat(3,minmax(145px,1fr));gap:8px;align-items:center;padding:6px 8px;border-top:1px solid var(--insurance-line,var(--border));font-size:.56rem;color:var(--muted,#667085)}
.insurance-commission-total-line strong{font-size:.62rem;color:var(--insurance-primary,var(--accent))}.insurance-commission-total-line span{white-space:nowrap}.insurance-commission-total-line b{color:var(--text,#17212b);font-size:.61rem;margin-right:3px}
.insurance-commission-total-empty{padding:7px;text-align:center;color:var(--muted,#667085);font-size:.58rem}

.insurance-commission-receive-form .insurance-commission-selection-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted,#667085);font-size:.6rem;font-weight:800}
.insurance-commission-candidate-list{display:grid;gap:3px;max-height:210px;overflow:auto;scrollbar-width:none;border:1px solid var(--insurance-line,var(--border));border-radius:8px;padding:4px;background:var(--insurance-soft,var(--panel-2))}
.insurance-commission-candidate-list::-webkit-scrollbar{display:none}
.insurance-commission-candidate{display:grid!important;grid-template-columns:18px minmax(0,1fr) auto;gap:6px;align-items:center;min-height:35px;padding:4px 6px;border:1px solid transparent;border-radius:7px;background:var(--insurance-surface,var(--panel));cursor:pointer;color:var(--text,#17212b)!important}
.insurance-commission-candidate:hover{border-color:color-mix(in srgb,var(--insurance-primary,var(--accent)) 28%,var(--insurance-line))}.insurance-commission-candidate input{width:14px;height:14px;margin:0;accent-color:var(--insurance-primary,var(--accent))}
.insurance-commission-candidate span{min-width:0;display:grid;gap:1px}.insurance-commission-candidate strong{font-size:.61rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-commission-candidate small{font-size:.51rem;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-commission-candidate>b{font-size:.59rem;white-space:nowrap}
.insurance-commission-selected-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:25px;padding:4px 7px;border-radius:7px;background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 6%,var(--insurance-surface));border:1px solid color-mix(in srgb,var(--insurance-primary,var(--accent)) 18%,var(--insurance-line));font-size:.56rem;color:var(--muted,#667085)}.insurance-commission-selected-summary strong{font-size:.62rem;color:var(--text,#17212b)}
.insurance-commission-allocation-note{padding:6px 7px;border-radius:7px;border:1px solid var(--insurance-line,var(--border));background:var(--insurance-soft,var(--panel-2));color:var(--muted,#667085);font-size:.54rem;line-height:1.3}
.insurance-commission-payment-history{margin-top:7px;border:1px solid var(--insurance-line,var(--border));border-radius:8px;overflow:hidden;background:var(--insurance-surface,var(--panel))}.insurance-commission-payment-title{padding:5px 7px;background:var(--insurance-soft,var(--panel-2));font-size:.56rem;font-weight:850;color:var(--muted,#667085)}
.insurance-commission-payment-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:6px 7px;border-top:1px solid var(--insurance-line,var(--border))}.insurance-commission-payment-row:first-of-type{border-top:0}.insurance-commission-payment-row>div{min-width:0;display:grid;gap:1px}.insurance-commission-payment-row strong{font-size:.61rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-commission-payment-row span{font-size:.51rem;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-commission-payment-row>b{font-size:.61rem;white-space:nowrap}.insurance-commission-payment-empty{padding:9px;text-align:center;color:var(--muted,#667085);font-size:.57rem}
.insurance-commission-receipt-list{display:grid;gap:4px}.insurance-commission-receipt-row{display:grid;grid-template-columns:minmax(0,1fr) auto 28px;gap:8px;align-items:center;padding:6px 7px;border:1px solid var(--insurance-line,var(--border));border-radius:8px;background:var(--insurance-soft,var(--panel-2));cursor:pointer}.insurance-commission-receipt-row>div:first-child{min-width:0;display:grid;gap:1px}.insurance-commission-receipt-row strong{font-size:.62rem}.insurance-commission-receipt-row span{font-size:.51rem;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-commission-receipt-row>b{font-size:.62rem;white-space:nowrap}

@media(max-width:1180px){.insurance-commission-line{grid-template-columns:minmax(190px,1.5fr) repeat(6,minmax(70px,.62fr)) minmax(96px,.72fr) 32px}.insurance-commission-value{font-size:.57rem}}
@media(max-width:900px){.insurance-commission-filter-toolbar{grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(105px,.8fr))}.insurance-commission-filter-toolbar .insurance-search{grid-column:span 1}.insurance-commission-filter-toolbar .insurance-commission-actions{grid-column:1/-1}.insurance-commission-head{display:none}.insurance-commission-line{grid-template-columns:repeat(3,minmax(0,1fr)) 30px!important;position:relative;padding:7px 8px;gap:5px 7px}.insurance-commission-item{grid-column:1/-1;padding-left:36px}.insurance-commission-value{text-align:right;display:grid;gap:1px;white-space:normal}.insurance-commission-value::before{content:attr(data-label);font-size:.48rem;color:var(--muted,#667085);font-weight:700}.insurance-commission-status-cell{grid-column:1/3}.insurance-commission-record .insurance-report-line-actions{position:absolute;left:7px;top:7px}.insurance-commission-total-line{grid-template-columns:1fr 1fr;gap:4px 8px}.insurance-commission-total-line strong,.insurance-commission-total-line>span:nth-child(2){grid-column:auto}.insurance-commission-total-line>span:nth-child(n+3){grid-column:span 1}}
@media(max-width:600px){.insurance-commission-filter-toolbar{grid-template-columns:1fr 1fr!important}.insurance-commission-filter-toolbar .insurance-search,.insurance-commission-filter-toolbar .insurance-commission-actions{grid-column:1/-1!important}.insurance-commission-filter-toolbar .insurance-commission-actions{justify-content:flex-start;flex-wrap:wrap}.insurance-commission-line{grid-template-columns:1fr 1fr 28px!important}.insurance-commission-item{grid-column:1/-1}.insurance-commission-status-cell{grid-column:1/3}.insurance-commission-total-line{grid-template-columns:1fr}.insurance-commission-total-line>*{grid-column:1!important}.insurance-commission-candidate{grid-template-columns:16px minmax(0,1fr)}.insurance-commission-candidate>b{grid-column:2}.insurance-commission-receipt-row{grid-template-columns:minmax(0,1fr) 28px}.insurance-commission-receipt-row>b{grid-column:1}.insurance-commission-receipt-row>div:last-child{grid-column:2;grid-row:1}}

/* Insurance 175 — policy cancellation, commission deductions and mobile alignment. */
.insurance-sale-cancelled{opacity:.96}
.insurance-cancelled-badge{display:inline-flex;align-items:center;gap:4px;margin-right:5px;padding:2px 5px;border:1px solid color-mix(in srgb,var(--danger,#c83d4c) 35%,var(--insurance-line,var(--border)));border-radius:999px;background:color-mix(in srgb,var(--danger,#c83d4c) 9%,var(--insurance-surface,var(--panel)));color:var(--danger,#c83d4c);font-size:.51rem;font-weight:800;line-height:1.1;vertical-align:middle}
.insurance-cancellation-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;grid-column:1/-1;padding:6px;border:1px solid color-mix(in srgb,var(--danger,#c83d4c) 22%,var(--insurance-line,var(--border)));border-radius:9px;background:color-mix(in srgb,var(--danger,#c83d4c) 5%,var(--insurance-surface-soft,var(--panel-2)))}
.insurance-cancellation-summary>div{min-width:0}.insurance-cancellation-summary span{display:block;color:var(--muted);font-size:.57rem}.insurance-cancellation-summary strong{display:block;margin-top:2px;font-size:.7rem;overflow-wrap:anywhere}
.insurance-check-line{display:flex!important;align-items:flex-start;gap:6px;padding:6px 7px;border:1px solid var(--insurance-line,var(--border));border-radius:8px;background:var(--insurance-surface-soft,var(--panel-2));color:var(--text,#17212b)!important;font-size:.63rem!important;line-height:1.3!important;font-weight:650!important}.insurance-check-line input{width:14px;height:14px;flex:0 0 auto;margin:1px 0 0;accent-color:var(--insurance-primary,var(--accent))}
.insurance-amount-deduction{color:var(--warning,#b7791f)!important}.insurance-commission-status.settled{color:var(--warning,#b7791f);background:color-mix(in srgb,var(--warning,#b7791f) 10%,var(--insurance-surface,var(--panel)));border-color:color-mix(in srgb,var(--warning,#b7791f) 34%,var(--insurance-line,var(--border)))}
.insurance-document-cancellation{margin:0 0 9px;padding:6px 8px;border:1px solid #e2b9bd;border-radius:7px;background:#fff7f7;color:#792b34;font-size:.64rem;line-height:1.35}.insurance-document-cancellation strong{font-size:.67rem}
.insurance-document-context{grid-template-columns:repeat(3,minmax(0,1fr))}
.insurance-commission-line{grid-template-columns:minmax(210px,1.65fr) repeat(7,minmax(76px,.64fr)) minmax(105px,.78fr) 34px}
.insurance-commission-total-line{grid-template-columns:56px 75px repeat(4,minmax(128px,1fr))}
@media(max-width:1180px){.insurance-commission-line{grid-template-columns:minmax(185px,1.45fr) repeat(7,minmax(66px,.6fr)) minmax(94px,.7fr) 32px}}
@media(max-width:900px){.insurance-commission-line{grid-template-columns:repeat(3,minmax(0,1fr)) 30px!important}.insurance-commission-total-line{grid-template-columns:1fr 1fr}.insurance-commission-total-line>span:nth-child(n+3){grid-column:span 1}}
@media(max-width:700px){
  .insurance-filter-toolbar,.insurance-report-filter-toolbar,.insurance-commission-filter-toolbar{align-items:end!important}
  .insurance-filter-toolbar .insurance-filter-field,.insurance-report-filter-toolbar .insurance-filter-field,.insurance-commission-filter-toolbar .insurance-filter-field{min-width:0!important;width:100%}
  .insurance-filter-toolbar input[type="date"],.insurance-filter-toolbar input[type="time"],.insurance-report-filter-toolbar input[type="date"],.insurance-report-filter-toolbar input[type="time"],.insurance-commission-filter-toolbar input[type="date"],.insurance-commission-filter-toolbar input[type="time"]{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
  .insurance-filter-toolbar .insurance-filter-actions,.insurance-report-filter-toolbar .insurance-filter-actions,.insurance-commission-filter-toolbar .insurance-commission-actions{width:100%;justify-content:center!important;align-items:center!important}
  .insurance-cancellation-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px}
  .insurance-document-context{grid-template-columns:1fr}
}
@media(max-width:480px){
  .insurance-filter-toolbar,.insurance-report-filter-toolbar,.insurance-commission-filter-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;padding:5px!important}
  .insurance-filter-toolbar .insurance-search,.insurance-report-filter-toolbar .insurance-search,.insurance-report-filter-toolbar .insurance-report-view,.insurance-commission-filter-toolbar .insurance-search,.insurance-commission-filter-toolbar .insurance-commission-actions{grid-column:1/-1!important}
  .insurance-filter-toolbar .form-label,.insurance-report-filter-toolbar .form-label,.insurance-commission-filter-toolbar .form-label{font-size:.55rem!important;line-height:1.05!important;margin-bottom:2px!important}
  .insurance-filter-toolbar .input,.insurance-filter-toolbar .select,.insurance-report-filter-toolbar .input,.insurance-report-filter-toolbar .select,.insurance-commission-filter-toolbar .input,.insurance-commission-filter-toolbar .select{height:27px!important;min-height:27px!important;padding:2px 5px!important;font-size:.61rem!important}
  .insurance-filter-toolbar .insurance-filter-actions,.insurance-report-filter-toolbar .insurance-filter-actions{grid-column:1/-1!important}
  .insurance-cancellation-summary{grid-template-columns:1fr 1fr}.insurance-cancellation-summary>div:last-child{grid-column:1/-1}
}
.insurance-cancellation-summary>span{display:block;min-width:0;padding:2px 3px;color:var(--text,#17212b);font-size:.66rem;line-height:1.25}.insurance-cancellation-summary>span b{display:block;margin-bottom:2px;color:var(--muted,#667085);font-size:.55rem;text-transform:uppercase;letter-spacing:.025em}
@media(max-width:700px){
  .insurance-modal .insurance-form-grid label{min-width:0}
  .insurance-modal .insurance-form-grid :is(.input,.select,input[type="date"],input[type="time"],input[type="number"]){width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
}

/* Insurance 176 — imported opening commission balances and compact top totals. */
.insurance-commission-summary-strip{display:grid;gap:4px;margin:5px 0 7px}
.insurance-commission-summary-currency{display:grid;grid-template-columns:48px repeat(3,minmax(150px,1fr)) auto;gap:5px;align-items:center;padding:5px 7px;border:1px solid var(--insurance-line,var(--border));border-radius:9px;background:var(--insurance-surface,var(--panel));color:var(--text,#17212b)}
.insurance-commission-summary-code{display:flex;align-items:center;justify-content:center;min-height:27px;border-radius:7px;background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 9%,var(--insurance-soft,var(--panel-2)));color:var(--insurance-primary,var(--accent));font-size:.61rem;font-weight:900}
.insurance-commission-summary-currency>div:not(.insurance-commission-summary-code){min-width:0;display:grid;gap:1px;padding:0 6px;border-right:1px solid var(--insurance-line,var(--border))}
.insurance-commission-summary-currency span{font-size:.49rem;color:var(--muted,#667085);font-weight:750;white-space:nowrap}
.insurance-commission-summary-currency strong{font-size:.67rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insurance-commission-summary-currency>small{font-size:.49rem;color:var(--warning,#b7791f);white-space:nowrap}
.insurance-commission-summary-empty{margin:5px 0 7px;padding:7px;border:1px solid var(--insurance-line,var(--border));border-radius:8px;background:var(--insurance-soft,var(--panel-2));text-align:center;color:var(--muted,#667085);font-size:.56rem}

.insurance-opening-balance-section{margin:0 0 7px;border:1px solid var(--insurance-line,var(--border));border-radius:9px;overflow:hidden;background:var(--insurance-surface,var(--panel))}
.insurance-opening-balance-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 7px;background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 4%,var(--insurance-soft,var(--panel-2)))}
.insurance-opening-balance-title>div{min-width:0;display:grid;gap:1px}.insurance-opening-balance-title strong{font-size:.62rem}.insurance-opening-balance-title span{font-size:.5rem;color:var(--muted,#667085)}.insurance-opening-balance-title>span{white-space:nowrap}
.insurance-opening-balance-head,.insurance-opening-balance-row{display:grid;grid-template-columns:minmax(230px,1.6fr) repeat(3,minmax(88px,.7fr)) minmax(105px,.75fr) 30px;gap:5px;align-items:center;padding:5px 7px}
.insurance-opening-balance-head{min-height:25px;border-top:1px solid var(--insurance-line,var(--border));border-bottom:1px solid var(--insurance-line,var(--border));background:var(--insurance-soft,var(--panel-2));color:var(--muted,#667085);font-size:.49rem;font-weight:850;text-transform:uppercase;letter-spacing:.02em}.insurance-opening-balance-head>div:not(:first-child){text-align:left}.insurance-opening-balance-head>div:nth-last-child(2){text-align:right}
.insurance-opening-balance-list{display:grid}.insurance-opening-balance-row{min-height:36px;border-bottom:1px solid var(--insurance-line,var(--border));cursor:pointer;color:var(--text,#17212b)}.insurance-opening-balance-row:last-child{border-bottom:0}.insurance-opening-balance-row:hover{background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 4%,var(--insurance-surface,var(--panel)))}
.insurance-opening-main{min-width:0;display:grid;gap:1px}.insurance-opening-main strong{font-size:.62rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-opening-main span{font-size:.5rem;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insurance-opening-balance-row>div:not(.insurance-opening-main):not(.insurance-opening-status){text-align:left;font-size:.59rem;font-weight:760;white-space:nowrap}.insurance-opening-status{display:grid;justify-items:start;gap:2px}.insurance-opening-status small{font-size:.47rem;color:var(--muted,#667085);white-space:nowrap}
.insurance-opening-candidate{border-color:color-mix(in srgb,var(--insurance-primary,var(--accent)) 14%,var(--insurance-line,var(--border)))!important;background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 3%,var(--insurance-surface,var(--panel)))!important}

@media(max-width:900px){
  .insurance-commission-summary-currency{grid-template-columns:42px repeat(3,minmax(0,1fr));gap:4px}.insurance-commission-summary-currency>small{grid-column:2/-1}
  .insurance-opening-balance-head{display:none}.insurance-opening-balance-row{grid-template-columns:repeat(3,minmax(0,1fr)) 28px;position:relative;gap:5px 7px;padding:7px 8px}.insurance-opening-main{grid-column:1/-1;padding-left:34px}.insurance-opening-balance-row>div[data-label]{text-align:right!important;display:grid;gap:1px;white-space:normal}.insurance-opening-balance-row>div[data-label]::before{content:attr(data-label);font-size:.47rem;color:var(--muted,#667085);font-weight:700}.insurance-opening-status{grid-column:1/3}.insurance-opening-balance-row>div:last-child{position:absolute;left:7px;top:7px}
}
@media(max-width:600px){
  .insurance-commission-summary-currency{grid-template-columns:40px 1fr 1fr;padding:5px}.insurance-commission-summary-code{grid-row:1/3}.insurance-commission-summary-currency>div:not(.insurance-commission-summary-code){padding:0 4px}.insurance-commission-summary-currency>div:nth-child(4){grid-column:2/4}.insurance-commission-summary-currency>small{grid-column:2/4;white-space:normal}
  .insurance-opening-balance-title{align-items:flex-start}.insurance-opening-balance-title>span{font-size:.47rem}.insurance-opening-balance-row{grid-template-columns:1fr 1fr 28px}.insurance-opening-main{grid-column:1/-1}.insurance-opening-status{grid-column:1/3}
}
@media(max-width:480px){
  .insurance-commission-summary-currency{grid-template-columns:36px 1fr 1fr;gap:3px}.insurance-commission-summary-currency span{font-size:.46rem}.insurance-commission-summary-currency strong{font-size:.61rem}
  .insurance-opening-balance-title>div span{white-space:normal}.insurance-opening-balance-row{padding:6px}.insurance-opening-main span{white-space:normal;line-height:1.2}
}

/* Insurance 177 — separate referral payables and compact referral entry UI. */
.insurance-referral-entry{display:grid;grid-template-columns:minmax(170px,1.2fr) minmax(190px,1fr) minmax(130px,.75fr);gap:6px;align-items:end;padding:5px 6px;border:1px solid var(--insurance-line,var(--border));border-radius:8px;background:var(--insurance-soft,var(--panel-2));min-width:0}
.insurance-referral-entry>label{min-width:0}.insurance-referral-toggle{min-height:28px;align-self:end;margin:0!important;padding:4px 6px!important;border-radius:7px!important;background:var(--insurance-surface,var(--panel));border:1px solid var(--insurance-line,var(--border));color:var(--text,#17212b)}
.insurance-referral-toggle span{font-size:.58rem;line-height:1.2}.insurance-referral-toggle input{width:13px!important;height:13px!important;min-width:13px!important}

.insurance-referral-filter-toolbar{grid-template-columns:minmax(210px,1.55fr) repeat(3,minmax(112px,.8fr)) auto}
.insurance-referral-summary-strip{margin-top:5px}
.insurance-referral-table{border:1px solid var(--insurance-line,var(--border));border-radius:10px;overflow:hidden;background:var(--insurance-surface,var(--panel));color:var(--text,#17212b)}
.insurance-referral-head,.insurance-referral-line{display:grid;grid-template-columns:minmax(260px,1.7fr) repeat(3,minmax(100px,.72fr)) minmax(112px,.78fr) 30px;gap:6px;align-items:center;padding:5px 7px}
.insurance-referral-head{min-height:27px;background:var(--insurance-soft,var(--panel-2));border-bottom:1px solid var(--insurance-line,var(--border));color:var(--muted,#667085);font-size:.49rem;font-weight:850;text-transform:uppercase;letter-spacing:.02em}
.insurance-referral-head>div:not(:first-child){text-align:left}.insurance-referral-head>div:nth-last-child(2){text-align:right}
.insurance-referral-list{display:grid}.insurance-referral-line{min-height:38px;border-bottom:1px solid var(--insurance-line,var(--border));cursor:pointer;background:var(--insurance-surface,var(--panel));transition:background .14s ease}.insurance-referral-line:last-child{border-bottom:0}.insurance-referral-line:hover{background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 4%,var(--insurance-surface,var(--panel)))}
.insurance-referral-main{display:grid;gap:1px;min-width:0}.insurance-referral-main strong{font-size:.63rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text,#17212b)}.insurance-referral-main span{font-size:.5rem;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insurance-referral-line>div[data-label]{text-align:left;font-size:.6rem;font-weight:760;white-space:nowrap;color:var(--text,#17212b)}.insurance-referral-status{display:grid;justify-items:start;gap:2px}.insurance-referral-status small{font-size:.47rem;color:var(--muted,#667085);white-space:nowrap}
.insurance-referral-payment-form .insurance-referral-balance-card{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;min-height:34px;background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 5%,var(--insurance-surface,var(--panel)))}
.insurance-referral-payment-form .insurance-referral-balance-card span{font-size:.57rem}.insurance-referral-payment-form .insurance-referral-balance-card strong{font-size:.72rem}

@media(max-width:900px){
  .insurance-referral-head{display:none}.insurance-referral-line{grid-template-columns:repeat(3,minmax(0,1fr)) 28px;position:relative;gap:5px 7px;padding:7px 8px}.insurance-referral-main{grid-column:1/-1;padding-left:34px}.insurance-referral-line>div[data-label]{text-align:right;display:grid;gap:1px;white-space:normal}.insurance-referral-line>div[data-label]::before{content:attr(data-label);font-size:.47rem;color:var(--muted,#667085);font-weight:700}.insurance-referral-status{grid-column:1/3}.insurance-referral-line>div:last-child{position:absolute;left:7px;top:7px}
}
@media(max-width:700px){
  .insurance-referral-entry{grid-template-columns:1fr 1fr}.insurance-referral-entry>label:first-child{grid-column:1/-1}.insurance-referral-toggle{min-height:27px}.insurance-referral-filter-toolbar{align-items:end!important}.insurance-referral-filter-toolbar .insurance-filter-field{min-width:0!important;width:100%}.insurance-referral-filter-toolbar input[type="date"],.insurance-referral-filter-toolbar input[type="time"]{width:100%;min-width:0;max-width:100%;box-sizing:border-box}.insurance-referral-filter-toolbar .insurance-filter-actions{width:100%;justify-content:center!important}
}
@media(max-width:480px){
  .insurance-referral-entry{grid-template-columns:1fr;padding:5px}.insurance-referral-entry>label:first-child{grid-column:auto}.insurance-referral-filter-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;padding:5px!important}.insurance-referral-filter-toolbar .insurance-search,.insurance-referral-filter-toolbar .insurance-filter-actions{grid-column:1/-1!important}.insurance-referral-filter-toolbar .form-label{font-size:.55rem!important;line-height:1.05!important;margin-bottom:2px!important}.insurance-referral-filter-toolbar .input,.insurance-referral-filter-toolbar .select{height:27px!important;min-height:27px!important;padding:2px 5px!important;font-size:.61rem!important}.insurance-referral-line{grid-template-columns:1fr 1fr 28px;padding:6px}.insurance-referral-main{grid-column:1/-1}.insurance-referral-main span{white-space:normal;line-height:1.2}.insurance-referral-status{grid-column:1/3}
}

/* Insurance 178 — reusable referrer directory and grouped referral ledger. */
.insurance-referral-entry{grid-template-columns:minmax(155px,1.05fr) minmax(155px,1.05fr) minmax(185px,1fr) minmax(120px,.72fr);gap:5px;padding:5px}
.insurance-referral-entry>.hide{display:none!important}.insurance-referral-entry .select,.insurance-referral-entry .input{min-width:0;width:100%}
.insurance-referrer-table{overflow:hidden}.insurance-referrer-head,.insurance-referrer-line{grid-template-columns:minmax(210px,1.05fr) minmax(360px,2fr) minmax(108px,.55fr) 30px}
.insurance-referrer-head>div:nth-child(2){text-align:right}.insurance-referrer-line{min-height:42px}.insurance-referrer-line>.insurance-referrer-money{text-align:right!important;display:grid;gap:2px;min-width:0}
.insurance-referrer-money-line{display:flex;align-items:center;gap:6px;min-width:0;font-size:.56rem;color:var(--text,#17212b)}.insurance-referrer-money-line>b{font-size:.48rem;min-width:26px;color:var(--muted,#667085)}.insurance-referrer-money-line>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-referrer-empty-money{color:var(--muted,#667085)}
.insurance-referrer-ledger-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:5px;margin-bottom:6px}.insurance-referrer-ledger-totals>div{display:grid;grid-template-columns:auto 1fr;gap:1px 7px;align-items:center;padding:5px 7px;border:1px solid var(--insurance-line,var(--border));border-radius:8px;background:var(--insurance-soft,var(--panel-2));color:var(--text,#17212b)}.insurance-referrer-ledger-totals span{font-size:.5rem;font-weight:800;color:var(--muted,#667085)}.insurance-referrer-ledger-totals b{font-size:.68rem;text-align:left}.insurance-referrer-ledger-totals small{grid-column:1/-1;font-size:.48rem;color:var(--muted,#667085)}
.insurance-referrer-ledger{border:1px solid var(--insurance-line,var(--border));border-radius:9px;overflow:hidden;background:var(--insurance-surface,var(--panel));color:var(--text,#17212b)}.insurance-referrer-ledger-head,.insurance-referrer-ledger-row{display:grid;grid-template-columns:minmax(260px,1.65fr) repeat(3,minmax(92px,.65fr)) minmax(105px,.65fr) 30px;gap:6px;align-items:center;padding:5px 7px}.insurance-referrer-ledger-head{background:var(--insurance-soft,var(--panel-2));border-bottom:1px solid var(--insurance-line,var(--border));font-size:.48rem;font-weight:850;color:var(--muted,#667085);text-transform:uppercase}.insurance-referrer-ledger-head>div:not(:first-child){text-align:left}.insurance-referrer-ledger-head>div:nth-last-child(2){text-align:right}.insurance-referrer-ledger-row{min-height:40px;border-bottom:1px solid var(--insurance-line,var(--border));cursor:pointer}.insurance-referrer-ledger-row:last-child{border-bottom:0}.insurance-referrer-ledger-row:hover{background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 4%,var(--insurance-surface,var(--panel)))}.insurance-referrer-ledger-row>div[data-label]{text-align:left;font-size:.58rem}.insurance-referrer-ledger-policy{display:grid;gap:1px;min-width:0}.insurance-referrer-ledger-policy strong{font-size:.61rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-referrer-ledger-policy span,.insurance-referrer-ledger-policy small{font-size:.48rem;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#insuranceReferrerDetailsModal .insurance-entry-dialog{width:min(920px,94vw)}

@media(max-width:900px){
  .insurance-referrer-head,.insurance-referrer-ledger-head{display:none}.insurance-referrer-line{grid-template-columns:1fr minmax(105px,.65fr) 28px;gap:5px;padding:7px 8px}.insurance-referrer-main{min-width:0}.insurance-referrer-line>.insurance-referrer-money{grid-column:1/-1}.insurance-referrer-line>.insurance-referral-status{grid-column:1/2}.insurance-referrer-line>div:last-child{position:absolute;left:7px;top:7px}
  .insurance-referrer-ledger-row{position:relative;grid-template-columns:repeat(3,minmax(0,1fr)) 28px;gap:5px 7px;padding:7px 8px}.insurance-referrer-ledger-policy{grid-column:1/-1;padding-left:32px}.insurance-referrer-ledger-row>div[data-label]{text-align:right;display:grid;gap:1px}.insurance-referrer-ledger-row>div[data-label]::before{content:attr(data-label);font-size:.46rem;color:var(--muted,#667085);font-weight:700}.insurance-referrer-ledger-row>.insurance-referral-status{grid-column:1/3}.insurance-referrer-ledger-row>div:last-child{position:absolute;left:7px;top:7px}
}
@media(max-width:700px){.insurance-referral-entry{grid-template-columns:1fr 1fr}.insurance-referral-entry>label:first-child{grid-column:1/-1}.insurance-referral-entry .insurance-referral-toggle{grid-column:auto}.insurance-referrer-ledger-totals{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.insurance-referral-entry{grid-template-columns:1fr}.insurance-referral-entry>label:first-child{grid-column:auto}.insurance-referrer-line{grid-template-columns:1fr 28px}.insurance-referrer-line>.insurance-referrer-money,.insurance-referrer-line>.insurance-referral-status{grid-column:1/-1}.insurance-referrer-money-line{font-size:.53rem;white-space:normal}.insurance-referrer-ledger-totals{grid-template-columns:1fr}.insurance-referrer-ledger-row{grid-template-columns:1fr 1fr 28px}.insurance-referrer-ledger-row>.insurance-referral-status{grid-column:1/3}.insurance-referrer-ledger-policy span,.insurance-referrer-ledger-policy small{white-space:normal;line-height:1.2}}

/* Insurance 178.1 — keep New Referral and commission controls inside the sale overlay. */
.insurance-referral-entry{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,.72fr)!important;gap:5px!important;align-items:end!important;min-width:0!important;max-width:100%!important;overflow:hidden}
.insurance-referral-entry>label{min-width:0!important;max-width:100%!important}
.insurance-referral-entry #insuranceReferralIdentityField{grid-column:auto!important}
.insurance-referral-new-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;align-items:center;margin-top:3px;min-width:0;max-width:100%}
.insurance-referral-new-control.hide{display:none!important}
.insurance-referral-new-control .input{margin-top:0!important;min-width:0!important;width:100%!important;max-width:100%!important}
.insurance-referral-existing-btn{height:31px!important;min-height:31px!important;min-width:58px!important;padding:0 7px!important;border-radius:8px!important;font-size:.58rem!important;white-space:nowrap!important}
.insurance-referral-toggle{min-width:0!important;max-width:100%!important;overflow:hidden}
.insurance-referral-toggle span{white-space:normal!important;overflow-wrap:anywhere}
#insuranceReferralCommissionField{min-width:0!important;max-width:100%!important}
#insuranceReferralCommissionField .input{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important}
@media(max-width:700px){
  .insurance-referral-entry{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  .insurance-referral-entry #insuranceReferralIdentityField{grid-column:1/-1!important}
  .insurance-referral-toggle,#insuranceReferralCommissionField{grid-column:auto!important}
}
@media(max-width:480px){
  .insurance-referral-entry{grid-template-columns:minmax(0,1fr)!important;padding:5px!important}
  .insurance-referral-entry #insuranceReferralIdentityField,.insurance-referral-toggle,#insuranceReferralCommissionField{grid-column:1!important}
  .insurance-referral-new-control{grid-template-columns:minmax(0,1fr) auto}
  .insurance-referral-existing-btn{min-width:54px!important;padding-inline:6px!important}
}


/* Insurance 179 — customer receivables, balances and payment history. */
.insurance-customer-payment-entry{display:grid;grid-template-columns:minmax(150px,.65fr) minmax(280px,1.35fr);gap:5px;align-items:center;padding:5px 6px;border:1px solid var(--insurance-line,var(--border));border-radius:8px;background:var(--insurance-soft,var(--panel-2));min-width:0;color:var(--text,#17212b)}
.insurance-customer-payment-toggle{min-height:29px;margin:0!important;padding:4px 6px!important;border:1px solid var(--insurance-line,var(--border));border-radius:7px;background:var(--insurance-surface,var(--panel));font-size:.6rem;font-weight:780}.insurance-customer-payment-toggle span{white-space:nowrap}
.insurance-customer-payment-fields{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,.85fr);gap:5px;align-items:end;min-width:0}.insurance-customer-payment-fields.hide{display:none!important}.insurance-customer-payment-fields label{min-width:0}.insurance-customer-payment-preview{display:grid;gap:1px;min-height:31px;padding:4px 7px;border:1px solid var(--insurance-line,var(--border));border-radius:7px;background:var(--insurance-surface,var(--panel))}.insurance-customer-payment-preview span{font-size:.48rem;color:var(--muted,#667085);font-weight:750}.insurance-customer-payment-preview strong{font-size:.66rem;color:var(--warning,#b7791f)}
.insurance-customer-payment-entry>small{grid-column:1/-1;font-size:.49rem;line-height:1.25;color:var(--muted,#667085)}

.insurance-payment-status{display:inline-flex;align-items:center;justify-content:center;min-height:20px;padding:2px 7px;border-radius:999px;border:1px solid var(--insurance-line,var(--border));background:var(--insurance-soft,var(--panel-2));font-size:.49rem;font-weight:850;white-space:nowrap;color:var(--text,#17212b)}
.insurance-payment-status.paid{border-color:color-mix(in srgb,var(--success,#15803d) 30%,var(--insurance-line,var(--border)));background:color-mix(in srgb,var(--success,#15803d) 8%,var(--insurance-surface,var(--panel)));color:var(--success,#15803d)}
.insurance-payment-status.partial,.insurance-payment-status.outstanding{border-color:color-mix(in srgb,var(--warning,#b7791f) 35%,var(--insurance-line,var(--border)));background:color-mix(in srgb,var(--warning,#b7791f) 9%,var(--insurance-surface,var(--panel)));color:var(--warning,#b7791f)}
.insurance-payment-status.unpaid{border-color:color-mix(in srgb,var(--danger,#b42318) 30%,var(--insurance-line,var(--border)));background:color-mix(in srgb,var(--danger,#b42318) 8%,var(--insurance-surface,var(--panel)));color:var(--danger,#b42318)}
.insurance-amount-outstanding{color:var(--warning,#b7791f)!important}

.insurance-customer-balance-toolbar{grid-template-columns:minmax(240px,1.5fr) minmax(150px,.65fr) auto!important;align-items:end!important}
.insurance-customer-balance-table{margin-top:7px;border:1px solid var(--insurance-line,var(--border));border-radius:9px;overflow:hidden;background:var(--insurance-surface,var(--panel));color:var(--text,#17212b)}
.insurance-customer-balance-head,.insurance-customer-balance-row{display:grid;grid-template-columns:minmax(230px,1.35fr) minmax(250px,1.15fr) minmax(120px,.55fr) 28px;gap:7px;align-items:center;padding:5px 8px}
.insurance-customer-balance-head{min-height:27px;background:var(--insurance-soft,var(--panel-2));border-bottom:1px solid var(--insurance-line,var(--border));font-size:.48rem;font-weight:850;color:var(--muted,#667085);text-transform:uppercase;letter-spacing:.02em}.insurance-customer-balance-head>div:nth-child(2){text-align:right}
.insurance-customer-balance-list{display:grid}.insurance-customer-balance-row{min-height:43px;border-bottom:1px solid var(--insurance-line,var(--border));cursor:pointer}.insurance-customer-balance-row:last-child{border-bottom:0}.insurance-customer-balance-row:hover{background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 4%,var(--insurance-surface,var(--panel)))}
.insurance-customer-balance-main{display:grid;gap:1px;min-width:0}.insurance-customer-balance-main strong{font-size:.63rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-customer-balance-main span{font-size:.49rem;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insurance-customer-balance-outstanding{display:grid;gap:2px;min-width:0}.insurance-customer-balance-money{display:flex;align-items:center;gap:7px;min-width:0}.insurance-customer-balance-money>b{min-width:28px;font-size:.48rem;color:var(--muted,#667085)}.insurance-customer-balance-money>span{font-size:.61rem;font-weight:820;color:var(--warning,#b7791f);white-space:nowrap}.insurance-customer-balance-empty{color:var(--muted,#667085);font-size:.55rem}
.insurance-customer-balance-status{display:grid;justify-items:start;gap:2px}.insurance-customer-balance-status small{font-size:.46rem;color:var(--muted,#667085);white-space:nowrap}.insurance-customer-balance-arrow{display:flex;align-items:center;justify-content:flex-end;min-width:0;font-size:.55rem;color:var(--muted,#667085);text-align:left}

.insurance-customer-account-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:5px;margin-bottom:6px}.insurance-customer-account-totals>div{display:grid;grid-template-columns:auto 1fr;gap:1px 7px;align-items:center;padding:5px 7px;border:1px solid var(--insurance-line,var(--border));border-radius:8px;background:var(--insurance-soft,var(--panel-2));color:var(--text,#17212b)}.insurance-customer-account-totals span{font-size:.5rem;font-weight:850;color:var(--muted,#667085)}.insurance-customer-account-totals b{font-size:.69rem;text-align:left;color:var(--warning,#b7791f)}.insurance-customer-account-totals small{grid-column:1/-1;font-size:.48rem;color:var(--muted,#667085)}
.insurance-customer-account-ledger{border:1px solid var(--insurance-line,var(--border));border-radius:9px;overflow:hidden;background:var(--insurance-surface,var(--panel));color:var(--text,#17212b)}
.insurance-customer-account-head,.insurance-customer-account-row{display:grid;grid-template-columns:minmax(0,2.15fr) repeat(3,minmax(0,.82fr)) minmax(0,.9fr) minmax(88px,.9fr);gap:6px;align-items:center;padding:5px 7px;width:100%;min-width:0;box-sizing:border-box}.insurance-customer-account-head{background:var(--insurance-soft,var(--panel-2));border-bottom:1px solid var(--insurance-line,var(--border));font-size:.47rem;font-weight:850;color:var(--muted,#667085);text-transform:uppercase}.insurance-customer-account-head>div:not(:first-child){text-align:left}.insurance-customer-account-head>div:nth-last-child(2){text-align:right}.insurance-customer-account-row{min-height:42px;border-bottom:1px solid var(--insurance-line,var(--border));cursor:pointer}.insurance-customer-account-row:last-child{border-bottom:0}.insurance-customer-account-row:hover{background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 4%,var(--insurance-surface,var(--panel)))}.insurance-customer-account-policy{display:grid;gap:1px;min-width:0}.insurance-customer-account-policy strong{font-size:.61rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-customer-account-policy span{font-size:.48rem;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-customer-account-head>div,.insurance-customer-account-row>div{min-width:0}.insurance-customer-account-row>div[data-label]{text-align:left;font-size:.58rem}.insurance-customer-account-status{display:grid;justify-items:start}.insurance-customer-account-actions{display:flex;align-items:center;justify-content:flex-end;min-width:0;text-align:left;color:var(--muted,#667085);font-size:.48rem}
#insuranceCustomerBalanceDetailsModal .insurance-entry-dialog{width:min(980px,94vw)}
#insuranceCustomerBalanceDetailsModal .modal-body{overflow-x:hidden!important}
#insuranceCustomerBalanceDetailsModal .insurance-customer-account-ledger{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
#insuranceCustomerBalanceDetailsModal .insurance-customer-account-head,#insuranceCustomerBalanceDetailsModal .insurance-customer-account-row{max-width:100%;overflow:visible}
#insuranceCustomerBalanceDetailsModal .insurance-customer-account-status{min-width:0;overflow:hidden}
#insuranceCustomerBalanceDetailsModal .insurance-payment-status{max-width:100%;overflow:hidden;text-overflow:ellipsis}
#insuranceCustomerBalanceDetailsModal .insurance-customer-account-actions,#insurancePanel .insurance-customer-balance-arrow{overflow:visible}
#insuranceCustomerBalanceDetailsModal .modal-footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}

.insurance-customer-payment-detail{display:grid!important;gap:5px!important}.insurance-customer-payment-history{border:1px solid var(--insurance-line,var(--border));border-radius:8px;overflow:hidden;background:var(--insurance-surface,var(--panel));font-weight:400!important}.insurance-customer-payment-history-head,.insurance-customer-payment-history-row{display:grid;grid-template-columns:minmax(190px,1.3fr) minmax(115px,.7fr) minmax(100px,.55fr);gap:6px;align-items:center;padding:5px 7px}.insurance-customer-payment-history-head{background:var(--insurance-soft,var(--panel-2));border-bottom:1px solid var(--insurance-line,var(--border));font-size:.46rem;font-weight:850;color:var(--muted,#667085);text-transform:uppercase}.insurance-customer-payment-history-head>div:last-child{text-align:left}.insurance-customer-payment-history-row{border-bottom:1px solid var(--insurance-line,var(--border))}.insurance-customer-payment-history-row:last-child{border-bottom:0}.insurance-customer-payment-history-row>div{display:grid;gap:1px;min-width:0}.insurance-customer-payment-history-row strong{font-size:.57rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-customer-payment-history-row small{font-size:.45rem;color:var(--muted,#667085);white-space:normal}.insurance-customer-payment-history-row>span{font-size:.5rem;color:var(--muted,#667085)}.insurance-customer-payment-history-row>b{text-align:left;font-size:.59rem}.insurance-customer-payment-history-empty{padding:7px;border:1px dashed var(--insurance-line,var(--border));border-radius:7px;color:var(--muted,#667085);font-size:.52rem;font-weight:500}
.insurance-customer-payment-balance{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 8px;border:1px solid var(--insurance-line,var(--border));border-radius:8px;background:var(--insurance-soft,var(--panel-2));color:var(--text,#17212b)}.insurance-customer-payment-balance span{font-size:.56rem;color:var(--muted,#667085)}.insurance-customer-payment-balance strong{font-size:.73rem;color:var(--warning,#b7791f)}

@media(max-width:900px){
  .insurance-customer-balance-head,.insurance-customer-account-head{display:none}.insurance-customer-balance-row{grid-template-columns:1fr minmax(115px,.7fr) 28px;position:relative;gap:5px 7px;padding:7px 8px}.insurance-customer-balance-main{grid-column:1/-1;padding-left:28px}.insurance-customer-balance-outstanding{grid-column:1/2}.insurance-customer-balance-status{grid-column:2/3}.insurance-customer-balance-arrow{position:absolute;left:8px;top:9px}
  .insurance-customer-account-row{position:relative;grid-template-columns:repeat(3,minmax(0,1fr)) 28px;gap:5px 7px;padding:7px 8px}.insurance-customer-account-policy{grid-column:1/-1;padding-left:25px}.insurance-customer-account-row>div[data-label]{text-align:right;display:grid;gap:1px}.insurance-customer-account-row>div[data-label]::before{content:attr(data-label);font-size:.46rem;color:var(--muted,#667085);font-weight:700}.insurance-customer-account-status{grid-column:1/3}.insurance-customer-account-actions{position:absolute;left:8px;top:9px}
}
@media(max-width:700px){
  .insurance-customer-payment-entry{grid-template-columns:1fr 1fr}.insurance-customer-payment-entry>small{grid-column:1/-1}.insurance-customer-payment-fields{grid-column:1/-1}.insurance-customer-balance-toolbar{grid-template-columns:1fr 1fr!important}.insurance-customer-balance-toolbar .insurance-search,.insurance-customer-balance-toolbar .insurance-filter-actions{grid-column:1/-1!important}.insurance-customer-account-totals{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .insurance-customer-payment-entry{grid-template-columns:1fr;padding:5px}.insurance-customer-payment-toggle,.insurance-customer-payment-fields,.insurance-customer-payment-entry>small{grid-column:1}.insurance-customer-payment-fields{grid-template-columns:1fr}.insurance-customer-payment-toggle span{white-space:normal}.insurance-customer-balance-toolbar{grid-template-columns:1fr!important}.insurance-customer-balance-toolbar .insurance-filter-field,.insurance-customer-balance-toolbar .insurance-search,.insurance-customer-balance-toolbar .insurance-filter-actions{grid-column:1!important}.insurance-customer-balance-row{grid-template-columns:1fr 28px;padding:6px}.insurance-customer-balance-outstanding,.insurance-customer-balance-status{grid-column:1/-1}.insurance-customer-balance-main span{white-space:normal;line-height:1.2}.insurance-customer-account-totals{grid-template-columns:1fr}.insurance-customer-account-row{grid-template-columns:1fr 1fr 28px}.insurance-customer-account-policy{grid-column:1/-1}.insurance-customer-account-status{grid-column:1/3}.insurance-customer-account-policy span{white-space:normal;line-height:1.2}.insurance-customer-payment-history-head{display:none}.insurance-customer-payment-history-row{grid-template-columns:1fr auto}.insurance-customer-payment-history-row>div{grid-column:1/-1}.insurance-customer-payment-history-row>span{grid-column:1}.insurance-customer-payment-history-row>b{grid-column:2}
}

/* Insurance A5 document polish — explicit customer-ledger document dropdown. */
#insuranceCustomerBalanceDetailsModal .insurance-document-menu-btn{
  position:relative;width:28px!important;height:24px!important;min-width:28px!important;min-height:24px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;
  overflow:visible!important;border-radius:6px!important
}
#insuranceCustomerBalanceDetailsModal .insurance-document-menu-btn>i:first-child{font-size:.58rem!important}
#insuranceCustomerBalanceDetailsModal .insurance-document-menu-caret{font-size:.38rem!important;transform:translateY(1px)}
#insuranceCustomerBalanceDetailsModal .insurance-customer-account-head>div:last-child{text-align:center!important;font-size:.43rem!important}
.insurance-document-party-row-three{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.insurance-document-policy-notes{margin-top:5px;padding:5px 7px;border:1px solid var(--insurance-line,var(--border));border-radius:7px;background:var(--insurance-soft,var(--panel-2));color:var(--muted,#667085);font-size:.55rem;line-height:1.3;overflow-wrap:anywhere}
@media(max-width:700px){.insurance-document-party-row-three{grid-template-columns:1fr!important}}

/* Customer statement transaction document controls — always visible and modal-safe.
   The floating menu is appended to <body>; it must outrank the shared .modal layer (2147483646) on desktop. */
.insurance-customer-account-document-hint{display:flex;align-items:flex-start;gap:6px;margin:0 0 6px;padding:5px 7px;border:1px solid var(--insurance-line,var(--border));border-radius:8px;background:var(--insurance-soft,var(--panel-2));color:var(--muted,#667085);font-size:.5rem;line-height:1.3}
.insurance-customer-account-document-hint i{color:var(--insurance-primary,var(--accent));font-size:.55rem;margin-top:1px}
#insuranceCustomerBalanceDetailsModal .insurance-customer-transaction-docs{width:auto!important;height:24px!important;min-width:82px!important;min-height:24px!important;padding:3px 6px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;font-size:.49rem!important;font-weight:800!important;white-space:nowrap!important;overflow:visible!important}
#insuranceCustomerBalanceDetailsModal .insurance-customer-transaction-docs>span{display:inline!important;max-width:none!important;overflow:visible!important}
#insuranceCustomerBalanceDetailsModal .insurance-customer-account-actions{min-width:88px!important;justify-content:center!important}
@media(max-width:900px){#insuranceCustomerBalanceDetailsModal .insurance-customer-account-policy{padding-left:92px!important}#insuranceCustomerBalanceDetailsModal .insurance-customer-account-actions{left:8px!important;top:8px!important;min-width:82px!important}}
@media(max-width:480px){#insuranceCustomerBalanceDetailsModal .insurance-customer-transaction-docs{min-width:31px!important;width:31px!important;padding:3px!important}#insuranceCustomerBalanceDetailsModal .insurance-customer-transaction-docs>span{display:none!important}#insuranceCustomerBalanceDetailsModal .insurance-customer-account-actions{min-width:31px!important}#insuranceCustomerBalanceDetailsModal .insurance-customer-account-policy{padding-left:39px!important}}

/* Customer statement transaction Documents dropdown.
   The ledger itself stays fluid inside the modal; the menu is a compact body-level floating panel so it never expands or clips the transaction row. */
#insuranceCustomerBalanceDetailsModal{overflow:visible!important}
.insurance-floating-menu.insurance-customer-documents-dropdown{
  position:fixed!important;
  z-index:2147483647!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  width:196px!important;
  min-width:196px!important;
  max-width:min(220px,calc(100vw - 16px))!important;
  height:auto!important;
  padding:4px!important;
  gap:2px!important;
  overflow:visible!important;
  box-sizing:border-box!important;
  border-radius:9px;
  box-shadow:0 12px 30px color-mix(in srgb,#000 18%,transparent);
}
.insurance-floating-menu.insurance-customer-documents-dropdown button{
  position:relative!important;
  display:grid!important;
  grid-template-columns:15px minmax(0,1fr)!important;
  align-items:center!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:28px!important;
  height:auto!important;
  padding:5px 7px!important;
  margin:0!important;
  border-radius:6px;
  font-size:.58rem;
  font-weight:750;
  text-align:right!important;
  white-space:nowrap;
}
.insurance-floating-menu.insurance-customer-documents-dropdown button i{
  width:15px;
  text-align:center;
  font-size:.6rem;
}
.insurance-floating-menu.insurance-customer-documents-dropdown button span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media(max-width:600px){
  .insurance-floating-menu.insurance-customer-documents-dropdown{min-width:170px;max-width:calc(100vw - 12px)}
}

/* Insurance customer search: lift the entire search stack above following form fields. */
.insurance-modal .insurance-customer-search-wrap{position:relative!important;z-index:10000!important;isolation:isolate!important}
.insurance-modal .insurance-customer-search-results{z-index:10001!important}

/* Insurance 188 — Received Commission payment records. */

.insurance-commission-tabs{display:flex;gap:5px;padding:2px 0 5px;overflow:auto;scrollbar-width:none;border-bottom:1px solid var(--insurance-line,var(--border))}.insurance-commission-tabs::-webkit-scrollbar{display:none}.insurance-commission-tab{white-space:nowrap}.insurance-commission-tab.active{background:var(--insurance-primary,var(--accent))!important;color:var(--on-primary,var(--primary-contrast,#fff))!important;border-color:transparent!important}.insurance-commission-tab-panel[hidden]{display:none!important}.insurance-commission-tab-panel{min-width:0}
.insurance-commission-receipts-section{margin:6px 0 8px;border:1px solid var(--insurance-line,var(--border));border-radius:9px;overflow:hidden;background:var(--insurance-surface,var(--panel));color:var(--text,#17212b)}
.insurance-commission-receipts-header{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:6px 8px;background:var(--insurance-soft,var(--panel-2));border-bottom:1px solid var(--insurance-line,var(--border))}.insurance-commission-receipts-header>div{min-width:0}.insurance-commission-receipts-header strong{display:block;font-size:.65rem}.insurance-commission-receipts-header>div:first-child>span{display:block;margin-top:1px;font-size:.49rem;color:var(--muted,#667085)}.insurance-commission-receipts-header .btn.primary span{display:inline;color:var(--on-primary,var(--primary-contrast,#fff));margin:0;font-size:inherit}
.insurance-commission-receipts-table{max-height:340px;overflow:auto}.insurance-commission-receipts-head,.insurance-commission-receipt-row{display:grid;grid-template-columns:minmax(190px,1.35fr) minmax(130px,.85fr) minmax(110px,.7fr) 34px;gap:7px;align-items:center;padding:5px 8px}.insurance-commission-receipts-head{position:sticky;top:0;z-index:2;min-height:25px;background:var(--insurance-soft,var(--panel-2));border-bottom:1px solid var(--insurance-line,var(--border));font-size:.47rem;font-weight:850;color:var(--muted,#667085);text-transform:uppercase;letter-spacing:.02em}.insurance-commission-receipts-head>div:nth-child(3){text-align:left}.insurance-commission-receipt-row{min-height:40px;border-bottom:1px solid var(--insurance-line,var(--border));cursor:pointer}.insurance-commission-receipt-row:last-child{border-bottom:0}.insurance-commission-receipt-row:hover{background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 4%,var(--insurance-surface,var(--panel)))}.insurance-commission-receipt-main{min-width:0;display:grid;gap:1px}.insurance-commission-receipt-main strong{font-size:.61rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-commission-receipt-main span,.insurance-commission-receipt-reference{font-size:.49rem;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insurance-commission-receipt-row>b{font-size:.62rem;text-align:left;white-space:nowrap}.insurance-commission-receipt-row>.insurance-commission-receipt-reference{min-width:0}.insurance-commission-receipt-edit-meta{grid-column:1/-1;margin-bottom:1px}.insurance-commission-receipt-edit-meta .insurance-detail{min-height:32px}
@media(max-width:700px){.insurance-commission-receipts-head{display:none}.insurance-commission-receipt-row{grid-template-columns:minmax(0,1fr) auto 30px;gap:6px;padding:6px 7px}.insurance-commission-receipt-row>.insurance-commission-receipt-reference{grid-column:1/-1;grid-row:2;white-space:normal}.insurance-commission-receipt-row>b{grid-column:2;grid-row:1;text-align:left}.insurance-commission-receipt-row>div:last-child{grid-column:3;grid-row:1}.insurance-commission-receipts-table{max-height:300px}.insurance-commission-receipts-header{align-items:flex-start}.insurance-commission-receipts-header .btn{flex:0 0 auto}}

.insurance-commission-receipt-deleted{opacity:.72;background:color-mix(in srgb,var(--danger,#c83d4c) 4%,var(--insurance-surface,var(--panel)))}.insurance-commission-receipt-deleted-badge{display:inline-flex;align-items:center;margin-right:4px;padding:1px 4px;border-radius:999px;background:var(--danger-soft,color-mix(in srgb,var(--danger,#c83d4c) 10%,transparent));color:var(--danger,#c83d4c);font-size:.44rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em;vertical-align:middle}.insurance-commission-receipt-deleted .insurance-commission-receipt-reference,.insurance-commission-receipt-deleted .insurance-commission-receipt-main span{color:var(--muted,#667085)}

/* Insurance 194 — Cancelled Policies tab (pending confirmation / clear). */
.insurance-cancel-table{margin-top:2px}
.insurance-cancel-list{display:grid;gap:0}
.insurance-cancel-line{display:grid;grid-template-columns:minmax(92px,.7fr) minmax(170px,1.5fr) minmax(130px,1.2fr) minmax(110px,.9fr) minmax(120px,.9fr) minmax(76px,.5fr) 34px;gap:6px;align-items:center;min-width:0;padding:6px 8px;border-bottom:1px solid var(--insurance-line,var(--border));color:var(--text,#17212b)}
.insurance-cancel-head{min-height:28px;background:var(--insurance-soft,var(--panel-2));color:var(--muted,#667085);font-size:.51rem;font-weight:850;text-transform:uppercase;letter-spacing:.02em}
.insurance-cancel-record{min-height:42px;background:var(--insurance-surface,var(--panel));cursor:pointer}
.insurance-cancel-record:hover{background:color-mix(in srgb,var(--insurance-primary,var(--accent)) 4%,var(--insurance-surface,var(--panel)))}
.insurance-cancel-cell{min-width:0;display:grid;gap:1px}
.insurance-cancel-cell strong{font-size:.62rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insurance-cancel-cell small{font-size:.5rem;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insurance-cancel-amount{text-align:left}
.insurance-cancel-head>div:nth-child(4){text-align:left}
.insurance-cancel-status{display:inline-flex;align-items:center;justify-self:start;min-height:19px;padding:2px 8px;border-radius:999px;border:1px solid var(--insurance-line,var(--border));font-size:.52rem;font-weight:800;line-height:1;white-space:nowrap}
.insurance-cancel-status.pending{color:var(--warning,#b7791f);border-color:color-mix(in srgb,var(--warning,#b7791f) 36%,var(--insurance-line,var(--border)));background:color-mix(in srgb,var(--warning,#b7791f) 9%,var(--insurance-surface,var(--panel)))}
.insurance-cancel-status.clear{color:var(--success,#20845c);border-color:color-mix(in srgb,var(--success,#20845c) 34%,var(--insurance-line,var(--border)));background:color-mix(in srgb,var(--success,#20845c) 9%,var(--insurance-surface,var(--panel)))}
.insurance-cancel-note{display:flex;gap:7px;align-items:flex-start;padding:7px 9px;border:1px solid var(--insurance-line,var(--border));border-radius:9px;background:var(--insurance-soft,var(--panel-2));font-size:.58rem;line-height:1.45;color:var(--muted,#667085)}
.insurance-cancel-note i{margin-top:2px;color:var(--insurance-primary,var(--accent))}
.insurance-cancel-net{display:block;font-size:.48rem;font-weight:700;color:var(--muted,#667085)}
@media(max-width:1000px){.insurance-cancel-line{grid-template-columns:minmax(80px,.8fr) minmax(130px,1.3fr) minmax(100px,1fr) minmax(90px,.9fr) minmax(100px,.9fr) minmax(70px,.6fr) 32px}}
@media(max-width:760px){
  .insurance-cancel-head{display:none}
  .insurance-cancel-line{grid-template-columns:1fr 1fr 30px;gap:6px 8px;padding:9px 10px}
  .insurance-cancel-cell::before{content:attr(data-label);font-size:.46rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:var(--muted,#667085)}
  .insurance-cancel-amount{text-align:right}
  .insurance-cancel-line>.insurance-report-line-actions{grid-column:3;grid-row:1}
}
@media(max-width:600px){.insurance-cancel-filter-toolbar{grid-template-columns:1fr 1fr!important}.insurance-cancel-filter-toolbar .insurance-search,.insurance-cancel-filter-toolbar .insurance-filter-actions{grid-column:1/-1!important}}

/* Insurance 195 — cancellation refunds, pending deductions, cancelled totals note. */
.insurance-payment-status.cancelled{border-color:color-mix(in srgb,var(--danger,#b42318) 30%,var(--insurance-line,var(--border)));background:color-mix(in srgb,var(--danger,#b42318) 7%,var(--insurance-surface,var(--panel)));color:var(--danger,#b42318)}
.insurance-kpi-note{display:block;margin-top:2px;font-size:.5rem;font-weight:700;color:var(--muted,#667085)}
.insurance-refund-line{color:var(--warning,#b7791f)!important;font-weight:700}
.insurance-cancel-warn{color:var(--warning,#b7791f)!important;font-weight:800}
.insurance-cancel-refund-strip{display:grid;gap:4px;margin:2px 0 7px}
.insurance-cancel-refund-strip>div{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;padding:6px 9px;border:1px solid color-mix(in srgb,var(--warning,#b7791f) 32%,var(--insurance-line,var(--border)));border-radius:9px;background:color-mix(in srgb,var(--warning,#b7791f) 7%,var(--insurance-surface,var(--panel)));font-size:.58rem}
.insurance-cancel-refund-strip b{font-size:.56rem}
.insurance-cancel-refund-strip strong{margin-right:3px}
.insurance-refund-section{display:grid;gap:7px;margin:8px 0;padding:9px;border:1px solid var(--insurance-line,var(--border));border-radius:10px;background:var(--insurance-surface,var(--panel))}
.insurance-refund-title{display:grid;gap:1px}
.insurance-refund-title strong{font-size:.68rem}
.insurance-refund-title span{font-size:.54rem;color:var(--muted,#667085)}
.insurance-refund-field{display:grid;gap:3px;font-size:.56rem;font-weight:700}
.insurance-refund-history{display:grid;gap:4px}
.insurance-refund-history .insurance-commission-payment-row{align-items:center}
.insurance-refund-record{display:grid;grid-template-columns:minmax(80px,1fr) minmax(110px,1fr) auto;gap:6px;align-items:center}
.insurance-pending-ded{display:flex;gap:9px;align-items:center;margin:2px 0 8px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--warning,#b7791f) 38%,var(--insurance-line,var(--border)));border-radius:10px;background:color-mix(in srgb,var(--warning,#b7791f) 8%,var(--insurance-surface,var(--panel)))}
.insurance-pending-ded>i{color:var(--warning,#b7791f)}
.insurance-pending-ded>div{flex:1;min-width:0;display:grid;gap:1px}
.insurance-pending-ded strong{font-size:.64rem}
.insurance-pending-ded span{font-size:.54rem;color:var(--muted,#667085)}
.insurance-ded-card{display:grid;gap:6px;margin:7px 0;padding:9px;border:1px solid var(--insurance-line,var(--border));border-radius:10px;background:var(--insurance-surface,var(--panel))}
.insurance-ded-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.insurance-ded-head>div{display:grid;gap:1px;min-width:0}
.insurance-ded-head strong{font-size:.64rem}
.insurance-ded-head span{font-size:.52rem;color:var(--muted,#667085)}
.insurance-ded-head b{text-align:left;font-size:.66rem}
.insurance-ded-head b small{display:block;font-size:.46rem;font-weight:700;color:var(--muted,#667085)}
.insurance-ded-figures{display:flex;flex-wrap:wrap;gap:3px 12px;font-size:.52rem;color:var(--muted,#667085)}
.insurance-ded-paid{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:.52rem;color:var(--muted,#667085)}
.insurance-ded-actions{display:flex;flex-wrap:wrap;gap:6px}
@media(max-width:600px){.insurance-refund-record{grid-template-columns:1fr 1fr}.insurance-refund-record .btn{grid-column:1/-1}.insurance-pending-ded{flex-wrap:wrap}}

/* Insurance 196 — Refunds tab. */
.insurance-cancel-line.insurance-rf-line{grid-template-columns:minmax(86px,.7fr) minmax(150px,1.3fr) minmax(120px,1.1fr) minmax(120px,1fr) minmax(90px,.8fr) minmax(90px,.8fr) minmax(90px,.8fr) minmax(76px,.6fr) 34px}
.insurance-cancel-head.insurance-rf-line>div:nth-child(4){text-align:right}
.insurance-cancel-head.insurance-rf-line>div:nth-child(5),.insurance-cancel-head.insurance-rf-line>div:nth-child(6),.insurance-cancel-head.insurance-rf-line>div:nth-child(7){text-align:left}
.insurance-cancel-status.partial{color:var(--info,#1d6fb8);border-color:color-mix(in srgb,var(--info,#1d6fb8) 34%,var(--insurance-line,var(--border)));background:color-mix(in srgb,var(--info,#1d6fb8) 9%,var(--insurance-surface,var(--panel)))}
.insurance-cancel-status.notset{color:var(--danger,#b42318);border-color:color-mix(in srgb,var(--danger,#b42318) 32%,var(--insurance-line,var(--border)));background:color-mix(in srgb,var(--danger,#b42318) 7%,var(--insurance-surface,var(--panel)))}
.insurance-cancel-status.none{color:var(--muted,#667085);background:var(--insurance-soft,var(--panel-2))}
.insurance-rf-chips{display:flex;flex-wrap:wrap;gap:5px;margin:2px 0 7px}
@media(max-width:1100px){.insurance-cancel-line.insurance-rf-line{grid-template-columns:minmax(76px,.7fr) minmax(120px,1.2fr) minmax(100px,1fr) minmax(100px,1fr) minmax(76px,.8fr) minmax(76px,.8fr) minmax(76px,.8fr) minmax(70px,.6fr) 32px}}
@media(max-width:760px){
  .insurance-cancel-line.insurance-rf-line{grid-template-columns:1fr 1fr 30px;gap:6px 8px;padding:9px 10px}
  .insurance-cancel-line.insurance-rf-line>.insurance-report-line-actions{grid-column:3;grid-row:1}
}

/* 2026-11-10 (migration 213): note shown when editing an opening balance that already has receipts. */
.insurance-opening-edit-note{grid-column:1/-1;display:flex;gap:9px;align-items:flex-start;padding:9px 11px;border-radius:9px;
  border:1px solid color-mix(in srgb,var(--primary,#2563eb) 28%,transparent);background:color-mix(in srgb,var(--primary,#2563eb) 7%,transparent);
  color:var(--text,#0f172a);font-size:.74rem;line-height:1.45}
.insurance-opening-edit-note i{color:var(--primary,#2563eb);margin-top:2px}
.insurance-opening-balance-form select:disabled{opacity:.72;cursor:not-allowed}

/* ===== SOURCE: Assets/style/55-app-downloads.css ===== */
/* Triplem VIP application downloads: compact cross-platform download hub + theme parity. */

.triplem-apps-overlay{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  z-index:9850;
  display:grid;
  place-items:center;
  overflow:hidden;
  box-sizing:border-box;
  padding:14px;
  color:var(--text,#101828);
  transform:none!important;
}
html.triplem-apps-open,body.triplem-apps-open{overflow:hidden!important}
.triplem-apps-overlay.hide{display:none!important}
.triplem-apps-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.58);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.triplem-apps-modal{
  position:relative;
  width:min(520px,calc(100vw - 28px));
  max-height:min(82vh,680px);
  max-height:min(82dvh,680px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--line,rgba(148,163,184,.28));
  border-radius:16px;
  background:linear-gradient(155deg,var(--surface-glass-strong,var(--surface-elevated,#fff)),var(--surface-glass,var(--surface,#fff)));
  color:var(--text,#101828);
  box-shadow:var(--shadow-strong,0 22px 70px rgba(2,6,23,.28));
  margin:0!important;
  align-self:center!important;
  justify-self:center!important;
  transform:none!important;
}
.triplem-apps-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px 10px;
  border-bottom:1px solid var(--line,rgba(148,163,184,.24));
  background:var(--surface-soft,rgba(148,163,184,.08));
}
.triplem-apps-header h3{margin:1px 0 0;font-size:1rem;line-height:1.15;color:var(--text,#101828)}
.triplem-apps-kicker{margin:0;font-size:.61rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#667085)}
.triplem-apps-close{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border:1px solid var(--line,rgba(148,163,184,.28));
  border-radius:9px;
  background:var(--control-bg,var(--surface-elevated,#fff));
  color:var(--text,#101828);
  cursor:pointer;
}
.triplem-apps-close:hover{background:var(--control-hover,var(--surface-hover,rgba(148,163,184,.12)))}
.triplem-apps-body{padding:12px;overflow:auto;overscroll-behavior:contain}
.triplem-platform-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:10px}
.triplem-platform-btn{
  min-width:0;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid var(--line,rgba(148,163,184,.28));
  border-radius:10px;
  background:var(--control-bg,var(--surface-elevated,#fff));
  color:var(--text,#101828);
  font:inherit;
  font-size:.76rem;
  font-weight:750;
  cursor:pointer;
}
.triplem-platform-btn i{font-size:.92rem}
.triplem-platform-btn:hover{background:var(--control-hover,var(--surface-hover,rgba(148,163,184,.12)))}
.triplem-platform-btn.active{
  border-color:var(--primary,#2457d6);
  background:var(--primary-soft,rgba(36,87,214,.11));
  color:var(--primary,#2457d6);
  box-shadow:0 0 0 2px var(--focus-ring,rgba(36,87,214,.10));
}
.triplem-platform-panel{
  padding:12px;
  border:1px solid var(--line,rgba(148,163,184,.25));
  border-radius:12px;
  background:var(--surface-soft,rgba(148,163,184,.07));
  color:var(--text,#101828);
}
.triplem-app-summary{display:flex;align-items:center;gap:10px;margin-bottom:9px;min-width:0}
.triplem-app-summary>i,
.triplem-app-summary>img{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:10px;
}
.triplem-app-summary>i{
  display:grid;
  place-items:center;
  border:1px solid var(--line,rgba(148,163,184,.25));
  background:var(--surface-elevated,var(--control-bg,#fff));
  color:var(--primary,#2457d6);
  font-size:1rem;
}
.triplem-app-summary>img{object-fit:cover;border:1px solid var(--line,rgba(148,163,184,.25))}
.triplem-app-summary div{min-width:0;display:grid;gap:2px}
.triplem-app-summary strong{font-size:.82rem;color:var(--text,#101828)}
.triplem-app-summary span{font-size:.68rem;line-height:1.35;color:var(--muted,#667085)}
.triplem-install-steps{
  margin:0 18px 10px 0;
  padding:0;
  display:grid;
  gap:5px;
  color:var(--text,#101828);
  font-size:.72rem;
  line-height:1.36;
}
.triplem-install-steps strong{color:var(--text,#101828)}
.triplem-app-note{
  display:flex;
  align-items:flex-start;
  gap:7px;
  padding:7px 8px;
  margin:0 0 10px;
  border:1px solid var(--line,rgba(148,163,184,.25));
  border-radius:9px;
  background:var(--surface-elevated,var(--control-bg,#fff));
  color:var(--muted,#667085);
  font-size:.65rem;
  line-height:1.35;
}
.triplem-app-note i{color:var(--primary,#2457d6);margin-top:1px}
.triplem-download-final{
  width:max-content;
  max-width:100%;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:7px 12px;
  border:1px solid var(--primary,#2457d6);
  border-radius:9px;
  background:var(--primary-gradient,var(--primary,#2457d6));
  color:var(--on-primary,#fff)!important;
  text-decoration:none!important;
  font-size:.72rem;
  font-weight:800;
  box-shadow:0 7px 18px var(--primary-soft,rgba(36,87,214,.16));
}
.triplem-download-final:hover{filter:brightness(1.03)}

/* Bring the existing landing iOS/Android download dialogs into the same compact themed system. */
.app-download-modal{
  width:min(500px,calc(100vw - 28px))!important;
  max-height:min(82vh,680px)!important;
  background:linear-gradient(155deg,var(--surface-glass-strong,var(--surface-elevated,#fff)),var(--surface-glass,var(--surface,#fff)))!important;
  border-color:var(--line,rgba(148,163,184,.28))!important;
  color:var(--text,#101828)!important;
  box-shadow:var(--shadow-strong,0 22px 70px rgba(2,6,23,.28))!important;
}
.app-download-header{
  padding:11px 13px 9px!important;
  background:var(--surface-soft,rgba(148,163,184,.08))!important;
  border-color:var(--line,rgba(148,163,184,.24))!important;
}
.app-download-header h3,.app-download-header h3 i{
  background:none!important;
  -webkit-background-clip:initial!important;
  -webkit-text-fill-color:currentColor!important;
  color:var(--text,#101828)!important;
}
.app-download-header h3{font-size:.92rem!important}
.app-download-header .btn{min-width:30px!important;width:30px!important;height:30px!important;padding:0!important;border-radius:9px!important}
.app-download-content{padding:12px!important;gap:10px!important}
.app-download-qr,.app-download-instructions,.app-download-note{
  background:var(--surface-soft,rgba(148,163,184,.07))!important;
  border-color:var(--line,rgba(148,163,184,.25))!important;
  color:var(--text,#101828)!important;
  box-shadow:none!important;
}
.app-download-qr{padding:10px!important;border-width:1px!important;border-radius:11px!important}
.app-download-instructions{padding:11px!important;border-radius:11px!important}
.app-download-instructions h4{color:var(--text,#101828)!important;font-size:.78rem!important}
.app-download-instructions li,.app-download-instructions p,.qr-instruction{color:var(--muted,#667085)!important}
.download-btn{padding:7px 11px!important;border-radius:8px!important;font-size:.7rem!important}

@media (max-width:640px){
  .triplem-apps-overlay{
    inset:0!important;
    width:100vw!important;
    height:100vh!important;
    height:100dvh!important;
    padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))!important;
    display:grid!important;
    place-items:center!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
  .triplem-apps-modal{width:100%;max-height:calc(100dvh - max(20px,env(safe-area-inset-top)) - max(20px,env(safe-area-inset-bottom)));border-radius:15px;margin:0!important;align-self:center!important;justify-self:center!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;transform:none!important}
  .triplem-apps-header{padding:10px 11px 9px}
  .triplem-apps-body{padding:10px}
  .triplem-platform-grid{gap:5px}
  .triplem-platform-btn{height:36px;font-size:.7rem;gap:4px}
  .triplem-platform-panel{padding:10px}
  .triplem-install-steps{font-size:.69rem;gap:4px}
  .triplem-download-final{width:100%}
  .app-download-overlay{padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))!important;align-items:center!important;justify-content:center!important}
  .app-download-modal{width:100%!important;margin:auto!important;max-height:88vh!important;max-height:88dvh!important;border-radius:15px!important}
}

/* ===== SOURCE: Assets/style/56-offline-reliability.css ===== */
/* Offline reliability: offline banner, sync review panel, sync status badges. */
.offline-mode-banner{position:fixed;left:50%;bottom:calc(14px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:2147483000;display:flex;align-items:center;gap:10px;max-width:min(680px,calc(100vw - 32px));padding:10px 14px;border-radius:14px;border:1px solid color-mix(in srgb,var(--warning) 45%,var(--line));background:color-mix(in srgb,var(--warning) 12%,var(--surface));color:var(--text);box-shadow:0 10px 30px rgba(15,23,42,.18);font-size:.82rem;font-weight:600;line-height:1.35}
.offline-mode-banner i{color:var(--warning);flex:0 0 auto}
.offline-mode-banner.hide{display:none}
.offline-entry-pending--conflict{border-color:color-mix(in srgb,var(--warning) 45%,var(--line));background:color-mix(in srgb,var(--warning) 12%,var(--surface));color:var(--warning)}
.offline-entry-pending--failed{border-color:color-mix(in srgb,var(--danger) 45%,var(--line));background:color-mix(in srgb,var(--danger) 10%,var(--surface));color:var(--danger)}
.offline-sync-status.is-error .offline-sync-count{background:var(--danger)}
.offline-sync-panel .offline-sync-sheet{max-width:560px;width:calc(100vw - 32px)}
.offline-sync-panel .settings-sheet-head p{margin:4px 0 0;color:var(--muted);font-size:.82rem}
.offline-panel-list{display:grid;gap:10px;max-height:min(60vh,520px);overflow:auto}
.offline-panel-empty{margin:6px 0;color:var(--muted)}
.offline-panel-item{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.offline-panel-item--failed{border-color:color-mix(in srgb,var(--danger) 45%,var(--line))}
.offline-panel-item--conflict{border-color:color-mix(in srgb,var(--warning) 50%,var(--line))}
.offline-panel-item-main{display:grid;gap:3px;min-width:0;flex:1 1 220px}
.offline-panel-item-main strong{color:var(--text);font-size:.9rem;overflow-wrap:anywhere}
.offline-panel-item-main span{color:var(--muted);font-size:.78rem;overflow-wrap:anywhere}
.offline-panel-status{font-weight:600}
.offline-panel-item--failed .offline-panel-status{color:var(--danger)}
.offline-panel-item--conflict .offline-panel-status{color:var(--warning)}
.offline-panel-item-actions{display:flex;flex-wrap:wrap;gap:6px}
.offline-panel-footer{display:flex;justify-content:flex-end;margin-top:14px}
@media (max-width:560px){.offline-mode-banner{bottom:calc(76px + env(safe-area-inset-bottom,0px));font-size:.78rem}}

/* ===== SOURCE: Assets/style/57-notifications-messaging.css ===== */
/* Triplem VIP - Notifications & Messaging refinement (2026-11-05)
 * One simple line per notification with a detail overlay, Messages "Read all",
 * conversation day separators, grouped bubbles, composer hints, drafts and
 * failed-send retry. Uses the shared theme tokens so every theme is supported. */

/* ---- Header actions -------------------------------------------------------------- */
.admin-comms-header-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}

/* ---- Notification rows: one line each ------------------------------------------------- */
#adminNotifyList .admin-comms-item.notif-row{
  grid-template-columns:30px minmax(0,1fr) auto 8px;
  align-items:center;
  gap:10px;
  padding:9px 10px;
  border-radius:12px;
  min-height:48px;
  position:relative;
}
#adminNotifyList .notif-row:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
#adminNotifyList .notif-row .notif-row-icon{width:30px;height:30px;border-radius:9px;font-size:.82rem}
.notif-row-text{display:flex;align-items:baseline;gap:8px;min-width:0;overflow:hidden;white-space:nowrap}
.notif-row-text strong{
  flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
  font-size:.86rem;font-weight:600;color:var(--text)
}
.notif-row-text span{
  flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;
  font-size:.8rem;color:var(--muted)
}
.notif-row.unread .notif-row-text strong{font-weight:750}
.notif-row-time{font-size:.74rem;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.notif-row-dot{width:8px;height:8px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 18%,transparent)}
@media (max-width:520px){
  .notif-row-text{flex-direction:column;align-items:stretch;gap:1px}
  .notif-row-text strong,.notif-row-text span{white-space:nowrap}
}

/* ---- Notification detail overlay --------------------------------------------------------- */
.notification-detail-modal{z-index:2147482000}
.notification-detail-modal .notification-detail-dialog{
  width:min(520px,calc(100vw - 28px));
  max-height:min(86vh,720px);
  display:flex;flex-direction:column;
  padding:0;overflow:hidden;
  border-radius:18px;
  background:var(--surface-elevated,var(--surface));
  border:1px solid var(--line);
  box-shadow:var(--shadow-strong,0 24px 60px rgba(15,23,42,.28));
}
.notification-detail-head{display:flex;align-items:flex-start;gap:12px;padding:18px 18px 12px;border-bottom:1px solid var(--line)}
.notification-detail-head .notification-detail-icon{flex:0 0 auto;width:40px;height:40px;border-radius:12px}
.notification-detail-heading{flex:1;min-width:0}
.notification-detail-heading h3{margin:0;font-size:1.02rem;line-height:1.35;color:var(--text);overflow-wrap:anywhere}
.notification-detail-time{display:block;margin-top:3px;font-size:.78rem;color:var(--muted)}
.notification-detail-body{padding:14px 18px;overflow:auto;display:grid;gap:12px}
.notification-detail-text{margin:0;font-size:.9rem;line-height:1.6;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}
.notification-detail-fields{margin:0;display:grid;gap:8px;padding:12px;border-radius:12px;background:var(--surface-soft,var(--panel-2));border:1px solid var(--line)}
.notification-detail-fields div{display:grid;grid-template-columns:minmax(110px,38%) 1fr;gap:10px;align-items:baseline}
.notification-detail-fields dt{font-size:.76rem;color:var(--muted);font-weight:600}
.notification-detail-fields dd{margin:0;font-size:.86rem;color:var(--text);overflow-wrap:anywhere}
.notification-detail-state{margin:0;font-size:.82rem;color:var(--muted);display:flex;gap:6px;align-items:center}
.notification-detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 18px 16px;border-top:1px solid var(--line)}
.notification-detail-actions .btn{min-height:38px}
.notification-detail-spacer{flex:1}
@media (max-width:520px){
  .notification-detail-fields div{grid-template-columns:1fr;gap:2px}
  .notification-detail-actions .btn{flex:1 1 auto;justify-content:center}
  .notification-detail-spacer{display:none}
}

/* ---- Messages dropdown ------------------------------------------------------------------- */
#adminMessagesPreviewList .admin-comms-message-main{position:relative}
.message-unread-chip{
  align-self:center;margin-right:auto;flex:0 0 auto;
  min-width:20px;height:20px;padding:0 6px;border-radius:999px;
  display:inline-grid;place-items:center;
  font-size:.7rem;font-weight:700;color:#fff;background:var(--primary)
}
#adminMessagesPreviewList .admin-comms-message-row.unread .admin-comms-item-title{font-weight:750}

/* ---- Conversation view ------------------------------------------------------------------- */
.chat-day-separator,.message-float-day-separator{
  display:flex;align-items:center;gap:10px;margin:14px 4px 8px;
  font-size:.72rem;font-weight:600;color:var(--muted);text-transform:none
}
.chat-day-separator::before,.chat-day-separator::after,
.message-float-day-separator::before,.message-float-day-separator::after{content:"";flex:1;height:1px;background:var(--line)}
.chat-day-separator span,.message-float-day-separator span{
  padding:3px 10px;border-radius:999px;background:var(--surface-soft,var(--panel-2));border:1px solid var(--line)
}
.chat-bubble-row.is-grouped{margin-top:-6px}
.chat-bubble-row.is-grouped .chat-bubble-meta{display:none}
.chat-bubble-body a,.message-float-chat-body a{color:inherit;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.chat-bubble-row.chat-bubble-failed .chat-bubble{opacity:.85;outline:1px dashed color-mix(in srgb,var(--danger) 55%,transparent)}
.chat-send-failed{color:var(--danger);font-weight:700}
.chat-retry-btn{
  font:inherit;font-size:.74rem;font-weight:700;cursor:pointer;
  border:1px solid color-mix(in srgb,var(--danger) 45%,var(--line));border-radius:999px;
  padding:1px 9px;background:transparent;color:var(--danger)
}
.chat-retry-btn:hover{background:color-mix(in srgb,var(--danger) 10%,transparent)}

/* ---- Composer --------------------------------------------------------------------------------- */
#messagesReplyInput,.message-float-reply textarea{resize:none;max-height:168px;overflow-y:auto}
.messages-reply-meta{
  grid-column:1/-1;display:flex;justify-content:space-between;gap:10px;
  font-size:.72rem;color:var(--muted);margin-top:2px
}
.message-char-count:empty{display:none}
.message-char-count.is-low{color:var(--danger);font-weight:700}
.message-float-reply .message-char-count{display:block;font-size:.7rem;color:var(--muted);text-align:left}
@media (hover:none),(max-width:720px){.messages-reply-keys{display:none}}

/* ===== SOURCE: Assets/style/58-backup-restore.css ===== */
/* Triplem VIP - Backup & Restore window (Account menu > Backup & Restore).
 * Uses the shared theme tokens so it follows every theme (light and dark),
 * and adapts from phones to wide desktop windows and the Windows app. */

.user-backup-modal{z-index:2147481000}
.user-backup-modal .tvb-dialog{
  position:relative;display:flex;flex-direction:column;
  width:min(720px,calc(100vw - 24px)) !important;max-width:min(720px,calc(100vw - 24px)) !important;
  max-height:min(90vh,860px);height:auto;padding:0;overflow:hidden;
  border-radius:18px;background:var(--modal-bg,var(--surface-elevated,#fff));color:var(--text,#17212b);
  border:1px solid var(--glass-border,var(--line,rgba(100,116,139,.22)));
  box-shadow:var(--shadow-strong,0 24px 60px rgba(15,23,42,.28));
}
.user-backup-modal .tvb-dialog.is-wide{width:min(1040px,calc(100vw - 24px)) !important;max-width:min(1040px,calc(100vw - 24px)) !important}
.user-backup-modal .tvb-dialog.is-wide.is-tall{height:min(90vh,860px)}

/* Header */
.tvb-head{display:flex;align-items:flex-start;gap:12px;padding:16px 18px 12px;border-bottom:1px solid var(--line,rgba(100,116,139,.18));flex:0 0 auto}
.tvb-head-text{flex:1;min-width:0}
.tvb-kicker{margin:0 0 3px;font-size:.66rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--primary,#2457d6)}
.tvb-head h3{margin:0;font-size:1.08rem;line-height:1.3;color:var(--text-strong,var(--text))}
.tvb-sub{margin:3px 0 0;font-size:.8rem;color:var(--muted,#667085)}
.tvb-icon-btn{flex:0 0 auto;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;cursor:pointer;
  border:1px solid var(--line,rgba(100,116,139,.18));background:var(--control-bg,#fff);color:var(--text,#17212b)}
.tvb-icon-btn:hover{background:var(--control-hover,#f1f5f9)}
.tvb-icon-btn:focus-visible,.tvb-dialog button:focus-visible,.tvb-dialog input:focus-visible,.tvb-dialog select:focus-visible,.tvb-dialog summary:focus-visible{outline:2px solid var(--focus-ring,var(--primary,#2457d6));outline-offset:2px}

/* Body & footer */
.tvb-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 18px;-webkit-overflow-scrolling:touch}
.tvb-foot{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  padding:11px 18px calc(11px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line,rgba(100,116,139,.18));
  background:var(--surface-glass-strong,var(--surface,#fff))}
.tvb-foot.hide{display:none}
.tvb-foot:not(:has(.tvb-foot-info)){justify-content:flex-end}
.tvb-foot-info{font-size:.82rem;color:var(--text,#17212b);min-width:0}
.tvb-foot-info span{color:var(--muted,#667085)}
.tvb-foot-btns{display:flex;gap:8px;margin-right:auto}
.tvb-dialog .btn{min-height:36px;padding:7px 14px;font-size:.82rem;font-weight:650;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;width:auto;grid-column:auto}
.tvb-dialog .btn.tiny{min-height:30px;padding:4px 10px;font-size:.74rem}
.tvb-dialog .btn[disabled]{opacity:.55;cursor:not-allowed}
.tvb-primary{background:var(--primary,#2457d6) !important;border:1px solid var(--primary,#2457d6) !important;color:var(--on-primary,#fff) !important}
.tvb-primary:hover:not([disabled]){background:var(--primary-hover,#1e4bc0) !important}
.tvb-secondary{background:var(--primary-soft,rgba(36,87,214,.1)) !important;border:1px solid color-mix(in srgb,var(--primary,#2457d6) 35%,transparent) !important;color:var(--primary,#2457d6) !important}

/* Home */
.tvb-home{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tvb-card{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:14px;border:1px solid var(--line,rgba(100,116,139,.18));background:var(--card-bg,var(--surface-soft,#f8fafc))}
.tvb-card p{margin:0;font-size:.82rem;line-height:1.5;color:var(--muted,#667085)}
.tvb-card-top{display:flex;align-items:center;gap:10px}
.tvb-card-top h4{margin:0;font-size:.95rem;color:var(--text-strong,var(--text))}
.tvb-card-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--primary-soft,rgba(36,87,214,.1));color:var(--primary,#2457d6);flex:0 0 auto}
.tvb-card-icon.is-restore{background:var(--success-soft,rgba(22,163,74,.12));color:var(--success,#16a34a)}
.tvb-card .btn{margin-top:auto;align-self:stretch}
.tvb-points{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:.78rem;color:var(--text,#17212b)}
.tvb-points i{color:var(--success,#16a34a);margin-left:6px;font-size:.72rem}
.tvb-check{display:flex;align-items:center;gap:8px;font-size:.82rem;cursor:pointer;color:var(--text,#17212b)}
.tvb-check input{width:16px;height:16px;accent-color:var(--primary,#2457d6)}
.tvb-password{display:grid;gap:8px}
.tvb-password.hide{display:none}
.tvb-field{display:grid;gap:4px;font-size:.76rem;font-weight:600;color:var(--text,#17212b)}
.tvb-input,.tvb-select{min-height:38px;height:38px;padding:7px 10px;border-radius:10px;font:inherit;font-size:.86rem;font-weight:500;
  border:1px solid var(--line-strong,rgba(71,85,105,.3));background:var(--control-bg,#fff);color:var(--text,#17212b);width:100%;box-sizing:border-box}
.tvb-hint{margin:0;font-size:.74rem;line-height:1.45;color:var(--muted,#667085)}
.tvb-pad{padding:10px 12px}
.tvb-meta{margin:0;font-size:.74rem;color:var(--muted,#667085)}
.tvb-error{margin:0;font-size:.78rem;font-weight:600;color:var(--danger,#dc2626)}
.tvb-error:empty{display:none}

/* Empty / message states */
.tvb-empty{display:grid;justify-items:center;text-align:center;gap:6px;padding:18px 10px}
.tvb-empty>i{font-size:1.7rem;color:var(--primary,#2457d6)}
.tvb-empty h4{margin:2px 0 0;font-size:1rem;color:var(--text-strong,var(--text))}
.tvb-empty p{margin:0;max-width:52ch;font-size:.84rem;line-height:1.5;color:var(--muted,#667085)}
.tvb-empty.is-error>i,.tvb-empty.is-warn>i{color:var(--warning,#d97706)}
.tvb-empty.is-ok>i{color:var(--success,#16a34a)}
.tvb-empty .btn{margin-top:8px}
.tvb-narrow{max-width:480px;margin:0 auto;display:grid;gap:12px}

/* Progress */
.tvb-progress{display:grid;justify-items:center;gap:10px;text-align:center;padding:26px 6px}
.tvb-progress h4{margin:0;font-size:1rem}
.tvb-step{margin:0;font-size:.82rem;color:var(--muted,#667085);min-height:1.2em}
.tvb-bar{width:min(440px,100%);height:8px;border-radius:999px;background:var(--surface-hover,#eef2f7);overflow:hidden}
.tvb-bar span{display:block;height:100%;border-radius:inherit;background:var(--primary-gradient,var(--primary,#2457d6));transition:width .25s ease}
.tvb-spinner{width:34px;height:34px;border-radius:50%;border:3px solid var(--loader-track,rgba(100,116,139,.2));border-top-color:var(--loader-spinner,var(--primary,#2457d6));animation:tvbSpin .8s linear infinite}
.tvb-counts{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;font-size:.8rem;color:var(--muted,#667085)}
.tvb-counts strong{color:var(--text,#17212b);font-variant-numeric:tabular-nums}
.tvb-counts .is-warn strong{color:var(--warning,#d97706)}
@keyframes tvbSpin{to{transform:rotate(360deg)}}

/* Preview */
.tvb-preview{display:grid;gap:12px}
.tvb-file{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:var(--surface-soft,#f8fafc);border:1px solid var(--line,rgba(100,116,139,.18));min-width:0}
.tvb-file>i{font-size:1.3rem;color:var(--primary,#2457d6)}
.tvb-file div{display:grid;min-width:0}
.tvb-file strong{font-size:.86rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tvb-file span{font-size:.74rem;color:var(--muted,#667085)}
.tvb-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.tvb-result .tvb-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.tvb-stat{padding:9px 10px;border-radius:12px;border:1px solid var(--line,rgba(100,116,139,.18));background:var(--card-bg,var(--surface,#fff));min-width:0}
.tvb-stat strong{display:block;font-size:1.08rem;font-variant-numeric:tabular-nums;color:var(--text-strong,var(--text))}
.tvb-stat span{display:block;font-size:.7rem;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tvb-stat.is-new strong{color:var(--success,#16a34a)}
.tvb-stat.is-warn strong{color:var(--warning,#d97706)}
.tvb-note{margin:0;display:flex;gap:8px;align-items:flex-start;padding:9px 12px;border-radius:12px;font-size:.8rem;line-height:1.45;
  background:var(--info-soft,rgba(14,165,233,.1));color:var(--text,#17212b);border:1px solid color-mix(in srgb,var(--info,#0ea5e9) 25%,transparent)}
.tvb-note i{color:var(--info,#0ea5e9);margin-top:2px}
.tvb-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;position:sticky;top:-16px;z-index:2;padding:6px 0;background:var(--modal-bg,var(--surface-elevated,#fff))}
.tvb-search{flex:1 1 220px;display:flex;align-items:center;gap:7px;min-height:36px;padding:0 10px;border-radius:10px;border:1px solid var(--line-strong,rgba(71,85,105,.3));background:var(--control-bg,#fff)}
.tvb-search i{color:var(--muted,#667085);font-size:.8rem}
.tvb-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:.84rem;color:var(--text,#17212b);height:34px}
.tvb-toolbar .tvb-select{width:auto;flex:0 0 auto;height:36px;min-height:36px;padding:5px 8px;font-size:.8rem}
.tvb-toolbar-btns{display:flex;gap:6px}

.tvb-sections{display:grid;gap:8px}
.tvb-section{border:1px solid var(--line,rgba(100,116,139,.18));border-radius:12px;background:var(--card-bg,var(--surface,#fff));overflow:hidden}
.tvb-section>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;user-select:none;min-height:44px}
.tvb-section>summary::-webkit-details-marker{display:none}
.tvb-section>summary:hover{background:var(--surface-hover,#f8fafc)}
.tvb-section[open]>summary{border-bottom:1px solid var(--line,rgba(100,116,139,.18))}
.tvb-sec-check{width:17px;height:17px;flex:0 0 auto;accent-color:var(--primary,#2457d6);cursor:pointer}
.tvb-sec-icon{width:17px;display:grid;place-items:center;color:var(--muted,#667085);flex:0 0 auto}
.tvb-sec-name{flex:1;min-width:0;font-size:.88rem;font-weight:700;color:var(--text-strong,var(--text));display:flex;align-items:center;gap:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tvb-sec-name i{color:var(--muted,#667085);font-size:.82rem}
.tvb-sec-counts{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.tvb-pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums;
  background:var(--tag-bg,rgba(100,116,139,.12));color:var(--tag-text,var(--muted,#667085));border:1px solid var(--tag-border,transparent)}
.tvb-pill.is-new{background:var(--success-soft,rgba(22,163,74,.12));color:var(--success,#16a34a);border-color:transparent}
.tvb-pill.is-warn{background:var(--warning-soft,rgba(217,119,6,.12));color:var(--warning,#d97706);border-color:transparent}
.tvb-pill.is-bin{background:var(--info-soft,rgba(14,165,233,.12));color:var(--info,#0284c7);border-color:transparent}
.tvb-pill.is-sel{background:var(--primary-soft,rgba(36,87,214,.1));color:var(--primary,#2457d6);border-color:transparent}
.tvb-caret{color:var(--muted,#667085);font-size:.72rem;transition:transform .15s;flex:0 0 auto}
.tvb-section[open] .tvb-caret{transform:rotate(180deg)}
.tvb-section-body{display:grid;gap:4px;padding:4px 0 8px}
.tvb-table{display:grid}
.tvb-table-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding:8px 14px 4px;font-size:.72rem;font-weight:750;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#667085)}
.tvb-table-count{font-variant-numeric:tabular-nums;font-weight:600}
.tvb-table-note{text-transform:none;letter-spacing:0;font-weight:500;font-size:.72rem}
.tvb-records{list-style:none;margin:0;padding:0;display:grid}
.tvb-rec{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;align-items:center;column-gap:10px;padding:6px 10px 6px 12px;border-top:1px solid color-mix(in srgb,var(--line,rgba(100,116,139,.18)) 60%,transparent)}
.tvb-records>.tvb-rec:first-child{border-top:0}
.tvb-rec.is-selected{background:color-mix(in srgb,var(--primary,#2457d6) 6%,transparent)}
.tvb-rec-check{display:grid;place-items:center;color:var(--muted,#667085);font-size:.78rem}
.tvb-rec-check input{width:16px;height:16px;accent-color:var(--primary,#2457d6);cursor:pointer;margin:0}
.tvb-rec-check input:disabled{opacity:.35;cursor:default}
.tvb-rec-main{all:unset;display:grid;min-width:0;cursor:pointer;padding:3px 0;border-radius:6px}
.tvb-rec-title{font-size:.84rem;font-weight:600;color:var(--text,#17212b);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tvb-rec-sub{font-size:.74rem;color:var(--muted,#667085);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tvb-rec-sub em{font-style:normal;color:var(--primary,#2457d6)}
.tvb-rec-amt{font-size:.8rem;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--text,#17212b)}
.tvb-chip{font-size:.68rem;font-weight:700;padding:2px 8px;border-radius:999px;white-space:nowrap}
.tvb-chip.st-new{background:var(--success-soft,rgba(22,163,74,.12));color:var(--success,#16a34a)}
.tvb-chip.st-existing,.tvb-chip.st-history{background:var(--tag-bg,rgba(100,116,139,.12));color:var(--muted,#667085)}
.tvb-chip.st-bin{background:var(--info-soft,rgba(14,165,233,.12));color:var(--info,#0284c7)}
.tvb-chip.st-conflict,.tvb-chip.st-blocked{background:var(--warning-soft,rgba(217,119,6,.12));color:var(--warning,#d97706)}
.tvb-rec-why{grid-column:2 / -1;margin:2px 0 0;font-size:.74rem;line-height:1.4;color:var(--warning,#b45309)}
.tvb-rec.st-bin .tvb-rec-why{color:var(--info,#0284c7)}
.tvb-detail{grid-column:2 / -1;margin:6px 0 2px;display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px 14px;padding:10px 12px;border-radius:10px;background:var(--surface-soft,#f8fafc)}
.tvb-detail div{min-width:0}
.tvb-detail dt{font-size:.66rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted,#667085)}
.tvb-detail dd{margin:0;font-size:.78rem;color:var(--text,#17212b);overflow-wrap:anywhere}
.tvb-mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.72rem !important}
.tvb-lock{color:var(--muted,#667085)}
.tvb-more{all:unset;cursor:pointer;margin:6px 12px 2px;padding:7px;border-radius:9px;text-align:center;font-size:.78rem;font-weight:650;color:var(--primary,#2457d6);background:var(--primary-soft,rgba(36,87,214,.08))}
.tvb-more:hover{background:color-mix(in srgb,var(--primary,#2457d6) 14%,transparent)}
.tvb-switch-row{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;cursor:pointer}
.tvb-switch-row input{margin-top:3px;width:16px;height:16px;accent-color:var(--primary,#2457d6)}
.tvb-switch-row strong{display:block;font-size:.84rem}
.tvb-switch-row small{display:block;font-size:.74rem;color:var(--muted,#667085);margin-top:2px}
.tvb-subhead{margin:12px 0 6px;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#667085)}
.tvb-result{display:grid;gap:12px}
.tvb-result .tvb-records{border:1px solid var(--line,rgba(100,116,139,.18));border-radius:12px;overflow:hidden}
.tvb-confirm-table{width:100%;border-collapse:collapse;font-size:.84rem}
.tvb-confirm-table th,.tvb-confirm-table td{padding:8px 10px;border-bottom:1px solid var(--line,rgba(100,116,139,.18));text-align:right}
.tvb-confirm-table th{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted,#667085)}
.tvb-confirm-table td:last-child,.tvb-confirm-table th:last-child{text-align:left;font-variant-numeric:tabular-nums;font-weight:700}

.tvb-toast{position:fixed;left:50%;top:18px;transform:translate(-50%,-12px);opacity:0;z-index:2147483000;max-width:min(520px,calc(100vw - 32px));
  padding:11px 16px;border-radius:12px;font-size:.84rem;background:#0f172a;color:#f8fafc;box-shadow:0 16px 40px rgba(2,6,23,.35);transition:opacity .2s,transform .2s}
.tvb-toast.show{opacity:1;transform:translate(-50%,0)}
.tvb-toast.success{border-right:4px solid #22c55e}

/* Tablets */
@media (max-width:860px){
  .tvb-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* Phones: full-height sheet, compact rows, sticky actions */
@media (max-width:620px){
  .user-backup-modal{padding:0 !important;align-items:end !important}
  .user-backup-modal .tvb-dialog,.user-backup-modal .tvb-dialog.is-wide,.user-backup-modal .tvb-dialog.is-wide.is-tall{
    width:100vw !important;max-width:100vw !important;height:100dvh;max-height:100dvh;border-radius:0;border:0}
  .tvb-head{padding:12px 14px 10px}
  .tvb-body{padding:12px 14px}
  .tvb-foot{padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px))}
  .tvb-foot-info{flex:1 1 100%}
  .tvb-foot-btns{flex:1 1 100%}
  .tvb-foot-btns .btn{flex:1}
  .tvb-home{grid-template-columns:1fr}
  .tvb-stats,.tvb-result .tvb-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tvb-toolbar{top:-12px}
  .tvb-toolbar .tvb-select{flex:1 1 auto}
  .tvb-toolbar-btns{flex:1 1 100%}
  .tvb-toolbar-btns .btn{flex:1}
  .tvb-rec{grid-template-columns:26px minmax(0,1fr) auto;row-gap:2px}
  .tvb-rec-amt{grid-column:2;grid-row:2;justify-self:start;font-size:.76rem}
  .tvb-chip{grid-column:3;grid-row:1}
  .tvb-sec-counts .tvb-pill:not(.is-new):not(.is-sel){display:none}
}
@media (prefers-reduced-motion:reduce){.tvb-spinner{animation-duration:2.4s}.tvb-bar span,.tvb-caret,.tvb-toast{transition:none}}

/* ===== SOURCE: Assets/style/59-card-order.css ===== */
/* Your own card order: long-press a card to move it (same feel as wallets).
   Used by Triplem VIP Home (section cards) and the Detailed Dashboard. */
.card-order-reorderable{
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
.dashboard-hero-card.card-order-reorderable,
.dashboard-block.card-order-reorderable{
  transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.card-order-pressing{
  transform:scale(.985) !important;
}
.card-order-reordering,
.card-order-press-armed,
html.card-order-drag-lock,
html.card-order-drag-lock body,
html.card-order-drag-lock *{
  user-select:none !important;
  -webkit-user-select:none !important;
  -webkit-touch-callout:none !important;
}
html.card-order-drag-lock,
html.card-order-drag-lock body{
  touch-action:none !important;
  overscroll-behavior:none !important;
}
.card-order-reordering{
  touch-action:none !important;
}
.card-order-reordering .card-order-reorderable{
  cursor:grabbing;
  transition:none !important;
}
/* Cards that were moved never replay their entrance animation. */
.card-order-settled > .workspace-home-card{
  animation:none !important;
}
.card-order-reordering .workspace-home-card:hover,
.card-order-reordering .workspace-home-card:focus-visible{
  transform:none;
}
.card-order-source{
  opacity:.45;
  transform:scale(.98) !important;
}
.card-order-target{
  outline:2px dashed color-mix(in srgb, var(--primary, #2457d6) 55%, transparent);
  outline-offset:2px;
}
.card-order-ghost{
  position:fixed !important;
  z-index:9999;
  pointer-events:none;
  opacity:.94;
  margin:0 !important;
  box-shadow:0 14px 32px rgba(15,23,42,.24);
  transform:scale(1.03);
  user-select:none !important;
  -webkit-user-select:none !important;
}
.card-order-ghost-compact{
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line, rgba(148,163,184,.3));
  background:var(--surface-elevated, #fff);
  color:var(--text, #17212b);
}
.card-order-ghost-compact h4{
  margin:0;
  font-size:.95rem;
  display:flex;
  align-items:center;
  gap:8px;
}
.card-order-ghost-compact h4 i{
  color:var(--primary, #2457d6);
}
.dashboard-section-switch-btn.card-order-ghost{
  width:auto !important;
  height:auto !important;
}
@media (prefers-reduced-motion:reduce){
  .dashboard-hero-card.card-order-reorderable,
  .dashboard-block.card-order-reorderable{transition:none}
  .card-order-pressing{transform:none !important}
}

/* ===== SOURCE: Assets/style/60-ai-report.css ===== */
/* Report an AI response (Triplem AI answers and Aziz / AI answers in the live chat). */
.triplem-ai-message-actions,
.landing-live-chat-message-actions{
  display:flex;
  justify-content:flex-start;
  margin-top:4px;
}
.landing-live-chat-message-actions{
  margin-top:6px;
}
.ai-report-btn{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:24px;
  padding:2px 8px;
  border:1px solid transparent;
  border-radius:999px;
  background:transparent;
  color:var(--muted, #64748b);
  font:inherit;
  font-size:.68rem;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:color .15s ease, background-color .15s ease, border-color .15s ease;
}
.ai-report-btn i{
  font-size:.7rem;
}
.ai-report-btn:hover,
.ai-report-btn:focus-visible{
  color:var(--danger, #c0362c);
  border-color:color-mix(in srgb, var(--danger, #c0362c) 30%, transparent);
  background:color-mix(in srgb, var(--danger, #c0362c) 8%, transparent);
}
.ai-report-btn:focus-visible{
  outline:2px solid color-mix(in srgb, var(--primary, #2457d6) 60%, transparent);
  outline-offset:2px;
}
.ai-report-btn.is-reported,
.ai-report-btn:disabled{
  cursor:default;
  color:var(--muted, #64748b);
  border-color:transparent;
  background:transparent;
  opacity:.85;
}

/* The dialog sits above the live chat panel and every workspace modal. */
#aiReportModal.modal{
  z-index:10060;
}
.ai-report-dialog{
  width:min(520px, calc(100vw - 28px));
  max-height:calc(100dvh - 28px);
  display:flex;
  flex-direction:column;
}
.ai-report-dialog .modal-body{
  overflow:auto;
}
.ai-report-dialog .modal-head p{
  margin:4px 0 0;
  color:var(--muted, #64748b);
  font-size:.84rem;
  line-height:1.45;
}
.ai-report-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--danger, #c0362c);
}
.ai-report-preview{
  margin:0 0 12px;
  padding:10px 12px;
  border-right:3px solid color-mix(in srgb, var(--primary, #2457d6) 55%, transparent);
  border-radius:10px 0 0 10px;
  background:var(--panel-2, #f5f7fb);
  color:var(--text, #17212b);
  font-size:.82rem;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.ai-report-reasons{
  margin:0 0 12px;
  padding:0;
  border:0;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}
.ai-report-reasons legend{
  margin-bottom:6px;
  padding:0;
  font-size:.8rem;
  font-weight:700;
  color:var(--text, #17212b);
}
.ai-report-reason{
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:9px 10px;
  border:1px solid var(--line, rgba(148,163,184,.35));
  border-radius:12px;
  background:var(--panel, #fff);
  cursor:pointer;
  transition:border-color .15s ease, background-color .15s ease;
}
.ai-report-reason input{
  margin-top:2px;
  flex:0 0 auto;
  accent-color:var(--primary, #2457d6);
}
.ai-report-reason span{
  display:grid;
  gap:2px;
  min-width:0;
}
.ai-report-reason strong{
  font-size:.82rem;
  color:var(--text, #17212b);
}
.ai-report-reason small{
  font-size:.72rem;
  line-height:1.35;
  color:var(--muted, #64748b);
}
.ai-report-reason:has(input:checked){
  border-color:color-mix(in srgb, var(--primary, #2457d6) 60%, transparent);
  background:color-mix(in srgb, var(--primary, #2457d6) 7%, var(--panel, #fff));
}
.ai-report-reason:has(input:focus-visible){
  outline:2px solid color-mix(in srgb, var(--primary, #2457d6) 60%, transparent);
  outline-offset:2px;
}
.ai-report-form textarea{
  width:100%;
  resize:vertical;
  min-height:72px;
}
.ai-report-optional{
  font-weight:600;
  font-size:.72rem;
  color:var(--muted, #64748b);
}
.ai-report-privacy{
  margin:8px 0 0;
  font-size:.74rem;
}
.ai-report-status{
  min-height:1.2em;
  margin-top:8px;
  font-size:.8rem;
  color:var(--muted, #64748b);
}
.ai-report-status.is-error{
  color:var(--danger, #c0362c);
  font-weight:700;
}
@media (max-width:520px){
  .ai-report-reasons{
    grid-template-columns:1fr;
  }
}
@media (prefers-reduced-motion:reduce){
  .ai-report-btn,
  .ai-report-reason{
    transition:none;
  }
}
.ai-report-dialog .modal-footer{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
  padding:12px 16px 16px;
}

/* 2026-11-11 · Always-visible AI disclosure and "Report an issue" (Microsoft Store 11.16). */
.ai-report-head-btn{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:30px;
  padding:4px 10px;
  border:1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius:999px;
  background:transparent;
  color:inherit;
  font:inherit;
  font-size:.74rem;
  font-weight:700;
  cursor:pointer;
}
.ai-report-head-btn:hover,
.ai-report-head-btn:focus-visible{
  color:var(--danger, #c0362c);
  border-color:color-mix(in srgb, var(--danger, #c0362c) 45%, transparent);
  background:color-mix(in srgb, var(--danger, #c0362c) 8%, transparent);
}
.ai-report-head-btn:focus-visible,
.ai-disclosure-report:focus-visible{
  outline:2px solid color-mix(in srgb, var(--primary, #2457d6) 60%, transparent);
  outline-offset:2px;
}
.ai-disclosure{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px 8px;
  margin:8px 0 0;
  padding:7px 10px;
  border-radius:10px;
  background:color-mix(in srgb, var(--primary, #2457d6) 6%, transparent);
  color:var(--muted, #64748b);
  font-size:.72rem;
  line-height:1.4;
}
.ai-disclosure i{ font-size:.72rem; }
.ai-disclosure span{ flex:1 1 180px; }
.ai-disclosure.is-compact{ margin:4px 10px; padding:4px 8px; }
.ai-disclosure-report{
  padding:0;
  border:0;
  background:none;
  color:var(--primary, #2457d6);
  font:inherit;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:2px;
  cursor:pointer;
}
.ai-disclosure-report:hover{ color:var(--danger, #c0362c); }
.ai-report-general-note{
  margin:0 0 10px;
  padding:9px 11px;
  border-radius:10px;
  background:color-mix(in srgb, var(--primary, #2457d6) 7%, transparent);
  font-size:.82rem;
}
.landing-live-chat-report span{ display:none; }
@media (min-width:420px){ .landing-live-chat-report span{ display:inline; } }

/* Main Admin review queue for reported AI content. */
.ai-report-queue-dialog{width:min(820px,calc(100vw - 24px));max-height:min(92vh,960px);display:flex;flex-direction:column}
.aiq-body{overflow:auto;display:grid;gap:12px}
.aiq-item{padding:12px 14px;border:1px solid var(--line, #dde3ee);border-radius:12px;display:grid;gap:6px}
.aiq-item.is-focus{border-color:var(--danger, #c0362c);box-shadow:0 0 0 2px color-mix(in srgb, var(--danger, #c0362c) 12%, transparent)}
.aiq-item header{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.aiq-item header span{color:var(--muted, #64748b);font-size:.74rem}
.aiq-status{margin-right:auto;font-style:normal;font-size:.68rem;font-weight:800;text-transform:uppercase;padding:2px 8px;border-radius:999px;background:var(--surface-soft, #f1f5f9)}
.aiq-status.is-open{color:var(--danger, #c0362c)}
.aiq-label{margin:2px 0 0;font-size:.7rem;font-weight:700;color:var(--muted, #64748b)}
.aiq-item blockquote{margin:0;padding:8px 10px;border-right:3px solid var(--line, #dde3ee);background:var(--surface-soft, #f8fafc);font-size:.8rem;white-space:pre-wrap;overflow-wrap:anywhere}
.aiq-actions{display:flex;flex-wrap:wrap;gap:6px}
.aiq-message{margin:0;color:var(--muted, #64748b)}

/* ===== SOURCE: Assets/style/61-attachments.css ===== */
/* Attachments (receipts, invoices, documents) and Main Admin file storage — 2026-11-09 */

/* Form control */
.tm-att{display:grid;gap:8px;min-width:0}
.tm-att[hidden]{display:none!important}
.tm-att-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.tm-att-add,.tm-att-cam{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:10px;border:1px dashed color-mix(in srgb,var(--primary,#2457d6) 45%,var(--line,#cbd5e1));
  background:color-mix(in srgb,var(--primary,#2457d6) 5%,transparent);color:var(--primary,#2457d6);font:inherit;font-size:.82rem;font-weight:700;cursor:pointer}
.tm-att-cam{padding:0;width:36px;justify-content:center}
.tm-att-add:hover,.tm-att-cam:hover{background:color-mix(in srgb,var(--primary,#2457d6) 10%,transparent)}
.tm-att-add:disabled{opacity:.5;cursor:not-allowed}
.tm-att-add:focus-visible,.tm-att-cam:focus-visible,.tm-att-acts button:focus-visible{outline:2px solid var(--primary,#2457d6);outline-offset:2px}
.tm-att-hint{font-size:.72rem;color:var(--muted,#667085)}
.tm-att-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;min-width:0}
.tm-att-list:empty{display:none}
.tm-att-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:6px 8px;border:1px solid var(--line,rgba(71,85,105,.2));border-radius:10px;background:var(--panel-2,var(--panel,#fff));min-width:0}
.tm-att-row.is-error{border-color:color-mix(in srgb,var(--danger,#dc2626) 45%,transparent)}
.tm-att-row.is-error small{color:var(--danger,#dc2626)}
.tm-att-row.is-removed{opacity:.55}
.tm-att-row.is-removed strong{text-decoration:line-through}
.tm-att-row.is-busy .tm-att-thumb::after{content:"";position:absolute;inset:10px;border-radius:50%;border:2px solid color-mix(in srgb,var(--primary,#2457d6) 25%,transparent);border-top-color:var(--primary,#2457d6);animation:tmAttSpin .8s linear infinite}
@keyframes tmAttSpin{to{transform:rotate(360deg)}}
.tm-att-thumb{position:relative;width:40px;height:40px;border-radius:8px;overflow:hidden;display:grid;place-items:center;background:color-mix(in srgb,var(--text,#17212b) 6%,transparent);color:var(--muted,#667085)}
.tm-att-thumb img{width:100%;height:100%;object-fit:cover}
.tm-att-thumb .fa-file-pdf{color:#dc2626;font-size:1.2rem}
.tm-att-text{display:grid;gap:1px;min-width:0}
.tm-att-text strong{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-att-text small{font-size:.72rem;color:var(--muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-att-acts{display:flex;gap:4px;align-items:center}
.tm-att-acts button{font:inherit;font-size:.74rem;font-weight:600;height:28px;min-width:28px;padding:0 8px;border-radius:7px;border:1px solid var(--line,rgba(71,85,105,.2));background:transparent;color:inherit;cursor:pointer}
.tm-att-acts button:hover{background:color-mix(in srgb,var(--text,#17212b) 7%,transparent)}

/* List icon: only rendered for records that have attachments */
.tm-att-icon{display:inline-flex;align-items:center;justify-content:center;gap:3px;height:26px;min-width:26px;padding:0 6px;margin:0 4px;border-radius:7px;border:0;background:transparent;
  color:var(--primary,#2457d6);font:inherit;font-size:.72rem;font-weight:700;cursor:pointer;vertical-align:middle;flex:0 0 auto}
.tm-att-icon:hover{background:color-mix(in srgb,var(--primary,#2457d6) 10%,transparent)}
.tm-att-icon:focus-visible{outline:2px solid var(--primary,#2457d6);outline-offset:1px}
.tm-att-icon.is-pending{color:var(--warning,#d97706)}
.wallet-transaction-title .tm-att-icon{height:22px;margin:0 2px 0 0}

/* Viewer */
.tm-att-viewer{position:fixed;inset:0;z-index:2147481500;display:grid;place-items:center;padding:16px;background:rgba(15,23,42,.55);backdrop-filter:blur(3px)}
.tm-att-viewer-card{width:min(1100px,100%);height:min(86vh,900px);display:flex;flex-direction:column;background:var(--surface-elevated,var(--panel,#fff));color:var(--text,#17212b);border:1px solid var(--line,rgba(71,85,105,.2));border-radius:16px;box-shadow:0 24px 60px rgba(15,23,42,.3);overflow:hidden}
.tm-att-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-bottom:1px solid var(--line,rgba(71,85,105,.18))}
.tm-att-viewer-head strong{display:flex;align-items:center;gap:8px}
.tm-att-viewer-body{flex:1;min-height:0;display:grid;grid-template-columns:260px minmax(0,1fr)}
.tm-att-viewer-list{overflow:auto;border-left:1px solid var(--line,rgba(71,85,105,.18));padding:8px;display:grid;gap:4px;align-content:start}
.tm-att-viewer-item{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:center;text-align:right;padding:8px;border-radius:10px;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.tm-att-viewer-item:hover,.tm-att-viewer-item.is-active{background:color-mix(in srgb,var(--primary,#2457d6) 10%,transparent)}
.tm-att-viewer-item .fa-file-pdf{color:#dc2626}
.tm-att-viewer-item span{display:grid;min-width:0}
.tm-att-viewer-item strong{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-att-viewer-item small{font-size:.7rem;color:var(--muted,#667085)}
.tm-att-viewer-stage{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:12px;background:color-mix(in srgb,var(--text,#17212b) 6%,var(--bg,#f1f5f9));overflow:auto}
.tm-att-img{max-width:100%;max-height:calc(100% - 50px);object-fit:contain;border-radius:6px;background:#fff;box-shadow:0 4px 16px rgba(15,23,42,.15)}
.tm-att-pdf{display:grid;justify-items:center;gap:10px;text-align:center}
.tm-att-pdf i{font-size:3rem;color:#dc2626}
.tm-att-viewer-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:center}
.tm-att-muted{color:var(--muted,#667085);font-size:.8rem;padding:8px}
@media (max-width:720px){.tm-att-viewer{padding:0}.tm-att-viewer-card{height:100%;border-radius:0}.tm-att-viewer-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.tm-att-viewer-list{border-left:0;border-bottom:1px solid var(--line,rgba(71,85,105,.18));max-height:30vh}}

/* Main Admin: File Storage Settings */
/* Main Admin — File Storage Settings: compact, grouped layout (2026-11-10) */
#fileStorageModal .tm-fs-dialog{max-width:880px;width:min(880px,calc(100vw - 24px))}
#fileStorageModal .modal-head h3{display:flex;align-items:center;gap:8px}
#fileStorageModal .modal-head h3 i{color:var(--primary,#2457d6);font-size:.92em}
.tm-fs{display:grid;gap:12px;min-width:0}
.tm-fs-hero{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--line,rgba(71,85,105,.18));border-radius:12px;background:var(--panel-2,var(--panel,#fff))}
.tm-fs-badge{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 12px;border-radius:999px;font-size:.78rem;font-weight:700;white-space:nowrap;background:color-mix(in srgb,var(--muted,#667085) 12%,transparent);color:var(--text,#1f2937)}
.tm-fs-badge i{width:8px;height:8px;border-radius:50%;background:var(--muted,#667085)}
.tm-fs-badge.ok{background:color-mix(in srgb,var(--success,#16a34a) 14%,transparent);color:var(--success,#16a34a)}
.tm-fs-badge.ok i{background:var(--success,#16a34a);box-shadow:0 0 0 3px color-mix(in srgb,var(--success,#16a34a) 22%,transparent)}
.tm-fs-badge.bad{background:color-mix(in srgb,var(--danger,#dc2626) 13%,transparent);color:var(--danger,#dc2626)}
.tm-fs-badge.bad i{background:var(--danger,#dc2626)}
.tm-fs-kv{display:flex;flex-wrap:wrap;gap:6px 22px;margin:0;flex:1;min-width:0}
.tm-fs-kv>div{min-width:0}
.tm-fs-kv dt{font-size:.64rem;text-transform:uppercase;letter-spacing:.05em;font-weight:700;color:var(--muted,#667085);margin:0}
.tm-fs-kv dd{margin:1px 0 0;font-size:.82rem;font-weight:650;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-fs-kv dd.ok{color:var(--success,#16a34a)}
.tm-fs-form{display:grid;gap:12px;min-width:0}
.tm-fs-card{border:1px solid var(--line,rgba(71,85,105,.18));border-radius:12px;padding:12px 14px 14px;background:var(--panel,#fff);min-width:0}
.tm-fs-card-head{display:flex;align-items:flex-start;gap:10px;margin:0 0 10px}
.tm-fs-card-head>i{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border-radius:8px;font-size:.8rem;color:var(--primary,#2457d6);background:color-mix(in srgb,var(--primary,#2457d6) 10%,transparent)}
.tm-fs-card-head>div{min-width:0;flex:1}
.tm-fs-card-head h4{margin:0;font-size:.9rem;line-height:1.25}
.tm-fs-card-head p{margin:2px 0 0;font-size:.74rem;color:var(--muted,#667085);line-height:1.35}
.tm-fs-head-actions{display:flex;gap:6px;flex-wrap:wrap;flex:0 0 auto !important}
.tm-fs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.tm-fs-grid--4{grid-template-columns:minmax(0,.95fr) minmax(0,1.25fr) minmax(0,1.1fr) minmax(0,.7fr)}
.tm-fs-grid .wide{grid-column:1/-1}
.tm-fs-field{display:grid;gap:4px;min-width:0;align-content:start}
.tm-fs-field>span{font-size:.72rem;font-weight:700;color:var(--muted,#667085);letter-spacing:.01em}
.tm-fs-field small{font-size:.68rem;line-height:1.3;color:var(--muted,#667085)}
.tm-fs .tm-fs-field .input,.tm-fs .tm-fs-field .select{height:34px;min-height:34px;padding:6px 10px;font-size:.84rem;line-height:1.2;border-radius:9px;width:100%;box-sizing:border-box}
.tm-fs .tm-fs-field .select{padding-left:28px}
.tm-fs .tm-fs-field .input:focus,.tm-fs .tm-fs-field .select:focus{outline:none;border-color:var(--primary,#2457d6);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary,#2457d6) 16%,transparent)}
.tm-fs .triplem-password-shell>.input{height:34px!important;min-height:34px!important}
.tm-fs-chips{display:flex;gap:6px;flex-wrap:wrap}
.tm-fs-chip{position:relative;display:inline-flex;cursor:pointer}
.tm-fs-chip input{position:absolute;opacity:0;width:1px;height:1px}
.tm-fs-chip span{display:inline-flex;align-items:center;height:30px;padding:0 14px;border-radius:999px;border:1px solid var(--line,rgba(71,85,105,.24));font-size:.78rem;font-weight:650;color:var(--muted,#667085);transition:background .15s,color .15s,border-color .15s}
.tm-fs-chip input:checked+span{background:color-mix(in srgb,var(--primary,#2457d6) 12%,transparent);border-color:color-mix(in srgb,var(--primary,#2457d6) 45%,transparent);color:var(--primary,#2457d6)}
.tm-fs-chip input:checked+span::before{content:"\2713";margin-left:6px;font-size:.72rem}
.tm-fs-chip input:focus-visible+span{outline:2px solid color-mix(in srgb,var(--primary,#2457d6) 45%,transparent);outline-offset:2px}
.tm-fs-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 12px;border-radius:12px;background:var(--panel-2,color-mix(in srgb,var(--muted,#667085) 6%,transparent))}
.tm-fs-bar .tm-fs-msg{margin:0;flex:1;min-width:180px}
.tm-fs-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.tm-fs-actions .btn,.tm-fs-head-actions .btn{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.tm-fs-actions .btn{height:36px;padding:0 14px}
.tm-fs-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.tm-fs-metric{padding:8px 10px;border:1px solid var(--line,rgba(71,85,105,.16));border-radius:10px;background:var(--panel-2,var(--panel,#fff));display:grid;gap:2px;min-width:0}
.tm-fs-metric small{font-size:.62rem;color:var(--muted,#667085);text-transform:uppercase;letter-spacing:.04em;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-fs-metric strong{font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-fs-metric.ok strong{color:var(--success,#16a34a)}
.tm-fs-metric.bad strong{color:var(--danger,#dc2626)}
.tm-fs-subhead{margin:12px 0 6px;font-size:.78rem}
.tm-fs-msg{margin:0;font-size:.8rem}
.tm-fs-msg.ok{color:var(--success,#16a34a)}
.tm-fs-msg.bad{color:var(--danger,#dc2626)}
.tm-fs-banner{padding:8px 12px;border-radius:10px;background:color-mix(in srgb,currentColor 8%,transparent)}
.tm-fs-steps{margin:6px 0 0;padding-right:18px;font-size:.78rem}
.tm-fs-errors{margin:0;padding-right:18px;font-size:.76rem;color:var(--muted,#667085)}
.tm-fs-note{font-size:.7rem;color:var(--muted,#667085);margin:10px 0 0}
@media (max-width:860px){.tm-fs-grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}.tm-fs-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.tm-fs-grid,.tm-fs-grid--4{grid-template-columns:1fr}.tm-fs-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.tm-fs-card{padding:10px 12px 12px}.tm-fs-card-head{flex-wrap:wrap}.tm-fs-head-actions{width:100%}.tm-fs-actions{width:100%}.tm-fs-actions .btn{flex:1;justify-content:center}.tm-fs-kv{gap:6px 16px}}

/* ===== SOURCE: Assets/style/62-system-backup.css ===== */
/* Triplem VIP - Main Admin > System Backup & Restore (2026-11-10).
 * Theme tokens only, so every theme (light, dark, coloured) applies.
 * Desktop-first (administrative work) and fully usable on phones. */

.tsb-modal{z-index:2147481000}
.tsb-modal .tsb-dialog{
  position:relative;display:flex;flex-direction:column;
  width:min(1080px,calc(100vw - 24px));max-height:min(92vh,900px);height:auto;
  border-radius:18px;overflow:hidden;
  background:var(--modal-bg,var(--surface-elevated,#fff));color:var(--text,#17212b);
  border:1px solid var(--glass-border,var(--line,rgba(100,116,139,.22)));
  box-shadow:var(--shadow-strong,0 24px 60px rgba(15,23,42,.28));
}

/* Header */
.tsb-head{display:flex;align-items:center;gap:12px;padding:16px 20px 12px;flex:0 0 auto}
.tsb-head-icon{width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:grid;place-items:center;font-size:1.05rem;
  color:var(--on-primary,#fff);background:linear-gradient(140deg,var(--primary,#2457d6),color-mix(in srgb,var(--primary,#2457d6) 55%,#0f172a))}
.tsb-head-text{flex:1;min-width:0}
.tsb-kicker{margin:0 0 2px;font-size:.64rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--primary,#2457d6)}
.tsb-head h3{margin:0;font-size:1.12rem;line-height:1.25;color:var(--text-strong,var(--text))}
.tsb-sub{margin:3px 0 0;font-size:.78rem;color:var(--muted,#667085);line-height:1.4}
.tsb-lock{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;font-size:.7rem;font-weight:700;white-space:nowrap;
  color:var(--primary,#2457d6);background:var(--primary-soft,rgba(36,87,214,.1));border:1px solid color-mix(in srgb,var(--primary,#2457d6) 25%,transparent)}
.tsb-icon-btn{flex:0 0 auto;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;cursor:pointer;
  border:1px solid var(--line,rgba(100,116,139,.18));background:var(--control-bg,transparent);color:var(--text,#17212b)}
.tsb-icon-btn:hover{background:var(--control-hover,rgba(100,116,139,.1))}

/* Tabs */
.tsb-tabs{display:flex;gap:4px;padding:0 16px;border-bottom:1px solid var(--line,rgba(100,116,139,.18));flex:0 0 auto;overflow-x:auto;scrollbar-width:none}
.tsb-tabs::-webkit-scrollbar{display:none}
.tsb-tab{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;border:0;background:transparent;cursor:pointer;white-space:nowrap;
  font-size:.82rem;font-weight:650;color:var(--muted,#667085);border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .15s,border-color .15s}
.tsb-tab i{font-size:.8rem}
.tsb-tab:hover{color:var(--text,#17212b)}
.tsb-tab.is-active{color:var(--primary,#2457d6);border-bottom-color:var(--primary,#2457d6)}

/* Body */
.tsb-body{flex:1 1 auto;min-height:min(440px,56vh);overflow:auto;overscroll-behavior:contain;padding:16px 20px 20px;display:grid;gap:14px;align-content:start;
  background:color-mix(in srgb,var(--surface-soft,#f8fafc) 70%,transparent)}
.tsb-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:14px;align-items:start}
.tsb-card{display:grid;gap:12px;padding:16px;border-radius:14px;min-width:0;
  border:1px solid var(--line,rgba(100,116,139,.18));background:var(--card-bg,var(--surface-elevated,#fff))}
.tsb-card--primary{border-color:color-mix(in srgb,var(--primary,#2457d6) 28%,var(--line,rgba(100,116,139,.18)))}
.tsb-card-head{display:flex;align-items:flex-start;gap:12px}
.tsb-card-head>div{flex:1;min-width:0}
.tsb-card-head h4{margin:0;font-size:.95rem;line-height:1.3;color:var(--text-strong,var(--text))}
.tsb-card-head p{margin:3px 0 0;font-size:.78rem;line-height:1.45;color:var(--muted,#667085)}
.tsb-card-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center;font-size:.86rem;
  color:var(--primary,#2457d6);background:var(--primary-soft,rgba(36,87,214,.1))}
.tsb-card-icon.is-info{color:var(--muted,#667085);background:color-mix(in srgb,var(--muted,#667085) 12%,transparent)}
.tsb-card-icon.is-restore,.tsb-card-icon.is-ok{color:var(--success,#16a34a);background:var(--success-soft,rgba(22,163,74,.12))}
.tsb-card-icon.is-warn{color:var(--warning,#d97706);background:color-mix(in srgb,var(--warning,#d97706) 14%,transparent)}
.tsb-card-icon.spin i{animation:tsb-spin 1.6s linear infinite}
@keyframes tsb-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.tsb-card-icon.spin i{animation:none}}

/* Forms */
.tsb-form{display:grid;gap:10px}
.tsb-field{display:grid;gap:4px;font-size:.74rem;font-weight:700;color:var(--muted,#667085);min-width:0}
.tsb-field--inline{max-width:320px}
.tsb-input{height:36px;padding:7px 11px;font-size:.86rem;border-radius:10px;width:100%;box-sizing:border-box;
  border:1px solid var(--input-border,var(--line,rgba(100,116,139,.28)));background:var(--input-bg,var(--surface,#fff));color:var(--text,#17212b)}
.tsb-input:focus{outline:none;border-color:var(--primary,#2457d6);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary,#2457d6) 16%,transparent)}
.tsb-meter{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:-4px}
.tsb-meter i{height:4px;border-radius:2px;background:color-mix(in srgb,var(--muted,#667085) 18%,transparent);transition:background .2s}
.tsb-meter[data-level="1"] i:nth-child(-n+1){background:var(--danger,#dc2626)}
.tsb-meter[data-level="2"] i:nth-child(-n+2){background:var(--warning,#d97706)}
.tsb-meter[data-level="3"] i:nth-child(-n+3){background:color-mix(in srgb,var(--success,#16a34a) 70%,var(--warning,#d97706))}
.tsb-meter[data-level="4"] i{background:var(--success,#16a34a)}
.tsb-hint{margin:0;font-size:.74rem;line-height:1.45;color:var(--muted,#667085)}
.tsb-hint.bad{color:var(--danger,#dc2626);font-weight:600}
.tsb-hint.ok{color:var(--success,#16a34a);font-weight:600}
.tsb-hint i{margin-left:4px}
.tsb-text{margin:0;font-size:.8rem;line-height:1.5;color:var(--text,#17212b)}
.tsb-check{display:flex;align-items:flex-start;gap:9px;font-size:.8rem;line-height:1.45;cursor:pointer;color:var(--text,#17212b)}
.tsb-check input{width:16px;height:16px;margin-top:2px;flex:0 0 auto;accent-color:var(--primary,#2457d6)}
.tsb-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.tsb-dialog .btn{min-height:36px;padding:7px 15px;font-size:.82rem;font-weight:650;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;width:auto}
.tsb-dialog .btn.tiny{min-height:30px;padding:4px 10px;font-size:.74rem}
.tsb-dialog .btn[disabled]{opacity:.5;cursor:not-allowed}
.tsb-primary{background:var(--primary,#2457d6) !important;border:1px solid var(--primary,#2457d6) !important;color:var(--on-primary,#fff) !important}
.tsb-primary:hover:not([disabled]){background:var(--primary-hover,color-mix(in srgb,var(--primary,#2457d6) 88%,#000)) !important}
.tsb-secondary{background:var(--primary-soft,rgba(36,87,214,.1)) !important;border:1px solid color-mix(in srgb,var(--primary,#2457d6) 30%,transparent) !important;color:var(--primary,#2457d6) !important}
.tsb-danger-ghost{background:transparent !important;border:1px solid color-mix(in srgb,var(--danger,#dc2626) 40%,transparent) !important;color:var(--danger,#dc2626) !important;flex:0 0 auto}
.tsb-dialog button:focus-visible,.tsb-dialog input:focus-visible,.tsb-dialog summary:focus-visible,.tsb-drop:focus-within{outline:2px solid var(--focus-ring,var(--primary,#2457d6));outline-offset:2px}

/* Lists */
.tsb-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.tsb-list li{display:flex;gap:10px;align-items:flex-start}
.tsb-list li>i{width:22px;flex:0 0 22px;text-align:center;margin-top:2px;font-size:.82rem;color:var(--primary,#2457d6)}
.tsb-list li.is-muted>i{color:var(--muted,#667085)}
.tsb-list strong{display:block;font-size:.8rem;color:var(--text-strong,var(--text))}
.tsb-list span{display:block;font-size:.74rem;line-height:1.45;color:var(--muted,#667085)}

/* Progress */
.tsb-steps{list-style:none;margin:0;padding:0;display:flex;gap:6px;flex-wrap:wrap}
.tsb-steps li{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 4px 0 11px;border-radius:999px;font-size:.74rem;font-weight:650;
  color:var(--muted,#667085);background:color-mix(in srgb,var(--muted,#667085) 9%,transparent)}
.tsb-steps li span{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:.66rem;background:var(--surface-elevated,#fff);border:1px solid var(--line,rgba(100,116,139,.25))}
.tsb-steps li.now{color:var(--primary,#2457d6);background:var(--primary-soft,rgba(36,87,214,.1))}
.tsb-steps li.now span{border-color:var(--primary,#2457d6);color:var(--primary,#2457d6)}
.tsb-steps li.done{color:var(--success,#16a34a);background:var(--success-soft,rgba(22,163,74,.1))}
.tsb-steps li.done span{background:var(--success,#16a34a);border-color:var(--success,#16a34a);color:#fff}
.tsb-bar{height:8px;border-radius:999px;background:color-mix(in srgb,var(--muted,#667085) 14%,transparent);overflow:hidden}
.tsb-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--primary,#2457d6),color-mix(in srgb,var(--primary,#2457d6) 60%,var(--success,#16a34a)));transition:width .35s ease}
.tsb-live-line{margin:0;font-size:.78rem;color:var(--muted,#667085);font-variant-numeric:tabular-nums}
.tsb-restore-top{display:flex;justify-content:flex-start}

/* Tiles */
.tsb-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.tsb-tiles--5{grid-template-columns:repeat(5,minmax(0,1fr))}
.tsb-tiles--6{grid-template-columns:repeat(6,minmax(0,1fr))}
.tsb-tile{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;min-width:0;
  border:1px solid var(--line,rgba(100,116,139,.16));background:var(--surface-soft,color-mix(in srgb,var(--muted,#667085) 5%,transparent))}
.tsb-tile>i{width:28px;height:28px;flex:0 0 28px;border-radius:8px;display:grid;place-items:center;font-size:.76rem;color:var(--primary,#2457d6);background:var(--primary-soft,rgba(36,87,214,.1))}
.tsb-tile>div{min-width:0}
.tsb-tile small{display:block;font-size:.62rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#667085);line-height:1.25;overflow-wrap:anywhere}
.tsb-tile strong{display:block;font-size:.92rem;font-variant-numeric:tabular-nums;color:var(--text-strong,var(--text));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsb-tile.zero>i{color:var(--muted,#667085);background:color-mix(in srgb,var(--muted,#667085) 10%,transparent)}
.tsb-tile.zero strong{color:var(--muted,#667085)}
.tsb-tile.ok>i{color:var(--success,#16a34a);background:var(--success-soft,rgba(22,163,74,.12))}
.tsb-tile.ok strong{color:var(--success,#16a34a)}
.tsb-tile.warn>i{color:var(--warning,#d97706);background:color-mix(in srgb,var(--warning,#d97706) 14%,transparent)}
.tsb-tile.warn strong{color:var(--warning,#b45309)}
.tsb-tile.bad>i{color:var(--danger,#dc2626);background:color-mix(in srgb,var(--danger,#dc2626) 12%,transparent)}
.tsb-tile.bad strong{color:var(--danger,#dc2626)}
.tsb-subhead{margin:4px 0 -4px;font-size:.78rem;font-weight:800;color:var(--text-strong,var(--text))}

/* Results */
.tsb-result{border-width:1px}
.tsb-result.ok{border-color:color-mix(in srgb,var(--success,#16a34a) 40%,transparent)}
.tsb-result.warn{border-color:color-mix(in srgb,var(--warning,#d97706) 45%,transparent)}
.tsb-result.bad{border-color:color-mix(in srgb,var(--danger,#dc2626) 45%,transparent)}
.tsb-result-head{display:flex;gap:12px;align-items:flex-start}
.tsb-result-head>i{font-size:1.5rem;margin-top:1px}
.tsb-result.ok .tsb-result-head>i{color:var(--success,#16a34a)}
.tsb-result.warn .tsb-result-head>i{color:var(--warning,#d97706)}
.tsb-result.bad .tsb-result-head>i{color:var(--danger,#dc2626)}
.tsb-result-head h4{margin:0;font-size:1rem;color:var(--text-strong,var(--text))}
.tsb-result-head p{margin:3px 0 0;font-size:.78rem;color:var(--muted,#667085);word-break:break-word}
.tsb-dialog code{font-size:.74rem;padding:1px 5px;border-radius:5px;background:color-mix(in srgb,var(--muted,#667085) 12%,transparent)}
.tsb-verify{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:.8rem}
.tsb-verify li{display:flex;gap:8px;align-items:center}
.tsb-verify li.ok i{color:var(--success,#16a34a)}
.tsb-verify li.bad{color:var(--danger,#dc2626);font-weight:600}
.tsb-details{border:1px solid var(--line,rgba(100,116,139,.18));border-radius:12px;padding:0 12px;background:var(--surface-elevated,#fff)}
.tsb-details summary{cursor:pointer;padding:10px 0;font-size:.8rem;font-weight:700;color:var(--text,#17212b)}
.tsb-details.warn summary{color:var(--warning,#b45309)}
.tsb-details.bad summary{color:var(--danger,#dc2626)}
.tsb-details ul{margin:0 0 10px;padding-right:18px;font-size:.76rem;line-height:1.55;color:var(--text,#17212b);max-height:260px;overflow:auto}
.tsb-chip{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;font-size:.68rem;font-weight:750;white-space:nowrap;
  background:color-mix(in srgb,var(--muted,#667085) 12%,transparent);color:var(--muted,#667085)}
.tsb-chip.ok{background:var(--success-soft,rgba(22,163,74,.12));color:var(--success,#16a34a)}
.tsb-chip.warn{background:color-mix(in srgb,var(--warning,#d97706) 15%,transparent);color:var(--warning,#b45309)}
.tsb-chip.bad{background:color-mix(in srgb,var(--danger,#dc2626) 12%,transparent);color:var(--danger,#dc2626)}
.tsb-chip.run{background:var(--primary-soft,rgba(36,87,214,.1));color:var(--primary,#2457d6)}

/* Tables */
.tsb-table-wrap{overflow:auto;max-height:360px;margin:0 0 10px;border-radius:10px;border:1px solid var(--line,rgba(100,116,139,.14))}
.tsb-card>.tsb-table-wrap,#tsbHist>.tsb-table-wrap{max-height:none;margin:0}
.tsb-table{width:100%;border-collapse:collapse;font-size:.76rem;font-variant-numeric:tabular-nums}
.tsb-table th{position:sticky;top:0;z-index:1;text-align:right;padding:8px 10px;font-size:.66rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  color:var(--muted,#667085);background:var(--surface-soft,#f8fafc);border-bottom:1px solid var(--line,rgba(100,116,139,.18));white-space:nowrap}
.tsb-table td{padding:7px 10px;border-bottom:1px solid var(--line,rgba(100,116,139,.1));vertical-align:top;color:var(--text,#17212b)}
.tsb-table tbody tr:hover td{background:color-mix(in srgb,var(--primary,#2457d6) 4%,transparent)}
.tsb-table code{white-space:nowrap}
.tsb-hist-detail{color:var(--muted,#667085) !important;min-width:220px}
.tsb-kind{display:inline-flex;align-items:center;gap:6px;font-weight:700;white-space:nowrap}
.tsb-kind.backup i{color:var(--primary,#2457d6)}
.tsb-kind.restore i{color:var(--success,#16a34a)}

/* Drop zone */
.tsb-drop{position:relative;display:grid;justify-items:center;gap:4px;padding:22px 14px;border-radius:12px;text-align:center;cursor:pointer;
  border:1.5px dashed color-mix(in srgb,var(--primary,#2457d6) 35%,var(--line,rgba(100,116,139,.3)));
  background:color-mix(in srgb,var(--primary,#2457d6) 4%,transparent);transition:background .15s,border-color .15s}
.tsb-drop:hover,.tsb-drop.is-over{background:color-mix(in srgb,var(--primary,#2457d6) 9%,transparent);border-color:var(--primary,#2457d6)}
.tsb-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.tsb-drop>i{font-size:1.3rem;color:var(--primary,#2457d6)}
.tsb-drop strong{font-size:.86rem;color:var(--text-strong,var(--text));word-break:break-all}
.tsb-drop span{font-size:.74rem;color:var(--muted,#667085)}

/* Last backup strip */
.tsb-last{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 12px;border-radius:11px;font-size:.78rem;
  background:color-mix(in srgb,var(--muted,#667085) 7%,transparent);color:var(--text,#17212b)}
.tsb-last>i{color:var(--primary,#2457d6)}
.tsb-last span{color:var(--muted,#667085)}
.tsb-last.is-stale>i{color:var(--warning,#d97706)}

/* Misc */
.tsb-empty{display:grid;justify-items:center;gap:4px;padding:28px 12px;text-align:center;font-size:.8rem;color:var(--muted,#667085)}
.tsb-empty>i{font-size:1.4rem;margin-bottom:4px}
.tsb-empty strong{color:var(--text,#17212b)}
.tsb-empty.bad{color:var(--danger,#dc2626)}
.tsb-code{margin:0;padding:10px 12px;border-radius:10px;font-size:.74rem;overflow:auto;white-space:pre;
  background:color-mix(in srgb,var(--text,#17212b) 6%,transparent);color:var(--text,#17212b)}
.tsb-toast{padding:9px 12px;border-radius:10px;font-size:.78rem;font-weight:650;color:var(--warning,#b45309);
  background:color-mix(in srgb,var(--warning,#d97706) 12%,var(--surface-elevated,#fff));border:1px solid color-mix(in srgb,var(--warning,#d97706) 35%,transparent)}
.tsb-confirm{border-color:color-mix(in srgb,var(--warning,#d97706) 35%,var(--line,rgba(100,116,139,.18)))}
.admin-system-backup-item i{color:var(--primary,#2457d6)}

/* Responsive */
@media (max-width:980px){.tsb-tiles--6{grid-template-columns:repeat(3,minmax(0,1fr))}.tsb-tiles--5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:820px){.tsb-grid{grid-template-columns:1fr}}
@media (max-width:640px){
  .tsb-modal{padding:0 !important;align-items:stretch !important;justify-content:stretch !important}
  .tsb-modal .tsb-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;margin:0}
  .tsb-head{padding:12px 14px 10px;gap:10px}
  .tsb-head-icon{width:36px;height:36px;flex-basis:36px}
  .tsb-sub,.tsb-lock{display:none}
  .tsb-tabs{padding:0 8px}
  .tsb-tab{padding:0 10px;font-size:.78rem}
  .tsb-body{padding:12px 12px calc(16px + env(safe-area-inset-bottom,0px))}
  .tsb-card{padding:13px}
  .tsb-tiles,.tsb-tiles--5,.tsb-tiles--6{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tsb-card-head{flex-wrap:wrap}
  .tsb-actions .btn{flex:1}
  .tsb-steps li{padding-left:8px;font-size:.7rem}
  /* history as stacked cards */
  .tsb-history thead{display:none}
  .tsb-history,.tsb-history tbody,.tsb-history tr{display:block;width:100%}
  .tsb-history tr{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:11px 12px;border-bottom:1px solid var(--line,rgba(100,116,139,.12))}
  .tsb-history td{display:block;border:0 !important;padding:0 !important;font-size:.78rem !important;line-height:1.45}
  .tsb-history .tsb-kind{font-size:.82rem !important}
  .tsb-history .tsb-hist-kind{grid-column:1}
  .tsb-history .tsb-hist-status{grid-column:2;grid-row:1;justify-self:end}
  .tsb-history td[data-label]{grid-column:1/-1;color:var(--muted,#667085)}
  .tsb-history td[data-label]::before{content:attr(data-label) ": ";font-weight:700}
  .tsb-history .tsb-hist-detail{grid-column:1/-1;min-width:0}
  .tsb-history tbody tr:hover td{background:none}
}

/* ---- 2026-11-17: credentials switch, restore mode and selection, undo ---- */
.tsb-check--card{padding:10px 12px;border:1px solid var(--line,rgba(100,116,139,.18));border-radius:12px;background:var(--surface-elevated,#fff)}
.tsb-check--card span{display:flex;flex-direction:column;gap:3px}
.tsb-check--card small{color:var(--muted,#667085);font-size:.74rem;line-height:1.45}
.tsb-check + .tsb-check{margin-top:8px}
.tsb-modes{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:4px 0 12px}
.tsb-mode{position:relative;display:flex;flex-direction:column;gap:5px;padding:12px 40px 12px 14px;border:1.5px solid var(--line,rgba(100,116,139,.22));border-radius:14px;cursor:pointer;background:var(--surface-elevated,#fff);transition:border-color .15s,background .15s}
.tsb-mode input{position:absolute;right:14px;top:14px;width:16px;height:16px;accent-color:var(--primary,#2457d6)}
.tsb-mode strong{font-size:.86rem;color:var(--text,#17212b);display:flex;gap:7px;align-items:center}
.tsb-mode strong i{color:var(--primary,#2457d6)}
.tsb-mode span{font-size:.76rem;line-height:1.45;color:var(--muted,#667085)}
.tsb-mode.is-on{border-color:var(--primary,#2457d6);background:var(--primary-soft,rgba(36,87,214,.06))}
.tsb-mode:focus-within{outline:2px solid var(--primary,#2457d6);outline-offset:2px}
.tsb-pick-tools{display:flex;gap:8px;margin:4px 0 8px}
.tsb-pick-head{margin:12px 0 6px;font-size:.74rem;font-weight:750;letter-spacing:.02em;text-transform:uppercase;color:var(--muted,#667085)}
.tsb-picks{display:flex;flex-direction:column;gap:4px;max-height:280px;overflow:auto;padding-left:2px}
.tsb-pick{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:7px 10px;border-radius:10px;cursor:pointer;font-size:.8rem}
.tsb-pick:hover{background:var(--primary-soft,rgba(36,87,214,.06))}
.tsb-pick input{width:16px;height:16px;accent-color:var(--primary,#2457d6)}
.tsb-pick-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text,#17212b);font-weight:650}
.tsb-pick-name i{color:var(--muted,#667085);width:16px;text-align:center}
.tsb-pick-name small{font-weight:500;color:var(--muted,#667085)}
.tsb-pick-stats{display:flex;gap:8px;font-size:.72rem;color:var(--muted,#667085);white-space:nowrap}
.tsb-pick-stats .ok{color:var(--success,#16a34a);font-weight:700}
.tsb-pick-stats .warn{color:var(--warning,#b45309)}
.tsb-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.tsb-chipbox{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid var(--line,rgba(100,116,139,.22));border-radius:999px;font-size:.76rem;cursor:pointer;color:var(--text,#17212b)}
.tsb-chipbox input{width:14px;height:14px;accent-color:var(--primary,#2457d6)}
.tsb-chipbox:has(input:checked){border-color:var(--primary,#2457d6);background:var(--primary-soft,rgba(36,87,214,.06))}
.tsb-undo{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin-top:10px;border:1px dashed var(--line,rgba(100,116,139,.3));border-radius:12px}
.tsb-undo .tsb-hint{margin:0}
@media (max-width:640px){
  .tsb-pick{grid-template-columns:auto minmax(0,1fr)}
  .tsb-pick-stats{grid-column:2;white-space:normal;flex-wrap:wrap}
}

/* ===== SOURCE: Assets/style/63-motion-viewport.css ===== */
/* Triplem VIP - Background animation preference and mobile viewport stability (2026-11-10). */

/* ---- Background Bubbles & Animations: OFF ------------------------------------------
   JavaScript also removes the elements; this guarantees nothing animates or
   composites even before that runs. */
html.triplem-bg-off .floating-circles,
html.triplem-bg-off .page-currency-bg{display:none !important;animation:none !important}

/* Theme menu switch */
html[data-triplem-theme] #app .theme-menu-divider{height:1px;margin:4px 2px;background:var(--line)}
html[data-triplem-theme] #app .theme-menu-toggle{
  appearance:none;width:100%;min-height:40px;display:grid;grid-template-columns:18px minmax(0,1fr) 32px;align-items:center;gap:9px;
  padding:7px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text);text-align:right;cursor:pointer;
  transition:background-color .12s ease,border-color .12s ease;
}
html[data-triplem-theme] #app .theme-menu-toggle:hover{background:var(--surface-hover);border-color:var(--line)}
html[data-triplem-theme] #app .theme-menu-toggle:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 32%,transparent);outline-offset:1px}
html[data-triplem-theme] #app .theme-menu-toggle-icon{font-size:.78rem;color:var(--primary);text-align:center}
html[data-triplem-theme] #app .theme-menu-toggle .theme-menu-copy strong{white-space:normal;font-size:.74rem;line-height:1.25}
html[data-triplem-theme] #app .theme-menu-toggle .theme-menu-copy small{display:block;font-size:.62rem;color:var(--muted);margin-top:1px}
html[data-triplem-theme] #app .theme-menu-switch{
  position:relative;width:32px;height:18px;border-radius:999px;justify-self:end;
  background:color-mix(in srgb,var(--muted,#667085) 30%,transparent);transition:background-color .15s ease;
}
html[data-triplem-theme] #app .theme-menu-switch i{
  position:absolute;top:2px;right:2px;width:14px;height:14px;border-radius:50%;background:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,.25);transition:transform .15s ease;
}
html[data-triplem-theme] #app .theme-menu-toggle[aria-checked="true"] .theme-menu-switch{background:var(--primary)}
html[data-triplem-theme] #app .theme-menu-toggle[aria-checked="true"] .theme-menu-switch i{transform:translateX(-14px)}
@media (prefers-reduced-motion:reduce){
  html[data-triplem-theme] #app .theme-menu-switch,html[data-triplem-theme] #app .theme-menu-switch i{transition:none}
}

/* ---- Phones and tablets: no automatic zoom when a field is focused ------------------
   Cause (measured 2026-11-10): form fields render at 10-12.5px on phones. iOS Safari
   (and iOS WebViews) zoom the page in whenever a field under 16px receives focus,
   and do not zoom back out, so the layout appears "stuck" enlarged. Pinch-zoom stays
   enabled (the viewport tag is not restricted); only the field text is raised to the
   16px threshold on touch screens. Desktop and the Windows app are unchanged. */
@media (hover:none) and (pointer:coarse){
  /* The :not(#...) parts only raise priority above the existing id-scoped compact
     form rules (some use !important); they match every page. */
  html:not(#tm-zoom-a):not(#tm-zoom-b):not(#tm-zoom-c) :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
    select,textarea,[contenteditable="true"]){font-size:16px !important}
}

/* ===== SOURCE: Assets/style/64-inventory-v2.css ===== */
/* Triplem VIP Inventory 2.0 - application shell, home card and Main Admin access block (2026-11-10). */

/* ---- Inventory V1 switched off by the Main Admin ------------------------------------------ */
html.tm-inv-v1-off #app > .tabs .tab[data-tab="goods"],
html.tm-inv-v1-off #workspaceSectionSelect option[value="goods"]{display:none !important}

/* ---- Home card ------------------------------------------------------------------------------ */
.workspace-home-card--inventory2 .workspace-card-art{position:relative}
.inv2-card-badge{position:absolute;left:-4px;bottom:-4px;padding:2px 6px;border-radius:999px;background:#1d4ed8;color:#fff;
  font:700 .62rem/1.2 inherit;letter-spacing:.02em;box-shadow:0 2px 6px rgba(29,78,216,.35)}

/* ---- Full-screen app ------------------------------------------------------------------------- */
.inv2-app{
  --inv2-blue:#1d4ed8;--inv2-blue-2:#2563eb;--inv2-side-1:#1e40af;--inv2-side-2:#2563eb;
  --inv2-bg:#f4f6fb;--inv2-surface:#ffffff;--inv2-line:#e5e9f2;--inv2-text:#0f172a;--inv2-muted:#64748b;
  --inv2-radius:14px;--inv2-shadow:0 1px 2px rgba(15,23,42,.05),0 6px 18px rgba(15,23,42,.05);
  position:fixed;inset:0;z-index:9000;display:grid;grid-template-columns:248px minmax(0,1fr);
  background:var(--inv2-bg);color:var(--inv2-text);font-family:inherit;font-size:14px;
}
.inv2-app[hidden]{display:none !important}
html[data-triplem-theme-mode="dark"] .inv2-app{
  --inv2-bg:#0b1220;--inv2-surface:#111a2e;--inv2-line:#1f2a44;--inv2-text:#e5ecf8;--inv2-muted:#94a3b8;
  --inv2-side-1:#14286b;--inv2-side-2:#1d3fa0;--inv2-shadow:0 1px 2px rgba(0,0,0,.4)}
.inv2-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* sidebar */
.inv2-sidebar{display:flex;flex-direction:column;min-height:0;padding:18px 14px;gap:14px;color:#fff;
  background:linear-gradient(180deg,var(--inv2-side-1),var(--inv2-side-2))}
.inv2-brand{display:flex;align-items:center;gap:11px;padding:4px 6px 10px}
.inv2-brand-logo{width:40px;height:40px;border-radius:11px;background:#fff;padding:4px;object-fit:contain}
.inv2-brand-text{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.inv2-brand-text strong{font-size:1.02rem;font-weight:700;letter-spacing:.01em}
.inv2-brand-text span{font-size:.78rem;opacity:.82}
.inv2-nav{display:flex;flex-direction:column;gap:3px;overflow-y:auto;min-height:0;flex:1;scrollbar-width:thin}
.inv2-nav-item{appearance:none;border:0;background:transparent;color:rgba(255,255,255,.88);display:flex;align-items:center;gap:12px;
  padding:10px 12px;border-radius:10px;font:500 .9rem/1.2 inherit;text-align:right;cursor:pointer;transition:background-color .12s ease}
.inv2-nav-item i{width:18px;text-align:center;font-size:.95rem}
.inv2-nav-item:hover{background:rgba(255,255,255,.1);color:#fff}
.inv2-nav-item.active{background:rgba(255,255,255,.2);color:#fff;font-weight:600;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.inv2-nav-item:focus-visible,.inv2-icon-btn:focus-visible,.inv2-btn:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
.inv2-identity{display:flex;align-items:center;gap:10px;padding:12px 10px;border-radius:12px;background:rgba(255,255,255,.1)}
.inv2-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--inv2-blue)}
.inv2-identity-text{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.inv2-identity-text strong,.inv2-identity-text span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv2-identity-text strong{font-size:.86rem}
.inv2-identity-text span{font-size:.74rem;opacity:.8}

/* collapsed (desktop) */
.inv2-app.inv2-collapsed{grid-template-columns:76px minmax(0,1fr)}
.inv2-app.inv2-collapsed .inv2-brand-text,.inv2-app.inv2-collapsed .inv2-nav-item span,.inv2-app.inv2-collapsed .inv2-identity-text{display:none}
.inv2-app.inv2-collapsed .inv2-nav-item{justify-content:center;padding:11px 0}
.inv2-app.inv2-collapsed .inv2-brand,.inv2-app.inv2-collapsed .inv2-identity{justify-content:center;padding-inline:0}

/* main */
.inv2-main{display:flex;flex-direction:column;min-width:0;min-height:0}
.inv2-topbar{display:flex;align-items:center;gap:10px;padding:12px 22px;background:var(--inv2-surface);border-bottom:1px solid var(--inv2-line)}
.inv2-icon-btn{appearance:none;width:38px;height:38px;flex:0 0 38px;border-radius:10px;border:1px solid var(--inv2-line);background:var(--inv2-surface);
  color:var(--inv2-text);display:grid;place-items:center;cursor:pointer;transition:background-color .12s ease}
.inv2-icon-btn:hover{background:color-mix(in srgb,var(--inv2-blue) 8%,var(--inv2-surface))}
.inv2-home{color:var(--inv2-blue);border-color:color-mix(in srgb,var(--inv2-blue) 35%,var(--inv2-line))}
.inv2-search{flex:1;min-width:0;display:flex;align-items:center;gap:9px;height:40px;padding:0 13px;border:1px solid var(--inv2-line);border-radius:10px;
  background:var(--inv2-bg);color:var(--inv2-muted)}
.inv2-search input,.inv2-scan input{flex:1;min-width:0;height:100%;margin:0;padding:0;border:0 !important;outline:0 !important;box-shadow:none !important;border-radius:0;background:transparent !important;color:var(--inv2-text);font:inherit;-webkit-appearance:none;appearance:none}
.inv2-search:focus-within{border-color:var(--inv2-blue-2);box-shadow:0 0 0 3px color-mix(in srgb,var(--inv2-blue-2) 18%,transparent)}
.inv2-offline{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:.76rem;font-weight:600;white-space:nowrap}
.inv2-offline[hidden]{display:none}
.inv2-outlet-select{height:38px;padding:0 12px 0 30px;border-radius:10px;border:1px solid var(--inv2-line);background:var(--inv2-surface);color:var(--inv2-text);font:inherit}
.inv2-content{flex:1;min-height:0;overflow:auto;padding:22px;outline:0}

/* banner, cards */
.inv2-setup-banner{display:flex;gap:12px;align-items:flex-start;padding:12px 15px;margin-bottom:18px;border-radius:12px;
  background:color-mix(in srgb,var(--inv2-blue-2) 9%,var(--inv2-surface));border:1px solid color-mix(in srgb,var(--inv2-blue-2) 25%,transparent);font-size:.86rem;line-height:1.45}
.inv2-setup-banner i{color:var(--inv2-blue-2);margin-top:3px}
.inv2-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
.inv2-kpi{display:flex;align-items:center;gap:14px;padding:18px;background:var(--inv2-surface);border:1px solid var(--inv2-line);border-radius:var(--inv2-radius);box-shadow:var(--inv2-shadow)}
.inv2-kpi > div{display:flex;flex-direction:column;min-width:0}
.inv2-kpi-icon{width:52px;height:52px;flex:0 0 52px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:1.25rem}
.inv2-kpi-label{font-size:.8rem;color:var(--inv2-muted)}
.inv2-kpi-value{font-size:1.45rem;font-weight:700;line-height:1.25;font-variant-numeric:tabular-nums}
.inv2-kpi-hint{font-size:.74rem;color:var(--inv2-muted)}
.inv2-tone-blue .inv2-kpi-icon{background:linear-gradient(135deg,#3b82f6,#1d4ed8)}
.inv2-tone-violet .inv2-kpi-icon{background:linear-gradient(135deg,#8b5cf6,#6d28d9)}
.inv2-tone-green .inv2-kpi-icon{background:linear-gradient(135deg,#34d399,#059669)}
.inv2-tone-orange .inv2-kpi-icon{background:linear-gradient(135deg,#fbbf24,#ea580c)}
.inv2-dash-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:18px;align-items:start}
.inv2-dash-col{display:flex;flex-direction:column;gap:18px;min-width:0}
.inv2-card{background:var(--inv2-surface);border:1px solid var(--inv2-line);border-radius:var(--inv2-radius);box-shadow:var(--inv2-shadow);padding:18px}
.inv2-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.inv2-card-head h2{margin:0;font-size:1rem;font-weight:650}
.inv2-mini-select{height:32px;border-radius:8px;border:1px solid var(--inv2-line);background:var(--inv2-surface);color:var(--inv2-muted);padding:0 8px;font:inherit;font-size:.8rem}
.inv2-scan{display:flex;align-items:center;gap:8px;height:44px;padding:0 13px;border:1px solid var(--inv2-line);border-radius:10px;color:var(--inv2-muted);margin-bottom:12px}
.inv2-scan input{flex:1;border:0;outline:0;background:transparent;color:var(--inv2-text);font:inherit}
.inv2-table-head{display:grid;grid-template-columns:minmax(0,2.4fr) repeat(3,minmax(0,1fr));gap:8px;padding:9px 12px;border-radius:8px;
  background:var(--inv2-bg);color:var(--inv2-muted);font-size:.78rem;font-weight:600}
.inv2-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:30px 16px;color:var(--inv2-muted)}
.inv2-empty i{font-size:1.6rem;color:color-mix(in srgb,var(--inv2-blue-2) 55%,var(--inv2-muted))}
.inv2-empty p{margin:0;color:var(--inv2-text);font-weight:550;max-width:460px}
.inv2-empty small{font-size:.78rem}
.inv2-chart-empty{min-height:190px}
.inv2-pos-foot{display:flex;justify-content:space-between;align-items:center;padding:13px 14px;margin:6px 0 12px;border:1px solid var(--inv2-line);border-radius:10px}
.inv2-pos-foot strong{font-size:1.35rem;color:var(--inv2-blue-2)}
.inv2-pos-actions{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:10px}
.inv2-btn{appearance:none;height:46px;border-radius:10px;border:1px solid var(--inv2-line);background:var(--inv2-surface);color:var(--inv2-text);
  font:600 .88rem/1 inherit;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.inv2-btn.primary{background:var(--inv2-blue-2);border-color:var(--inv2-blue-2);color:#fff}
.inv2-btn i,.inv2-icon-btn i{color:inherit !important;opacity:1}
.inv2-btn:disabled{opacity:.55;cursor:not-allowed}
.inv2-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.inv2-sum{display:flex;flex-direction:column;gap:4px;padding:14px;border-radius:10px;background:var(--inv2-bg)}
.inv2-sum strong{font-size:1.3rem}
.inv2-sum span{font-size:.76rem;color:var(--inv2-muted)}
.inv2-sum.inv2-tone-blue strong{color:#2563eb}.inv2-sum.inv2-tone-orange strong{color:#ea580c}
.inv2-sum.inv2-tone-red strong{color:#dc2626}.inv2-sum.inv2-tone-green strong{color:#059669}
.inv2-section-head h1{margin:0 0 16px;font-size:1.25rem;display:flex;align-items:center;gap:10px}
.inv2-section-head i{color:var(--inv2-blue-2)}
.inv2-coming .inv2-empty{padding:56px 16px}

.inv2-scrim{display:none}

/* tablet / phone */
@media (max-width:1200px){
  .inv2-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inv2-dash-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:900px){
  .inv2-app,.inv2-app.inv2-collapsed{grid-template-columns:minmax(0,1fr)}
  .inv2-sidebar{position:fixed;inset:0 0 0 auto;width:min(280px,84vw);z-index:2;transform:translateX(102%);transition:transform .2s ease;box-shadow:8px 0 24px rgba(15,23,42,.25)}
  .inv2-app.inv2-menu-open .inv2-sidebar{transform:none}
  .inv2-app.inv2-menu-open .inv2-scrim{display:block;position:fixed;inset:0;z-index:1;background:rgba(15,23,42,.4)}
  .inv2-app.inv2-collapsed .inv2-brand-text,.inv2-app.inv2-collapsed .inv2-nav-item span,.inv2-app.inv2-collapsed .inv2-identity-text{display:flex}
  .inv2-topbar{padding:10px 12px;gap:8px;flex-wrap:wrap}
  .inv2-topbar .inv2-search{order:10;flex-basis:100%}
  .inv2-outlet{margin-right:auto}
  .inv2-content{padding:14px}
}
@media (max-width:560px){
  .inv2-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .inv2-kpi{flex-direction:column;align-items:flex-start;gap:8px;padding:13px}
  .inv2-kpi-icon{width:40px;height:40px;flex-basis:40px;font-size:1rem}
  .inv2-kpi-value{font-size:1.2rem}
  .inv2-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inv2-pos-actions{grid-template-columns:1fr 1fr}
  .inv2-pos-actions .primary{grid-column:1/-1}
  .inv2-outlet-select{max-width:140px}
}
@media (prefers-reduced-motion:reduce){.inv2-sidebar{transition:none}}

/* ---- Main Admin: Inventory block in Admin > Edit user ----------------------------------------- */
.inv2-edit-block{margin:12px 0;border:1px solid color-mix(in srgb,#1d4ed8 26%,var(--line,#e5e7eb));border-radius:15px;overflow:hidden;
  background:linear-gradient(135deg,color-mix(in srgb,#1d4ed8 7%,var(--panel,#fff)),var(--panel-2,var(--panel,#fff)))}
.inv2-edit-head{display:flex;align-items:flex-start;gap:10px;padding:12px 14px}
.inv2-edit-head > div{flex:1;min-width:0}
.inv2-edit-head strong{display:block;font-size:.8rem}
.inv2-edit-head small{display:block;color:var(--muted,#64748b);font-size:.66rem;line-height:1.45;margin-top:2px}
.inv2-edit-icon{width:34px;height:34px;flex:0 0 34px;border-radius:11px;display:grid;place-items:center;color:#fff;
  background:linear-gradient(145deg,#1e3a8a,#2563eb 65%,#38bdf8);box-shadow:0 6px 14px rgba(37,99,235,.25)}
.inv2-edit-plan{flex:0 0 auto;align-self:center;padding:4px 9px;border-radius:999px;font-size:.62rem;font-weight:600;white-space:nowrap;
  color:#1d4ed8;background:color-mix(in srgb,#2563eb 11%,var(--panel,#fff));border:1px solid color-mix(in srgb,#2563eb 24%,transparent)}
.inv2-edit-rows{display:grid;gap:1px;background:color-mix(in srgb,var(--line,#e5e7eb) 80%,transparent);border-top:1px solid var(--line,#e5e7eb)}
.inv2-edit-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;background:var(--panel,#fff);cursor:pointer}
.inv2-edit-row.is-locked,.inv2-edit-primary{cursor:default}
.inv2-edit-copy{display:flex;flex-direction:column;min-width:0}
.inv2-edit-copy strong{font-size:.76rem}
.inv2-edit-copy small{font-size:.64rem;color:var(--muted,#64748b);line-height:1.4}
.inv2-switch{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.inv2-switch input{position:absolute;opacity:0;pointer-events:none}
.inv2-switch span{width:39px;height:22px;border-radius:999px;background:color-mix(in srgb,var(--muted,#64748b) 25%,var(--panel,#fff));position:relative;transition:background-color .18s}
.inv2-switch span:after{content:"";position:absolute;width:16px;height:16px;right:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.15);transition:transform .18s}
.inv2-switch input:checked+span{background:#2563eb}
.inv2-switch input:checked+span:after{transform:translateX(-17px)}
.inv2-switch input:focus-visible+span{outline:2px solid #93c5fd;outline-offset:2px}
.inv2-switch input:disabled+span{opacity:.5}
.inv2-switch em{font-size:.65rem;font-style:normal;color:var(--muted,#64748b);min-width:20px}
.inv2-seg{display:inline-flex;padding:3px;border-radius:10px;background:color-mix(in srgb,var(--muted,#64748b) 12%,var(--panel,#fff))}
.inv2-seg button{appearance:none;border:0;background:transparent;color:var(--muted,#64748b);font:600 .7rem/1 inherit;padding:6px 12px;border-radius:7px;cursor:pointer}
.inv2-seg button[aria-checked="true"]{background:var(--panel,#fff);color:#1d4ed8;box-shadow:0 1px 3px rgba(15,23,42,.15)}
.inv2-seg button:disabled{cursor:not-allowed}
.inv2-edit-primary.is-disabled{opacity:.55}
.inv2-edit-foot{padding:8px 14px;border-top:1px solid var(--line,#e5e7eb);background:var(--panel,#fff)}
.inv2-edit-link{appearance:none;border:0;background:none;padding:0;color:#2563eb;font:600 .68rem/1.4 inherit;cursor:pointer;display:inline-flex;gap:6px;align-items:center}
.inv2-edit-link:hover{text-decoration:underline}
@media (max-width:560px){.inv2-edit-head{flex-wrap:wrap}.inv2-edit-plan{order:3;margin-right:44px}.inv2-switch em{display:none}}

/* Plan defaults sheet */
.inv2-plan-sheet .modal-body{display:grid;gap:8px}
.inv2-admin-switch{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid var(--line,#e5e7eb);border-radius:11px;cursor:pointer}
.inv2-admin-switch input{margin-top:3px;width:16px;height:16px;flex:0 0 16px}
.inv2-admin-switch span{display:flex;flex-direction:column;gap:2px;min-width:0}
.inv2-admin-switch strong{font-size:.8rem}
.inv2-admin-switch small,.inv2-admin-muted{font-size:.72rem;color:var(--muted,#64748b)}
.inv2-admin-error{margin:6px 0 0;color:#dc2626;font-size:.76rem}
.inv2-admin-error:empty{display:none}

/* ===== Phase 3: products, stock, settings, dialogs (2026-11-10) ============================== */
.inv2-app .inv2-loading{display:flex;align-items:center;gap:10px;justify-content:center;padding:40px;color:var(--inv2-muted)}
.inv2-app .inv2-alert{display:flex;gap:9px;align-items:center;padding:11px 14px;border-radius:10px;margin-bottom:14px;font-size:.86rem}
.inv2-app .inv2-alert-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.inv2-app .inv2-note{margin:6px 0 0;color:var(--inv2-muted);font-size:.78rem;line-height:1.45}
.inv2-app .inv2-link{appearance:none;border:0;background:none;padding:0;color:var(--inv2-blue-2);font:inherit;font-weight:600;text-decoration:underline;cursor:pointer}
.inv2-head-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.inv2-head-row h1{margin:0}
.inv2-section-head h1 small{font-size:.78rem;font-weight:500;color:var(--inv2-muted);margin-right:4px}
.inv2-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.inv2-btn.small{height:34px;padding:0 12px;font-size:.8rem}
.inv2-btn{padding:0 16px}
.inv2-btn.danger{background:#dc2626;border-color:#dc2626;color:#fff}
.inv2-btn.danger-ghost{color:#b91c1c;border-color:#fecaca}
.inv2-btn.busy{opacity:.7;pointer-events:none}
.inv2-btn.busy::after{content:"";width:13px;height:13px;border-radius:50%;border:2px solid currentColor;border-left-color:transparent;animation:inv2spin .7s linear infinite}
@keyframes inv2spin{to{transform:rotate(360deg)}}
.inv2-icon-btn.small{width:32px;height:32px;flex-basis:32px;font-size:.8rem}

/* inputs */
.inv2-input{width:100%;min-width:0;height:40px;padding:0 11px;border:1px solid var(--inv2-line);border-radius:9px;background:var(--inv2-surface);color:var(--inv2-text);font:inherit;font-size:.88rem}
textarea.inv2-input{height:auto;padding:9px 11px;line-height:1.45;resize:vertical}
.inv2-input:focus{outline:0;border-color:var(--inv2-blue-2);box-shadow:0 0 0 3px color-mix(in srgb,var(--inv2-blue-2) 16%,transparent)}
.inv2-input:disabled{background:var(--inv2-bg);color:var(--inv2-muted)}
.inv2-input.mono,.inv2-app .mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8rem}
.inv2-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
.inv2-form-grid .wide{grid-column:1/-1}
.inv2-field{display:flex;flex-direction:column;gap:5px;font-size:.78rem;font-weight:600;color:var(--inv2-text);min-width:0}
.inv2-field small{font-weight:400;color:var(--inv2-muted);font-size:.72rem}
.inv2-field.grow{flex:1}
.inv2-field[hidden],.inv2-app [hidden]{display:none !important}
.inv2-check{display:flex;align-items:center;gap:8px;font-size:.82rem;cursor:pointer}
.inv2-check input{width:16px;height:16px}
.inv2-input-group{display:flex;gap:6px}
.inv2-form-error{margin:0;color:#dc2626;font-size:.82rem;font-weight:500}
.inv2-form-error:empty{display:none}
.inv2-form-actions{display:flex;justify-content:flex-end;gap:8px}

/* toolbar, segmented, chips, badges */
.inv2-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.inv2-toolbar > select.inv2-input{width:auto;min-width:170px}
.inv2-search-inline{flex:1;min-width:220px;background:var(--inv2-surface)}
.inv2-seg-lg{display:inline-flex;padding:3px;border-radius:10px;background:color-mix(in srgb,var(--inv2-muted) 12%,var(--inv2-surface));gap:2px}
.inv2-seg-lg button{appearance:none;border:0;background:transparent;color:var(--inv2-muted);font:600 .8rem/1 inherit;padding:9px 13px;border-radius:8px;cursor:pointer}
.inv2-seg-lg button[aria-selected="true"]{background:var(--inv2-surface);color:var(--inv2-blue);box-shadow:0 1px 3px rgba(15,23,42,.14)}
.inv2-chips{display:flex;flex-wrap:wrap;gap:6px}
.inv2-chip{display:inline-flex;gap:6px;align-items:baseline;padding:5px 10px;border-radius:999px;background:var(--inv2-bg);border:1px solid var(--inv2-line);font-size:.78rem;font-weight:600}
.inv2-chip small{font-weight:400;color:var(--inv2-muted)}
.inv2-badge{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;font-size:.72rem;font-weight:600;white-space:nowrap;margin:2px 0 2px 4px}
.inv2-badge.ok{background:#dcfce7;color:#166534}.inv2-badge.warn{background:#fef3c7;color:#92400e}.inv2-badge.bad{background:#fee2e2;color:#991b1b}
.inv2-badge.muted{background:var(--inv2-bg);color:var(--inv2-muted);border:1px solid var(--inv2-line)}
html[data-triplem-theme-mode="dark"] .inv2-badge.ok{background:#14532d;color:#bbf7d0}
html[data-triplem-theme-mode="dark"] .inv2-badge.warn{background:#713f12;color:#fde68a}
html[data-triplem-theme-mode="dark"] .inv2-badge.bad{background:#7f1d1d;color:#fecaca}

/* icons */
.inv2-ico{display:inline-block;width:20px;height:20px;flex:0 0 auto;background-color:currentColor;
  -webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.inv2-ico.md{width:22px;height:22px}.inv2-ico.lg{width:28px;height:28px}.inv2-ico.xl{width:34px;height:34px}
.inv2-prod{display:flex;align-items:center;gap:11px;min-width:0}
.inv2-ico-tile{width:40px;height:40px;flex:0 0 40px;border-radius:10px;display:grid;place-items:center;color:var(--inv2-blue-2);background:color-mix(in srgb,var(--inv2-blue-2) 10%,var(--inv2-surface))}
.inv2-prod > .inv2-ico-tile{display:grid}
.inv2-prod > span:not(.inv2-ico-tile){display:flex;flex-direction:column;min-width:0}
.inv2-prod strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv2-prod small{color:var(--inv2-muted);font-size:.74rem}
.inv2-icon-tools{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:10px;margin-bottom:12px}
.inv2-icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:8px;max-height:52vh;overflow:auto;padding:2px}
.inv2-icon-cell{appearance:none;aspect-ratio:1;border:1px solid var(--inv2-line);border-radius:12px;background:var(--inv2-surface);color:var(--inv2-text);display:grid;place-items:center;cursor:pointer}
.inv2-icon-cell .inv2-ico{width:26px;height:26px}
.inv2-icon-cell:hover{border-color:var(--inv2-blue-2);color:var(--inv2-blue-2)}
.inv2-icon-cell.active{border-color:var(--inv2-blue-2);background:color-mix(in srgb,var(--inv2-blue-2) 12%,var(--inv2-surface));color:var(--inv2-blue-2);box-shadow:0 0 0 2px color-mix(in srgb,var(--inv2-blue-2) 30%,transparent)}
.inv2-icon-pick{display:flex;align-items:center;gap:12px}
.inv2-icon-pick [data-preview]{width:52px;height:52px;border-radius:12px;display:grid;place-items:center;color:var(--inv2-blue-2);background:color-mix(in srgb,var(--inv2-blue-2) 10%,var(--inv2-surface))}
.inv2-name-row{display:flex;flex-direction:row;align-items:flex-end;gap:12px}
.inv2-icon-tile{appearance:none;width:74px;height:74px;flex:0 0 74px;border-radius:14px;border:1px dashed color-mix(in srgb,var(--inv2-blue-2) 45%,var(--inv2-line));background:color-mix(in srgb,var(--inv2-blue-2) 7%,var(--inv2-surface));color:var(--inv2-blue-2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer}
.inv2-icon-tile small{font-size:.66rem;color:var(--inv2-muted);font-weight:600}

/* tables */
.inv2-table-card{padding:6px}
.inv2-table{display:flex;flex-direction:column}
.inv2-tr{appearance:none;display:grid;grid-template-columns:minmax(0,2.4fr) minmax(0,1.3fr) minmax(0,1fr) minmax(0,.9fr) minmax(0,.9fr) minmax(0,1.2fr);gap:12px;align-items:center;
  padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--inv2-text);font:inherit;text-align:right;width:100%}
button.inv2-tr{cursor:pointer}
button.inv2-tr:hover,div.inv2-tr:not(.inv2-th):hover{background:var(--inv2-bg)}
.inv2-th{font-size:.74rem;font-weight:600;color:var(--inv2-muted);background:var(--inv2-bg);text-transform:none}
.inv2-th small{font-weight:400}
.inv2-tr > span{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.inv2-tr > span.inv2-prod{flex-direction:row;align-items:center}
.inv2-tr > span.inv2-prod > span:not(.inv2-ico-tile){display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.inv2-tr > span > small{color:var(--inv2-muted);font-size:.72rem}
.inv2-tr .num{text-align:left;align-items:flex-end;font-variant-numeric:tabular-nums}
.inv2-tr code{font-size:.78rem}
.inv2-table-stock .inv2-tr{grid-template-columns:minmax(0,2.6fr) minmax(0,.9fr) minmax(0,.7fr) minmax(0,1fr) minmax(0,1fr) 84px}
.inv2-table-history .inv2-tr{grid-template-columns:minmax(0,1.2fr) minmax(0,1.3fr) minmax(0,1fr) 60px 60px 70px minmax(0,1.3fr);font-size:.82rem}
.inv2-table-history .in{color:#15803d}.inv2-table-history .out{color:#b91c1c}
.inv2-row-actions{flex-direction:row !important;gap:6px;justify-content:flex-end}
.inv2-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 6px 4px;color:var(--inv2-muted);font-size:.8rem}
.inv2-pager span{margin-left:auto}
.inv2-summary-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}
.inv2-strip-item{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:12px 14px;border-radius:12px;background:var(--inv2-surface);border:1px solid var(--inv2-line)}
.inv2-strip-item i{grid-row:span 2;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--inv2-bg);color:var(--inv2-blue-2)}
.inv2-strip-item span{font-size:.74rem;color:var(--inv2-muted)}
.inv2-strip-item strong{font-size:1.05rem;font-variant-numeric:tabular-nums}
.inv2-strip-item.warn i{color:#d97706;background:#fef3c7}.inv2-strip-item.bad i{color:#dc2626;background:#fee2e2}
.inv2-empty.small{padding:18px}

/* menus, suggestions */
.inv2-more{position:relative}
.inv2-menu-pop{position:absolute;left:0;top:calc(100% + 6px);z-index:5;min-width:200px;padding:6px;border-radius:12px;background:var(--inv2-surface);border:1px solid var(--inv2-line);box-shadow:0 12px 30px rgba(15,23,42,.16)}
.inv2-menu-pop button{appearance:none;width:100%;display:flex;gap:10px;align-items:center;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:var(--inv2-text);font:inherit;font-size:.85rem;cursor:pointer;text-align:right}
.inv2-menu-pop button:hover{background:var(--inv2-bg)}
.inv2-scan-line{margin:14px 0 6px}
.inv2-suggest{border:1px solid var(--inv2-line);border-radius:12px;background:var(--inv2-surface);box-shadow:0 10px 24px rgba(15,23,42,.1);padding:6px;margin-bottom:10px}
.inv2-suggest button{appearance:none;width:100%;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--inv2-text);font:inherit;text-align:right;cursor:pointer}
.inv2-suggest button:hover{background:var(--inv2-bg)}
.inv2-suggest small{color:var(--inv2-muted)}

/* dialog */
.inv2-dialog-wrap{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:20px}
.inv2-dialog-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.45)}
.inv2-dialog{position:relative;display:flex;flex-direction:column;width:min(560px,100%);max-height:calc(100dvh - 40px);border-radius:16px;background:var(--inv2-surface);color:var(--inv2-text);box-shadow:0 24px 60px rgba(15,23,42,.3);overflow:hidden}
.inv2-dialog.wide{width:min(1040px,100%)}
.inv2-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 18px;border-bottom:1px solid var(--inv2-line)}
.inv2-dialog-head h2{margin:0;font-size:1.05rem}
.inv2-dialog-head p{margin:3px 0 0;color:var(--inv2-muted);font-size:.8rem}
.inv2-dialog-body{padding:16px 18px;overflow:auto;flex:1}
.inv2-dialog > .inv2-form-error{padding:0 18px 8px}
.inv2-dialog-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--inv2-line);background:var(--inv2-bg)}
.inv2-dialog-foot .inv2-btn{height:40px}

/* product editor */
.inv2-editor{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:18px;align-items:start}
.inv2-editor:not(:has(.inv2-editor-side)){grid-template-columns:minmax(0,1fr)}
.inv2-form-section{padding:14px 0;border-bottom:1px solid var(--inv2-line)}
.inv2-form-section:first-child{padding-top:0}
.inv2-form-section:last-child{border-bottom:0}
.inv2-form-section h3{margin:0 0 10px;font-size:.92rem}
.inv2-form-section h3 small{font-weight:400;color:var(--inv2-muted);font-size:.74rem;margin-right:4px}
details.inv2-form-section > summary{list-style:none;cursor:pointer}
details.inv2-form-section > summary h3{display:inline-flex;align-items:center;gap:6px}
details.inv2-form-section > summary h3::before{content:"\25B8";color:var(--inv2-muted);transition:transform .15s}
details[open].inv2-form-section > summary h3::before{transform:rotate(90deg)}
.inv2-form-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.inv2-form-section-head h3{margin:0}
.inv2-variant{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 12px;align-items:end;padding:12px;margin-bottom:10px;border:1px solid var(--inv2-line);border-radius:12px;background:var(--inv2-bg);position:relative}
.inv2-field-barcode{grid-column:span 2}
.inv2-variant-remove{position:absolute;top:8px;left:8px}
.inv2-variant:has(.inv2-variant-remove){padding-left:48px}
.inv2-pack{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end;margin-bottom:8px}
.inv2-editor-side{position:sticky;top:0;padding:14px;border-radius:12px;background:var(--inv2-bg);border:1px solid var(--inv2-line);display:flex;flex-direction:column;gap:10px}
.inv2-editor-side h3{margin:0;font-size:.9rem}
.inv2-stock-mini{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.inv2-stock-mini li{display:grid;grid-template-columns:1fr auto;gap:2px 8px;font-size:.82rem}
.inv2-stock-mini small{grid-column:1/-1;color:var(--inv2-muted)}

/* stock operation lines */
.inv2-op-lines{display:flex;flex-direction:column;gap:8px}
.inv2-op-line{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,2fr) auto;gap:12px;align-items:end;padding:10px 12px;border:1px solid var(--inv2-line);border-radius:12px}
.inv2-op-fields{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}
.inv2-op-fields .inv2-field{min-width:110px;flex:1}
.inv2-serial-pick{border:1px solid var(--inv2-line);border-radius:10px;padding:8px 10px;display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;max-height:140px;overflow:auto;flex:1}
.inv2-serial-pick legend{font-size:.74rem;font-weight:600;padding:0 4px}
.inv2-serial-pick label{display:flex;gap:6px;align-items:center;font-size:.8rem}

/* settings */
.inv2-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.inv2-settings-grid > section:first-child{grid-row:span 2}
.inv2-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.inv2-list li{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;padding:8px 10px;border-radius:10px;border:1px solid var(--inv2-line)}
.inv2-list li.muted{opacity:.6}
.inv2-list li div{display:flex;flex-direction:column;min-width:0}
.inv2-list li small{color:var(--inv2-muted);font-size:.74rem}
.inv2-list-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--inv2-blue-2);background:color-mix(in srgb,var(--inv2-blue-2) 10%,var(--inv2-surface))}

/* setup */
.inv2-setup{max-width:760px;margin:10px auto}
.inv2-setup-hero{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px}
.inv2-setup-hero h1{margin:0;font-size:1.25rem}
.inv2-setup-hero p{margin:4px 0 0;color:var(--inv2-muted);font-size:.86rem}
.inv2-setup-badge{width:48px;height:48px;flex:0 0 48px;border-radius:14px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#1e40af,#2563eb 60%,#38bdf8);font-size:1.2rem}

@media (max-width:1100px){
  .inv2-summary-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .inv2-editor{grid-template-columns:minmax(0,1fr)}
  .inv2-editor-side{position:static}
}
@media (max-width:900px){
  /* Rows become two-line cards: name and the key figure on top, status and actions below. */
  .inv2-tr,.inv2-table-stock .inv2-tr{grid-template-columns:minmax(0,1fr) auto;row-gap:6px;padding:12px}
  .inv2-table:not(.inv2-table-history) .inv2-tr:not(.inv2-th){border-bottom:1px solid var(--inv2-line);border-radius:0}
  .inv2-table:not(.inv2-table-history) .inv2-tr:not(.inv2-th):last-child{border-bottom:0}
  .inv2-tr > span:nth-child(n+2){display:none}
  .inv2-tr > span:nth-child(1){grid-area:1/1}
  /* products: price top right, stock bottom right, status under the name */
  .inv2-table:not(.inv2-table-stock):not(.inv2-table-history) .inv2-tr > span:nth-child(4){display:flex;grid-area:1/2}
  .inv2-table:not(.inv2-table-stock):not(.inv2-table-history) .inv2-tr > span:nth-child(5){display:flex;grid-area:2/2;flex-direction:row;gap:4px;align-items:baseline}
  .inv2-table:not(.inv2-table-stock):not(.inv2-table-history) .inv2-tr > span:nth-child(6){display:flex;grid-area:2/1;flex-direction:row;flex-wrap:wrap;padding-right:51px}
  /* stock: on hand top right, status and actions below */
  .inv2-table-stock .inv2-tr > span:nth-child(2){display:flex;grid-area:1/2;flex-direction:row;gap:4px;align-items:baseline}
  .inv2-table-stock .inv2-tr > span:nth-child(5){display:flex;grid-area:2/1;flex-direction:row;padding-right:51px;align-self:center}
  .inv2-table-stock .inv2-tr > span:nth-child(6){display:flex;grid-area:2/2}
  .inv2-table-history .inv2-tr{grid-template-columns:1fr auto}
  .inv2-table-history .inv2-tr > span:nth-child(2){display:flex;grid-area:1/1}
  .inv2-table-history .inv2-tr > span:nth-child(1){grid-area:2/1;font-size:.74rem;color:var(--inv2-muted)}
  .inv2-table-history .inv2-tr > span:nth-child(6){display:flex;grid-area:1/2}
  .inv2-table-history .inv2-tr > span:nth-child(4),.inv2-table-history .inv2-tr > span:nth-child(5){display:flex;grid-area:2/2;font-weight:600}
  .inv2-table-history .inv2-tr > span.in:not(:empty)::before{content:"+"}
  .inv2-table-history .inv2-tr > span.out:not(:empty)::before{content:"\2212"}
  .inv2-th{display:none}
  .inv2-settings-grid{grid-template-columns:minmax(0,1fr)}
  .inv2-settings-grid > section:first-child{grid-row:auto}
  .inv2-op-line{grid-template-columns:minmax(0,1fr) auto}
  .inv2-op-fields{grid-column:1/-1;grid-row:2}
}
@media (max-width:560px){
  .inv2-form-grid{grid-template-columns:minmax(0,1fr)}
  .inv2-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inv2-dialog-wrap{padding:0;place-items:end stretch}
  .inv2-dialog,.inv2-dialog.wide{width:100%;max-height:94dvh;border-radius:16px 16px 0 0}
  .inv2-icon-tools{grid-template-columns:minmax(0,1fr)}
  .inv2-field-barcode{grid-column:auto}
  .inv2-toolbar > select.inv2-input{width:100%}
  .inv2-head-row .inv2-actions{width:100%}
  .inv2-head-row .inv2-actions .inv2-btn{flex:1}
}

/* ===== Phase 4: dashboard, tablet rail, phone tab bar, dark mode, photos (2026-11-10) ========= */
html[data-triplem-theme-mode="dark"] .inv2-app{--inv2-blue:#3b82f6;--inv2-blue-2:#3b82f6;--inv2-accent-text:#93c5fd}
.inv2-app{--inv2-accent-text:#1d4ed8;--inv2-green:#059669;--inv2-orange:#ea580c;--inv2-red:#dc2626}
html[data-triplem-theme-mode="dark"] .inv2-app{--inv2-green:#34d399;--inv2-orange:#fb923c;--inv2-red:#f87171}
html[data-triplem-theme-mode="dark"] .inv2-seg-lg button[aria-selected="true"]{background:color-mix(in srgb,var(--inv2-blue-2) 22%,var(--inv2-surface));color:#e0ecff;box-shadow:none}
html[data-triplem-theme-mode="dark"] .inv2-app .inv2-alert-error{background:#3b1219;color:#fecaca;border-color:#7f1d1d}
html[data-triplem-theme-mode="dark"] .inv2-offline{background:#422006;color:#fde68a}
html[data-triplem-theme-mode="dark"] .inv2-table-history .in{color:#4ade80}
html[data-triplem-theme-mode="dark"] .inv2-table-history .out{color:#f87171}
html[data-triplem-theme-mode="dark"] .inv2-strip-item.warn i{color:#fbbf24;background:#422006}
html[data-triplem-theme-mode="dark"] .inv2-strip-item.bad i{color:#f87171;background:#3b1219}
html[data-triplem-theme-mode="dark"] .inv2-dialog-backdrop{background:rgba(2,6,23,.65)}
html[data-triplem-theme-mode="dark"] .inv2-btn.danger-ghost{color:#fca5a5;border-color:#7f1d1d}
.inv2-app input[type="date"]{color-scheme:light}
html[data-triplem-theme-mode="dark"] .inv2-app input[type="date"],html[data-triplem-theme-mode="dark"] .inv2-app select{color-scheme:dark}
.inv2-badge.info{background:#dbeafe;color:#1e40af}
html[data-triplem-theme-mode="dark"] .inv2-badge.info{background:#172554;color:#bfdbfe}
.inv2-btn:not(:disabled):hover{border-color:color-mix(in srgb,var(--inv2-blue-2) 40%,var(--inv2-line))}
.inv2-btn.primary:not(:disabled):hover{background:color-mix(in srgb,var(--inv2-blue-2) 88%,#000)}
.inv2-btn,.inv2-icon-btn,.inv2-nav-item,.inv2-kpi,.inv2-quick button{-webkit-tap-highlight-color:transparent}

/* dashboard */
.inv2-dash-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.inv2-dash-head h1{margin:0;font-size:1.4rem;font-weight:700;letter-spacing:-.01em}
.inv2-dash-head p{margin:4px 0 0;color:var(--inv2-muted);font-size:.84rem}
.inv2-stale{color:#b45309;font-weight:600}
html[data-triplem-theme-mode="dark"] .inv2-stale{color:#fbbf24}
.inv2-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.inv2-quick button{appearance:none;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:var(--inv2-radius);border:1px solid var(--inv2-line);
  background:var(--inv2-surface);color:var(--inv2-text);font:inherit;text-align:right;cursor:pointer;box-shadow:var(--inv2-shadow);transition:border-color .12s,transform .12s}
.inv2-quick button:not(:disabled):hover{border-color:color-mix(in srgb,var(--inv2-blue-2) 45%,var(--inv2-line));transform:translateY(-1px)}
.inv2-quick button:disabled{opacity:.55;cursor:not-allowed}
.inv2-quick button > span:last-child{display:flex;flex-direction:column;min-width:0}
.inv2-quick strong{font-size:.88rem}
.inv2-quick small{font-size:.74rem;color:var(--inv2-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv2-quick-ico{width:38px;height:38px;flex:0 0 38px;border-radius:11px;display:grid;place-items:center;font-size:.95rem}
.tone-green{color:#047857;background:#d1fae5}.tone-blue{color:#1d4ed8;background:#dbeafe}.tone-violet{color:#6d28d9;background:#ede9fe}.tone-orange{color:#c2410c;background:#ffedd5}
html[data-triplem-theme-mode="dark"] .tone-green{color:#6ee7b7;background:#064e3b}
html[data-triplem-theme-mode="dark"] .tone-blue{color:#93c5fd;background:#172554}
html[data-triplem-theme-mode="dark"] .tone-violet{color:#c4b5fd;background:#2e1065}
html[data-triplem-theme-mode="dark"] .tone-orange{color:#fdba74;background:#431407}
.inv2-kpis-6{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.inv2-kpis-6 .inv2-kpi{appearance:none;font:inherit;color:inherit;text-align:right;padding:14px;gap:12px;align-items:flex-start;flex-direction:column;cursor:pointer;transition:border-color .12s,transform .12s}
.inv2-kpis-6 .inv2-kpi.is-static{cursor:default}
.inv2-kpis-6 button.inv2-kpi:hover{border-color:color-mix(in srgb,var(--inv2-blue-2) 45%,var(--inv2-line));transform:translateY(-1px)}
.inv2-kpis-6 .inv2-kpi-icon{width:38px;height:38px;flex-basis:38px;border-radius:11px;font-size:.95rem}
.inv2-kpi-text{display:flex;flex-direction:column;min-width:0;width:100%}
.inv2-kpis-6 .inv2-kpi-value{font-size:1.3rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv2-kpis-6 .inv2-kpi-hint{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv2-tone-red .inv2-kpi-icon{background:linear-gradient(135deg,#f87171,#dc2626)}
.inv2-tone-slate .inv2-kpi-icon{background:linear-gradient(135deg,#94a3b8,#64748b)}
.inv2-tone-orange .inv2-kpi-value{color:var(--inv2-orange)}.inv2-tone-red .inv2-kpi-value{color:var(--inv2-red)}
.inv2-welcome{margin-bottom:18px}
.inv2-welcome .inv2-btn{margin-top:8px}
.inv2-count{min-width:24px;height:22px;padding:0 7px;border-radius:999px;display:inline-grid;place-items:center;background:#fee2e2;color:#991b1b;font-size:.74rem;font-weight:700}
html[data-triplem-theme-mode="dark"] .inv2-count{background:#7f1d1d;color:#fecaca}
.inv2-muted{color:var(--inv2-muted);font-size:.78rem}
.inv2-legend{display:inline-flex;align-items:center;gap:6px;color:var(--inv2-muted);font-size:.76rem}
.inv2-legend i,.inv2-chart-totals i{display:inline-block;width:10px;height:10px;border-radius:3px}
.inv2-legend i.in,.inv2-chart-totals i.in{background:var(--inv2-green)}.inv2-legend i.out,.inv2-chart-totals i.out{background:var(--inv2-orange)}
.inv2-chart svg{display:block;width:100%;height:190px}
.inv2-chart .bar-in{fill:var(--inv2-green)}.inv2-chart .bar-out{fill:var(--inv2-orange)}
.inv2-chart .axis{stroke:var(--inv2-line);stroke-width:1}
.inv2-chart text{fill:var(--inv2-muted);font-size:10px}
.inv2-chart g:hover rect{opacity:.8}
.inv2-chart-totals{display:flex;gap:16px;margin-top:8px;color:var(--inv2-muted);font-size:.8rem}
.inv2-chart-totals span{display:inline-flex;align-items:center;gap:6px}
.inv2-feed,.inv2-attn,.inv2-bars{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.inv2-feed li,.inv2-attn li{display:flex;align-items:center;gap:11px;padding:9px 2px;border-bottom:1px solid var(--inv2-line)}
.inv2-feed li:last-child,.inv2-attn li:last-child{border-bottom:0}
.inv2-feed-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--inv2-muted)}
.inv2-feed-dot.in{background:var(--inv2-green)}.inv2-feed-dot.out{background:var(--inv2-orange)}.inv2-feed-dot.move{background:var(--inv2-blue-2)}
.inv2-feed-main{flex:1;min-width:0;display:flex;flex-direction:column}
.inv2-feed-main strong{font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv2-feed-main strong small{font-weight:500;color:var(--inv2-muted)}
.inv2-feed-main > small{color:var(--inv2-muted);font-size:.74rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv2-feed-side{display:flex;flex-direction:column;align-items:flex-end;flex:0 0 auto}
.inv2-feed-side strong{font-variant-numeric:tabular-nums}
.inv2-feed-side strong.in{color:var(--inv2-green)}.inv2-feed-side strong.out{color:var(--inv2-orange)}
.inv2-feed-side small{color:var(--inv2-muted);font-size:.72rem;white-space:nowrap}
.inv2-attn .inv2-badge{margin:0}
.inv2-ico-tile.sm{width:34px;height:34px;flex-basis:34px;border-radius:9px}
.inv2-ico-tile.xs{width:30px;height:30px;flex-basis:30px;border-radius:8px;font-size:.8rem}
.inv2-ico-tile.sm .inv2-ico{width:18px;height:18px}.inv2-ico-tile.xs .inv2-ico{width:16px;height:16px}
.inv2-empty-ok i{color:var(--inv2-green)}
.inv2-bars{gap:12px}
.inv2-bars li{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:12px;align-items:center}
.inv2-bars-label{display:flex;align-items:center;gap:10px;min-width:0}
.inv2-bars-label > span:last-child{display:flex;flex-direction:column;min-width:0}
.inv2-bars-label strong{font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv2-bars-label small{font-size:.72rem;color:var(--inv2-muted)}
.inv2-bars-track{height:8px;border-radius:999px;background:var(--inv2-bg);overflow:hidden}
.inv2-bars-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--inv2-blue-2),#38bdf8)}
.inv2-bars-value{font-size:.84rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.inv2-next{display:flex;gap:12px;align-items:flex-start;background:color-mix(in srgb,var(--inv2-blue-2) 7%,var(--inv2-surface))}
.inv2-next > i{color:var(--inv2-blue-2);font-size:1.1rem;margin-top:2px}
.inv2-next div{display:flex;flex-direction:column;gap:3px}
.inv2-next strong{font-size:.86rem}.inv2-next small{color:var(--inv2-muted);font-size:.78rem;line-height:1.45}

/* product photos (shared attachment control inside the editor) */
.inv2-photos .tm-att{margin:6px 0 0;width:100%}
.inv2-photos .tm-att .field-label,.inv2-photos .tm-att label:first-child{color:var(--inv2-text)}

/* phone tab bar (hidden on larger screens) */
.inv2-tabbar{display:none}
@media (max-width:1400px){ .inv2-kpis-6{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:1100px){ .inv2-quick{grid-template-columns:repeat(2,minmax(0,1fr))} }

/* tablet: icon rail; the menu button opens the full menu over the page */
@media (min-width:721px) and (max-width:1100px){
  .inv2-app,.inv2-app.inv2-collapsed{grid-template-columns:76px minmax(0,1fr)}
  .inv2-sidebar{position:relative;transform:none;width:auto;box-shadow:none;z-index:3;padding-inline:10px}
  .inv2-app:not(.inv2-menu-open) .inv2-brand-text,.inv2-app:not(.inv2-menu-open) .inv2-nav-item span,.inv2-app:not(.inv2-menu-open) .inv2-identity-text{display:none}
  .inv2-app:not(.inv2-menu-open) .inv2-nav-item{justify-content:center;padding:11px 0}
  .inv2-app:not(.inv2-menu-open) .inv2-brand,.inv2-app:not(.inv2-menu-open) .inv2-identity{justify-content:center;padding-inline:0}
  .inv2-app.inv2-menu-open .inv2-sidebar{position:fixed;inset:0 0 0 auto;width:260px;box-shadow:8px 0 24px rgba(15,23,42,.25)}
  .inv2-app.inv2-menu-open .inv2-scrim{display:block;position:fixed;inset:0;z-index:2;background:rgba(15,23,42,.4)}
  .inv2-topbar{flex-wrap:nowrap}
  .inv2-search{order:0;flex-basis:auto}
  .inv2-outlet{margin-right:0}
  .inv2-outlet-select{max-width:180px}
}

/* phone: drawer menu plus a bottom tab bar */
@media (max-width:720px){
  .inv2-tabbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:relative;z-index:1;
    padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:var(--inv2-surface);border-top:1px solid var(--inv2-line);box-shadow:0 -6px 18px rgba(15,23,42,.06)}
  .inv2-tabbar button{appearance:none;border:0;background:transparent;color:var(--inv2-muted);display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px;border-radius:10px;font:600 .66rem/1.1 inherit;cursor:pointer}
  .inv2-tabbar button i{font-size:1.05rem}
  .inv2-tabbar button.active{color:var(--inv2-blue-2);background:color-mix(in srgb,var(--inv2-blue-2) 10%,transparent)}
  .inv2-content{padding:12px 12px 18px}
  .inv2-dash-head h1{font-size:1.2rem}
  .inv2-dash-head .inv2-actions{width:auto}
  .inv2-hide-sm{display:none}
  .inv2-quick{gap:8px}
  .inv2-quick button{padding:10px;gap:9px}
  .inv2-quick-ico{width:32px;height:32px;flex-basis:32px;border-radius:9px}
  .inv2-kpis-6{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .inv2-kpis-6 .inv2-kpi{padding:12px;gap:8px}
  .inv2-kpis-6 .inv2-kpi-value{font-size:1.1rem}
  .inv2-bars li{grid-template-columns:minmax(0,1fr) auto;row-gap:6px}
  .inv2-bars-track{grid-column:1/-1;grid-row:2}
  .inv2-head-row .inv2-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .inv2-head-row .inv2-actions .inv2-btn{padding:0 6px;font-size:.78rem;height:42px;white-space:nowrap;gap:5px}
  .inv2-head-row .inv2-actions .inv2-btn i{font-size:.74rem}
  .inv2-head-row .inv2-actions .inv2-more{display:flex}
  .inv2-head-row .inv2-actions .inv2-more .inv2-btn{width:100%}
  .inv2-toolbar .inv2-seg-lg{width:100%}
  .inv2-toolbar .inv2-seg-lg button{flex:1}
  .inv2-summary-strip .inv2-strip-item{padding:10px}
  .inv2-table-card{padding:2px}
}
@media (max-width:420px){ .inv2-head-row .inv2-actions .inv2-btn i{display:none} }
@media (max-width:380px){ .inv2-quick{grid-template-columns:minmax(0,1fr)} }

/* The search and scan boxes draw their own frame; the workspace theme's input frame and focus ring
   would otherwise show a second box inside them. */
html body #inv2App.inv2-app .inv2-search input,
html.triplem-workspace-themed body #inv2App.inv2-app .inv2-search input,
html.triplem-workspace-themed body #inv2App.inv2-app .inv2-search input:focus,
html.triplem-workspace-themed body #inv2App.inv2-app .inv2-search input:focus-visible{
  border:0 !important;outline:0 !important;box-shadow:none !important;background:transparent !important;border-radius:0 !important;padding:0 !important;min-height:0 !important;height:100% !important}

/* ===== Phase 5: POS, sales, purchases, customers, suppliers, documents (2026-11-10) ========== */
.inv2-app .warn{color:#b45309}.inv2-app .ok{color:#15803d}.inv2-app .bad{color:#b91c1c}
html[data-triplem-theme-mode="dark"] .inv2-app .warn{color:#fbbf24}
html[data-triplem-theme-mode="dark"] .inv2-app .ok{color:#4ade80}
html[data-triplem-theme-mode="dark"] .inv2-app .bad{color:#f87171}
.inv2-badge.ok{color:#166534}.inv2-badge.warn{color:#92400e}.inv2-badge.bad{color:#991b1b}
html[data-triplem-theme-mode="dark"] .inv2-badge.ok{color:#bbf7d0}html[data-triplem-theme-mode="dark"] .inv2-badge.warn{color:#fde68a}html[data-triplem-theme-mode="dark"] .inv2-badge.bad{color:#fecaca}
.inv2-app .inv2-alert-warn{background:#fffbeb;color:#92400e;border:1px solid #fde68a;align-items:flex-start}
html[data-triplem-theme-mode="dark"] .inv2-app .inv2-alert-warn{background:#2a1d06;color:#fde68a;border-color:#713f12}
.inv2-pend{margin:6px 0 8px;padding-right:18px;font-size:.8rem}
.inv2-sub{margin:16px 0 8px;font-size:.88rem}
.inv2-form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.inv2-unit{display:grid;place-items:center;padding:0 10px;border:1px solid var(--inv2-line);border-radius:9px;color:var(--inv2-muted)}
.inv2-picker{text-align:right;cursor:pointer;color:var(--inv2-text)}
.inv2-seg-wrap{flex-wrap:wrap}
.inv2-strip-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.inv2-kpis-5{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:12px}
.inv2-kpis-5 .inv2-kpi{appearance:none;font:inherit;color:inherit;text-align:right;padding:14px;gap:12px;align-items:flex-start;flex-direction:column;cursor:pointer}
.inv2-kpis-5 .inv2-kpi.is-static{cursor:default}
.inv2-kpis-5 .inv2-kpi-icon{width:38px;height:38px;flex-basis:38px;border-radius:11px;font-size:.95rem}
.inv2-kpis-5 .inv2-kpi-value{font-size:1.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv2-kpis-5 .inv2-kpi-hint{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv2-chart .bar-sale{fill:var(--inv2-blue-2)}
.inv2-quick{grid-template-columns:repeat(6,minmax(0,1fr))}
.inv2-chips button.inv2-chip{cursor:pointer;color:var(--inv2-text);font:inherit;font-size:.8rem;font-weight:600}
.inv2-chips button.inv2-chip:hover{border-color:var(--inv2-blue-2)}
.inv2-count-pill:not(:empty){min-width:20px;height:18px;padding:0 6px;border-radius:999px;background:var(--inv2-blue-2);color:#fff;font-size:.7rem;display:inline-grid;place-items:center}

/* POS */
.inv2-content:has(> .inv2-pos){padding:0;overflow:hidden}
.inv2-pos{display:grid;grid-template-columns:minmax(0,1fr) 400px;height:100%;min-height:0}
.inv2-pos-left{display:flex;flex-direction:column;gap:12px;padding:18px 18px 0;min-height:0;overflow:hidden}
.inv2-pos-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.inv2-pos-head h1{margin:0;font-size:1.2rem;display:flex;align-items:center;gap:9px}
.inv2-pos-head h1 i{color:var(--inv2-blue-2)}
.inv2-pos-head h1 small{font-size:.78rem;font-weight:500;color:var(--inv2-muted)}
.inv2-pos-scan{height:48px;flex:0 0 auto;font-size:1rem}
.inv2-chiprow{display:flex;gap:6px;overflow-x:auto;flex:0 0 auto;padding-bottom:2px;scrollbar-width:thin}
.inv2-chiprow button{appearance:none;flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--inv2-line);background:var(--inv2-surface);color:var(--inv2-text);font:600 .8rem/1 inherit;cursor:pointer}
.inv2-chiprow button .inv2-ico{width:16px;height:16px;color:var(--inv2-blue-2)}
.inv2-chiprow button[aria-selected="true"]{background:var(--inv2-blue-2);border-color:var(--inv2-blue-2);color:#fff}
.inv2-chiprow button[aria-selected="true"] .inv2-ico{color:#fff}
.inv2-pos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;overflow-y:auto;min-height:0;padding-bottom:18px;align-content:start}
.inv2-pos-item{appearance:none;display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:12px;border:1px solid var(--inv2-line);background:var(--inv2-surface);color:var(--inv2-text);font:inherit;text-align:right;cursor:pointer;box-shadow:var(--inv2-shadow);transition:border-color .12s,transform .08s}
.inv2-pos-item:hover{border-color:var(--inv2-blue-2)}
.inv2-pos-item:active{transform:scale(.98)}
.inv2-pos-item.is-out{opacity:.65}
.inv2-pos-item-name{display:flex;flex-direction:column;font-weight:600;font-size:.84rem;line-height:1.25;min-height:2.5em}
.inv2-pos-item-name small{font-weight:500;color:var(--inv2-muted);font-size:.74rem}
.inv2-pos-item-foot{display:flex;justify-content:space-between;align-items:baseline;gap:6px;margin-top:auto}
.inv2-pos-item-foot strong{font-size:.92rem;color:var(--inv2-blue-2)}
.inv2-pos-item-foot small{font-size:.72rem;color:var(--inv2-muted)}
.inv2-pos-cart{display:flex;flex-direction:column;min-height:0;background:var(--inv2-surface);border-right:1px solid var(--inv2-line)}
.inv2-pos-cart.flash .inv2-cart-tots .grand{animation:inv2flash .5s ease}
@keyframes inv2flash{from{background:color-mix(in srgb,var(--inv2-blue-2) 18%,transparent)}to{background:transparent}}
.inv2-cart-head{display:flex;gap:8px;align-items:center;padding:14px 14px 10px;border-bottom:1px solid var(--inv2-line)}
.inv2-cust{appearance:none;flex:1;display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;border:1px dashed color-mix(in srgb,var(--inv2-blue-2) 40%,var(--inv2-line));background:color-mix(in srgb,var(--inv2-blue-2) 5%,var(--inv2-surface));color:var(--inv2-text);font:inherit;text-align:right;cursor:pointer;min-width:0}
.inv2-cust > span:last-child{display:flex;flex-direction:column;min-width:0}
.inv2-cust strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.88rem}
.inv2-cust small{color:var(--inv2-muted);font-size:.74rem}
.inv2-cust-ico{width:34px;height:34px;flex:0 0 34px;border-radius:50%;display:grid;place-items:center;background:var(--inv2-blue-2);color:#fff}
.inv2-cart-note{margin:8px 14px 0;padding:7px 10px;border-radius:9px;background:var(--inv2-bg);font-size:.78rem;color:var(--inv2-muted);display:flex;gap:7px;align-items:center}
.inv2-cart-lines{flex:1;min-height:0;overflow-y:auto;padding:6px 8px}
.inv2-cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:8px 6px;border-bottom:1px solid var(--inv2-line)}
.inv2-cart-line.is-short{background:color-mix(in srgb,#f59e0b 8%,transparent);border-radius:8px}
.inv2-cart-main{appearance:none;border:0;background:none;padding:0;color:var(--inv2-text);font:inherit;text-align:right;display:flex;flex-direction:column;gap:1px;min-width:0;cursor:pointer}
.inv2-cart-main strong{font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv2-cart-main strong small{font-weight:500;color:var(--inv2-muted)}
.inv2-cart-main small{font-size:.72rem;color:var(--inv2-muted);overflow:hidden;text-overflow:ellipsis}
.inv2-qty{display:inline-flex;align-items:center;border:1px solid var(--inv2-line);border-radius:9px;overflow:hidden}
.inv2-qty button{appearance:none;width:30px;height:30px;border:0;background:var(--inv2-bg);color:var(--inv2-text);font:700 1rem/1 inherit;cursor:pointer}
.inv2-qty span{min-width:32px;text-align:center;font-weight:600;font-variant-numeric:tabular-nums;font-size:.86rem}
.inv2-cart-amt{font-variant-numeric:tabular-nums;font-size:.88rem;min-width:72px;text-align:left}
.inv2-cart-tots{padding:10px 16px;border-top:1px solid var(--inv2-line);display:flex;flex-direction:column;gap:3px;font-size:.86rem}
.inv2-cart-tots div{display:flex;justify-content:space-between}
.inv2-cart-tots span:last-child{font-variant-numeric:tabular-nums}
.inv2-cart-tots .grand{font-size:1.25rem;font-weight:700;padding-top:5px;margin-top:3px;border-top:1px dashed var(--inv2-line);border-radius:6px}
.inv2-cart-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 14px 10px}
.inv2-cart-actions .inv2-btn,.inv2-cart-actions .inv2-more .inv2-btn{height:42px;width:100%;padding:0 8px;font-size:.82rem}
.inv2-menu-up{top:auto;bottom:calc(100% + 6px)}
.inv2-pay{margin:0 14px 14px;height:56px;font-size:1.05rem}
.inv2-pos-cartbar{display:none}
.inv2-cart-back{display:none !important}
/* payment */
.inv2-pay-total{display:flex;justify-content:space-between;align-items:baseline;padding:14px 16px;border-radius:12px;background:color-mix(in srgb,var(--inv2-blue-2) 8%,var(--inv2-surface));margin-bottom:12px}
.inv2-pay-total strong{font-size:1.6rem;color:var(--inv2-blue-2);font-variant-numeric:tabular-nums}
.inv2-pay-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
.inv2-pay-methods button{appearance:none;height:44px;border-radius:10px;border:1px solid var(--inv2-line);background:var(--inv2-surface);color:var(--inv2-text);font:600 .84rem/1 inherit;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}
.inv2-pay-methods button:hover{border-color:var(--inv2-blue-2);color:var(--inv2-blue-2)}
.inv2-pay-row{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1.2fr) auto;gap:8px;align-items:center;margin-bottom:8px}
.inv2-pay-row:not(:has([data-ref])){grid-template-columns:auto minmax(0,1fr) auto}
.inv2-pay-row .inv2-input[data-amt]{font-size:1.05rem;font-weight:600;text-align:left}
.inv2-pay-sum{display:flex;flex-direction:column;gap:4px;margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--inv2-bg)}
.inv2-pay-sum > div{display:flex;justify-content:space-between;align-items:baseline}
.inv2-pay-sum .grand{font-weight:700;font-size:1.05rem}
.inv2-pay-sum:empty{display:none}
.inv2-done{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding:6px 0}
.inv2-done-ico{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#15803d;font-size:1.5rem}
html[data-triplem-theme-mode="dark"] .inv2-done-ico{background:#14532d;color:#bbf7d0}
.inv2-done-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;width:100%}
.inv2-done-grid div{padding:10px;border-radius:10px;background:var(--inv2-bg);display:flex;flex-direction:column;gap:2px}
.inv2-done-grid span{font-size:.74rem;color:var(--inv2-muted)}.inv2-done-grid strong{font-size:1.1rem}
.inv2-done-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
/* pickers */
.inv2-pick-list{display:flex;flex-direction:column;gap:4px;max-height:46vh;overflow-y:auto;margin:10px 0}
.inv2-pick-list > button{appearance:none;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;border:1px solid var(--inv2-line);background:var(--inv2-surface);color:var(--inv2-text);font:inherit;text-align:right;cursor:pointer}
.inv2-pick-list > button:hover{border-color:var(--inv2-blue-2)}
.inv2-pick-list span{display:flex;flex-direction:column;min-width:0}
.inv2-pick-list small{color:var(--inv2-muted);font-size:.74rem}
.inv2-pick-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:10px;align-items:center;padding:10px 12px;border-radius:10px;border:1px solid var(--inv2-line)}
.inv2-quick-add{margin-top:6px;border-top:1px solid var(--inv2-line);padding-top:10px}
.inv2-quick-add summary{cursor:pointer;font-weight:600;font-size:.86rem;color:var(--inv2-blue-2);margin-bottom:10px}
.inv2-serial-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px;margin-top:12px;max-height:44vh;overflow-y:auto}
.inv2-serial-list label{padding:8px 10px;border:1px solid var(--inv2-line);border-radius:9px}
/* documents */
.inv2-doc-top{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.inv2-doc-cust{color:var(--inv2-muted);font-size:.86rem}
.inv2-table-lines .inv2-tr{grid-template-columns:minmax(0,2.6fr) minmax(0,.7fr) minmax(0,.9fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,1fr);font-size:.86rem}
.inv2-doc-foot{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;margin-top:14px}
.inv2-doc-pays{display:flex;flex-direction:column;gap:6px;font-size:.84rem}
.inv2-doc-pays > div{display:flex;justify-content:space-between;gap:10px;padding:7px 10px;border-radius:9px;background:var(--inv2-bg)}
.inv2-doc-pays small{color:var(--inv2-muted)}
.inv2-doc-tots{display:flex;flex-direction:column;gap:4px;font-size:.88rem}
.inv2-doc-tots > div{display:flex;justify-content:space-between;font-variant-numeric:tabular-nums}
.inv2-doc-tots .grand{font-size:1.1rem;font-weight:700;border-top:2px solid var(--inv2-text);padding-top:6px;margin-top:3px}
.inv2-table-sales .inv2-tr{grid-template-columns:minmax(0,1.6fr) minmax(0,1.3fr) minmax(0,1.1fr) minmax(0,.9fr) minmax(0,.9fr) minmax(0,1.1fr)}
.inv2-table-party .inv2-tr{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,.7fr) minmax(0,.9fr) minmax(0,1fr)}
.inv2-table-docs .inv2-tr{grid-template-columns:minmax(0,1.6fr) minmax(0,1.4fr) minmax(0,.9fr) minmax(0,.9fr) 84px}
.inv2-table-aging .inv2-tr{grid-template-columns:minmax(0,2fr) repeat(5,minmax(0,.8fr)) minmax(0,1fr)}
.inv2-party-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center}
.inv2-party-bal{display:flex;flex-direction:column;padding:12px 16px;border-radius:12px;background:var(--inv2-bg);min-width:170px}
.inv2-party-bal span,.inv2-party-bal small{font-size:.74rem;color:var(--inv2-muted)}
.inv2-party-bal strong{font-size:1.35rem;font-variant-numeric:tabular-nums}
.inv2-party-facts{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:.82rem;color:var(--inv2-muted)}
.inv2-mini-table{display:flex;flex-direction:column;border:1px solid var(--inv2-line);border-radius:10px;overflow:hidden}
.inv2-mini-table > button{appearance:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,.8fr) minmax(0,.8fr);gap:10px;padding:9px 12px;border:0;border-bottom:1px solid var(--inv2-line);background:var(--inv2-surface);color:var(--inv2-text);font:inherit;font-size:.84rem;text-align:right;cursor:pointer}
.inv2-mini-table > button:last-child{border-bottom:0}
.inv2-mini-table > button:hover{background:var(--inv2-bg)}
.inv2-mini-table .num{text-align:left;font-variant-numeric:tabular-nums}
.inv2-alloc{display:flex;flex-direction:column;gap:4px}
.inv2-alloc-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:8px 10px;border:1px solid var(--inv2-line);border-radius:9px;font-size:.84rem;cursor:pointer}
.inv2-ret-lines{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.inv2-ret-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--inv2-line);border-radius:12px}
.inv2-switch-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid var(--inv2-line);border-radius:12px;margin:10px 0;cursor:pointer}
.inv2-switch-row > span:first-child{display:flex;flex-direction:column}
.inv2-switch-row small{color:var(--inv2-muted);font-size:.76rem}
.inv2-map summary{cursor:pointer;font-weight:600;margin:6px 0 10px}

@media (max-width:1400px){ .inv2-kpis-5{grid-template-columns:repeat(3,minmax(0,1fr))} .inv2-quick{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:1100px){
  .inv2-pos{grid-template-columns:minmax(0,1fr) 340px}
  .inv2-doc-foot{grid-template-columns:minmax(0,1fr)}
  .inv2-form-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .inv2-table-sales .inv2-tr,.inv2-table-party .inv2-tr,.inv2-table-docs .inv2-tr,.inv2-table-aging .inv2-tr,.inv2-table-lines .inv2-tr{grid-template-columns:minmax(0,1fr) auto}
  .inv2-table-lines .inv2-tr > span:nth-child(4){display:none !important}
  .inv2-table-lines .inv2-tr > span:nth-child(6){display:flex !important;grid-area:1/2}
  .inv2-table-lines .inv2-tr > span:nth-child(2){display:flex !important;grid-area:2/2;flex-direction:row;gap:4px}
  .inv2-table-lines .inv2-tr > span:nth-child(3){display:flex !important;grid-area:2/1;padding-right:45px;color:var(--inv2-muted);font-size:.8rem}
  .inv2-table-party .inv2-tr > span:nth-child(4){display:none !important}
  .inv2-table-party .inv2-tr > span:nth-child(5){display:flex !important;grid-area:1/2}
  .inv2-table-party .inv2-tr > span:nth-child(2){display:flex !important;grid-area:2/1;padding-right:45px;color:var(--inv2-muted);font-size:.8rem}
  .inv2-table-docs .inv2-tr > span:nth-child(5){display:flex !important;grid-area:2/2;flex-direction:row}
  .inv2-table-docs .inv2-tr > span:nth-child(2){display:flex !important;grid-area:2/1;padding-right:45px;color:var(--inv2-muted);font-size:.8rem}
  .inv2-table-aging .inv2-tr > span:nth-child(7){display:flex !important;grid-area:1/2}
  .inv2-table-aging .inv2-tr > span:nth-child(4),.inv2-table-aging .inv2-tr > span:nth-child(6){display:none !important}
  .inv2-table-sales .inv2-tr > span:nth-child(2){display:flex !important;grid-area:3/1;padding-right:45px;color:var(--inv2-muted);font-size:.8rem}
  .inv2-party-top{grid-template-columns:minmax(0,1fr)}
  .inv2-ret-line{grid-template-columns:minmax(0,1fr)}
  .inv2-strip-3{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:720px){
  .inv2-pos{grid-template-columns:minmax(0,1fr);position:relative}
  .inv2-pos-left{padding:12px 12px 0}
  .inv2-pos-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:72px}
  .inv2-pos-cart{position:absolute;inset:0;z-index:3;border-right:0;transform:translateY(102%);transition:transform .2s ease}
  .inv2-pos.show-cart .inv2-pos-cart{transform:none}
  .inv2-pos-cartbar{display:flex;justify-content:space-between;align-items:center;position:absolute;right:12px;left:12px;bottom:10px;z-index:4;height:50px;padding:0 16px;border:0;border-radius:14px;background:var(--inv2-blue-2);color:#fff;font:600 .92rem/1 inherit;box-shadow:0 10px 24px rgba(37,99,235,.35);cursor:pointer}
  .inv2-pos.show-cart .inv2-pos-cartbar{display:none}
.inv2-cart-back{display:none !important}
  .inv2-cart-head{padding-top:12px}
  .inv2-cart-back{display:grid !important}
  .inv2-pos-head h1 small{display:none}
  .inv2-pay-methods{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inv2-pay-row,.inv2-pay-row:not(:has([data-ref])){grid-template-columns:auto minmax(0,1fr) auto}
  .inv2-pay-row [data-ref]{grid-column:1/-1}
  .inv2-pick-row{grid-template-columns:minmax(0,1fr) auto;row-gap:6px}
  .inv2-form-grid-3{grid-template-columns:minmax(0,1fr)}
  .inv2-strip-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .inv2-strip-3 .inv2-strip-item i{display:none}
  .inv2-strip-3 .inv2-strip-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
  .inv2-strip-3 .inv2-strip-item strong{font-size:.92rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .inv2-toolbar .inv2-search-inline{min-width:0;flex:1 1 100%}
  .inv2-kpis-5{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .inv2-quick{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inv2-mini-table > button{grid-template-columns:minmax(0,1fr) auto;row-gap:2px}
  .inv2-mini-table > button > span:nth-child(2){grid-column:1/-1;grid-row:2;color:var(--inv2-muted);font-size:.78rem}
}
@media (prefers-reduced-motion:reduce){.inv2-pos-cart{transition:none}}

/* ===== Phase 6: offline selling and sync (2026-11-10) ======================================= */
.inv2-pos-offline{display:flex;gap:9px;align-items:center;padding:9px 12px;border-radius:10px;background:#fef3c7;color:#92400e;font-size:.82rem;font-weight:600;flex:0 0 auto}
html[data-triplem-theme-mode="dark"] .inv2-pos-offline{background:#422006;color:#fde68a}
.inv2-sync-pill{appearance:none;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:999px;border:1px solid color-mix(in srgb,var(--inv2-blue-2) 35%,var(--inv2-line));background:color-mix(in srgb,var(--inv2-blue-2) 10%,var(--inv2-surface));color:var(--inv2-blue-2);font:700 .76rem/1 inherit;white-space:nowrap;cursor:pointer}
.inv2-sync-pill.is-error{border-color:#fecaca;background:#fef2f2;color:#b91c1c}
html[data-triplem-theme-mode="dark"] .inv2-sync-pill.is-error{border-color:#7f1d1d;background:#3b1219;color:#fecaca}
.inv2-sync-pill[hidden]{display:none}
.inv2-sync-list{display:flex;flex-direction:column;gap:6px}
.inv2-sync-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--inv2-line);border-radius:12px}
.inv2-sync-row > span{display:flex;flex-direction:column;min-width:0}
.inv2-sync-row small{font-size:.76rem;color:var(--inv2-muted)}
.inv2-sync-row.error{border-color:#fecaca;background:color-mix(in srgb,#ef4444 6%,var(--inv2-surface))}
.inv2-doc-off{font-size:.8rem;color:#92400e;background:#fef3c7;padding:4px 10px;border-radius:999px}
html[data-triplem-theme-mode="dark"] .inv2-doc-off{background:#422006;color:#fde68a}
.inv2-issues{border:1px solid #fde68a;background:color-mix(in srgb,#f59e0b 7%,var(--inv2-surface));border-radius:12px;padding:4px 14px 12px;margin-bottom:14px}
.inv2-issues h3{display:flex;gap:8px;align-items:center;color:#92400e}
html[data-triplem-theme-mode="dark"] .inv2-issues{border-color:#713f12}
html[data-triplem-theme-mode="dark"] .inv2-issues h3{color:#fde68a}
.inv2-issues ul{margin:0 0 10px;padding-right:18px;display:flex;flex-direction:column;gap:5px;font-size:.86rem}
.inv2-issues li.reviewed{opacity:.7}
.inv2-issues li small{display:block;color:var(--inv2-muted)}
.inv2-issues .inv2-form-actions{gap:8px}
.inv2-issues .inv2-form-actions .inv2-input{flex:1}
.inv2-offline-note{display:flex;gap:8px;align-items:flex-start;padding:9px 12px;border-radius:10px;background:var(--inv2-bg);text-align:right}
@media (max-width:720px){ .inv2-sync-pill{order:9} .inv2-sync-row{grid-template-columns:minmax(0,1fr) auto} .inv2-sync-row > button{grid-column:2;grid-row:1} }

/* ===== Phase 8: reports and labels (2026-11-11) ============================================ */
.inv2-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.inv2-card-title{margin:0 0 10px;font-size:.95rem;font-weight:650}
.inv2-card-title:not(:first-child){margin-top:18px}
.inv2-app .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.inv2-field-inline{display:flex;align-items:center;gap:6px;font-size:.78rem;font-weight:600;color:var(--inv2-muted)}
.inv2-field-inline .inv2-input{min-width:0;width:auto}
.inv2-input.small{padding:6px 8px;font-size:.8rem;width:auto}
.inv2-rep-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px 18px;margin-bottom:14px}
.inv2-rep-group > span{display:block;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--inv2-muted);margin-bottom:6px}
.inv2-rep-group > div{display:flex;flex-wrap:wrap;gap:6px}
.inv2-rep-picker .inv2-chip{cursor:pointer;color:var(--inv2-text);font:inherit;font-size:.8rem;font-weight:600;align-items:center}
.inv2-rep-picker .inv2-chip i{color:var(--inv2-muted);font-size:.78rem}
.inv2-rep-picker .inv2-chip:hover{border-color:var(--inv2-blue-2)}
.inv2-rep-picker .inv2-chip[aria-pressed="true"]{background:var(--inv2-blue);border-color:var(--inv2-blue);color:#fff}
.inv2-rep-picker .inv2-chip[aria-pressed="true"] i{color:#fff}
.inv2-rep-filters{flex-wrap:wrap;gap:10px 14px}
.inv2-rep-filters .inv2-seg button[aria-pressed="true"]{background:var(--inv2-surface);color:var(--inv2-text);box-shadow:var(--inv2-shadow)}
.inv2-rep-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:14px}
.inv2-rep-tile{background:var(--inv2-surface);border:1px solid var(--inv2-line);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:3px}
.inv2-rep-tile span{font-size:.75rem;color:var(--inv2-muted);font-weight:600}
.inv2-rep-tile strong{font-size:1.15rem;font-variant-numeric:tabular-nums}
.inv2-rep-tile.warn strong{color:var(--inv2-orange)}
.inv2-rep-meta{font-size:.82rem;font-weight:600;padding:2px 2px 10px;display:flex;flex-direction:column;gap:3px}
.inv2-rep-meta small{font-weight:400;color:var(--inv2-muted)}
.inv2-rep-scroll{overflow:auto;max-height:min(68vh,720px);border:1px solid var(--inv2-line);border-radius:10px}
.inv2-rep-scroll:focus-visible{outline:2px solid var(--inv2-blue-2);outline-offset:2px}
.inv2-rep-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.84rem;font-variant-numeric:tabular-nums}
.inv2-rep-table th{position:sticky;top:0;background:var(--inv2-bg);z-index:1;text-align:right;border-bottom:1px solid var(--inv2-line);padding:0}
.inv2-rep-table th button{all:unset;box-sizing:border-box;display:block;width:100%;padding:9px 10px;cursor:pointer;font-size:.74rem;font-weight:700;color:var(--inv2-muted);white-space:nowrap}
.inv2-rep-table th.num button{text-align:left}
.inv2-rep-table th button:focus-visible{outline:2px solid var(--inv2-blue-2);outline-offset:-2px}
.inv2-rep-table td{padding:8px 10px;border-bottom:1px solid var(--inv2-line);white-space:nowrap}
.inv2-rep-table td:first-child{white-space:normal;min-width:140px;font-weight:600}
.inv2-rep-table td small{display:block;font-weight:400;color:var(--inv2-muted);font-size:.74rem}
.inv2-rep-table td.num{text-align:left}
.inv2-rep-table td.neg{color:var(--inv2-red)}
.inv2-rep-table tbody tr:hover td{background:var(--inv2-bg)}
.inv2-rep-table tfoot td{position:sticky;bottom:0;background:var(--inv2-surface);font-weight:700;border-top:2px solid var(--inv2-line);border-bottom:0}
.inv2-rep-perm{margin-top:12px;font-size:.82rem}
.inv2-lab-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr);gap:16px;align-items:start}
.inv2-lab-add{position:relative;display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.inv2-lab-add .inv2-search-inline{flex:none;min-width:0;height:40px}
.inv2-lab-quick{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.inv2-lab-results{position:absolute;top:44px;right:0;left:0;z-index:5;background:var(--inv2-surface);border:1px solid var(--inv2-line);border-radius:10px;box-shadow:var(--inv2-shadow);max-height:320px;overflow:auto;padding:4px}
.inv2-lab-results.is-static{position:static;box-shadow:none;max-height:none}
.inv2-lab-results button{all:unset;box-sizing:border-box;display:flex;justify-content:space-between;gap:10px;width:100%;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:.84rem}
.inv2-lab-results button:hover,.inv2-lab-results button:focus-visible{background:var(--inv2-bg)}
.inv2-lab-results button small,.inv2-lab-item small{display:block;color:var(--inv2-muted);font-size:.74rem}
.inv2-lab-list{display:flex;flex-direction:column;border:1px solid var(--inv2-line);border-radius:10px;margin-bottom:10px;max-height:52vh;overflow:auto}
.inv2-lab-item{display:grid;grid-template-columns:minmax(0,1fr) 84px auto;gap:10px;align-items:center;padding:8px 10px;border-bottom:1px solid var(--inv2-line);font-size:.86rem}
.inv2-lab-item:last-child{border-bottom:0}
.inv2-lab-copies .inv2-input{width:100%;text-align:left}
.inv2-lab-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;margin:12px 0;font-size:.84rem}
.inv2-lab-row{display:flex;gap:10px;margin-bottom:10px}
.inv2-lab-row .inv2-field{flex:1}
.inv2-lab-nudge{margin-bottom:10px;font-size:.84rem}
.inv2-lab-nudge summary{cursor:pointer;color:var(--inv2-muted);font-weight:600;margin-bottom:8px}
.inv2-lab-preview{display:flex;justify-content:center;align-items:center;min-height:150px;padding:14px;border-radius:10px;background:repeating-conic-gradient(var(--inv2-bg) 0 25%,transparent 0 50%) 0 0/16px 16px;overflow:hidden}
.inv2-lab-sample{background:#fff;color:#000;box-shadow:0 2px 10px rgba(15,23,42,.18);border-radius:3px;transform-origin:center;flex:none;font-family:"Segoe UI",Tahoma,Arial,sans-serif;overflow:hidden}
.inv2-lab-sample .lab-in{height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:center;text-align:center;gap:.4mm;box-sizing:border-box}
.inv2-lab-sample .biz{font-weight:600;line-height:1.1;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv2-lab-sample .nm{font-weight:600;line-height:1.15;max-width:100%;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
.inv2-lab-sample .pr{font-weight:800;line-height:1;display:flex;flex-direction:column;align-items:center}
.inv2-lab-sample .pr small{font-weight:500;margin-top:.3mm}
.inv2-lab-sample .bc svg{display:block}
@media (max-width:900px){ .inv2-lab-grid{grid-template-columns:minmax(0,1fr)} }
@media (max-width:720px){
  .inv2-rep-picker{grid-template-columns:minmax(0,1fr)}
  .inv2-rep-group > div{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
  .inv2-rep-group .inv2-chip{flex:none}
  .inv2-rep-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inv2-rep-filters .inv2-field-inline{flex:1 1 140px}
  .inv2-rep-filters .inv2-field-inline .inv2-input{flex:1}
  .inv2-rep-scroll{max-height:none}
  .inv2-head-row:has(.inv2-head-actions){flex-wrap:wrap}
  .inv2-head-actions{width:100%}
  .inv2-head-actions .inv2-btn{flex:1;justify-content:center;white-space:nowrap}
  .inv2-lab-checks{grid-template-columns:minmax(0,1fr)}
}

/* ===== SOURCE: Assets/style/65-signup-trial-terms.css ===== */
/* 2026-11-11 · Sign-up module choice, trial facts, terms acceptance, purchase confirmation,
   the "Trial Terms and Conditions" overlay and the Microsoft Store edition notes. */

/* ---- Sign-up: how the trial works -------------------------------------------------------- */
.signup-trial-facts{
  margin-top:12px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--primary) 22%,var(--line));
  border-radius:14px;background:color-mix(in srgb,var(--primary) 5%,var(--surface-soft));color:var(--text);
}
.signup-trial-facts>strong{display:flex;align-items:center;gap:7px;font-size:.78rem}
.signup-trial-facts ul{margin:8px 0 6px;padding-right:18px;display:grid;gap:5px}
.signup-trial-facts li{font-size:.7rem;line-height:1.5;color:var(--muted)}
.signup-trial-facts li b{color:var(--text)}
.signup-terms-link{
  padding:0;border:0;background:none;color:var(--primary);font:inherit;font-weight:700;
  text-decoration:underline;text-underline-offset:2px;cursor:pointer;
}
.signup-trial-facts .signup-terms-link{font-size:.72rem}
.signup-terms-link:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 50%,transparent);outline-offset:2px;border-radius:4px}

/* ---- Sign-up: modules ----------------------------------------------------------------------- */
.signup-modules{margin-top:14px;display:grid;gap:10px}
.signup-module-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.signup-module-card{
  position:relative;display:grid;grid-template-columns:34px minmax(0,1fr) 22px;align-items:center;gap:9px;
  padding:9px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface-elevated, var(--surface));
  color:var(--text);cursor:pointer;min-width:0;transition:border-color .15s ease, box-shadow .15s ease;
}
.signup-module-card>input{position:absolute;opacity:0;pointer-events:none}
.signup-module-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--primary-soft, color-mix(in srgb,var(--primary) 12%,transparent));color:var(--primary)}
.signup-module-card>span:nth-of-type(2){display:grid;gap:2px;min-width:0}
.signup-module-card strong{font-size:.72rem;line-height:1.3}
.signup-module-card small{font-size:.62rem;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.signup-module-check{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;border:1px solid var(--line);background:var(--surface-soft);color:transparent;font-size:.6rem}
.signup-module-card:has(input:checked){border-color:color-mix(in srgb,var(--primary) 45%,var(--line));box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 8%,transparent)}
.signup-module-card:has(input:checked) .signup-module-check{background:var(--primary);border-color:var(--primary);color:#fff}
.signup-module-card:focus-within{outline:2px solid color-mix(in srgb,var(--primary) 40%,transparent);outline-offset:2px}
.signup-module-note{margin:0}

/* ---- Sign-up / renewal: terms acceptance and purchase confirmation ------------------------- */
.signup-terms-accept,.signup-purchase-confirm{
  display:block;margin:10px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;
  background:var(--surface-soft);color:var(--text);font-size:.72rem;line-height:1.5;
}
.signup-terms-accept label,.signup-purchase-confirm{display:flex;align-items:flex-start;gap:9px;cursor:pointer}
.signup-terms-accept input,.signup-purchase-confirm input{margin-top:3px;flex:0 0 auto;width:16px;height:16px;accent-color:var(--primary)}
.signup-terms-accept.hide{display:none}

/* ---- Trial banner link ---------------------------------------------------------------------- */
.access-banner-terms{
  display:inline;margin-right:6px;padding:0;border:0;background:none;color:inherit;font:inherit;font-size:.86em;
  font-weight:700;text-decoration:underline;text-underline-offset:2px;cursor:pointer;opacity:.92;
}
.access-banner-terms:hover{opacity:1}
.access-banner-terms:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:3px}
.access-banner-terms.hide{display:none}
.guest-mode-banner.trial-grace-banner{border-right-color:var(--warning, #b7791f)}

/* ---- Terms overlay (always above the sign-up and other dialogs) ------------------------------ */
.modal.trial-terms-overlay{z-index:2147483200!important}
.trial-terms-dialog{width:min(900px,calc(100vw - 24px));max-height:min(92vh,1000px);display:flex;flex-direction:column;overflow:hidden;padding:0}
.trial-terms-dialog:focus{outline:none}
.tt-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px 12px;border-bottom:1px solid var(--line);background:var(--surface-elevated,var(--surface,#fff));position:relative}
.tt-head-text{min-width:0}
.tt-head h3{margin:4px 0 2px;font-size:1.15rem;line-height:1.25}
.tt-close{flex:0 0 auto;width:38px;height:38px;border-radius:12px;border:1px solid var(--line);background:var(--surface-soft);color:var(--text);display:grid;place-items:center;font-size:1rem;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.tt-close:hover{background:color-mix(in srgb,var(--danger,#c0362c) 10%,var(--surface-soft));border-color:color-mix(in srgb,var(--danger,#c0362c) 35%,var(--line))}
.tt-close:focus-visible,.tt-tab:focus-visible,.tt-toc a:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}
.trial-terms-body{overflow:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:14px;line-height:1.65;padding:16px 18px 20px;scroll-padding-top:12px;overscroll-behavior:contain}
.tt-kicker{display:inline-flex;align-items:center;gap:6px;font-size:.64rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--primary)}
.tt-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}
.tt-tab{padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface-soft);color:var(--text);font:inherit;font-size:.74rem;font-weight:700;cursor:pointer}
.tt-tab.is-active{background:var(--primary);border-color:var(--primary);color:#fff}
.tt-status{display:flex;align-items:flex-start;gap:9px;padding:10px 13px;border-radius:12px;border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line));background:color-mix(in srgb,var(--primary) 7%,var(--surface-soft));font-size:.8rem}
.tt-status i{margin-top:3px;color:var(--primary)}
.tt-section{scroll-margin-top:12px}
.tt-section h3,.tt-section h2{margin:0 0 6px;font-size:.95rem;line-height:1.3}
.tt-section p,.tt-section li{font-size:.8rem;color:var(--text)}
.tt-section p{margin:0 0 7px}
.tt-section ul{margin:0 0 6px;padding-right:20px;display:grid;gap:6px}
.tt-section ul.tt-list-ok,.tt-section ul.tt-list-paused{list-style:none;padding:10px 12px;border-radius:12px;border:1px solid var(--line)}
.tt-section ul.tt-list-ok{background:color-mix(in srgb,var(--success,#15803d) 7%,var(--surface-soft))}
.tt-section ul.tt-list-paused{background:color-mix(in srgb,var(--warning,#b45309) 8%,var(--surface-soft))}
.tt-list-ok li,.tt-list-paused li{position:relative;padding-right:22px}
.tt-list-ok li::before,.tt-list-paused li::before{position:absolute;right:0;top:0;font-family:"Font Awesome 6 Free";font-weight:900;font-size:.85em;line-height:1.9}
.tt-list-ok li::before{content:"\f00c";color:var(--success,#15803d)}
.tt-list-paused li::before{content:"\f04c";color:var(--warning,#b45309)}
.tt-summary{padding:13px 15px;border:1px solid color-mix(in srgb,var(--primary) 28%,var(--line));border-radius:14px;background:color-mix(in srgb,var(--primary) 6%,var(--surface-soft))}
.tt-toc{padding:12px 14px;border:1px dashed var(--line);border-radius:14px;background:var(--surface-soft)}
.tt-toc strong{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:6px}
.tt-toc ol{margin:0;padding-right:20px;columns:2 220px;column-gap:24px;font-size:.78rem}
.tt-toc li{break-inside:avoid;margin:0 0 3px}
.tt-toc a{text-decoration:none}
.tt-toc a:hover{text-decoration:underline}
.tt-table-wrap{max-width:100%;overflow-x:auto;margin:4px 0 10px;border:1px solid var(--line);border-radius:12px}
.tt-prices{width:100%;border-collapse:collapse;font-size:.78rem;min-width:420px}
.tt-prices th,.tt-prices td{padding:7px 10px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
.tt-prices tbody tr:last-child th,.tt-prices tbody tr:last-child td{border-bottom:0}
.tt-prices thead th{font-size:.66rem;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);background:var(--surface-soft)}
.tt-prices tr.is-regional{background:color-mix(in srgb,var(--primary) 8%,transparent);font-weight:700}
.tt-foot{margin:4px 0 0;font-size:.72rem;color:var(--muted)}
.trial-terms-body a{color:var(--primary);overflow-wrap:anywhere}
@media(max-width:560px){
  .modal.trial-terms-overlay{padding:0!important}
  .modal.trial-terms-overlay .trial-terms-dialog{width:100%;max-width:100%;max-height:100dvh;height:100dvh;margin:0;border-radius:0}
  .tt-head{padding:12px 14px 10px}
  .trial-terms-body{padding:12px 14px 18px}
  .tt-toc ol{columns:1}
  .signup-module-grid{grid-template-columns:1fr}
}

/* ---- Grace period and limited access ---------------------------------------------------------- */
.modal.limited-access-modal{z-index:2147483100!important}
.la-dialog{width:min(760px,calc(100vw - 24px));max-height:min(92vh,900px);display:flex;flex-direction:column}
.la-dialog:focus{outline:none}
.la-body{overflow:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;line-height:1.6}
.la-kicker{display:inline-flex;align-items:center;gap:6px;font-size:.66rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--warning,#b45309)}
.la-limited .la-kicker{color:var(--danger,#b42318)}
.la-intro{margin:0;font-size:.86rem}
.la-refused{margin:0;padding:9px 12px;border-radius:12px;border:1px solid color-mix(in srgb,var(--danger,#b42318) 35%,var(--line));background:color-mix(in srgb,var(--danger,#b42318) 8%,var(--surface-soft));color:var(--text);font-size:.82rem;font-weight:650}
.la-refused i{color:var(--danger,#b42318);margin-left:4px}
.la-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px}
.la-cols section{padding:12px 13px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}
.la-cols section:first-child{background:color-mix(in srgb,var(--success,#15803d) 6%,var(--surface-soft))}
.la-cols section:last-child{background:color-mix(in srgb,var(--warning,#b45309) 7%,var(--surface-soft))}
.la-cols h4{display:flex;align-items:center;gap:7px;margin:0 0 6px;font-size:.84rem}
.la-cols section:first-child h4 i{color:var(--success,#15803d)}
.la-cols section:last-child h4 i{color:var(--warning,#b45309)}
.la-cols ul{margin:0;padding-right:18px;display:grid;gap:4px;font-size:.8rem}
.la-restore{display:flex;gap:9px;align-items:flex-start;margin:0;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--primary) 7%,var(--surface-soft));font-size:.82rem}
.la-restore i{margin-top:4px;color:var(--primary)}
.la-links{margin:0;font-size:.78rem}
@media(max-width:560px){
  .modal.limited-access-modal{padding:0!important}
  .modal.limited-access-modal .la-dialog{width:100%;max-width:100%;max-height:100dvh;height:100dvh;margin:0;border-radius:0}
}

/* Banner states (default theme; workspace themes use their own banner tokens). */
.guest-mode-banner.trial-active-banner,.guest-mode-banner.trial-grace-banner,.guest-mode-banner.trial-expired-banner{color:var(--text,#172033)}
.guest-mode-banner.trial-active-banner span,.guest-mode-banner.trial-grace-banner span,.guest-mode-banner.trial-expired-banner span{color:var(--muted,#475467)}
.guest-mode-banner.trial-active-banner{border-color:rgba(36,87,214,.25);border-right-color:var(--primary,#2457d6);background:linear-gradient(135deg,rgba(36,87,214,.09),rgba(255,255,255,.94))}
.guest-mode-banner.trial-active-banner strong{color:var(--primary,#2457d6)}
.guest-mode-banner.trial-grace-banner{border-color:rgba(181,71,8,.32);border-right-color:var(--warning,#b45309);background:linear-gradient(135deg,rgba(245,158,11,.14),rgba(255,255,255,.94))}
.guest-mode-banner.trial-grace-banner strong{color:#92400e}
.guest-mode-banner.trial-expired-banner{border-color:rgba(180,35,24,.28);border-right-color:var(--danger,#b42318);background:linear-gradient(135deg,rgba(180,35,24,.09),rgba(255,255,255,.94))}
.guest-mode-banner.trial-expired-banner strong{color:var(--danger,#b42318)}
.access-banner-actions{display:flex;flex-wrap:wrap;gap:6px;flex:0 0 auto;align-items:center}
.access-banner-actions.hide{display:none}
.guest-mode-banner a.hide{display:none}
@media(max-width:720px){.access-banner-actions{width:100%}.access-banner-actions .btn{flex:1 1 140px;justify-content:center}}

/* Plan & Subscription: current access explained */
.plan-sub-lifecycle{display:flex;gap:10px;align-items:flex-start;margin:10px 0;padding:12px 14px;border-radius:14px;border:1px solid var(--line);font-size:.82rem;line-height:1.55}
.plan-sub-lifecycle.is-grace{border-color:rgba(181,71,8,.32);background:color-mix(in srgb,#f59e0b 10%,var(--surface-soft))}
.plan-sub-lifecycle.is-limited{border-color:rgba(180,35,24,.28);background:color-mix(in srgb,var(--danger,#b42318) 7%,var(--surface-soft))}
.plan-sub-lifecycle > i{margin-top:4px}
.plan-sub-lifecycle strong{display:block;margin-bottom:2px}
.plan-sub-lifecycle p{margin:0 0 4px}

/* Other dialogs that can open above the sign-up: the AI report dialog. */
#aiReportModal.modal{z-index:2147483150}
.desktop-app-menu a.dam-btn{text-decoration:none;display:inline-flex;align-items:center;gap:6px}

/* ---- Microsoft Store edition card on the start screen ------------------------------------- */
.store-edition-card{
  margin:16px 0 4px;padding:14px 16px;border:1px solid color-mix(in srgb,var(--primary) 28%,var(--line));border-radius:16px;
  background:color-mix(in srgb,var(--primary) 6%,var(--surface,#fff));color:var(--text);text-align:right;max-width:760px;
}
.store-edition-card h2{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:1rem}
.store-edition-card ul{margin:0;padding-right:20px;display:grid;gap:4px;font-size:.84rem;line-height:1.5}
.store-edition-links{margin:8px 0 0;font-size:.82rem}
.store-edition-links a{color:var(--primary)}
.store-edition-card[hidden]{display:none}
.la-dialog .modal-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 18px 16px;margin:0}
.la-dialog .modal-head{padding-left:4px}
@media(max-width:560px){.la-dialog .modal-footer .btn{flex:1 1 140px;justify-content:center}}

/* ===== SOURCE: Assets/style/66-workspace-home-v2.css ===== */
/* Triplem VIP Home v2 — 2026-11-11
   One surface per section: the coloured icon tile is the card. Name and short description sit
   right under the icon; a ⋮ button renames the card. Earlier home rules in
   52-workspace-section-home.css are overridden here by the #workspaceHome scope (only while the
   "New" Home icons are chosen; "Classic" keeps the earlier Home as it was). */

#workspaceHome.workspace-home:not(.home-layout-cards){
  gap:clamp(14px,2.2vw,26px);
  padding:clamp(14px,2vw,26px) clamp(2px,1vw,10px) clamp(18px,3vw,34px);
}

/* ── Heading ─────────────────────────────────────────────────────────── */
#workspaceHome:not(.home-layout-cards) .workspace-home-heading{align-items:flex-end;gap:14px;flex-wrap:wrap}
#workspaceHome:not(.home-layout-cards) .workspace-home-hello{min-width:0;display:flex;flex-direction:column;gap:4px}
#workspaceHome:not(.home-layout-cards) .workspace-home-kicker{
  align-self:flex-start;gap:7px;min-height:26px;padding:5px 11px;
  border-color:color-mix(in srgb,#d4a017 40%,var(--line));
  background:linear-gradient(135deg,color-mix(in srgb,#f2c14e 16%,var(--panel)),color-mix(in srgb,var(--primary) 7%,var(--panel)));
  color:color-mix(in srgb,#9a6a08 70%,var(--text));
}
#workspaceHome:not(.home-layout-cards) .workspace-home-kicker i{font-size:.72rem;color:#c99418}
#workspaceHome:not(.home-layout-cards) .workspace-home-date{font-weight:700;letter-spacing:.04em;text-transform:none;color:var(--muted);padding-right:8px;margin-right:2px;border-right:1px solid color-mix(in srgb,var(--line) 80%,transparent)}
#workspaceHome:not(.home-layout-cards) .workspace-home-date:empty{display:none}
#workspaceHome:not(.home-layout-cards) .workspace-home-title{
  margin:6px 0 0;
  font-size:clamp(1.45rem,2.6vw,2.15rem);
  line-height:1.1;
  font-weight:850;
  letter-spacing:-.035em;
  color:var(--text);
}
#workspaceHome:not(.home-layout-cards) .workspace-home-heading p{font-size:.88rem;color:var(--muted);margin:0}

/* ── Grid ────────────────────────────────────────────────────────────── */
#workspaceHome:not(.home-layout-cards) #workspaceHomeGrid{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(calc(92px * var(--wh-icon-scale,1) + 72px),1fr));
  grid-auto-rows:auto;
  align-content:start;
  justify-content:center;
  column-gap:calc(clamp(10px,1.6vw,22px) * var(--wh-gap-scale,1));
  row-gap:calc(clamp(14px,2vw,26px) * var(--wh-gap-scale,1));
  width:100%;
  max-width:1180px;
  margin:0 auto;
}

/* ── Card (no frame: the icon tile is the card) ─────────────────────── */
#workspaceHomeGrid > .wh2-card{
  position:relative;
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  padding:14px 10px 12px;
  border:0;
  border-radius:24px;
  background:transparent;
  box-shadow:none;
  overflow:visible;
  contain:none;
  text-align:center;
  cursor:pointer;
  outline:none;
  -webkit-tap-highlight-color:transparent;
  transition:background-color .2s ease,transform .2s cubic-bezier(.22,.75,.22,1);
}
#workspaceHomeGrid > .wh2-card::before,
#workspaceHomeGrid > .wh2-card::after{content:none !important;display:none !important}
/* The workspace theme frames every "*-card" element; the Home card has no frame in any theme. */
html body #app #workspaceHomeGrid > .wh2-card.wh2-card{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
html body #app #workspaceHomeGrid > .wh2-card.wh2-card:hover{background:color-mix(in srgb,var(--primary) 6%,transparent) !important}
html body #app #workspaceHomeGrid > .wh2-card.wh2-card:focus-visible{background:color-mix(in srgb,var(--primary) 8%,transparent) !important;box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 55%,transparent) !important}
html body #app #workspaceHomeGrid > .wh2-card.card-order-target{outline:2px dashed color-mix(in srgb,var(--primary) 55%,transparent)}
#workspaceHomeGrid > .wh2-card:hover{
  background:color-mix(in srgb,var(--primary) 6%,transparent);
  transform:none;
  box-shadow:none;
}
#workspaceHomeGrid > .wh2-card:focus-visible{
  background:color-mix(in srgb,var(--primary) 8%,transparent);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 55%,transparent);
  transform:none;
}
#workspaceHomeGrid > .wh2-card:active{transform:scale(.97)}

.wh2-icon{
  position:relative;
  display:block;
  width:calc(92px * var(--wh-icon-scale,1));
  height:calc(92px * var(--wh-icon-scale,1));
  flex:none;
  border-radius:calc(26px * var(--wh-icon-scale,1));
  filter:none;
  transform-origin:50% 60%;
  will-change:transform;
  transition:transform .32s cubic-bezier(.34,1.56,.64,1);
}
.wh2-img{display:block;width:100%;height:100%;user-select:none;-webkit-user-drag:none;pointer-events:none}
#workspaceHomeGrid > .wh2-card:hover .wh2-icon,
#workspaceHomeGrid > .wh2-card:focus-visible .wh2-icon{
  transform:scale(1.14);
  filter:none;
}
#workspaceHomeGrid > .wh2-card:active .wh2-icon{transform:scale(1.06);transition-duration:.12s}
#workspaceHomeGrid > .wh2-card .wh2-label{transition:color .2s ease}
#workspaceHomeGrid > .wh2-card:hover .wh2-label{color:var(--primary)}
@media (hover:none){
  #workspaceHomeGrid > .wh2-card:hover .wh2-icon{transform:none}
  #workspaceHomeGrid > .wh2-card:hover .wh2-label{color:var(--text)}
}
.wh2-badge{
  position:absolute;left:-6px;bottom:-4px;padding:2px 7px;border-radius:999px;
  background:linear-gradient(180deg,#fde68a,#e2ad31);color:#3b2a06;font:800 .62rem/1.3 inherit;
  box-shadow:0 3px 8px rgba(0,0,0,.2),0 0 0 2px var(--bg,#fff);
}

.wh2-text{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;width:100%}
.wh2-label{
  display:block;
  max-width:100%;
  color:var(--text);
  font-size:calc(.95rem * var(--wh-text-scale,1));
  font-weight:800;
  line-height:1.2;
  letter-spacing:-.018em;
  overflow-wrap:break-word;
  hyphens:manual;
}
.wh2-desc{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  max-width:190px;
  color:var(--muted);
  font-size:calc(.72rem * var(--wh-text-scale,1));
  line-height:1.38;
}

/* ⋮ */
.wh2-menu{
  position:absolute;
  top:6px;
  left:6px;
  z-index:3;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid transparent;
  border-radius:50%;
  background:transparent;
  color:var(--muted);
  font-size:.86rem;
  cursor:pointer;
  opacity:.55;
  transition:opacity .15s ease,background-color .15s ease,color .15s ease,border-color .15s ease;
}
.wh2-card:hover .wh2-menu,
.wh2-card:focus-within .wh2-menu,
.wh2-card.is-menu-open .wh2-menu{opacity:1}
.wh2-menu:hover,
.wh2-menu:focus-visible,
.wh2-menu[aria-expanded="true"]{
  opacity:1;
  color:var(--text);
  background:var(--surface-elevated,var(--panel));
  border-color:var(--line);
  box-shadow:0 4px 12px rgba(15,23,42,.12);
  outline:none;
}
@media (hover:none){ .wh2-menu{opacity:.8} }

/* Tip line */
#workspaceHome:not(.home-layout-cards) .workspace-home-tip{
  margin:2px auto 0;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
  color:var(--muted);
  font-size:.72rem;
  opacity:.85;
}
#workspaceHome:not(.home-layout-cards) .workspace-home-tip i{color:color-mix(in srgb,#c99418 70%,var(--muted))}
#workspaceHome:not(.home-layout-cards) .workspace-home-tip span{margin:0 4px;opacity:.6}

/* Reorder states from 59-card-order.css keep working on the frameless card. */
#workspaceHomeGrid > .wh2-card.card-order-target{outline:2px dashed color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:0}
.card-order-ghost.wh2-card{background:var(--surface-elevated,#fff);border-radius:24px;padding:14px 10px 12px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.card-order-ghost.wh2-card .wh2-menu{display:none}

/* ── Card menu + rename dialog ───────────────────────────────────────── */
.home-card-menu{
  position:fixed;
  z-index:2147483000;
  min-width:196px;
  padding:6px;
  border:1px solid var(--line,rgba(15,23,42,.12));
  border-radius:14px;
  background:var(--surface-elevated,#fff);
  color:var(--text,#0f172a);
  box-shadow:0 18px 40px rgba(15,23,42,.22),0 2px 6px rgba(15,23,42,.08);
  -webkit-backdrop-filter:blur(18px) saturate(1.2);
  backdrop-filter:blur(18px) saturate(1.2);
  animation:whMenuIn .14s ease-out both;
}
.home-card-menu button{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 11px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:inherit;
  font:inherit;
  font-size:.84rem;
  font-weight:650;
  text-align:right;
  cursor:pointer;
}
.home-card-menu button i{width:16px;text-align:center;color:var(--primary);font-size:.82rem}
.home-card-menu button:hover,
.home-card-menu button:focus-visible{background:color-mix(in srgb,var(--primary) 9%,transparent);outline:none}
@keyframes whMenuIn{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}

.home-rename-backdrop{
  position:fixed;
  inset:0;
  z-index:2147483100;
  display:grid;
  place-items:center;
  padding:16px;
  background:var(--overlay-backdrop,rgba(8,15,30,.45));
  -webkit-backdrop-filter:blur(4px);
  backdrop-filter:blur(4px);
  animation:whFade .16s ease-out both;
}
.home-rename-dialog{
  width:min(420px,100%);
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:20px;
  border:1px solid var(--line,rgba(15,23,42,.12));
  border-radius:20px;
  background:var(--surface-elevated,#fff);
  color:var(--text,#0f172a);
  box-shadow:0 30px 70px rgba(8,15,30,.35);
  animation:whMenuIn .18s ease-out both;
}
.home-rename-head{display:flex;align-items:center;gap:14px}
.home-rename-head img{width:52px;height:52px;flex:none}
.home-rename-head strong{display:block;font-size:1.05rem;font-weight:800}
.home-rename-head small{display:block;margin-top:2px;color:var(--muted);font-size:.76rem;line-height:1.4}
.home-rename-field{position:relative;display:flex;flex-direction:column;gap:6px;font-size:.76rem;font-weight:700;color:var(--muted)}
.home-rename-field input{
  height:44px;
  padding:0 13px 0 58px;
  border:1px solid var(--line-strong,var(--line));
  border-radius:12px;
  background:var(--control-bg,transparent);
  color:var(--text);
  font:inherit;
  font-size:.95rem;
  font-weight:650;
  outline:none;
}
.home-rename-field input:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 18%,transparent)}
.home-rename-count{position:absolute;left:12px;bottom:13px;font-style:normal;font-size:.7rem;font-weight:600;color:var(--muted)}
.home-rename-hint{margin:-4px 0 0;color:var(--muted);font-size:.74rem}
.home-rename-hint b{color:var(--text)}
.home-rename-actions{display:flex;justify-content:flex-end;gap:8px}
.home-rename-actions .btn{min-width:96px}
@keyframes whFade{from{opacity:0}to{opacity:1}}

/* ── Tablet and phone ────────────────────────────────────────────────── */
@media (max-width:820px){
  #workspaceHome.workspace-home:not(.home-layout-cards){gap:14px;padding-top:6px}
  #workspaceHome:not(.home-layout-cards) .workspace-home-title{font-size:1.38rem}
  #workspaceHome:not(.home-layout-cards) .workspace-home-heading p{font-size:.76rem}
  #workspaceHome:not(.home-layout-cards) #workspaceHomeGrid{
    grid-template-columns:repeat(auto-fill,minmax(calc(72px * var(--wh-icon-scale,1) + 60px),1fr));
    column-gap:calc(8px * var(--wh-gap-scale,1));
    row-gap:calc(12px * var(--wh-gap-scale,1));
  }
  #workspaceHomeGrid > .wh2-card{padding:10px 4px 8px;gap:8px;border-radius:20px}
  .wh2-icon{width:calc(72px * var(--wh-icon-scale,1));height:calc(72px * var(--wh-icon-scale,1));border-radius:calc(20px * var(--wh-icon-scale,1))}
  .wh2-label{font-size:calc(.8rem * var(--wh-text-scale,1))}
  .wh2-desc{display:none}
  .wh2-menu{top:2px;left:0;width:28px;height:28px;font-size:.8rem}
}
@media (max-width:560px){
  #workspaceHome:not(.home-layout-cards) #workspaceHomeGrid{grid-template-columns:repeat(auto-fill,minmax(calc(68px * var(--wh-icon-scale,1) + 30px),1fr))}
  .wh2-icon{width:calc(68px * var(--wh-icon-scale,1));height:calc(68px * var(--wh-icon-scale,1));border-radius:calc(19px * var(--wh-icon-scale,1))}
  .wh2-label{font-size:calc(.78rem * var(--wh-text-scale,1));line-height:1.18}
}
@media (max-width:360px){
  #workspaceHome:not(.home-layout-cards) #workspaceHomeGrid{column-gap:calc(4px * var(--wh-gap-scale,1))}
  .wh2-icon{width:calc(60px * var(--wh-icon-scale,1));height:calc(60px * var(--wh-icon-scale,1));border-radius:calc(17px * var(--wh-icon-scale,1))}
  .wh2-label{font-size:calc(.72rem * var(--wh-text-scale,1))}
  .wh2-menu{width:26px;height:26px}
}

html.triplem-low-power .wh2-icon,
html.triplem-low-power #workspaceHomeGrid > .wh2-card{transition:none}
@media (prefers-reduced-motion:reduce){
  .wh2-icon,#workspaceHomeGrid > .wh2-card,.home-card-menu,.home-rename-dialog,.home-rename-backdrop{transition:none;animation:none}
}

/* Heading, grid and tip share one centred column. */
#workspaceHome:not(.home-layout-cards) .workspace-home-heading,
#workspaceHome:not(.home-layout-cards) .workspace-home-tip{width:100%;max-width:1180px;margin-inline:auto}
#workspaceHome:not(.home-layout-cards) .workspace-home-heading{padding-inline:clamp(4px,1vw,10px)}
@media (max-width:380px){ #workspaceHome:not(.home-layout-cards) .workspace-home-date{display:none} }

/* ── Home Icons: Classic (Theme menu, 2026-11-12) ────────────────────────
   The earlier Home: cards with glass icon tiles (52-workspace-section-home.css).
   Only the ⋮ button replaces the old open icon, so cards can still be renamed. */
#workspaceHome.home-layout-cards .workspace-home-title,
#workspaceHome.home-layout-cards .workspace-home-date,
#workspaceHome.home-layout-cards .workspace-home-kicker > i,
#workspaceHome.home-layout-cards .workspace-home-tip{display:none}
#workspaceHomeGrid > .workspace-home-card--classic{cursor:pointer;-webkit-tap-highlight-color:transparent}
#workspaceHomeGrid > .workspace-home-card--classic:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}
#workspaceHomeGrid > .workspace-home-card--classic .workspace-card-menu{
  z-index:3;padding:0;cursor:pointer;font-size:.74rem;
  transition:background-color .15s ease,color .15s ease,border-color .15s ease;
}
#workspaceHomeGrid > .workspace-home-card--classic .workspace-card-menu:hover,
#workspaceHomeGrid > .workspace-home-card--classic .workspace-card-menu:focus-visible,
#workspaceHomeGrid > .workspace-home-card--classic .workspace-card-menu[aria-expanded="true"]{
  background:var(--surface-elevated,var(--panel));color:var(--text);border-color:var(--line);outline:none;
}
@media (max-width:820px){
  /* the old open icon was hidden on phones; the ⋮ stays so cards can be renamed */
  #workspaceHomeGrid > .workspace-home-card--classic .workspace-card-menu{display:grid !important;left:6px;top:6px;width:24px;height:24px;border-radius:8px}
}

/* Switching style: one quick fade, no layout animation */
#workspaceHome.home-pack-switching #workspaceHomeGrid{opacity:0;transition:none}
#workspaceHome #workspaceHomeGrid{transition:opacity .22s ease}
@media (prefers-reduced-motion:reduce){ #workspaceHome #workspaceHomeGrid{transition:none} }

/* ── Home Style layouts (2026-11-12) ─────────────────────────────────────
   grid (default) above · list · compact · cards (the earlier Home, 52-*.css)
   --wh-icon-scale (0.70–1.40) and --wh-gap-scale (0.40–1.80) are set on #workspaceHome. */

/* List: one row per section with its description */
#workspaceHome.home-layout-list #workspaceHomeGrid{
  grid-template-columns:repeat(auto-fill,minmax(min(100%,calc(300px + 40px * var(--wh-icon-scale,1))),1fr));
  column-gap:calc(14px * var(--wh-gap-scale,1));
  row-gap:calc(10px * var(--wh-gap-scale,1));
}
html body #app #workspaceHome.home-layout-list #workspaceHomeGrid > .wh2-card.wh2-card{
  background:color-mix(in srgb,var(--panel) 62%,transparent) !important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--line) 70%,transparent) !important;
}
html body #app #workspaceHome.home-layout-list #workspaceHomeGrid > .wh2-card.wh2-card:hover{background:color-mix(in srgb,var(--primary) 7%,var(--panel)) !important}
#workspaceHome.home-layout-list #workspaceHomeGrid > .wh2-card{
  flex-direction:row;align-items:center;justify-content:flex-start;text-align:right;
  gap:calc(12px + 4px * var(--wh-gap-scale,1));padding:calc(8px + 4px * var(--wh-gap-scale,1)) 12px calc(8px + 4px * var(--wh-gap-scale,1)) 44px;border-radius:18px;
}
#workspaceHome.home-layout-list .wh2-icon{width:calc(56px * var(--wh-icon-scale,1));height:calc(56px * var(--wh-icon-scale,1));border-radius:calc(16px * var(--wh-icon-scale,1))}
#workspaceHome.home-layout-list .wh2-text{align-items:flex-start;flex:1}
#workspaceHome.home-layout-list .wh2-label{font-size:calc(.95rem * var(--wh-text-scale,1))}
#workspaceHome.home-layout-list .wh2-desc{display:-webkit-box;max-width:none;-webkit-line-clamp:2;font-size:calc(.74rem * var(--wh-text-scale,1))}
#workspaceHome.home-layout-list .wh2-menu{top:50%;left:8px;transform:translateY(-50%)}
#workspaceHome.home-layout-list #workspaceHomeGrid > .wh2-card:hover .wh2-icon{transform:scale(1.08)}
#workspaceHome.home-layout-list #workspaceHomeGrid > .wh2-card:active{transform:scale(.99)}

/* Compact: smaller icons, more per row, names only */
#workspaceHome.home-layout-compact #workspaceHomeGrid{
  grid-template-columns:repeat(auto-fill,minmax(calc(64px * var(--wh-icon-scale,1) + 40px),1fr));
  column-gap:calc(6px * var(--wh-gap-scale,1));
  row-gap:calc(10px * var(--wh-gap-scale,1));
  max-width:1060px;
}
#workspaceHome.home-layout-compact #workspaceHomeGrid > .wh2-card{padding:10px 4px 8px;gap:7px;border-radius:18px}
#workspaceHome.home-layout-compact .wh2-icon{width:calc(64px * var(--wh-icon-scale,1));height:calc(64px * var(--wh-icon-scale,1));border-radius:calc(18px * var(--wh-icon-scale,1))}
#workspaceHome.home-layout-compact .wh2-label{font-size:calc(.8rem * var(--wh-text-scale,1))}
#workspaceHome.home-layout-compact .wh2-desc{display:none}
#workspaceHome.home-layout-compact .wh2-menu{top:0;left:0;width:26px;height:26px;font-size:.78rem}
@media (max-width:560px){
  #workspaceHome.home-layout-list .wh2-icon{width:calc(48px * var(--wh-icon-scale,1));height:calc(48px * var(--wh-icon-scale,1));border-radius:calc(14px * var(--wh-icon-scale,1))}
  #workspaceHome.home-layout-list .wh2-label{font-size:calc(.88rem * var(--wh-text-scale,1))}
  #workspaceHome.home-layout-list .wh2-desc{display:-webkit-box;-webkit-line-clamp:1;font-size:calc(.7rem * var(--wh-text-scale,1))}
  #workspaceHome.home-layout-compact #workspaceHomeGrid{grid-template-columns:repeat(auto-fill,minmax(calc(54px * var(--wh-icon-scale,1) + 24px),1fr))}
  #workspaceHome.home-layout-compact .wh2-icon{width:calc(54px * var(--wh-icon-scale,1));height:calc(54px * var(--wh-icon-scale,1));border-radius:calc(15px * var(--wh-icon-scale,1))}
  #workspaceHome.home-layout-compact .wh2-label{font-size:calc(.7rem * var(--wh-text-scale,1))}
}

/* Cards: size and spacing on the earlier Home */
#workspaceHome.home-layout-cards #workspaceHomeGrid{gap:calc(clamp(10px,1.25vw,18px) * var(--wh-gap-scale,1)) !important}
#workspaceHome.home-layout-cards .workspace-home-card .workspace-card-art{
  width:calc(132px * var(--wh-icon-scale,1)) !important;height:calc(132px * var(--wh-icon-scale,1)) !important;
  min-width:0 !important;min-height:0 !important;max-width:100% !important;max-height:none !important;flex-basis:auto !important;
}
@media (max-width:820px){
  #workspaceHome.home-layout-cards #workspaceHomeGrid{gap:calc(8px * var(--wh-gap-scale,1)) !important}
  #workspaceHome.home-layout-cards .workspace-home-card .workspace-card-art{width:calc(66px * var(--wh-icon-scale,1)) !important;height:calc(66px * var(--wh-icon-scale,1)) !important}
}
@media (max-width:380px){
  #workspaceHome.home-layout-cards .workspace-home-card .workspace-card-art{width:calc(60px * var(--wh-icon-scale,1)) !important;height:calc(60px * var(--wh-icon-scale,1)) !important}
}

/* ── Home Style panel ────────────────────────────────────────────────── */
.home-style-panel{
  position:fixed;z-index:2147482900;top:76px;left:16px;bottom:16px;width:min(380px,calc(100vw - 32px));
  display:flex;flex-direction:column;overflow:hidden;
  border:1px solid var(--line,rgba(15,23,42,.12));border-radius:22px;
  background:var(--surface-elevated,#fff);color:var(--text,#0f172a);
  box-shadow:0 30px 70px rgba(8,15,30,.28),0 2px 8px rgba(8,15,30,.08);
  -webkit-backdrop-filter:blur(22px) saturate(1.25);backdrop-filter:blur(22px) saturate(1.25);
  opacity:0;transform:translateX(-24px);transition:opacity .2s ease,transform .24s cubic-bezier(.22,.75,.22,1);
}
.home-style-panel.is-open{opacity:1;transform:none}
.hs-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 16px 12px;border-bottom:1px solid var(--line)}
.hs-head strong{display:block;font-size:1.05rem;font-weight:850;letter-spacing:-.02em}
.hs-head small{display:block;margin-top:3px;color:var(--muted);font-size:.72rem;line-height:1.35}
.hs-close{flex:none;width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--text);cursor:pointer}
.hs-close:hover{background:color-mix(in srgb,var(--primary) 8%,transparent)}
.hs-body{flex:1;overflow:auto;overscroll-behavior:contain;padding:6px 16px 14px}
.hs-section{padding:12px 0;border-bottom:1px dashed color-mix(in srgb,var(--line) 80%,transparent)}
.hs-section:last-child{border-bottom:0}
.hs-section h3{margin:0 0 10px;font-size:.7rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.hs-packs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hs-pack{
  position:relative;display:flex;flex-direction:column;gap:8px;padding:10px;border:1.5px solid var(--line);border-radius:16px;
  background:color-mix(in srgb,var(--panel) 50%,transparent);color:var(--text);text-align:right;cursor:pointer;font:inherit;
  transition:border-color .15s ease,background-color .15s ease,transform .15s ease;
}
.hs-pack:hover{border-color:color-mix(in srgb,var(--primary) 45%,var(--line));transform:translateY(-1px)}
.hs-pack[aria-checked="true"]{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 8%,var(--panel));box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 14%,transparent)}
.hs-pack:focus-visible,.hs-layout:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}
.hs-pack-icons{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:7px;border-radius:12px;background:color-mix(in srgb,var(--bg,#fff) 60%,transparent)}
.hs-pack--neon .hs-pack-icons{background:#0b1226}
.hs-pack-icons img{width:100%;aspect-ratio:1;object-fit:contain;display:block}
.hs-pack-name b{display:block;font-size:.8rem;font-weight:800}
.hs-pack-name small{display:block;margin-top:1px;font-size:.66rem;color:var(--muted);line-height:1.3}
.hs-check{position:absolute;top:7px;left:7px;color:var(--primary);font-size:.95rem;opacity:0;transform:scale(.6);transition:opacity .15s ease,transform .15s ease;background:var(--surface-elevated,#fff);border-radius:50%}
.hs-pack[aria-checked="true"] .hs-check{opacity:1;transform:none}
.hs-layouts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.hs-layout{
  display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px 8px;border:1.5px solid var(--line);border-radius:14px;
  background:transparent;color:var(--muted);font:inherit;cursor:pointer;transition:border-color .15s ease,color .15s ease,background-color .15s ease;
}
.hs-layout svg{width:44px;height:30px}
.hs-layout b{font-size:.72rem;font-weight:750;color:var(--text)}
.hs-layout:hover{border-color:color-mix(in srgb,var(--primary) 45%,var(--line));color:var(--text)}
.hs-layout[aria-checked="true"]{border-color:var(--primary);color:var(--primary);background:color-mix(in srgb,var(--primary) 8%,transparent)}
.hs-range{display:block;padding:4px 0 10px}
.hs-range + .hs-range{padding-top:10px}
.hs-range-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}
.hs-range-head b{font-size:.84rem;font-weight:800}
.hs-range-head output{font-size:.76rem;font-weight:800;color:var(--primary);font-variant-numeric:tabular-nums}
.hs-range-row{display:grid;grid-template-columns:16px 1fr 16px;align-items:center;gap:10px;color:var(--muted);font-size:.72rem}
.hs-range input[type=range]{
  -webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:999px;margin:0;cursor:pointer;
  background:linear-gradient(90deg,var(--primary) 0 var(--hs-fill,50%),color-mix(in srgb,var(--muted,#667085) 25%,transparent) var(--hs-fill,50%) 100%);
}
.hs-range input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:#fff;border:2px solid var(--primary);box-shadow:0 2px 6px rgba(15,23,42,.25);cursor:grab}
.hs-range input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#fff;border:2px solid var(--primary);box-shadow:0 2px 6px rgba(15,23,42,.25);cursor:grab}
.hs-range input[type=range]:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 45%,transparent);outline-offset:4px}
.hs-foot{display:flex;justify-content:space-between;gap:8px;padding:12px 16px;border-top:1px solid var(--line)}
.hs-foot .btn{min-height:38px}
@media (min-width:1100px){
  /* keep Home visible beside the panel */
  html.home-style-open #app #workspaceHome.workspace-home{padding-left:396px;transition:padding-right .24s cubic-bezier(.22,.75,.22,1)}
}
@media (max-width:700px){
  .home-style-panel{top:auto;right:8px;left:8px;bottom:8px;width:auto;max-height:66vh;border-radius:22px;transform:translateY(30px)}
  .home-style-panel.is-open{transform:none}
  .hs-packs{grid-template-columns:1fr 1fr}
  html.home-style-open #app #workspaceHome.workspace-home{padding-bottom:66vh}
}
@media (prefers-reduced-motion:reduce){ .home-style-panel{transition:none} .hs-pack,.hs-layout{transition:none} }

/* Theme menu row */
html[data-triplem-theme] #app .theme-menu-home .theme-menu-home-go{justify-self:end;font-size:.7rem;color:var(--muted);margin-left:6px}

/* ── Home Style: text, captions, greeting, icon background, hover effect, hidden cards ── */
#workspaceHome.home-title-normal .wh2-label,
#workspaceHome.home-title-normal .workspace-card-copy strong{font-weight:400 !important;letter-spacing:0}
#workspaceHome.home-no-captions .wh2-desc,
#workspaceHome.home-no-captions .workspace-card-copy small{display:none !important}
#workspaceHome.home-layout-list.home-no-captions #workspaceHomeGrid > .wh2-card{padding-top:calc(6px + 4px * var(--wh-gap-scale,1));padding-bottom:calc(6px + 4px * var(--wh-gap-scale,1))}
#workspaceHome.home-layout-cards .workspace-card-copy strong,
#workspaceHome.home-layout-cards .workspace-card-copy small{zoom:var(--wh-text-scale,1)}
#workspaceHome.home-no-greeting .workspace-home-heading{display:none !important}
#workspaceHome.home-no-tips .workspace-home-tip{display:none !important}

/* Icon background behind frameless icons (not used by the Cards layout, which has its own tile) */
#workspaceHome.home-backdrop-circle:not(.home-layout-cards) .wh2-icon,
#workspaceHome.home-backdrop-square:not(.home-layout-cards) .wh2-icon{
  padding:13%;
  background:radial-gradient(120% 120% at 30% 20%,color-mix(in srgb,#ffffff 70%,transparent),transparent 60%),
    color-mix(in srgb,var(--primary) 11%,var(--panel));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 16%,transparent);
}
#workspaceHome.home-backdrop-circle:not(.home-layout-cards) .wh2-icon{border-radius:50%}
#workspaceHome.home-backdrop-square:not(.home-layout-cards) .wh2-icon{border-radius:28%}
html[data-triplem-theme-mode="dark"] #workspaceHome.home-backdrop-circle:not(.home-layout-cards) .wh2-icon,
html[data-triplem-theme-mode="dark"] #workspaceHome.home-backdrop-square:not(.home-layout-cards) .wh2-icon{
  background:radial-gradient(120% 120% at 30% 20%,rgba(255,255,255,.10),transparent 60%),color-mix(in srgb,var(--primary) 16%,var(--panel));
}

/* Hover effect: Zoom (default, above) · Lift · None */
#workspaceHome.home-motion-lift #workspaceHomeGrid > .wh2-card:hover .wh2-icon,
#workspaceHome.home-motion-lift #workspaceHomeGrid > .wh2-card:focus-visible .wh2-icon{transform:translateY(-6px)}
#workspaceHome.home-motion-lift #workspaceHomeGrid > .wh2-card:active .wh2-icon{transform:translateY(-2px)}
#workspaceHome.home-motion-none #workspaceHomeGrid > .wh2-card:hover .wh2-icon,
#workspaceHome.home-motion-none #workspaceHomeGrid > .wh2-card:focus-visible .wh2-icon,
#workspaceHome.home-motion-none #workspaceHomeGrid > .wh2-card:active .wh2-icon{transform:none}

/* Every card hidden */
.workspace-home-empty{grid-column:1 / -1;display:flex;flex-direction:column;align-items:center;gap:8px;padding:36px 16px;text-align:center;color:var(--muted)}
.workspace-home-empty i{font-size:1.6rem;color:var(--primary)}
.workspace-home-empty b{color:var(--text);font-size:1rem}
.workspace-home-empty span{font-size:.82rem;max-width:340px}
.workspace-home-empty .btn{margin-top:6px}

/* Panel controls */
.hs-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 0}
.hs-row-label{font-size:.84rem;font-weight:800}
.hs-seg{display:inline-grid;grid-auto-flow:column;gap:3px;padding:3px;border-radius:11px;background:color-mix(in srgb,var(--muted,#667085) 14%,transparent)}
.hs-seg button{appearance:none;min-height:30px;padding:0 11px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:.74rem;font-weight:750;cursor:pointer;white-space:nowrap;transition:background-color .15s ease,color .15s ease}
.hs-seg button:hover{color:var(--text)}
.hs-seg button[aria-checked="true"]{background:var(--surface-elevated,var(--panel));color:var(--primary);box-shadow:0 1px 3px rgba(15,23,42,.14),0 0 0 1px color-mix(in srgb,var(--primary) 22%,transparent)}
.hs-seg button:focus-visible,.hs-switch:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 45%,transparent);outline-offset:2px}
.hs-switch{appearance:none;width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:9px 0;border:0;background:transparent;color:var(--text);font:inherit;text-align:right;cursor:pointer}
.hs-switch-copy b{display:block;font-size:.84rem;font-weight:800}
.hs-switch-copy small{display:block;margin-top:1px;font-size:.68rem;color:var(--muted);line-height:1.3}
.hs-switch-track{position:relative;width:38px;height:22px;border-radius:999px;background:color-mix(in srgb,var(--muted,#667085) 32%,transparent);transition:background-color .15s ease}
.hs-switch-track i{position:absolute;top:3px;right:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.3);transition:transform .15s ease}
.hs-switch[aria-checked="true"] .hs-switch-track{background:var(--primary)}
.hs-switch[aria-checked="true"] .hs-switch-track i{transform:translateX(-16px)}
.hs-default{display:inline-block;margin-right:4px;padding:1px 6px;border-radius:999px;font-style:normal;font-size:.58rem;font-weight:800;letter-spacing:.04em;vertical-align:1px;color:#3b2a06;background:linear-gradient(180deg,#fde68a,#e2ad31)}
.hs-empty{margin:0;font-size:.74rem;color:var(--muted);line-height:1.45}
.hs-hidden-list{display:grid;gap:6px}
.hs-hidden-item{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;padding:6px 8px 6px 6px;border:1px solid var(--line);border-radius:12px}
.hs-hidden-item img{width:28px;height:28px;object-fit:contain}
.hs-hidden-item b{font-size:.8rem;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hs-hidden-item button,.hs-link{appearance:none;border:0;background:transparent;color:var(--primary);font:inherit;font-size:.76rem;font-weight:800;cursor:pointer;padding:6px 8px;border-radius:8px}
.hs-hidden-item button:hover,.hs-link:hover{background:color-mix(in srgb,var(--primary) 9%,transparent)}
.hs-link{margin-top:6px;padding-right:0}
@media (max-width:700px){
  .hs-row{grid-template-columns:1fr;gap:6px}
  .hs-seg{display:grid;grid-auto-columns:1fr}
  .hs-seg button,.hs-switch{min-height:40px}
}
@media (prefers-reduced-motion:reduce){ .hs-switch-track,.hs-switch-track i,.hs-seg button{transition:none} }

/* ════ 2026-11-14 ═══════════════════════════════════════════════════════════════
   1) Text weight (Theme menu › Text weight, 08-text-style.js). Regular by default.
      :is(#tw…,*) adds id weight so section styles cannot keep titles bold; elements that
      have their own option (Home captions, Expenses Style names and balances) are left out,
      so those options still work. Icons (fa-*) keep their weight. */
html.tm-tw-regular :is(#tw-a,*):is(#tw-b,*):is(#tw-c,*) :is(h1,h2,h3,h4,h5,h6,button,.btn,.tiny,label,legend,th,summary,strong,b,.tab,.menu-item,.chip,.badge,.pill,select,[class*="title"],[class*="label"],[class*="heading"],[class*="kicker"],[class*="-name"]):not([class*="fa-"]):not(.wh2-label,.workspace-card-copy strong):not(#walletsOverviewSection .summary :is(.currency-head,.currency-head *,.available-label,.available-label *,.available-amount,.available-amount *,.summary-line-one-value,.summary-line-one-value *)){
  font-weight:400 !important;
}
html.tm-tw-medium :is(#tw-a,*):is(#tw-b,*):is(#tw-c,*) :is(h1,h2,h3,h4,h5,h6,button,.btn,.tiny,label,legend,th,summary,strong,b,.tab,.menu-item,.chip,.badge,.pill,select,[class*="title"],[class*="label"],[class*="heading"],[class*="kicker"],[class*="-name"]):not([class*="fa-"]):not(.wh2-label,.workspace-card-copy strong):not(#walletsOverviewSection .summary :is(.currency-head,.currency-head *,.available-label,.available-label *,.available-amount,.available-amount *,.summary-line-one-value,.summary-line-one-value *)){
  font-weight:500 !important;
}

/* Theme menu: Text weight row */
html[data-triplem-theme] #app .theme-menu-weight,
.theme-menu-weight{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:4px 8px;padding:8px 10px;border-radius:12px}
.theme-menu-weight .theme-menu-toggle-icon{font-size:.78rem;color:var(--primary);text-align:center}
.theme-menu-weight .theme-menu-copy{display:flex;flex-direction:column;min-width:0}
.theme-menu-weight .theme-menu-copy strong{font-size:.74rem;line-height:1.25;color:var(--text)}
.theme-menu-weight .theme-menu-copy small{font-size:.66rem;color:var(--muted)}
.theme-menu-seg{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px;border-radius:10px;background:color-mix(in srgb,var(--muted,#64748b) 12%,transparent)}
html body .theme-menu-seg button{appearance:none;border:0 !important;background:transparent !important;box-shadow:none !important;min-height:28px;border-radius:8px;color:var(--muted);font:inherit;font-size:.72rem;cursor:pointer;padding:0 4px}
html body .theme-menu-seg button[data-text-weight="medium"]{font-weight:500 !important}
html body .theme-menu-seg button[data-text-weight="bold"]{font-weight:750 !important}
html body .theme-menu-seg button[aria-checked="true"]{background:var(--surface-elevated,var(--panel)) !important;color:var(--primary);box-shadow:0 1px 3px rgba(15,23,42,.15) !important}
html body .theme-menu-seg button:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 45%,transparent);outline-offset:1px}

/* 2) Section header without frames: house icon (as in Inventory 2.0), section icon + name. */
html body #app #workspaceSectionNav.workspace-section-nav:not(.hide){
  background:none !important;border:0 !important;box-shadow:none !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
  display:flex !important;align-items:center;gap:4px !important;padding:0 !important;min-height:44px;
}
html body #app #workspaceSectionNav .workspace-home-back{
  width:40px !important;min-width:40px !important;height:40px !important;padding:0 !important;flex:0 0 40px;
  border:0 !important;background:none !important;box-shadow:none !important;border-radius:12px !important;
  color:var(--primary) !important;transform:none !important;
}
html body #app #workspaceSectionNav .workspace-home-back i{font-size:1.22rem}
#workspaceSectionNav .workspace-home-back-text{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html body #app #workspaceSectionNav .workspace-home-back:hover{background:color-mix(in srgb,var(--primary) 10%,transparent) !important}
html body #app #workspaceSectionNav .workspace-home-back:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 50%,transparent) !important;outline-offset:1px}
.workspace-section-icon-wrap{display:inline-grid;place-items:center;width:34px;height:34px;flex:0 0 34px;margin-right:2px;cursor:pointer}
.workspace-section-icon{width:28px;height:28px;display:block;background-color:var(--primary);
  -webkit-mask:var(--sec-icon) center / contain no-repeat;mask:var(--sec-icon) center / contain no-repeat}
html body #app #workspaceSectionNav#workspaceSectionNav select#workspaceSectionSelect.workspace-section-switch{
  width:auto !important;min-width:0 !important;max-width:min(260px,52vw);flex:0 1 auto !important;height:40px !important;
  padding:0 4px 0 26px !important;border:0 !important;border-radius:10px !important;box-shadow:none !important;
  background:transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") left 6px center / 13px no-repeat !important;
  color:var(--text) !important;font-size:1.02rem !important;text-align:right !important;text-align-last:right !important;
  field-sizing:content;
}
html body #app #workspaceSectionNav#workspaceSectionNav select#workspaceSectionSelect.workspace-section-switch:hover{background-color:color-mix(in srgb,var(--primary) 8%,transparent) !important}
/* Focus: like the other buttons, no ring after a click or tap; a ring only when moving with the
   keyboard (html.tm-kbd, set by 08-text-style.js on Tab). Size never changes. */
html body #app #workspaceSectionNav#workspaceSectionNav select#workspaceSectionSelect.workspace-section-switch:is(:focus,:focus-visible){outline:none !important;box-shadow:none !important}
html.tm-kbd body #app #workspaceSectionNav#workspaceSectionNav select#workspaceSectionSelect.workspace-section-switch:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 45%,transparent) !important;outline-offset:1px}
html body #triplemDesktopSearchBar.dgs:focus-within{box-shadow:0 1px 2px rgba(15,23,42,.05) !important;border-color:color-mix(in srgb,var(--primary,#2457d6) 18%,var(--line,rgba(71,85,105,.22))) !important;outline:none !important}
html.tm-kbd body #triplemDesktopSearchBar.dgs:focus-within{border-color:color-mix(in srgb,var(--primary,#2457d6) 55%,transparent) !important}
html body #triplemDesktopSearchBar#triplemDesktopSearchBar.dgs input:is(:focus,:focus-visible,:hover),html[data-triplem-theme] body #app #triplemDesktopSearchBar#triplemDesktopSearchBar.dgs input:is(:focus,:focus-visible,:hover){outline:none !important;box-shadow:none !important;border:0 !important;background:transparent !important}
html body #app #workspaceSectionNav .workspace-section-switch option{color:var(--text);background:var(--panel)}
@media (max-width:820px){
  html body #app #workspaceSectionNav#workspaceSectionNav select#workspaceSectionSelect.workspace-section-switch{font-size:.95rem !important;max-width:calc(100vw - 110px)}
  .workspace-section-icon{width:25px;height:25px}
  .workspace-section-icon-wrap{width:30px;height:30px;flex-basis:30px}
}

/* The section bar is hidden on Triplem VIP Home (class "hide"); the rules above must not show it. */
html body #app #workspaceSectionNav.workspace-section-nav.hide{display:none !important}
/* 2026-11-14 b: section switcher as a menu (blue section icons), aligned with the house button */
#workspaceSectionSelect[hidden]{display:none !important}
html body #app #workspaceSectionNav#workspaceSectionNav{align-items:center !important;gap:2px !important}
html body #app #workspaceSectionNav .workspace-home-back{display:inline-grid !important;place-items:center !important;line-height:1 !important}
.ws-switch-wrap{display:inline-flex;align-items:center;min-width:0}
html body #app #workspaceSectionNav#workspaceSectionNav .ws-switch-btn{
  appearance:none;display:inline-flex;align-items:center;gap:9px;height:40px;min-width:0;padding:0 6px 0 10px;margin:0;
  border:0 !important;background:none !important;box-shadow:none !important;border-radius:10px !important;outline:none;
  color:var(--text) !important;font:inherit;font-size:1.02rem;line-height:1;cursor:pointer;transition:background-color .15s ease;
}
html body #app #workspaceSectionNav#workspaceSectionNav .ws-switch-btn:hover,
html body #app #workspaceSectionNav#workspaceSectionNav .ws-switch-btn[aria-expanded="true"]{background:color-mix(in srgb,var(--primary) 9%,transparent) !important}
html.tm-kbd body #app #workspaceSectionNav#workspaceSectionNav .ws-switch-btn:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 45%,transparent) !important;outline-offset:1px}
#workspaceSectionNav .ws-switch-btn .workspace-section-icon{width:24px;height:24px;flex:0 0 24px}
#workspaceSectionNav .ws-switch-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(260px,52vw);padding-top:1px}
#workspaceSectionNav .ws-caret{font-size:.62rem;color:var(--muted);transition:transform .15s ease}
#workspaceSectionNav .ws-switch-btn[aria-expanded="true"] .ws-caret{transform:rotate(180deg)}
.menu-dropdown.ws-switch-menu{min-width:230px;max-height:min(70vh,540px);overflow-y:auto;overscroll-behavior:contain}
.ws-switch-menu .ws-item{display:flex;align-items:center;gap:10px;font-size:.84rem;white-space:nowrap}
.ws-switch-menu .ws-item-ico{width:18px;height:18px;flex:0 0 18px;display:block;background-color:var(--primary);
  -webkit-mask:var(--sec-icon) center / contain no-repeat;mask:var(--sec-icon) center / contain no-repeat}
.ws-switch-menu .ws-item-ico--home{background:none;-webkit-mask:none;mask:none;color:var(--primary);font-size:.9rem;text-align:center;line-height:18px}
.ws-switch-menu .ws-item.is-current{color:var(--primary);background:color-mix(in srgb,var(--primary) 9%,transparent)}
.ws-switch-menu .ws-item-label{overflow:hidden;text-overflow:ellipsis}
@media (max-width:820px){
  html body #app #workspaceSectionNav#workspaceSectionNav .ws-switch-btn{font-size:.95rem;gap:8px}
  #workspaceSectionNav .ws-switch-btn .workspace-section-icon{width:22px;height:22px;flex-basis:22px}
}

/* 2026-11-14 c: the section menu, "Expenses ▾" and "Add ▾" share one menu style:
   one solid panel, items without their own background (no "banners"), hover tint only,
   compact rows so the whole section list fits without a scroll bar.
   :is(#m-a,*) etc. add id weight: the theme layer styles buttons inside the section bar and
   the wallets area with ids, which otherwise gives every item its own card. */
html body :is(#m-a,*):is(#m-b,*):is(#m-c,*) .menu-dropdown:is(.ws-switch-menu,[data-entry-menu-panel="expenses"],[data-entry-menu-panel="expenses-view"]){
  /* opaque: the theme's surface colour laid over the page colour, so nothing shows through */
  background:linear-gradient(var(--surface-elevated,rgba(255,255,255,.94)),var(--surface-elevated,rgba(255,255,255,.94))),var(--bg,#fff) !important;
  border:1px solid color-mix(in srgb,var(--line) 90%,transparent) !important;border-radius:12px !important;
  box-shadow:0 18px 40px -12px rgba(15,23,42,.28),0 2px 6px rgba(15,23,42,.06) !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;padding:5px !important;gap:1px !important;
}
html body :is(#m-a,*):is(#m-b,*):is(#m-c,*) .menu-dropdown:is(.ws-switch-menu,[data-entry-menu-panel="expenses"],[data-entry-menu-panel="expenses-view"]) .menu-item{
  background:transparent !important;background-image:none !important;border:0 !important;box-shadow:none !important;
  border-radius:8px !important;padding:7px 10px !important;min-height:0 !important;margin:0 !important;
  color:var(--text) !important;font-size:.82rem !important;line-height:1.3 !important;display:flex !important;align-items:center;gap:9px;text-align:right;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;transform:none !important;
}
html body :is(#m-a,*):is(#m-b,*):is(#m-c,*) .menu-dropdown:is(.ws-switch-menu,[data-entry-menu-panel="expenses"],[data-entry-menu-panel="expenses-view"]) .menu-item:is(:hover,:focus-visible){
  background:color-mix(in srgb,var(--primary) 9%,transparent) !important;outline:none;
}
html body :is(#m-a,*):is(#m-b,*):is(#m-c,*) .menu-dropdown:is(.ws-switch-menu,[data-entry-menu-panel="expenses-view"]) .menu-item:is(.is-current,[aria-checked="true"]){
  color:var(--primary) !important;background:color-mix(in srgb,var(--primary) 8%,transparent) !important;
}
html body .menu-dropdown:is([data-entry-menu-panel="expenses"],[data-entry-menu-panel="expenses-view"]) .menu-item i{width:18px;margin:0 !important;text-align:center;color:var(--primary)}
html body .menu-dropdown.ws-switch-menu{max-height:calc(100dvh - 24px) !important;overflow-y:auto;scrollbar-width:thin;min-width:220px}

/* ===== SOURCE: Assets/style/67-expenses-v2.css ===== */
/* Triplem VIP Expenses v2 — 2026-11-12
   Wallets/Accounts first; "Expenses History" swaps the wallets for the expenses list.
   Compact wallet cards (2 per row on phones), hover zoom, spent bar, wallet overlay hero,
   restyled history, Expenses Style options (ev-*), and lighter animation.
   Scoped to #walletsOverviewSection.ev2, #expensesPanel and the wallet details overlay. */

/* ── Section frame: no outer card ── */
html body #app #walletsOverviewSection.ev2{
  background:transparent !important;border:0 !important;box-shadow:none !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
  padding:2px 0 0 !important;overflow:visible !important;
}
html body #app #walletsOverviewSection.ev2::before,
html body #app #walletsOverviewSection.ev2::after{content:none !important;display:none !important}
#walletsOverviewSection.ev2 #walletsBanner{display:none !important}
html body #app #walletsOverviewSection.ev2 .wallets-content{display:block !important;max-height:none !important;opacity:1 !important;overflow:visible !important;padding:0 !important;margin:0 !important;background:transparent !important;border:0 !important;box-shadow:none !important}
html body #app #walletsOverviewSection.ev2 #expenseOverviewWallets{background:transparent !important;border:0 !important;box-shadow:none !important}

/* ── Head ── */
.ev2-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 2px 12px}
.ev2-title{margin:0;font-size:clamp(1.2rem,2vw,1.5rem);font-weight:850;letter-spacing:-.03em;color:var(--text);line-height:1.15}
.ev2-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.ev2-btn{
  appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 14px;
  border:1px solid var(--line);border-radius:999px;background:var(--surface-elevated,var(--panel));
  color:var(--text);font:inherit;font-size:.82rem;font-weight:750;cursor:pointer;white-space:nowrap;
  box-shadow:0 1px 2px rgba(15,23,42,.06);
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.ev2-btn i{font-size:.8rem;color:var(--primary)}
.ev2-btn--icon{width:38px;padding:0}
.ev2-btn:hover{border-color:color-mix(in srgb,var(--primary) 45%,var(--line));transform:translateY(-1px);box-shadow:0 6px 16px rgba(15,23,42,.12)}
.ev2-btn:active{transform:none}
.ev2-btn:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}
.ev2-btn.is-on,.ev2-btn[aria-pressed="true"],.ev2-btn[aria-expanded="true"]{background:color-mix(in srgb,var(--primary) 12%,var(--panel));border-color:color-mix(in srgb,var(--primary) 60%,var(--line));color:var(--primary)}
.ev2-btn--primary{background:linear-gradient(180deg,color-mix(in srgb,var(--primary) 88%,#fff),var(--primary));border-color:transparent;color:#fff}
.ev2-btn--primary i{color:#fff}
.ev2-btn--primary:hover{border-color:transparent;box-shadow:0 8px 20px color-mix(in srgb,var(--primary) 35%,transparent)}

/* ── Wallets or History (one at a time) ── */
body:not(.ev2-history-open) #expensesPanel{display:none !important}
html body.ev2-history-open #app #walletsOverviewSection.ev2 .wallets-content{display:none !important}
body.ev2-history-open #expensesPanel.active{animation:ev2In .22s ease-out both}
html body:not(.ev2-history-open) #app #walletsOverviewSection.ev2 .wallets-content{animation:ev2In .22s ease-out both}
@keyframes ev2In{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ── Layout ── */
#walletsOverviewSection.ev2 .wallets-desktop-layout{display:grid !important;grid-template-columns:minmax(230px,280px) minmax(0,1fr) !important;gap:14px !important;align-items:start !important}
#walletsOverviewSection.ev2 .summary-column{position:sticky;top:12px;width:auto !important;max-width:none !important;min-width:0 !important}
#walletsOverviewSection.ev2 .wallets-column{min-width:0 !important;width:auto !important}
#walletsOverviewSection.ev2 .wallets-grid{display:grid !important;grid-template-columns:repeat(auto-fill,minmax(212px,1fr)) !important;gap:12px !important}
#walletsOverviewSection.ev2 .wallets-full-width .wallets-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr)) !important}
#walletsOverviewSection.ev2.ev-no-summary .wallets-desktop-layout{grid-template-columns:minmax(0,1fr) !important}
#walletsOverviewSection.ev2.ev-no-summary .summary-column,
#walletsOverviewSection.ev2.ev-no-summary #expenseOverviewWallets > .summary.expense-overview{display:none !important}

/* ── Wallet card ── */
html body #app #walletsOverviewSection.ev2 .summary.wallet-details-card{
  --wallet-accent:var(--primary);
  position:relative;display:flex;flex-direction:column;gap:4px;min-width:0;min-height:0;
  margin:0 !important;padding:12px 13px 11px !important;border-radius:18px !important;
  border:1px solid color-mix(in srgb,var(--wallet-accent) 22%,var(--line)) !important;
  background:linear-gradient(90deg,var(--wallet-accent),color-mix(in srgb,var(--wallet-accent) 25%,transparent)) top / 100% 3px no-repeat,
    radial-gradient(130% 90% at 100% 0%,color-mix(in srgb,var(--wallet-accent) 15%,transparent),transparent 60%),
    var(--surface-elevated,var(--panel)) !important;
  box-shadow:0 1px 2px rgba(15,23,42,.06),0 8px 22px -14px rgba(15,23,42,.28) !important;
  cursor:pointer;zoom:var(--ev-card-zoom,1);
  transition:transform .3s cubic-bezier(.34,1.4,.64,1),box-shadow .25s ease,border-color .25s ease !important;
}
@media (hover:hover){
  html body #app #walletsOverviewSection.ev2:not(.ev-motion-none) #expenseOverviewWallets:not(.expense-wallet-reordering) .summary.wallet-details-card:hover{
    transform:scale(1.04) !important;z-index:2;
    border-color:color-mix(in srgb,var(--wallet-accent) 55%,var(--line)) !important;
    box-shadow:0 2px 4px rgba(15,23,42,.08),0 20px 36px -18px color-mix(in srgb,var(--wallet-accent) 55%,rgba(15,23,42,.45)) !important;
  }
  html body #app #walletsOverviewSection.ev2.ev-motion-lift #expenseOverviewWallets:not(.expense-wallet-reordering) .summary.wallet-details-card:hover{transform:translateY(-5px) !important}
}
html body #app #walletsOverviewSection.ev2 .summary.wallet-details-card:focus-visible{outline:2px solid var(--wallet-accent);outline-offset:3px}
html body #app #walletsOverviewSection.ev2 .summary.wallet-details-card:active{transform:scale(.985) !important}

#walletsOverviewSection.ev2 .wallet-details-card .currency-head{font-size:.92rem !important;gap:7px !important;margin:0 0 4px 22px !important;min-width:0}
#walletsOverviewSection.ev2 .wallet-details-card .currency-head > span:last-child{font-size:.86rem !important;font-weight:800 !important;letter-spacing:-.01em;color:var(--text)}
#walletsOverviewSection.ev2 .wallet-details-card .currency-head img{width:24px !important;height:24px !important;border-radius:7px;object-fit:cover;box-shadow:0 2px 5px rgba(15,23,42,.16)}
#walletsOverviewSection.ev2 .wallet-details-card .summary-line{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 !important;padding:0 !important;font-size:.74rem}
#walletsOverviewSection.ev2 .wallet-details-card .summary-line-one-label{color:var(--muted);font-weight:650}
#walletsOverviewSection.ev2 .wallet-details-card .summary-line-one-value{font-weight:700;font-variant-numeric:tabular-nums;color:var(--text)}
#walletsOverviewSection.ev2 .wallet-details-card .summary-line:has(.available-amount){margin-top:3px !important;padding-top:6px !important;border-top:1px dashed color-mix(in srgb,var(--line) 85%,transparent)}
#walletsOverviewSection.ev2 .wallet-details-card .available-label{font-size:.76rem;font-weight:800 !important}
html body #app #walletsOverviewSection.ev2 .wallet-details-card .summary-line-one-value.available-amount,
html body #app #walletsOverviewSection.ev2 .wallet-details-card .summary-line-one-value.available-amount .money,
html body #app #walletsOverviewSection.ev2 .wallet-details-card .summary-line-one-value.available-amount .amount{font-size:1.06rem !important;font-weight:850 !important;letter-spacing:-.02em}
html body #app #walletsOverviewSection.ev2 .wallet-details-card .summary-line-one-value.available-amount .symbol{font-size:.86rem !important}

.ev2-meter{position:relative;height:5px;margin:7px 0 1px;border-radius:999px;background:color-mix(in srgb,var(--muted,#667085) 18%,transparent);overflow:hidden}
.ev2-meter i{position:absolute;inset:0 0 0 auto;width:var(--p,0%);border-radius:inherit;background:linear-gradient(90deg,color-mix(in srgb,var(--wallet-accent,var(--primary)) 70%,#fff),var(--wallet-accent,var(--primary)));transition:width .5s ease}
.ev2-meter.is-high i{background:linear-gradient(90deg,#fbbf24,#f59e0b)}
.ev2-meter.is-empty i{background:linear-gradient(90deg,#fb7185,#e11d48)}
#walletsOverviewSection.ev2.ev-no-meter .ev2-meter{display:none}

#walletsOverviewSection.ev2 .wallet-details-card .overview-card-actions{margin-top:8px !important;gap:5px !important;align-items:center}
#walletsOverviewSection.ev2 .wallet-details-card .overview-card-actions .tiny{
  min-height:28px;padding:0 9px;border-radius:999px;font-size:.7rem;font-weight:750;display:inline-flex;align-items:center;gap:5px;
  border:1px solid var(--line);background:color-mix(in srgb,var(--panel) 60%,transparent);
}
#walletsOverviewSection.ev2 .wallet-details-card .ev2-act i{font-size:.66rem}
#walletsOverviewSection.ev2 .wallet-details-card .ev2-act--in i{color:#16a34a}
#walletsOverviewSection.ev2 .wallet-details-card .ev2-act--out i{color:#e11d48}
#walletsOverviewSection.ev2 .wallet-details-card .ev2-act--move i{color:var(--primary)}
#walletsOverviewSection.ev2 .wallet-details-card .ev2-act:hover{border-color:color-mix(in srgb,var(--wallet-accent) 50%,var(--line));background:color-mix(in srgb,var(--wallet-accent) 10%,var(--panel))}
#walletsOverviewSection.ev2 .wallet-details-card .overview-card-actions .tiny:not(.ev2-act){width:28px;padding:0;justify-content:center}
#walletsOverviewSection.ev2 .wallet-details-card .overview-card-actions .walletDownloadPdfBtn{margin-right:auto}

/* ── Summary card ── */
html body #app #walletsOverviewSection.ev2 .summary.expense-overview{
  position:relative;margin:0 !important;padding:15px !important;border-radius:20px !important;overflow:hidden;zoom:var(--ev-card-zoom,1);
  border:1px solid rgba(231,181,77,.35) !important;color:#eef6f5;
  background:radial-gradient(120% 80% at 100% 0%,rgba(242,193,78,.22),transparent 55%),linear-gradient(155deg,#16756d 0%,#0d4c48 48%,#0a2a33 100%) !important;
  box-shadow:0 16px 36px -20px rgba(6,40,38,.75) !important;
}
#walletsOverviewSection.ev2 .summary.expense-overview .currency-head{justify-content:flex-start !important;gap:7px;font-size:.98rem !important;font-weight:850 !important;color:#fff !important;margin-bottom:8px !important}
#walletsOverviewSection.ev2 .summary.expense-overview .summary-line{display:flex;justify-content:space-between;gap:8px;margin:0 !important;padding:2px 0 !important;font-size:.76rem;color:rgba(255,255,255,.82)}
#walletsOverviewSection.ev2 .summary.expense-overview .summary-line *{color:inherit}
#walletsOverviewSection.ev2 .summary.expense-overview .summary-line-one-value{font-weight:750;font-variant-numeric:tabular-nums;color:#fff}
#walletsOverviewSection.ev2 .summary.expense-overview .available-label{margin-top:3px !important;padding-top:7px !important;border-top:1px solid rgba(255,255,255,.16)}
#walletsOverviewSection.ev2 .summary.expense-overview .available-label,
#walletsOverviewSection.ev2 .summary.expense-overview .available-label *{color:#fde68a !important}
#walletsOverviewSection.ev2 .summary.expense-overview .available-amount,
#walletsOverviewSection.ev2 .summary.expense-overview .available-amount *{font-size:1.14rem !important;font-weight:850 !important;color:#fff !important;letter-spacing:-.02em}
#walletsOverviewSection.ev2 .summary.expense-overview .currency-separator{height:1px;margin:8px 0 !important;background:rgba(255,255,255,.14) !important;border:0 !important}
#walletsOverviewSection.ev2 .summary.expense-overview .overview-card-actions{margin-top:12px !important}
#walletsOverviewSection.ev2 .summary.expense-overview .overview-card-actions .tiny{min-height:28px;border-radius:999px;padding:0 10px;font-weight:750;font-size:.7rem;color:#fff !important;border:1px solid rgba(255,255,255,.28) !important;background:rgba(255,255,255,.08) !important}
#walletsOverviewSection.ev2 .summary.expense-overview .overview-card-actions .tiny:hover{background:rgba(255,255,255,.18) !important}
#walletsOverviewSection.ev2 .summary.expense-overview .wallet-float-logo{opacity:.07 !important}

/* ── Phones: two compact cards per row ── */
@media (max-width:768px){
  html body #app #walletsOverviewSection.ev2 #expenseOverviewWallets{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important}
  html body #app #walletsOverviewSection.ev2.ev-phone-1 #expenseOverviewWallets{grid-template-columns:minmax(0,1fr) !important}
  html body #app #walletsOverviewSection.ev2 #expenseOverviewWallets > *{margin:0 !important;width:auto !important;max-width:none !important;min-width:0 !important}
  #walletsOverviewSection.ev2 #expenseOverviewWallets > .summary.expense-overview{grid-column:1 / -1}
  .ev2-head{margin:0 0 10px}
  .ev2-actions{width:100%;display:grid;grid-template-columns:1fr auto auto 1fr}
  .ev2-btn{min-height:42px;padding:0 10px}
  .ev2-btn--icon{width:42px}
  html body #app #walletsOverviewSection.ev2 .summary.wallet-details-card{padding:10px 10px 9px !important;border-radius:16px !important}
  #walletsOverviewSection.ev2 .wallet-details-card .currency-head{margin-left:18px !important}
  #walletsOverviewSection.ev2 .wallet-details-card .currency-head > span:last-child{font-size:.78rem !important}
  #walletsOverviewSection.ev2 .wallet-details-card .currency-head img{width:20px !important;height:20px !important}
  #walletsOverviewSection.ev2 .wallet-details-card .summary-line{font-size:.68rem}
  html body #app #walletsOverviewSection.ev2 .wallet-details-card .summary-line-one-value.available-amount,
  html body #app #walletsOverviewSection.ev2 .wallet-details-card .summary-line-one-value.available-amount .money,
  html body #app #walletsOverviewSection.ev2 .wallet-details-card .summary-line-one-value.available-amount .amount{font-size:.94rem !important}
  #walletsOverviewSection.ev2:not(.ev-phone-1) .wallet-details-card .available-label{font-size:.66rem}
  /* two per row: action buttons become one row of icons */
  #walletsOverviewSection.ev2:not(.ev-phone-1) .wallet-details-card .overview-card-actions{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px !important}
  #walletsOverviewSection.ev2:not(.ev-phone-1) .wallet-details-card .overview-card-actions .tiny{width:auto !important;min-height:32px;padding:0 !important;justify-content:center;font-size:0 !important;gap:0;margin:0 !important}
  #walletsOverviewSection.ev2:not(.ev-phone-1) .wallet-details-card .overview-card-actions .tiny i{font-size:.78rem !important}
  #walletsOverviewSection.ev2.ev-phone-1 .wallet-details-card .overview-card-actions .ev2-act{flex:1 1 28%;justify-content:center;min-height:34px}
}
@media (max-width:360px){ .ev2-btn span{font-size:.74rem} }

/* ── Expenses Style: card look / colours ── */
html body #app #walletsOverviewSection.ev2.ev-look-solid .summary.wallet-details-card{background:linear-gradient(90deg,var(--wallet-accent),var(--wallet-accent)) top / 100% 3px no-repeat,var(--surface-elevated,var(--panel)) !important}
html body #app #walletsOverviewSection.ev2.ev-look-vivid .summary.wallet-details-card{
  border-color:transparent !important;color:#fff;
  background:radial-gradient(120% 90% at 100% 0%,rgba(255,255,255,.22),transparent 55%),linear-gradient(150deg,var(--wallet-accent),color-mix(in srgb,var(--wallet-accent) 55%,#0b1220)) !important;
}
html body #app #walletsOverviewSection.ev2.ev-look-vivid .wallet-details-card :is(.summary-line-one-label,.summary-line-one-value,.currency-head > span,.available-label,.available-amount,.available-amount *, .symbol){color:#fff !important}
html body #app #walletsOverviewSection.ev2.ev-look-vivid .wallet-details-card .overview-card-actions .tiny{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.3);color:#fff}
html body #app #walletsOverviewSection.ev2.ev-look-vivid .wallet-details-card .ev2-act i{color:#fff !important}
html body #app #walletsOverviewSection.ev2.ev-look-vivid .ev2-meter{background:rgba(255,255,255,.25)}
html body #app #walletsOverviewSection.ev2.ev-look-vivid .ev2-meter i{background:#fff}
html body #app #walletsOverviewSection.ev2.ev-accent-brand .summary.wallet-details-card{--wallet-accent:#11877b !important}
html body #app #walletsOverviewSection.ev2.ev-accent-mono .summary.wallet-details-card{--wallet-accent:#64748b !important}

/* ── Hide amounts (privacy): blurred until the pointer or focus is on the card ── */
html.ev-privacy #walletsOverviewSection .money,
html.ev-privacy #expensesPanel .money,
html.ev-privacy #sectionDetailsModal[data-details-kind="wallet"] .money{filter:blur(6px);transition:filter .15s ease}
html.ev-privacy #walletsOverviewSection .summary:hover .money,
html.ev-privacy #walletsOverviewSection .summary:focus-within .money,
html.ev-privacy #expensesPanel .expense-item-row:hover .money,
html.ev-privacy #sectionDetailsModal[data-details-kind="wallet"] .wd-hero:hover .money{filter:none}

/* ── Expenses History ── */
html body #app #expensesPanel > .card.section{background:transparent !important;border:0 !important;box-shadow:none !important;padding:0 !important}
#expensesPanel .section-head-top .title-group h3{display:none}
#expensesPanel .section-head-top .title-row{gap:6px;flex-wrap:wrap}
#expensesPanel .section-head-top .title-row .tiny{min-height:32px;padding:0 12px;border-radius:999px;font-weight:750;font-size:.76rem}
#expensesPanel .section-head{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
#expensesPanel .section-head-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#expensesPanel .compact-filter-row{
  padding:10px 12px;border-radius:16px;border:1px solid var(--line);
  background:var(--surface-elevated,var(--panel));box-shadow:0 1px 2px rgba(15,23,42,.05);
}
#expensesPanel .compact-filter-main{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#expensesPanel .compact-filter-row .input,#expensesPanel .compact-filter-row .select{min-height:38px;border-radius:12px}
#expensesPanel .compact-filter-search{flex:1 1 240px;min-width:0}
#expensesPanel .compact-filter-search .input{width:100%;padding-right:34px;background:var(--control-bg,transparent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") 11px 50% / 15px no-repeat}
#expensesPanel .filter-inline-label{font-size:.66rem;letter-spacing:.08em}
#expensesPanel .expense-date-range-control.ev2-replaced{display:none !important}
#expensesPanel .ev2-seg-wrap{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:1 1 100%}

.ev2-seg{display:inline-flex;gap:3px;padding:3px;border-radius:12px;background:color-mix(in srgb,var(--muted,#667085) 14%,transparent);flex-wrap:wrap}
.ev2-seg button{appearance:none;min-height:32px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:var(--muted);font:inherit;font-size:.76rem;font-weight:750;cursor:pointer;white-space:nowrap;transition:background-color .15s ease,color .15s ease}
.ev2-seg button:hover{color:var(--text)}
.ev2-seg button[aria-checked="true"]{background:var(--surface-elevated,var(--panel));color:var(--primary);box-shadow:0 1px 3px rgba(15,23,42,.14),0 0 0 1px color-mix(in srgb,var(--primary) 22%,transparent)}
.ev2-seg button:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 45%,transparent);outline-offset:1px}
#expensesPanel .expense-record-view-control.ev2-replaced{display:none !important}

#expensesPanel .expense-collapsible-section{border-radius:18px !important;border:1px solid var(--line) !important;background:var(--surface-elevated,var(--panel)) !important;overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.05)}
#expensesPanel .expense-collapsible-header{padding:12px 14px !important}
#expensesPanel .expense-collapsible-content{padding:4px 10px 12px !important}
#expensesPanel .expense-item-row{margin:6px 0 !important;border-radius:14px !important;border:1px solid color-mix(in srgb,var(--line) 85%,transparent) !important;background:color-mix(in srgb,var(--panel) 55%,transparent) !important;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}
#expensesPanel .expense-item-row:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--line)) !important;box-shadow:0 6px 18px -12px rgba(15,23,42,.35)}
#expensesPanel .expense-item-row > summary{padding:10px 12px !important}
#expensesPanel .expense-item-row .loan-top{display:grid !important;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px}
.ev2-item-ico{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:var(--primary);background:color-mix(in srgb,var(--primary) 12%,transparent);font-size:.9rem}
#expensesPanel .expense-item-row .loan-name{font-size:.92rem;font-weight:800;letter-spacing:-.01em}
#expensesPanel .expense-item-row .loan-sub{display:flex;align-items:center;gap:8px;font-size:.72rem;color:var(--muted);margin-top:2px}
#expensesPanel .expense-item-row .expense-item-total small{font-size:.66rem;color:var(--muted)}
#expensesPanel .expense-item-row .expense-item-total strong{font-size:1rem;font-weight:850;font-variant-numeric:tabular-nums}
#expensesPanel .expense-item-row .table-wrap{border-radius:12px;overflow:auto}
#expensesPanel .expense-tx-row:hover td{background:color-mix(in srgb,var(--primary) 6%,transparent)}
#expensesPanel.ev2-loading .expense-collapsible-content{opacity:.55;transition:opacity .2s ease}
@media (max-width:700px){
  #expensesPanel .expense-item-row .loan-top{grid-template-columns:auto minmax(0,1fr) auto;gap:10px}
  #expensesPanel .expense-item-row .lt-action{display:none}
  .ev2-item-ico{width:34px;height:34px;border-radius:10px}
  #expensesPanel .compact-filter-main > *{flex:1 1 45%}
  #expensesPanel .compact-filter-search{flex-basis:100%}
  .ev2-seg{width:100%;display:grid;grid-auto-flow:column;grid-auto-columns:1fr}
  .ev2-seg button{padding:0 6px;font-size:.72rem}
  .ev2-seg.ev2-seg--dates{grid-auto-flow:row;grid-template-columns:repeat(3,1fr)}
}

/* ── Wallet details overlay ── */
#sectionDetailsModal[data-details-kind="wallet"] .modal-dialog{max-width:min(940px,calc(100vw - 24px)) !important;border-radius:24px !important}
#sectionDetailsModal[data-details-kind="wallet"] .section-details-head-text h3{font-size:1.15rem;font-weight:850;letter-spacing:-.02em;display:flex;align-items:center;gap:10px}
#sectionDetailsModal[data-details-kind="wallet"] .section-details-head-text h3 img{width:34px !important;height:34px !important;border-radius:10px;object-fit:cover;box-shadow:0 3px 8px rgba(15,23,42,.18)}
#sectionDetailsModal[data-details-kind="wallet"] .section-details-actions .btn{border-radius:999px;min-height:34px}
.wd-hero{
  --wallet-accent:var(--primary);
  display:grid;gap:12px;margin-bottom:14px;padding:16px 18px;border-radius:20px;color:#fff;
  background:radial-gradient(120% 90% at 100% 0%,rgba(255,255,255,.22),transparent 55%),linear-gradient(150deg,var(--wallet-accent),color-mix(in srgb,var(--wallet-accent) 50%,#0b1220));
  box-shadow:0 18px 36px -22px color-mix(in srgb,var(--wallet-accent) 70%,#000);
}
.wd-balance{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.wd-balance small{font-size:.74rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase;opacity:.85}
.wd-balance strong{font-size:clamp(1.6rem,3.6vw,2.2rem);font-weight:850;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.wd-balance strong *{color:#fff !important}
.wd-chip{margin-right:auto;padding:4px 10px;border-radius:999px;font-size:.7rem;font-weight:800;background:rgba(255,255,255,.18)}
.wd-chip.is-open::before{content:"";display:inline-block;width:7px;height:7px;margin-left:6px;border-radius:50%;background:#4ade80;vertical-align:1px}
.wd-hero .ev2-meter{margin:0;height:6px;background:rgba(255,255,255,.25)}
.wd-hero .ev2-meter i{background:#fff}
.wd-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.wd-kpi{padding:9px 11px;border-radius:14px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);min-width:0}
.wd-kpi small{display:block;font-size:.66rem;font-weight:700;opacity:.85}
.wd-kpi strong{display:block;margin-top:2px;font-size:.92rem;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wd-kpi strong *{color:#fff !important}
.wd-quick{display:flex;gap:8px;flex-wrap:wrap}
.wd-q{appearance:none;display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.14);color:#fff;font:inherit;font-size:.8rem;font-weight:750;cursor:pointer;transition:background-color .15s ease,transform .15s ease}
.wd-q:hover{background:rgba(255,255,255,.26);transform:translateY(-1px)}
.wd-q--icon{width:36px;padding:0;justify-content:center;margin-right:auto}
#sectionDetailsModal[data-details-kind="wallet"] .section-details-chart-card{border-radius:18px !important}
#sectionDetailsModal[data-details-kind="wallet"] .wallet-transaction-row{border-radius:14px !important}
.ev2-wait{display:grid;place-items:center;min-height:160px;color:var(--muted);font-size:1.3rem}
@media (max-width:700px){
  .wd-hero{padding:14px;border-radius:18px}
  .wd-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wd-kpis .wd-kpi:last-child{grid-column:1 / -1}
  .wd-q{flex:1 1 28%;justify-content:center}
  .wd-q--icon{flex:0 0 36px}
}

/* ── Performance ── */
html.triplem-bg-off #walletsOverviewSection .wallet-float-logo,
html.triplem-low-power #walletsOverviewSection .wallet-float-logo,
html.triplem-bg-off #walletsOverviewSection .summary-watermark-wallet-logo,
html.triplem-low-power #walletsOverviewSection .summary-watermark-wallet-logo,
html.triplem-bg-off #walletsOverviewSection .summary-watermark-wallet-logo img,
html.triplem-low-power #walletsOverviewSection .summary-watermark-wallet-logo img{animation:none !important}
#expensesList .expense-item-row:not([open]){content-visibility:auto;contain-intrinsic-size:auto 76px}
@media (prefers-reduced-motion:reduce){
  html body #app #walletsOverviewSection.ev2 .summary.wallet-details-card,.ev2-btn,.ev2-meter i,.wd-q{transition:none !important}
  body.ev2-history-open #expensesPanel.active,html body:not(.ev2-history-open) #app #walletsOverviewSection.ev2 .wallets-content{animation:none !important}
}

/* ── Wallet logo picker ── */
.wl-legacy-field{display:none !important}
.wl-pick-btn{
  appearance:none;width:100%;display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:14px;
  border:1px solid var(--line);background:var(--surface-elevated,var(--panel));color:var(--text);font:inherit;text-align:right;cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.wl-pick-btn:hover{border-color:color-mix(in srgb,var(--primary) 45%,var(--line));box-shadow:0 6px 16px -10px rgba(15,23,42,.35)}
.wl-pick-btn:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}
.wl-pick-img{width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:grid;place-items:center;background:#fff;border:1px solid color-mix(in srgb,var(--line) 80%,transparent);overflow:hidden}
.wl-pick-img img{width:34px;height:34px;object-fit:contain}
.wl-pick-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:1px}
.wl-pick-text strong{font-size:.9rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wl-pick-text small{font-size:.72rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wl-pick-cta{font-size:.76rem;font-weight:750;color:var(--primary);white-space:nowrap}
.wl-pick-cta i{font-size:.66rem;margin-right:3px}

.modal.wl-picker-modal{z-index:9700}
.wl-picker-dialog{width:min(640px,calc(100vw - 24px)) !important;max-width:min(640px,calc(100vw - 24px)) !important;max-height:min(720px,calc(100dvh - 24px));display:flex !important;flex-direction:column;border-radius:22px !important;overflow:hidden}
.wl-picker-head{display:flex !important;align-items:center;gap:12px}
.wl-picker-titles{flex:1 1 auto;min-width:0}
.wl-picker-titles h3{margin:0;font-size:1.05rem;font-weight:850}
.wl-picker-titles .help{margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wl-preview{width:52px;height:52px;flex:0 0 52px;border-radius:15px;display:grid;place-items:center;background:#fff;border:1px solid var(--line);box-shadow:0 4px 12px -6px rgba(15,23,42,.35);overflow:hidden}
.wl-preview img{width:42px;height:42px;object-fit:contain}
.wl-picker-body{flex:1 1 auto;min-height:0;overflow:auto;padding-top:4px !important}
.wl-tools{display:flex;gap:8px;margin-bottom:12px;position:sticky;top:0;z-index:1;padding:2px 0 8px;background:inherit}
.wl-tools .input{flex:1 1 auto;min-width:0;min-height:40px;border-radius:12px}
.wl-upload-btn{display:inline-flex;align-items:center;gap:7px;min-height:40px;border-radius:12px;white-space:nowrap;cursor:pointer}
.wl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
.wl-tile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px 8px;border-radius:14px;border:1px solid color-mix(in srgb,var(--line) 85%,transparent);background:color-mix(in srgb,var(--panel) 60%,transparent);cursor:pointer;min-width:0;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}
.wl-tile[hidden]{display:none}
@media (hover:hover){.wl-tile:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--primary) 40%,var(--line));box-shadow:0 8px 18px -12px rgba(15,23,42,.4)}}
.wl-tile:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}
.wl-tile.is-selected{border-color:var(--primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 30%,transparent);background:color-mix(in srgb,var(--primary) 8%,var(--panel))}
.wl-tile-img{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:#fff;overflow:hidden;border:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
.wl-tile-img img{width:40px;height:40px;object-fit:contain}
.wl-tile-name{max-width:100%;font-size:.7rem;font-weight:700;text-align:center;line-height:1.2;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.wl-tile--auto .wl-tile-name::after{content:" ✦";color:var(--primary)}
.wl-picker-actions{border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
.wl-picker-actions .btn.primary:disabled{opacity:.5;cursor:not-allowed}
@media (max-width:560px){
  .wl-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .wl-tile{padding:8px 4px 6px;border-radius:12px}
  .wl-tile-img{width:40px;height:40px}
  .wl-tile-img img{width:32px;height:32px}
  .wl-tile-name{font-size:.64rem}
  .wl-upload-btn span{display:none}
}

/* ── Fixes after review (overlay text contrast, phone head, card name) ── */
#sectionDetailsModal .wd-legacy-metrics{display:none !important}
html body #sectionDetailsModal .wd-hero,
html body #sectionDetailsModal .wd-hero :is(small,strong,span,b,.money,.amount,.symbol){color:#fff !important}
html body #sectionDetailsModal .wd-hero small{color:rgba(255,255,255,.82) !important;text-shadow:none !important}
html body #sectionDetailsModal .wd-hero .wd-chip{color:#fff !important}
@media (max-width:768px){
  .ev2-actions{grid-template-columns:minmax(0,1fr) auto auto minmax(0,1fr)}
  .ev2-actions .ev2-btn{min-width:0;font-size:.78rem;gap:5px}
  .ev2-actions .ev2-btn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  #walletsOverviewSection.ev2 .wallet-details-card .currency-head{margin-left:26px !important}
  #walletsOverviewSection.ev2:not(.ev-phone-1) .wallet-details-card .overview-card-actions .tiny{min-height:30px}
}
@media (max-width:768px){ .ev2-actions .ev2-long{display:none} }
.wl-picker-actions{display:flex !important;justify-content:flex-end;gap:8px;padding:12px 16px !important}

/* ════ Round 3 (12 Nov 2026 evening) ════════════════════════════════════════════
   Ids are doubled on purpose: the theme layer (20-themes-performance.css) styles
   .overview, .section-head, .expense-collapsible-* etc. with an id inside :is(),
   which beats a single-id selector even with !important. */

/* No frame behind the head row or the wallets */
html body #app #walletsOverviewSection#walletsOverviewSection.ev2,
html[data-triplem-theme] body #app #walletsOverviewSection#walletsOverviewSection.ev2{
  background:none !important;background-color:transparent !important;background-image:none !important;
  border:0 !important;box-shadow:none !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;
}
html body #app #walletsOverviewSection#walletsOverviewSection.ev2 :is(.wallets-content,#expenseOverviewWallets,.wallets-desktop-layout,.summary-column,.wallets-column,.wallets-grid,.ev2-head,.ev2-actions){
  background:none !important;border:0 !important;box-shadow:none !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;
}
.ev2-actions{gap:8px}

/* Lighter painting: no live blur behind cards (the background bubbles move, so a blur
   behind every card had to be recomputed on every frame), no endless card animations. */
html body #app #walletsOverviewSection#walletsOverviewSection.ev2 .summary,
html body #app #expensesPanel#expensesPanel :is(.card.section,.section-head,.section-head-top,.compact-filter-row,.filter-inline-section,.expense-collapsible-section,.expense-collapsible-header,.expense-item-row){
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
}
html body #app #walletsOverviewSection#walletsOverviewSection.ev2 :is(.wallet-float-logo,.summary-watermark,.summary-watermark-wallet-logo,.summary-watermark-wallet-logo img){animation:none !important}
html body #app #walletsOverviewSection#walletsOverviewSection.ev2 .summary.wallet-details-card{contain:layout style}

/* ── Summary: no currency symbols beside the title, centred text ── */
html body #app #walletsOverviewSection.ev2 .summary.expense-overview .currency-head{justify-content:center !important;text-align:center;font-weight:500 !important;letter-spacing:.01em}
#walletsOverviewSection.ev2:not(.ev-sum-classic) .summary.expense-overview .summary-line{justify-content:center !important;gap:8px;text-align:center;flex-wrap:wrap}
#walletsOverviewSection.ev2:not(.ev-sum-classic) .summary.expense-overview .summary-line.available-label{flex-direction:column;align-items:center;gap:2px}
#walletsOverviewSection.ev2:not(.ev-sum-classic) .summary.expense-overview .summary-line-one-label{justify-content:center}
#walletsOverviewSection.ev2:not(.ev-sum-classic) .summary.expense-overview .overview-card-actions{justify-content:center}

/* ── Weights: regular by default, bold when chosen in Expenses Style ── */
html body #app #walletsOverviewSection.ev2 .wallet-details-card .currency-head > span:last-child{font-weight:500 !important}
html body #app #walletsOverviewSection.ev2.ev-wt-bold .wallet-details-card .currency-head > span:last-child{font-weight:800 !important}
html body #app #walletsOverviewSection.ev2 .wallet-details-card :is(.available-label,.summary-line-one-value.available-amount,.summary-line-one-value.available-amount .money,.summary-line-one-value.available-amount .amount){font-weight:500 !important}
html body #app #walletsOverviewSection.ev2.ev-bal-bold .wallet-details-card :is(.available-label,.summary-line-one-value.available-amount,.summary-line-one-value.available-amount .money,.summary-line-one-value.available-amount .amount){font-weight:850 !important}
html body #app #walletsOverviewSection.ev2.ev-st-bold .summary.expense-overview .currency-head{font-weight:850 !important}
html body #app #walletsOverviewSection.ev2 .summary.expense-overview :is(.available-label,.available-label *,.available-amount,.available-amount *){font-weight:500 !important}
html body #app #walletsOverviewSection.ev2.ev-sb-bold .summary.expense-overview :is(.available-label,.available-label *,.available-amount,.available-amount *){font-weight:850 !important}
html body #app #walletsOverviewSection.ev2 .summary.expense-overview .summary-line-one-value{font-weight:500}
html body #app #walletsOverviewSection.ev2.ev-sl-bold .summary.expense-overview .summary-line-one-value{font-weight:800}

/* ── More Expenses Style options ── */
html body #app #walletsOverviewSection.ev2.ev-corners-soft :is(.summary.wallet-details-card,.summary.expense-overview){border-radius:12px !important}
html body #app #walletsOverviewSection.ev2.ev-corners-square :is(.summary.wallet-details-card,.summary.expense-overview){border-radius:5px !important}
html body #app #walletsOverviewSection.ev2.ev-density-compact .summary.wallet-details-card{padding:9px 11px 9px !important;gap:2px}
html body #app #walletsOverviewSection.ev2.ev-density-compact .wallet-details-card .overview-card-actions{margin-top:5px !important}
html body #app #walletsOverviewSection.ev2.ev-density-compact .ev2-meter{margin:5px 0 0}
@media (min-width:769px){
  #walletsOverviewSection.ev2.ev-labels-icons .wallet-details-card .ev2-act{font-size:0 !important;gap:0;width:30px;padding:0 !important;justify-content:center}
  #walletsOverviewSection.ev2.ev-labels-icons .wallet-details-card .ev2-act i{font-size:.72rem}
}
#walletsOverviewSection.ev2.ev-no-logo .wallet-details-card .currency-head img,
#walletsOverviewSection.ev2.ev-no-logo .wallet-details-card .wallet-icon-inline{display:none !important}
html body #app #walletsOverviewSection.ev2.ev-no-shadow :is(.summary.wallet-details-card,.summary.expense-overview){box-shadow:none !important}
html.ev-no-hicons #expensesPanel .ev2-item-ico{display:none}
html.ev-no-hicons #expensesPanel .expense-item-row .loan-top{grid-template-columns:minmax(0,1fr) auto auto}

/* ── Expenses History: directly on the page (no open/close banners) ── */
html body #app #expensesPanel#expensesPanel :is(.card.section,.section-head,.section-head-top,.compact-filter-row,.filter-inline-section,.expense-collapsible-section,.expense-collapsible-header,.expense-history-header,.expense-collapsible-content,.expense-wallet-block){
  background:none !important;background-color:transparent !important;border:0 !important;box-shadow:none !important;
}
html body #app #expensesPanel#expensesPanel > .card.section{padding:0 !important;margin:0 !important}
html body #app #expensesPanel#expensesPanel .section-head{margin:0 0 6px !important;padding:0 !important;gap:10px}
html body #app #expensesPanel#expensesPanel .section-head-top{padding:0 !important}
html body #app #expensesPanel#expensesPanel .compact-filter-row{padding:0 !important;margin:0 !important}
html body #app #expensesPanel#expensesPanel .compact-filter-main{gap:8px 10px}
html body #app #expensesPanel#expensesPanel .filter-inline-section{padding:0 !important;gap:6px}
#expensesPanel .filter-inline-label{display:none}
html body #app #expensesPanel#expensesPanel .compact-filter-row :is(.input,.select){
  min-height:40px;border-radius:999px !important;border:1px solid var(--line) !important;
  background-color:var(--surface-elevated,var(--panel)) !important;box-shadow:0 1px 2px rgba(15,23,42,.05) !important;
  padding-right:14px;font-size:.84rem;
}
html body #app #expensesPanel#expensesPanel .compact-filter-search .input{padding-right:36px !important;background-position:13px 50% !important}
html body #app #expensesPanel#expensesPanel .compact-filter-row :is(.input,.select):focus{border-color:color-mix(in srgb,var(--primary) 55%,var(--line)) !important;box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 16%,transparent) !important;outline:0}
#expensesPanel .compact-filter-search{flex:1 1 260px}
#expensesPanel .ev2-seg{border-radius:999px;padding:3px;background:color-mix(in srgb,var(--muted,#667085) 12%,transparent)}
#expensesPanel .ev2-seg button{border-radius:999px}
#expensesPanel .section-head-top .title-row .tiny,#expensesPanel .section-head-top .title-row .btn{border-radius:999px !important}

/* each block: a plain heading on the page, list below; never collapses */
html body #app #expensesPanel#expensesPanel .expense-collapsible-section{margin:14px 0 0 !important;padding:0 !important;overflow:visible !important;border-radius:0 !important}
html body #app #expensesPanel#expensesPanel .expense-collapsible-header{
  display:flex !important;align-items:center;justify-content:space-between;gap:10px;
  padding:4px 2px 8px !important;margin:0 !important;border-radius:0 !important;cursor:default;list-style:none;
  border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent) !important;
}
#expensesPanel .expense-collapsible-header::-webkit-details-marker{display:none}
#expensesPanel .expense-collapsible-header .expand-icon{display:none !important}
#expensesPanel .expense-collapsible-header .expense-section-title{margin:0;font-size:1rem;font-weight:800;letter-spacing:-.01em;display:flex;align-items:center;gap:8px}
#expensesPanel .expense-collapsible-header .expense-section-title i{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;font-size:.8rem;color:var(--primary);background:color-mix(in srgb,var(--primary) 12%,transparent)}
html body #app #expensesPanel#expensesPanel .expense-collapsible-content{padding:8px 0 0 !important}
#expensesPanel .expense-collapsible-content > .empty{padding:28px 12px !important;text-align:center;color:var(--muted);border:1px dashed color-mix(in srgb,var(--line) 90%,transparent);border-radius:16px}

/* rows: separate cards on the page */
html body #app #expensesPanel#expensesPanel .expense-item-row{
  margin:0 0 8px !important;border-radius:16px !important;
  border:1px solid color-mix(in srgb,var(--line) 85%,transparent) !important;
  background:var(--surface-elevated,var(--panel)) !important;
  box-shadow:0 1px 2px rgba(15,23,42,.05),0 8px 20px -18px rgba(15,23,42,.35) !important;
  transition:border-color .15s ease,box-shadow .15s ease !important;
}
@media (hover:hover){html body #app #expensesPanel#expensesPanel .expense-item-row:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--line)) !important;box-shadow:0 2px 4px rgba(15,23,42,.06),0 14px 26px -18px rgba(15,23,42,.45) !important}}
html body #app #expensesPanel#expensesPanel .expense-item-row[open]{border-color:color-mix(in srgb,var(--primary) 45%,var(--line)) !important}
html body #app #expensesPanel#expensesPanel .expense-item-row > summary{background:none !important;border:0 !important;box-shadow:none !important;padding:11px 14px !important;border-radius:16px}
#expensesPanel .expense-item-row .loan-top{background:none !important;border:0 !important;box-shadow:none !important;padding:0 !important}
#expensesPanel .expense-item-row .expense-item-total strong{color:var(--text)}
#expensesPanel .expense-item-row .badge,#expensesPanel .expense-item-row .pill{border-radius:999px}

@media (max-width:700px){
  /* date range: a dropdown on phones */
  html body #app #expensesPanel#expensesPanel .expense-date-range-control.ev2-replaced{display:flex !important}
  #expensesPanel .ev2-seg.ev2-seg--dates{display:none !important}
  #expensesPanel .compact-filter-main > *{flex:1 1 calc(50% - 6px);min-width:0}
  #expensesPanel .compact-filter-search{flex-basis:100% !important}
  #expensesPanel .compact-filter-main .select{width:100%}
  html body #app #expensesPanel#expensesPanel .expense-item-row > summary{padding:10px 11px !important}
}
@media (max-width:768px){ .ev2-actions{grid-template-columns:minmax(0,1fr) auto auto auto} }
#expensesPanel .compact-filter-main > .compact-filter-search{flex:2 1 320px}
#expensesPanel .compact-filter-main > :is(.expense-wallet-select-control,.expense-status-control){flex:0 1 200px}
@media (max-width:700px){
  html body #app #expensesPanel#expensesPanel .section-head-top{display:flex !important;flex-direction:column;align-items:stretch;gap:8px}
  html body #app #expensesPanel#expensesPanel .expenses-head-tools{width:100%;display:flex;margin:0}
  html body #app #expensesPanel#expensesPanel .expenses-head-tools .ev2-seg{flex:1 1 auto}
  html body #app #expensesPanel#expensesPanel .expense-item-row .loan-top{display:grid !important;grid-template-columns:auto minmax(0,1fr) auto !important;gap:10px !important;align-items:center !important;flex-wrap:nowrap !important}
  html body #app #expensesPanel#expensesPanel .expense-item-row .loan-top > *{order:0 !important;margin:0 !important}
  html body #app #expensesPanel#expensesPanel .expense-item-row .ev2-item-ico{grid-column:1}
  html body #app #expensesPanel#expensesPanel .expense-item-row .lt-main{grid-column:2;width:auto !important;min-width:0}
  html body #app #expensesPanel#expensesPanel .expense-item-row .loan-name{font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html body #app #expensesPanel#expensesPanel .expense-item-row .expense-item-total{grid-column:3;width:auto !important;display:flex !important;flex-direction:column;align-items:flex-end;text-align:left;border:0 !important;padding:0 !important;background:none !important}
  html body #app #expensesPanel#expensesPanel .expense-item-row .expense-item-total strong{font-size:.9rem}
  html body #app #expensesPanel#expensesPanel .expense-item-row .lt-action{display:none !important}
  html.ev-no-hicons body #app #expensesPanel#expensesPanel .expense-item-row .loan-top{grid-template-columns:minmax(0,1fr) auto !important}
  html.ev-no-hicons body #app #expensesPanel#expensesPanel .expense-item-row .lt-main{grid-column:1}
  html.ev-no-hicons body #app #expensesPanel#expensesPanel .expense-item-row .expense-item-total{grid-column:2}
}
@media (max-width:700px){
  html body #app #expensesPanel#expensesPanel .expenses-head-tools{position:static !important;order:2}
  html body #app #expensesPanel#expensesPanel .title-row{padding-left:0 !important}
}

/* ════ 2026-11-14: frameless head buttons, "Add" menu, frameless filters ════ */
html body #app #walletsOverviewSection#walletsOverviewSection .ev2-actions .ev2-btn{
  background:none !important;border:0 !important;box-shadow:none !important;
  color:var(--text) !important;min-height:38px;padding:0 10px;border-radius:10px;gap:7px;transform:none;
}
html body #app #walletsOverviewSection#walletsOverviewSection .ev2-actions .ev2-btn i{color:var(--primary) !important;font-size:.88rem}
html body #app #walletsOverviewSection#walletsOverviewSection .ev2-actions .ev2-btn:hover{background:color-mix(in srgb,var(--primary) 9%,transparent) !important}
html body #app #walletsOverviewSection#walletsOverviewSection .ev2-actions .ev2-btn:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 50%,transparent);outline-offset:1px}
html body #app #walletsOverviewSection#walletsOverviewSection .ev2-actions .ev2-btn.is-on,
html body #app #walletsOverviewSection#walletsOverviewSection .ev2-actions .ev2-btn[aria-pressed="true"],
html body #app #walletsOverviewSection#walletsOverviewSection .ev2-actions .ev2-btn[aria-expanded="true"]{color:var(--primary) !important;background:none !important}
html body #app #walletsOverviewSection#walletsOverviewSection .ev2-actions .ev2-btn--icon{width:38px;padding:0}
html body #app #walletsOverviewSection#walletsOverviewSection .ev2-actions .ev2-btn--add{color:var(--primary) !important}
#walletsOverviewSection .ev2-btn--add .ev2-caret{font-size:.62rem !important;opacity:.8;transition:transform .15s ease}
#walletsOverviewSection .ev2-btn--add[aria-expanded="true"] .ev2-caret{transform:rotate(180deg)}
.ev2-add-wrap{display:inline-flex}
.menu-dropdown[data-entry-menu-panel="expenses"] .menu-item i{width:16px;text-align:center;color:var(--primary);margin-left:4px}
@media (max-width:768px){
  .ev2-actions{grid-template-columns:minmax(0,1fr) auto auto auto !important;gap:2px !important}
  html body #app #walletsOverviewSection#walletsOverviewSection .ev2-actions .ev2-btn{min-height:42px;padding:0 8px}
  html body #app #walletsOverviewSection#walletsOverviewSection .ev2-actions .ev2-btn--icon{width:40px}
  .ev2-add-wrap{justify-content:flex-end}
}

/* filters and view switches: no background, just the text and a chevron */
html body #app #expensesPanel#expensesPanel .compact-filter-row :is(.input,.select){
  border:0 !important;background-color:transparent !important;box-shadow:none !important;border-radius:10px !important;
  color:var(--text) !important;min-height:38px;
}
html body #app #expensesPanel#expensesPanel .compact-filter-row .select{
  padding:0 10px 0 28px !important;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") !important;
  background-repeat:no-repeat !important;background-position:left 8px center !important;background-size:12px !important;
  appearance:none;-webkit-appearance:none;
}
html body #app #expensesPanel#expensesPanel .compact-filter-row .select option{color:var(--text);background:var(--panel)}
html body #app #expensesPanel#expensesPanel .compact-filter-row .compact-filter-search .input{
  border-radius:0 !important;border-bottom:1px solid color-mix(in srgb,var(--line) 90%,transparent) !important;padding-right:30px !important;background-position:6px 50% !important;
}
html body #app #expensesPanel#expensesPanel .compact-filter-row :is(.input,.select):hover{background-color:color-mix(in srgb,var(--primary) 7%,transparent) !important}
html body #app #expensesPanel#expensesPanel .compact-filter-row :is(.input,.select):focus{background-color:color-mix(in srgb,var(--primary) 7%,transparent) !important;box-shadow:none !important}
html body #app #expensesPanel#expensesPanel .compact-filter-row .compact-filter-search .input:focus{border-bottom-color:var(--primary) !important}
#expensesPanel .ev2-seg{background:none !important;padding:0 !important;gap:2px !important}
#expensesPanel .ev2-seg button{position:relative;border-radius:10px !important;color:var(--muted) !important;background:none !important;box-shadow:none !important}
#expensesPanel .ev2-seg button:hover{color:var(--text) !important;background:color-mix(in srgb,var(--primary) 7%,transparent) !important}
#expensesPanel .ev2-seg button[aria-checked="true"]{color:var(--primary) !important;background:none !important;box-shadow:none !important}
#expensesPanel .ev2-seg button[aria-checked="true"]::after{content:"";position:absolute;right:12px;left:12px;bottom:2px;height:2px;border-radius:2px;background:var(--primary)}
html body #app #expensesPanel#expensesPanel .section-head-top .title-row :is(.tiny,.btn){background:none !important;border:0 !important;box-shadow:none !important;color:var(--text) !important}
html body #app #expensesPanel#expensesPanel .section-head-top .title-row :is(.tiny,.btn) i{color:var(--primary)}
html body #app #expensesPanel#expensesPanel .section-head-top .title-row :is(.tiny,.btn):hover{background:color-mix(in srgb,var(--primary) 8%,transparent) !important}

@media (max-width:768px){
  html body #app #walletsOverviewSection#walletsOverviewSection .ev2-actions #ev2HistoryBtn{justify-self:start;justify-content:flex-start}
  #expensesPanel .compact-filter-main > .expense-date-range-control{order:5}
  #expensesPanel .compact-filter-main > :is(.expense-wallet-select-control,.expense-status-control){flex:1 1 calc(50% - 6px) !important}
}
/* The history sits on the page in every theme (some themes give .panel a tinted glass background). */
html body #app #expensesPanel#expensesPanel.panel{background:none !important;background-image:none !important;border:0 !important;box-shadow:none !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
@media (max-width:700px){
  html body #app #expensesPanel#expensesPanel .compact-filter-row .select{padding:0 4px 0 20px !important;background-position:left 2px center !important}
  #expensesPanel .compact-filter-main{grid-template-columns:minmax(0,1fr) minmax(112px,128px) !important}
}

/* 2026-11-14 b: "Expenses ▾" view menu beside Add (history only); the old view switch is replaced */
body:not(.ev2-history-open) .ev2-view-wrap{display:none !important}
.ev2-view-wrap{display:inline-flex}
html body #app #walletsOverviewSection#walletsOverviewSection .ev2-actions .ev2-btn--view{color:var(--primary) !important}
#walletsOverviewSection .ev2-btn--view .ev2-caret{font-size:.62rem !important;opacity:.8;transition:transform .15s ease}
#walletsOverviewSection .ev2-btn--view[aria-expanded="true"] .ev2-caret{transform:rotate(180deg)}
#expensesPanel .ev2-seg:not(.ev2-seg--dates){display:none !important}
#expensesPanel .expenses-head-tools:not(:has(> :not(.ev2-replaced):not(.ev2-seg:not(.ev2-seg--dates)))){display:none !important}
.menu-dropdown[data-entry-menu-panel="expenses-view"] .menu-item i{width:16px;text-align:center;color:var(--primary);margin-left:4px}
.menu-dropdown[data-entry-menu-panel="expenses-view"] .menu-item[aria-checked="true"]{color:var(--primary);background:color-mix(in srgb,var(--primary) 9%,transparent)}
@media (max-width:768px){
  body.ev2-history-open .ev2-actions{grid-template-columns:minmax(0,1fr) auto auto auto auto !important}
}

/* ===== SOURCE: Assets/style/68-sections-v2.css ===== */
/* Triplem VIP sections v2 (2026-11-14)
   Loans, Installments, Assets/Depreciation, Accounting, Bitcoin, Triplem AI and Admin in the
   Expenses/Home design: content directly on the page (no outer frames), page-level titles,
   frameless buttons with primary icons, "Add ▾ / Actions ▾" menus like Expenses, underline
   tabs instead of boxed switches, frameless filters, rows as soft cards, the same menu style.
   #app#app plus the section id gives these rules priority over the theme layer, which styles
   cards, buttons and inputs with id selectors. Colours come from the theme tokens, so every
   theme (light and dark) keeps working. */

/* ── 1. No outer frames ──────────────────────────────────────────────────────────── */
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#accountingPanel,#bitcoinPanel,#triplem-aiPanel,#adminPanel).panel,
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#triplem-aiPanel) > .card.section,
html body #app#app #adminPanel #adminPanelContent > .card.section,
html body #app#app #accountingPanel > .card,
html body #app#app #accountingPanel .accounting-shell{
  background:none !important;background-image:none !important;border:0 !important;box-shadow:none !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#triplem-aiPanel) > .card.section,
html body #app#app #adminPanel #adminPanelContent > .card.section,
html body #app#app #accountingPanel > .card{padding:0 !important;margin:0 !important;border-radius:0 !important;overflow:visible !important}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#accountingPanel,#bitcoinPanel,#adminPanel) :is(.card.section,.card)::before,
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#accountingPanel,#bitcoinPanel,#adminPanel) :is(.card.section,.card)::after{content:none !important;display:none !important}

/* ── 2. Page heading ─────────────────────────────────────────────────────────────── */
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head,
html body #app#app #accountingPanel .accounting-section-head{
  background:none !important;border:0 !important;box-shadow:none !important;padding:0 !important;margin:0 0 10px !important;
}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head-top{
  display:flex !important;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:0 !important;background:none !important;border:0 !important;
}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head-top .title-row{display:flex !important;align-items:center;gap:4px 6px;flex-wrap:wrap;padding:0 !important}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head-top .title-row h3,
html body #app#app #accountingPanel .accounting-section-head h3{
  margin:0 0 0 8px !important;font-size:clamp(1.2rem,2vw,1.5rem) !important;letter-spacing:-.03em;line-height:1.2;color:var(--text) !important;
}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head-top .title-group > p,
html body #app#app #accountingPanel .accounting-section-head p{margin:4px 0 0 !important;font-size:.82rem !important;color:var(--muted) !important;line-height:1.45}

/* ── 3. Frameless buttons (heading tools, Add ▾, Actions ▾, admin tools) ─────────── */
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head :is(.title-row,.tools) > :is(button,.btn,.tiny),
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head :is(.title-row,.tools) > .menu-wrap > .menu-trigger,
html body #app#app #accountingPanel .accounting-head-actions > :is(button,.btn),
html body #app#app #accountingPanel .accounting-context-actions > :is(button,.btn),
html body #app#app #accountingPanel .accounting-card-head :is(button,.btn){
  display:inline-flex !important;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 10px !important;
  background:none !important;background-image:none !important;border:0 !important;box-shadow:none !important;border-radius:10px !important;
  color:var(--text) !important;font-size:.84rem !important;line-height:1.1;cursor:pointer;transform:none !important;white-space:nowrap;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head :is(.title-row,.tools) > :is(button,.btn,.tiny) i,
html body #app#app #accountingPanel :is(.accounting-head-actions,.accounting-context-actions,.accounting-card-head) :is(button,.btn) i{color:var(--primary) !important;font-size:.88rem}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head :is(.title-row,.tools) > :is(button,.btn,.tiny):hover,
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head :is(.title-row,.tools) > .menu-wrap > .menu-trigger:hover,
html body #app#app #accountingPanel :is(.accounting-head-actions,.accounting-context-actions,.accounting-card-head) :is(button,.btn):hover{background:color-mix(in srgb,var(--primary) 9%,transparent) !important}
/* Add ▾ / Actions ▾ / New: primary text, like "Add ▾" in Expenses */
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head .menu-wrap > .menu-trigger,
html body #app#app #accountingPanel .accounting-head-actions > .btn.primary,
html body #app#app #accountingPanel .accounting-card-head .btn.primary,
html body #app#app #assetsPanel #openAddAssetBtn{color:var(--primary) !important}
html body #app#app #accountingPanel .accounting-head-actions > .btn.primary i,
html body #app#app #accountingPanel .accounting-card-head .btn.primary i{color:var(--primary) !important}
.v2-caret{font-size:.62rem !important;opacity:.8;transition:transform .15s ease;margin-right:1px}
.menu-trigger[aria-expanded="true"] .v2-caret{transform:rotate(180deg)}
html.tm-kbd body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#accountingPanel,#bitcoinPanel,#adminPanel) .section-head button:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 45%,transparent) !important;outline-offset:1px}

/* ── 4. Same menu style as Add ▾ for every menu in these sections ─────────────────── */
html body :is(#m-a,*):is(#m-b,*):is(#m-c,*) :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#accountingPanel,#bitcoinPanel,#adminPanel,#mainOverview) .menu-dropdown,
html body :is(#m-a,*):is(#m-b,*):is(#m-c,*) .menu-dropdown[data-fixed-menu-portaled="true"]{
  background:linear-gradient(var(--surface-elevated,rgba(255,255,255,.94)),var(--surface-elevated,rgba(255,255,255,.94))),var(--bg,#fff) !important;
  border:1px solid color-mix(in srgb,var(--line) 90%,transparent) !important;border-radius:12px !important;
  box-shadow:0 18px 40px -12px rgba(15,23,42,.28),0 2px 6px rgba(15,23,42,.06) !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;padding:5px !important;gap:1px !important;
}
html body :is(#m-a,*):is(#m-b,*):is(#m-c,*) :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#accountingPanel,#bitcoinPanel,#adminPanel,#mainOverview) .menu-dropdown .menu-item,
html body :is(#m-a,*):is(#m-b,*):is(#m-c,*) .menu-dropdown[data-fixed-menu-portaled="true"] .menu-item{
  background:transparent !important;background-image:none !important;border:0 !important;box-shadow:none !important;
  border-radius:8px !important;padding:7px 10px !important;min-height:0 !important;margin:0 !important;
  color:var(--text) !important;font-size:.82rem !important;line-height:1.3 !important;display:flex !important;align-items:center;gap:9px;text-align:right;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;transform:none !important;
}
html body :is(#m-a,*):is(#m-b,*):is(#m-c,*) :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#accountingPanel,#bitcoinPanel,#adminPanel,#mainOverview) .menu-dropdown .menu-item:is(:hover,:focus-visible),
html body :is(#m-a,*):is(#m-b,*):is(#m-c,*) .menu-dropdown[data-fixed-menu-portaled="true"] .menu-item:is(:hover,:focus-visible){background:color-mix(in srgb,var(--primary) 9%,transparent) !important;outline:none}
:is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#accountingPanel,#bitcoinPanel,#adminPanel,#mainOverview) .menu-dropdown .menu-item i{width:18px;text-align:center;color:var(--primary)}
:is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#accountingPanel,#bitcoinPanel,#adminPanel) .menu-dropdown .menu-item:is(.danger,[data-danger],.text-danger){color:var(--danger) !important}
:is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#accountingPanel,#bitcoinPanel,#adminPanel) .menu-dropdown .menu-item:is(.danger,[data-danger],.text-danger) i{color:var(--danger)}

/* ── 5. Underline tabs instead of boxed switches ─────────────────────────────────── */
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel) .loan-mode-switch,
html body #app#app #assetsPanel .assets-module-tabs,
html body #app#app #installmentsPanel .installment-plan-mode,
html body #app#app #accountingPanel .accounting-subnav{
  display:flex !important;flex-wrap:wrap;align-items:center;gap:2px 4px !important;width:auto !important;max-width:100%;
  padding:0 !important;margin:0 0 12px !important;background:none !important;border:0 !important;box-shadow:none !important;border-radius:0 !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel) .loan-mode-switch > button,
html body #app#app #assetsPanel .assets-module-tabs > button,
html body #app#app #installmentsPanel .installment-plan-mode > button,
html body #app#app #accountingPanel .accounting-subnav > button{
  position:relative;display:inline-flex !important;align-items:center;gap:7px;min-height:38px;padding:0 12px !important;width:auto !important;flex:0 0 auto !important;
  background:none !important;background-image:none !important;border:0 !important;box-shadow:none !important;border-radius:10px !important;
  color:var(--muted) !important;font-size:.86rem !important;cursor:pointer;transform:none !important;
}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel) .loan-mode-switch > button i,
html body #app#app #installmentsPanel .installment-plan-mode > button i,
html body #app#app #accountingPanel .accounting-subnav > button i{color:inherit !important;font-size:.82rem;opacity:.85}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel) .loan-mode-switch > button:hover,
html body #app#app #assetsPanel .assets-module-tabs > button:hover,
html body #app#app #installmentsPanel .installment-plan-mode > button:hover,
html body #app#app #accountingPanel .accounting-subnav > button:hover{color:var(--text) !important;background:color-mix(in srgb,var(--primary) 7%,transparent) !important}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel) .loan-mode-switch > button.active,
html body #app#app #assetsPanel .assets-module-tabs > button.is-active,
html body #app#app #installmentsPanel .installment-plan-mode > button.active,
html body #app#app #accountingPanel .accounting-subnav > button.active{color:var(--primary) !important;background:none !important}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel) .loan-mode-switch > button.active::after,
html body #app#app #assetsPanel .assets-module-tabs > button.is-active::after,
html body #app#app #installmentsPanel .installment-plan-mode > button.active::after,
html body #app#app #accountingPanel .accounting-subnav > button.active::after{content:"" !important;display:block !important;position:absolute;right:12px;left:12px;bottom:3px;height:2px;border-radius:2px;background:var(--primary) !important;opacity:1 !important;transform:none !important}

/* ── 6. Filters: no background, just the text and a chevron ──────────────────────── */
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) .compact-filter-row,
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) .compact-filter-row .filter-inline-section,
html body #app#app #accountingPanel .accounting-tools-row,
html body #app#app #adminPanel :is(.admin-user-search-toolbar,.admin-legend){
  background:none !important;border:0 !important;box-shadow:none !important;padding:0 !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;
}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) .compact-filter-row{margin:0 0 12px !important}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) .compact-filter-row .filter-inline-label{font-size:.74rem !important;letter-spacing:0 !important;text-transform:none !important;color:var(--muted) !important;margin:0 0 0 -4px}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) .compact-filter-row .compact-filter-search .filter-inline-label{display:none !important}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) .compact-filter-row :is(.input,.select){
  border:0 !important;background-color:transparent !important;box-shadow:none !important;border-radius:10px !important;color:var(--text) !important;min-height:38px;font-size:.86rem;
}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) .compact-filter-row .select{
  padding:0 10px 0 28px !important;appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") !important;
  background-repeat:no-repeat !important;background-position:left 8px center !important;background-size:12px !important;
}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) .compact-filter-row .select option{color:var(--text);background:var(--panel)}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) .compact-filter-row .compact-filter-search .input,
html body #app#app #accountingPanel .accounting-search,
html body #app#app #adminPanel .admin-user-search-box{
  border:0 !important;border-bottom:1px solid color-mix(in srgb,var(--line) 90%,transparent) !important;border-radius:0 !important;background-color:transparent !important;box-shadow:none !important;
}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) .compact-filter-row .compact-filter-search .input{
  padding-right:30px !important;min-width:min(320px,100%);
  background:transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") 6px 50% / 15px no-repeat !important;
}
html body #app#app #accountingPanel .accounting-search input,
html body #app#app #adminPanel .admin-user-search-box input{border:0 !important;background:transparent !important;box-shadow:none !important}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) .compact-filter-row :is(.input,.select):is(:hover,:focus){background-color:color-mix(in srgb,var(--primary) 7%,transparent) !important;box-shadow:none !important;outline:none}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) .compact-filter-row .compact-filter-search .input:focus,
html body #app#app #accountingPanel .accounting-search:focus-within,
html body #app#app #adminPanel .admin-user-search-box:focus-within{border-bottom-color:var(--primary) !important;box-shadow:none !important}
html body #app#app :is(#accountingPanel,#adminPanel) :is(.accounting-search,.admin-user-search-box) input:focus{outline:none !important;box-shadow:none !important}

/* ── 7. Rows and cards ───────────────────────────────────────────────────────────── */
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .list > details.loan,
html body #app#app #assetsPanel .asset-card,
html body #app#app #assetsPanel :is(.depreciation-asset-card,.dep-asset-card),
html body #app#app #accountingPanel :is(.accounting-card,.accounting-kpi),
html body #app#app #bitcoinPanel #btcLoginSection.card,
html body #app#app #bitcoinPanel :is(.btc-wallet-card,.btc-balance-card){
  background:var(--surface-elevated,var(--panel)) !important;background-image:none !important;
  border:1px solid color-mix(in srgb,var(--line) 85%,transparent) !important;border-radius:16px !important;
  box-shadow:0 1px 2px rgba(15,23,42,.05),0 8px 20px -18px rgba(15,23,42,.35) !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
  transition:border-color .15s ease,box-shadow .15s ease !important;
}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .list > details.loan{margin:0 0 8px !important;overflow:hidden}
@media (hover:hover){
  html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .list > details.loan:hover,
  html body #app#app #assetsPanel .asset-card:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--line)) !important;box-shadow:0 2px 4px rgba(15,23,42,.06),0 14px 26px -18px rgba(15,23,42,.45) !important}
}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .list > details.loan[open]{border-color:color-mix(in srgb,var(--primary) 45%,var(--line)) !important}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .list > details.loan > summary,
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .list > details.loan .loan-top{background:none !important;border:0 !important;box-shadow:none !important;border-radius:0 !important}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .list > details.loan > summary{padding:12px 14px !important}
:is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .loan-top .loan-name{font-size:.98rem;color:var(--text)}
:is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .loan-top .loan-name i{color:var(--primary)}
:is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .loan-top .loan-serial{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;font-size:.7rem;background:color-mix(in srgb,var(--primary) 12%,transparent) !important;color:var(--primary) !important;border:0 !important}
:is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .loan-top .loan-sub{color:var(--muted);font-size:.76rem}
:is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .loan-top .cell small{color:var(--muted);font-size:.7rem}
:is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .loan-top .cell strong{font-size:1rem;color:var(--text);font-variant-numeric:tabular-nums}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) :is(.loan-inline-actions,.asset-card-menu) :is(.icon-btn,.tiny,button.menu-trigger){
  width:32px !important;height:32px !important;min-width:32px !important;min-height:32px !important;padding:0 !important;display:inline-grid !important;place-items:center;
  border:1px solid color-mix(in srgb,var(--line) 90%,transparent) !important;border-radius:999px !important;background:transparent !important;box-shadow:none !important;color:var(--text) !important;font-size:.8rem;
}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) :is(.loan-inline-actions,.asset-card-menu) :is(.icon-btn,.tiny,button.menu-trigger):hover{border-color:color-mix(in srgb,var(--primary) 50%,var(--line)) !important;background:color-mix(in srgb,var(--primary) 8%,transparent) !important}
.loanHistoryToggle i{font-size:.7rem;transition:transform .15s ease}
.loanHistoryToggle[aria-expanded="true"] i{transform:rotate(180deg)}
:is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) details.loan > .detail{border-top:1px dashed color-mix(in srgb,var(--line) 85%,transparent);padding:12px 14px !important;background:none !important}
:is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) details.loan > .detail .table-wrap{border-radius:12px;overflow:auto}
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel) .list > .empty,
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel) .empty{
  background:none !important;border:1px dashed color-mix(in srgb,var(--line) 90%,transparent) !important;border-radius:16px !important;box-shadow:none !important;
  padding:28px 14px !important;text-align:center;color:var(--muted) !important;width:auto !important;max-width:none !important;
}

/* Assets cards */
html body #app#app #assetsPanel .asset-card{margin:0 0 8px !important;overflow:hidden;padding:0 !important}
html body #app#app #assetsPanel .asset-card :is(.asset-card-top,.asset-card-main,.asset-card-stats){background:none !important;border:0 !important;box-shadow:none !important}
#assetsPanel .asset-card .asset-card-top{padding:12px 14px 6px !important}
#assetsPanel .asset-card .asset-card-title{font-size:.98rem;color:var(--text);margin:0 0 3px}
#assetsPanel .asset-card .asset-card-meta{gap:8px;font-size:.74rem;color:var(--muted)}
#assetsPanel .asset-card .asset-status{border-radius:999px;padding:2px 8px}
html body #app#app #assetsPanel .asset-card .asset-card-stats{padding:8px 14px 12px !important;border-top:1px dashed color-mix(in srgb,var(--line) 80%,transparent) !important;gap:8px}
#assetsPanel .asset-card .asset-card-stats > span{display:flex;flex-direction:column;align-items:flex-start;gap:1px}
#assetsPanel .asset-card .asset-card-stats em{font-style:normal;font-size:.68rem;color:var(--muted);text-transform:none;letter-spacing:0}
#assetsPanel .asset-card .asset-card-stats .money{font-size:1rem;color:var(--text);font-variant-numeric:tabular-nums}
#assetsPanel .asset-card .asset-card-net small{font-size:.66rem;color:var(--muted)}
#assetsPanel .asset-card .asset-card-net strong{font-size:.98rem}

/* ── 8. Loans Overview / section overview banner: a quiet row, not a framed banner ─ */
html body #app#app #mainOverview.overview{
  background:none !important;border:0 !important;box-shadow:none !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;padding:0 !important;margin:0 0 6px !important;
}
html body #app#app #mainOverview .overview-top{
  display:flex !important;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px !important;margin:0 !important;border-radius:12px !important;
  background:none !important;border:0 !important;box-shadow:none !important;cursor:pointer;
}
html body #app#app #mainOverview .overview-top:hover{background:color-mix(in srgb,var(--primary) 7%,transparent) !important}
html body #app#app #mainOverview .overview-top h3{margin:0 !important;font-size:.98rem !important;color:var(--text) !important;display:flex;align-items:center;gap:8px}
html body #app#app #mainOverview .overview-top h3::before{content:"\f200";font-family:"Font Awesome 6 Free","Font Awesome 6 Pro",FontAwesome;font-weight:900;color:var(--primary);font-size:.9rem}
html body #app#app #mainOverview .overview-top p{margin:2px 0 0 !important;font-size:.76rem !important;color:var(--muted) !important}
html body #app#app #mainOverview .overview-top .overview-expand-btn{background:none !important;border:0 !important;box-shadow:none !important;color:var(--muted) !important}
html body #app#app #mainOverview .main-overview-content{background:none !important;border:0 !important;box-shadow:none !important}

/* ── 9. Accounting ───────────────────────────────────────────────────────────────── */
html body #app#app #accountingPanel .accounting-section-head{display:flex !important;align-items:flex-end;justify-content:space-between;gap:10px;flex-wrap:wrap}
html body #app#app #accountingPanel .accounting-head-actions{display:flex;gap:2px;flex-wrap:wrap}
html body #app#app #accountingPanel .accounting-subnav{border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent) !important;padding-bottom:2px !important;display:flex !important;grid-template-columns:none !important}
html body #app#app #accountingPanel .accounting-tools-row{display:flex !important;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px !important}
html body #app#app #accountingPanel .accounting-search{display:flex !important;align-items:center;gap:8px;min-height:38px;padding:0 6px !important;flex:0 1 380px}
html body #app#app #accountingPanel .accounting-search i{color:var(--muted)}
html body #app#app #accountingPanel .accounting-kpi{padding:14px !important;display:flex !important;align-items:flex-start;gap:12px;overflow:hidden}
html body #app#app #accountingPanel .accounting-kpi::before,
html body #app#app #accountingPanel .accounting-kpi::after{display:none !important;content:none !important}
html body #app#app #accountingPanel .accounting-kpi-icon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 12%,transparent) !important;color:var(--primary) !important;border:0 !important;box-shadow:none !important}
html body #app#app #accountingPanel .accounting-kpi > div:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
html body #app#app #accountingPanel .accounting-kpi > div:last-child > span{font-size:.76rem;color:var(--muted)}
html body #app#app #accountingPanel .accounting-kpi strong{display:flex !important;align-items:baseline;gap:4px;font-size:1.3rem !important;line-height:1.2;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #app#app #accountingPanel .accounting-kpi strong .money{display:inline-flex !important;align-items:baseline;gap:4px}
html body #app#app #accountingPanel .accounting-kpi strong .symbol{font-size:.9em}
html body #app#app #accountingPanel .accounting-kpi small{font-size:.68rem !important;color:var(--muted) !important;text-transform:none !important;letter-spacing:0 !important}
html body #app#app #accountingPanel .accounting-card{padding:16px !important}
html body #app#app #accountingPanel .accounting-card-head small{font-size:.68rem;letter-spacing:.06em;color:var(--muted)}
html body #app#app #accountingPanel .accounting-card-head h4{font-size:1rem;margin:2px 0 0;color:var(--text)}
html body #app#app #accountingPanel .accounting-health-grid > button{
  background:color-mix(in srgb,var(--primary) 4%,transparent) !important;border:1px solid color-mix(in srgb,var(--line) 80%,transparent) !important;border-radius:14px !important;box-shadow:none !important;text-align:right;
}
html body #app#app #accountingPanel .accounting-health-grid > button:hover{border-color:color-mix(in srgb,var(--primary) 40%,var(--line)) !important}
html body #app#app #accountingPanel .accounting-health-grid > button strong{font-size:1.35rem;color:var(--text)}
html body #app#app #accountingPanel .accounting-health-grid > button span{font-size:.76rem;color:var(--muted)}
html body #app#app #accountingPanel :is(.accounting-ledger-row,.accounting-list-row,.accounting-attention-row,.accounting-row){border-radius:12px !important;border:1px solid color-mix(in srgb,var(--line) 80%,transparent) !important;background:none !important;box-shadow:none !important}
html body #app#app #accountingPanel :is(.accounting-ledger-row,.accounting-list-row,.accounting-row) :is(.icon-btn,.btn.icon,button.tiny){
  width:32px !important;height:32px !important;min-width:32px !important;min-height:32px !important;padding:0 !important;display:inline-grid !important;place-items:center;
  border:1px solid color-mix(in srgb,var(--line) 90%,transparent) !important;border-radius:999px !important;background:transparent !important;box-shadow:none !important;font-size:.78rem !important;
}

/* ── 10. Bitcoin ─────────────────────────────────────────────────────────────────── */
html body #app#app #bitcoinPanel .btc-security-notice{
  border-radius:14px !important;border:1px solid color-mix(in srgb,var(--warning,#d97706) 35%,transparent) !important;
  background:color-mix(in srgb,var(--warning,#d97706) 8%,transparent) !important;box-shadow:none !important;padding:10px 14px !important;margin:0 0 12px !important;
}
html body #app#app #bitcoinPanel #btcLoginSection.card{padding:16px !important}
html body #app#app #bitcoinPanel #btcLoginSection label{font-size:.82rem;color:var(--muted)}
html body #app#app #bitcoinPanel .btc-wallet-access-trigger{
  background:transparent !important;background-image:none !important;color:var(--text) !important;border:1px solid color-mix(in srgb,var(--line) 95%,transparent) !important;
  box-shadow:none !important;border-radius:12px !important;min-height:42px;font-size:.88rem !important;
}
html body #app#app #bitcoinPanel .btc-wallet-access-trigger i{color:var(--primary) !important}
html body #app#app #bitcoinPanel .btc-wallet-access-trigger:hover{border-color:color-mix(in srgb,var(--primary) 45%,var(--line)) !important;background:color-mix(in srgb,var(--primary) 5%,transparent) !important}
html body #app#app #bitcoinPanel #btcLoginSection textarea{border-radius:12px !important}
html body #app#app #bitcoinPanel #btcLoginSection .tools .btn{border-radius:999px !important;min-height:38px;padding:0 16px !important}
html body #app#app #bitcoinPanel #btcLoginSection .tools .btn.ghost{background:none !important;border:1px solid color-mix(in srgb,var(--line) 95%,transparent) !important;box-shadow:none !important;color:var(--text) !important}

/* ── 11. Triplem AI ──────────────────────────────────────────────────────────────── */
html body #app#app #triplem-aiPanel .triplem-ai-root{background:none !important;border:0 !important;box-shadow:none !important}

/* ── 12. Admin ───────────────────────────────────────────────────────────────────── */
html body #app#app #adminPanel .admin-panel-tools{display:flex !important;flex-wrap:wrap;gap:2px !important;justify-content:flex-start}
html body #app#app #adminPanel .admin-legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:.76rem !important;color:var(--muted) !important;margin:0 0 10px !important}
html body #app#app #adminPanel .admin-legend i{color:var(--primary)}
html body #app#app #adminPanel .admin-user-search-toolbar{display:flex !important;align-items:center;gap:12px;margin:0 0 12px !important}
html body #app#app #adminPanel .admin-user-search-box{display:flex !important;align-items:center;gap:8px;flex:0 1 420px;min-height:38px;padding:0 6px !important}
html body #app#app #adminPanel .admin-user-search-box i{color:var(--muted)}
html body #app#app #adminPanel .admin-user-search-meta{font-size:.76rem;color:var(--muted);font-weight:inherit}
html body #app#app #adminPanel .admin-user-tile{
  background:var(--surface-elevated,var(--panel)) !important;background-image:none !important;border:1px solid color-mix(in srgb,var(--line) 85%,transparent) !important;border-radius:16px !important;
  box-shadow:0 1px 2px rgba(15,23,42,.05),0 8px 20px -18px rgba(15,23,42,.35) !important;transition:transform .2s ease,border-color .15s ease,box-shadow .2s ease !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
}
@media (hover:hover){
  html body #app#app #adminPanel .admin-user-tile:hover{transform:translateY(-2px) !important;border-color:color-mix(in srgb,var(--primary) 40%,var(--line)) !important;box-shadow:0 2px 4px rgba(15,23,42,.06),0 16px 28px -18px rgba(15,23,42,.45) !important}
}
html body #app#app #adminPanel :is(.admin-user-tile.is-selected,.admin-user-tile.active,.admin-user-tile[aria-pressed="true"]){border-color:var(--primary) !important;background:color-mix(in srgb,var(--primary) 7%,var(--surface-elevated,var(--panel))) !important}
html body #app#app #adminPanel .admin-user-tile-name{font-size:.8rem;color:var(--text)}

/* ── 13. Phones ──────────────────────────────────────────────────────────────────── */
@media (max-width:760px){
  html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel) .loan-mode-switch,
  html body #app#app #assetsPanel .assets-module-tabs,
  html body #app#app #installmentsPanel .installment-plan-mode,
  html body #app#app #accountingPanel .accounting-subnav{flex-wrap:nowrap !important;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel) .loan-mode-switch::-webkit-scrollbar,
  html body #app#app #accountingPanel .accounting-subnav::-webkit-scrollbar{display:none}
  html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head :is(.title-row,.tools) > :is(button,.btn,.tiny),
  html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head :is(.title-row,.tools) > .menu-wrap > .menu-trigger{min-height:40px;padding:0 8px !important}
  html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .list > details.loan > summary{padding:10px 12px !important}
  html body #app#app #accountingPanel .accounting-tools-row{flex-wrap:wrap}
  html body #app#app #accountingPanel .accounting-search{flex:1 1 100%}
}

/* ── 14. Corrections after review ────────────────────────────────────────────────── */
/* buttons that the app hides stay hidden */
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel,#accountingPanel) :is(button,.btn,.tiny,.menu-wrap):is(.hide,[hidden]){display:none !important}
/* empty states use the full width */
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel) .list > .empty{grid-column:1 / -1;width:100% !important;box-sizing:border-box}
/* Accounting heading: title left, actions right */
html body #app#app #accountingPanel .accounting-section-head > div:first-child{order:0;flex:1 1 320px;min-width:0;margin:0 !important;text-align:right !important;align-self:flex-end}
html body #app#app #accountingPanel .accounting-section-head > .accounting-head-actions{order:1;margin:0 !important;align-self:flex-end}
html body #app#app #accountingPanel .accounting-kpi strong :is(.money,.amount,.symbol){font-size:inherit !important;line-height:inherit}
html body #app#app #accountingPanel :is(.accounting-health-grid button span,.accounting-kpi small,.accounting-card-head small){font-weight:400 !important}
/* Triplem AI: no leftover decoration in the corner */
html body #app#app #triplem-aiPanel :is(.card.section,.triplem-ai-root,.triplem-ai-section)::before,
html body #app#app #triplem-aiPanel :is(.card.section,.triplem-ai-root,.triplem-ai-section)::after{content:none !important;display:none !important}
/* Bitcoin: saved-address picker looks like the wallet type picker */
html body #app#app #bitcoinPanel #btcLoginSection .menu-wrap:not(.btc-wallet-access-wrap) > .menu-trigger{
  background:transparent !important;background-image:none !important;color:var(--text) !important;border:1px solid color-mix(in srgb,var(--line) 95%,transparent) !important;
  box-shadow:none !important;border-radius:12px !important;min-height:40px;padding:0 14px !important;font-size:.86rem !important;
}
html body #app#app #bitcoinPanel #btcLoginSection .menu-wrap:not(.btc-wallet-access-wrap) > .menu-trigger:hover{border-color:color-mix(in srgb,var(--primary) 45%,var(--line)) !important}
html body #app#app #bitcoinPanel .btc-qr-scan-btn{border-radius:12px !important;background:transparent !important;box-shadow:none !important}
html body #app#app #accountingPanel .accounting-section-head::before,
html body #app#app #accountingPanel .accounting-section-head::after,
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head::before,
html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel) .section-head::after{content:none !important;display:none !important}
html body #app#app #accountingPanel .accounting-section-head{flex-direction:row !important;flex-wrap:nowrap !important;align-items:center !important;min-height:0 !important;height:auto !important}
html body #app#app #accountingPanel .accounting-section-head > div:first-child{height:auto !important;min-height:0 !important;align-self:center}
@media (max-width:760px){html body #app#app #accountingPanel .accounting-section-head{flex-wrap:wrap !important}}
/* anything the app hides stays hidden (beats the frameless button rules above) */
html body #app#app :is(#h-a,*):is(#h-b,*) :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel,#assetsPanel,#notesPanel,#dashboardPanel,#auditPanel,#goodsPanel,#insurancePanel,#messagesPanel,#aboutPanel,#bitcoinPanel,#adminPanel,#accountingPanel) :is(button,.btn,.tiny,.menu-wrap):is(.hide,[hidden]){display:none !important}
html body #app#app #bitcoinPanel #btcLoginSection .menu-wrap:not(.btc-wallet-access-wrap) > .menu-trigger{display:inline-flex !important;align-items:center;gap:10px}
@media (max-width:760px){
  html body #app#app #accountingPanel .accounting-kpi strong{font-size:1.02rem !important}
  html body #app#app #accountingPanel .accounting-kpi{padding:12px !important;gap:10px}
  html body #app#app #accountingPanel .accounting-kpi-icon{width:32px;height:32px;flex-basis:32px;border-radius:10px}
  html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .loan-top .cell strong{font-size:.86rem !important}
  html body #app#app :is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .loan-top .cell small{font-size:.74rem !important}
  html body #app#app #assetsPanel .asset-card .asset-card-stats .money{font-size:.86rem !important}
  html body #app#app #assetsPanel .asset-card .asset-card-stats em{font-size:.7rem !important}
  html body #app#app #assetsPanel .asset-card .asset-card-net strong{font-size:.86rem !important}
}

/* ── 15. Details found while checking ─────────────────────────────────────────────── */
/* menu items without their own icon get one (Loans / Installments "Add ▾") */
:is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .menu-dropdown .menu-item[data-open-modal]::before{
  font-family:"Font Awesome 6 Free";font-weight:900;width:18px;text-align:center;color:var(--primary);font-size:.86rem;content:"\f067";
}
:is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .menu-dropdown .menu-item[data-open-modal="payment"]::before{content:"\f2ea"}
/* depreciation summary cards: same as the accounting cards, no corner circles */
html body #app#app #assetsPanel .dep-summary-card{
  background:var(--surface-elevated,var(--panel)) !important;background-image:none !important;border:1px solid color-mix(in srgb,var(--line) 85%,transparent) !important;
  border-radius:16px !important;box-shadow:0 1px 2px rgba(15,23,42,.05),0 8px 20px -18px rgba(15,23,42,.35) !important;padding:14px !important;overflow:hidden;
}
html body #app#app #assetsPanel .dep-summary-card::before,html body #app#app #assetsPanel .dep-summary-card::after{content:none !important;display:none !important}
html body #app#app #assetsPanel .dep-summary-card :is(small,span,label):first-child{font-size:.76rem !important;color:var(--muted) !important;font-weight:400 !important}
html body #app#app #assetsPanel .dep-summary-card :is(strong,b,.money){font-size:1.25rem;color:var(--text)}
/* accounting: KPI sub-amount on one line, round action buttons, frameless filter selects and chips */
html body #app#app #accountingPanel .accounting-kpi :is(strong,small) .money{white-space:nowrap}
html body #app#app #accountingPanel .accounting-kpi > div:last-child{overflow:hidden}
html body #app#app #accountingPanel :is(.accounting-doc-actions,.accounting-list) :is(button.icon-btn,button.btn.icon,.accounting-doc-actions > button){
  width:34px !important;height:34px !important;min-width:34px !important;min-height:34px !important;padding:0 !important;display:inline-grid !important;place-items:center;
  border:1px solid color-mix(in srgb,var(--line) 90%,transparent) !important;border-radius:999px !important;background:transparent !important;background-image:none !important;box-shadow:none !important;font-size:.8rem !important;color:var(--text) !important;
}
html body #app#app #accountingPanel .accounting-doc-actions > button:hover{border-color:color-mix(in srgb,var(--primary) 50%,var(--line)) !important;background:color-mix(in srgb,var(--primary) 8%,transparent) !important}
html body #app#app #accountingPanel#accountingPanel .accounting-doc-actions > button:is(.danger,.btn-danger,[data-danger]){color:var(--danger) !important;border-color:color-mix(in srgb,var(--danger) 35%,var(--line)) !important}
html body #app#app #accountingPanel :is(.accounting-type-filter select,.accounting-tax-filter select,.accounting-card-head select){
  border:0 !important;background-color:transparent !important;box-shadow:none !important;border-radius:10px !important;padding:0 10px 0 28px !important;min-height:36px;appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") !important;
  background-repeat:no-repeat !important;background-position:left 8px center !important;background-size:12px !important;color:var(--text) !important;
}
html body #app#app #accountingPanel .accounting-chip{border-radius:999px !important;background:transparent !important;border:1px solid color-mix(in srgb,var(--line) 90%,transparent) !important;box-shadow:none !important;color:var(--muted) !important}
html body #app#app #accountingPanel .accounting-chip:is(.active,[aria-pressed="true"],.is-active){color:var(--primary) !important;border-color:color-mix(in srgb,var(--primary) 55%,var(--line)) !important;background:color-mix(in srgb,var(--primary) 8%,transparent) !important}
html body #app#app #accountingPanel .accounting-list > *{border-radius:14px !important;background:none !important;border:1px solid color-mix(in srgb,var(--line) 80%,transparent) !important;box-shadow:none !important}
html body #app#app #accountingPanel .accounting-kpi small{white-space:nowrap}
html body #app#app #accountingPanel .accounting-kpi small .money{display:inline-flex !important;gap:3px;align-items:baseline}
html body #app#app #accountingPanel :is(.accounting-type-filter,.accounting-tax-filter){border:0 !important;background:none !important;box-shadow:none !important}
html body #app#app #accountingPanel :is(.accounting-type-filter,.accounting-tax-filter)::after{content:none !important;display:none !important}
:is(#givenPanel,#receivedPanel,#takenPanel,#returnedPanel,#installmentsPanel) .menu-dropdown .menu-item[data-open-modal]::before{content:none !important}
html body #app#app #assetsPanel .asset-card :is(.asset-card-aside,.asset-card-net){background:none !important;border:0 !important;box-shadow:none !important}

/* Shared test account notice (2026-11-14) */
.tm-test-notice{position:fixed;inset:0;z-index:2147483647!important;display:none;align-items:center;justify-content:center;padding:20px}
.tm-test-notice.is-open{display:flex}
.tm-test-notice-backdrop{position:absolute;inset:0;background:rgba(8,15,30,.48);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);animation:tmTestFade .18s ease-out}
.tm-test-notice-card{position:relative;width:min(420px,100%);padding:28px 26px 22px;border-radius:20px;text-align:center;
  background:linear-gradient(var(--surface-elevated,#fff),var(--surface-elevated,#fff)),var(--bg,#fff);color:var(--text,#0f172a);
  border:1px solid color-mix(in srgb,var(--line,#e2e8f0) 80%,transparent);box-shadow:0 24px 60px rgba(8,15,30,.28);animation:tmTestPop .22s cubic-bezier(.2,.9,.3,1.2)}
.tm-test-notice-icon{display:inline-grid;place-items:center;width:58px;height:58px;border-radius:18px;margin-bottom:12px;font-size:26px;
  color:var(--primary,#2563eb);background:color-mix(in srgb,var(--primary,#2563eb) 12%,transparent)}
.tm-test-notice-kicker{display:block;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--primary,#2563eb);margin-bottom:6px}
.tm-test-notice-card h3{margin:0 0 8px;font-size:19px;font-weight:600;line-height:1.3}
.tm-test-notice-card p{margin:0 auto 16px;max-width:340px;font-size:14px;line-height:1.55;color:var(--muted,#64748b)}
.tm-test-notice-allowed{list-style:none;margin:0 0 20px;padding:12px 14px;border-radius:14px;text-align:right;display:grid;gap:8px;
  background:color-mix(in srgb,var(--primary,#2563eb) 6%,transparent);font-size:13.5px}
.tm-test-notice-allowed li{display:flex;align-items:center;gap:10px}
.tm-test-notice-allowed i{width:18px;height:18px;display:inline-grid;place-items:center;border-radius:50%;font-size:10px;color:#fff;background:#16a34a;flex:none}
.tm-test-notice-ok{width:100%;min-height:44px;border:0;border-radius:12px;font:inherit;font-weight:600;font-size:15px;cursor:pointer;
  color:var(--on-primary,#fff);background:var(--primary,#2563eb)}
.tm-test-notice-ok:hover{filter:brightness(1.06)}
.tm-test-notice-ok:focus-visible{outline:3px solid color-mix(in srgb,var(--primary,#2563eb) 40%,transparent);outline-offset:2px}
.tm-test-badge{display:inline-block;margin-right:8px;padding:2px 8px;border-radius:999px;font-size:10.5px;font-weight:600;letter-spacing:.02em;vertical-align:middle;
  color:var(--primary,#2563eb);background:color-mix(in srgb,var(--primary,#2563eb) 12%,transparent)}
@keyframes tmTestFade{from{opacity:0}to{opacity:1}}
@keyframes tmTestPop{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.tm-test-notice-backdrop,.tm-test-notice-card{animation:none}}

/* Admin: plan days and shared test account password (2026-11-14) */
.manage-plan-chips{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 10px}
.manage-plan-chip{border:1px solid var(--line);background:transparent;color:var(--text);font:inherit;font-size:12.5px;padding:5px 11px;border-radius:999px;cursor:pointer}
.manage-plan-chip:hover,.manage-plan-chip.is-active{border-color:var(--primary);color:var(--primary);background:color-mix(in srgb,var(--primary) 9%,transparent)}
.manage-plan-chip:disabled{opacity:.5;cursor:not-allowed}
.admin-test-pw-block{border:1px solid color-mix(in srgb,var(--primary) 30%,var(--line));border-radius:14px;padding:14px 16px;margin:0 0 16px;background:color-mix(in srgb,var(--primary) 5%,transparent)}
.admin-test-pw-block .admin-section-title i{color:var(--primary);margin-left:6px}
.admin-test-pw-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px}
#adminTestPwStatus.is-ok{color:#16a34a}#adminTestPwStatus.is-error{color:var(--danger,#dc2626)}


/* ── Unified overlays (2026-11-14 b) ───────────────────────────────────────────────────
   Every dialog uses the Expenses dialog as the model: same head, labels, fields and a centred
   row of pill buttons (Cancel, then the primary action). */
html body .modal:is(#u-a,*):is(#u-b,*):not(.tm-test-notice) .modal-dialog:not(.settings-sheet){border-radius:22px !important}
html body .modal:is(#u-a,*):is(#u-b,*) .modal-head{padding:10px 12px 6px !important;border-bottom:0 !important;background:none !important;align-items:center}
html body .modal:is(#u-a,*):is(#u-b,*) .modal-head h3{font-size:.95rem !important;letter-spacing:-.01em;line-height:1.3;margin:0 !important}
html body .modal:is(#u-a,*):is(#u-b,*) .modal-head p{font-size:.72rem !important;color:var(--muted) !important;margin:2px 0 0 !important;line-height:1.4}
html body .modal:is(#u-a,*):is(#u-b,*) .modal-body{padding:8px 12px 12px !important}
html body .modal:is(#u-a,*):is(#u-b,*) :is(.modal-body,.settings-sheet-body) :is(label,.form-label):not(.admin-inline-check,.tm-switch,[class*="toggle"],[class*="check"],[class*="chip"],[class*="option"],[class*="card"]){font-size:.72rem !important;letter-spacing:normal !important;text-transform:none !important;color:var(--text) !important}
html body .modal:is(#u-a,*):is(#u-b,*) :is(.modal-body,.settings-sheet-body) :is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="file"],[type="color"],[type="hidden"]),select){min-height:32px !important;font-size:.78rem !important;border-radius:8px !important}
html body .modal:is(#u-a,*):is(#u-b,*) :is(.modal-body,.settings-sheet-body) textarea{font-size:.78rem !important;border-radius:8px !important}
html.tm-tw-regular body .modal:is(#u-a,*):is(#u-b,*) :is(input,select,textarea){font-weight:400 !important}
html.tm-tw-regular body :is(#u-a,*):is(#u-b,*) :is(.panel,.inv2-root) :is(input,select,textarea){font-weight:400 !important}
/* Buttons row */
html body .modal:is(#u-a,*):is(#u-b,*):not(.tm-test-notice) :is(.modal-footer,.note-action-row,.modal-actions){
  display:flex !important;flex-direction:row !important;flex-wrap:wrap;justify-content:center !important;align-items:center !important;gap:8px !important;
  padding:6px 0 1px !important;margin-top:4px;background:none !important;border:0 !important;box-shadow:none !important;position:static !important;
}
html body .modal:is(#u-a,*):is(#u-b,*):not(.tm-test-notice) :is(.modal-footer,.note-action-row,.modal-actions) > :is(button,.btn){
  flex:0 0 auto !important;width:auto !important;min-width:0 !important;height:34px !important;min-height:34px !important;padding:0 15px !important;
  border-radius:999px !important;font-size:.72rem !important;line-height:1 !important;display:inline-flex !important;align-items:center;justify-content:center;gap:6px;
}
/* One typeface everywhere (Notes used a typewriter face) */
html body :is(#notesPanel,.note-workspace-modal,#noteDetailModal,#noteReminderModal):is(#u-a,*):is(#u-b,*) :is(h1,h2,h3,h4,p,span,div,label,input,textarea,button,strong,small,li,a):not(i,[class*="fa-"],[class*="currency"],code,pre,kbd){font-family:inherit !important}
html body :is(#notesPanel,.note-workspace-modal,#noteDetailModal,#noteReminderModal):is(#u-a,*):is(#u-b,*){font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important}

/* ── Skeleton loading (2026-11-14) ─────────────────────────────────────────────────────
   Soft placeholder shapes while records load. One opacity animation per group (cheap). */
.tm-skel{--tm-skel-c:color-mix(in srgb,var(--text,#0f172a) 10%,transparent);display:grid;gap:10px;padding:2px 0;width:100%;grid-column:1/-1;
  animation:tmSkelPulse 1.25s ease-in-out infinite;contain:content}
.tm-skel-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.tm-skel-tiles.tm-skel-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.tm-skel-stats.tm-skel-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.tm-skel-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tm-skel-bar{display:block;border-radius:999px;background:var(--tm-skel-c);max-width:100%}
.tm-skel-row,.tm-skel-card,.tm-skel-tile{border:1px solid color-mix(in srgb,var(--line,#e2e8f0) 70%,transparent);border-radius:14px;
  background:color-mix(in srgb,var(--surface-elevated,#fff) 55%,transparent);padding:14px 16px;display:grid;gap:10px}
.tm-skel-row{grid-template-columns:minmax(120px,1.2fr) 3fr;align-items:center;min-height:64px}
.tm-skel-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(60px,1fr));gap:12px;align-items:center}
.tm-skel-card{min-height:118px;align-content:start}
.tm-skel-stat{min-height:70px}
.tm-skel-tile{justify-items:center;min-height:84px;align-content:center}
.tm-skel-dot{width:38px;height:38px;border-radius:50%;background:var(--tm-skel-c)}
@keyframes tmSkelPulse{0%,100%{opacity:1}50%{opacity:.5}}
@media (max-width:640px){.tm-skel-row{grid-template-columns:1fr}.tm-skel-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}
@media (prefers-reduced-motion:reduce){.tm-skel,.inv2-loading{animation:none !important}}
/* Inventory 2.0 and other "Loading…" lines become the same placeholder (text stays for screen readers) */
html body .inv2-loading:is(#sk-a,*){display:block !important;font-size:0 !important;color:transparent !important;min-height:176px;border-radius:12px;margin:8px 0;
  background:repeating-linear-gradient(to bottom,color-mix(in srgb,var(--text,#0f172a) 9%,transparent) 0 14px,transparent 14px 44px) 16px 16px / calc(100% - 32px) calc(100% - 20px) no-repeat !important;
  animation:tmSkelPulse 1.25s ease-in-out infinite}
html body .inv2-loading:is(#sk-a,*) > i{display:none !important}

/* ── Inventory 2.0 follows the chosen theme (2026-11-14) ──────────────────────────────
   It had its own fixed blue palette. Its colours now come from the same theme tokens as
   Home and Expenses, in every theme, and the side menu is a calm surface with primary icons. */
html body .inv2-app:is(#iv-a,*){
  --inv2-blue:var(--primary);--inv2-blue-2:var(--primary);--inv2-accent-text:var(--primary);
  --inv2-bg:var(--bg);--inv2-surface:var(--surface-elevated,var(--panel));--inv2-line:var(--line);--inv2-text:var(--text);--inv2-muted:var(--muted);
  --inv2-shadow:none;background:var(--bg) !important;color:var(--text) !important;
}
html body .inv2-app:is(#iv-a,*) .inv2-sidebar{background:linear-gradient(var(--surface-elevated,var(--panel)),var(--surface-elevated,var(--panel))),var(--bg) !important;color:var(--text) !important;border-left:1px solid var(--line)}
html body .inv2-app:is(#iv-a,*) .inv2-nav-item{color:var(--text) !important;font-weight:400}
html body .inv2-app:is(#iv-a,*) .inv2-nav-item i{color:var(--primary)}
html body .inv2-app:is(#iv-a,*) .inv2-nav-item:hover{background:color-mix(in srgb,var(--primary) 8%,transparent) !important}
html body .inv2-app:is(#iv-a,*) .inv2-nav-item.active{background:color-mix(in srgb,var(--primary) 13%,transparent) !important;color:var(--primary) !important;box-shadow:none !important;font-weight:500}
html body .inv2-app:is(#iv-a,*) .inv2-identity{background:color-mix(in srgb,var(--primary) 7%,transparent) !important}
html body .inv2-app:is(#iv-a,*) .inv2-avatar{background:color-mix(in srgb,var(--primary) 14%,transparent) !important;color:var(--primary) !important}
html body .inv2-app:is(#iv-a,*) .inv2-brand-logo{background:transparent !important}
html body .inv2-app:is(#iv-a,*) .inv2-brand-text strong{font-weight:500}
html.tm-tw-regular body .inv2-app:is(#iv-a,*) :is(h1,h2,h3,h4,strong,b,th,label,button,.inv2-btn){font-weight:400}
html.tm-tw-regular body .inv2-app:is(#iv-a,*) :is(h1,h2){font-weight:500}

/* ── Tabs as underline tabs everywhere (Dashboard, Insurance) ──────────────────────── */
html body #app#app :is(.dashboard-main-tabs,.insurance-view-tabs){background:none !important;border:0 !important;border-bottom:1px solid var(--line) !important;border-radius:0 !important;box-shadow:none !important;padding:0 !important;gap:4px 14px !important;display:flex !important;flex-wrap:wrap;width:100% !important;margin:6px 0 12px !important}
html body #app#app :is(.dashboard-main-tabs,.insurance-view-tabs) > button{background:none !important;background-image:none !important;border:0 !important;border-bottom:2px solid transparent !important;border-radius:0 !important;box-shadow:none !important;color:var(--muted) !important;padding:8px 2px !important;min-height:34px;font-size:.84rem !important;margin:0 0 -1px !important;transform:none !important}
html body #app#app :is(.dashboard-main-tabs,.insurance-view-tabs) > button i{color:inherit !important}
html body #app#app :is(.dashboard-main-tabs,.insurance-view-tabs) > button:is(.active,[aria-selected="true"]){color:var(--primary) !important;border-bottom-color:var(--primary) !important}

/* ── Admin and settings sheets: the same pill buttons as every other dialog ────────── */
html body .modal:is(#u-a,*):is(#u-b,*) :is(.settings-sheet-foot,.manage-plan-row,.manage-plan-extra,.admin-test-pw-actions,.account-security-approval-actions) :is(button,.btn),
html body .modal:is(#u-a,*):is(#u-b,*) .settings-sheet :is(footer,[class*="-actions"],[class*="-foot"],[class*="-buttons"],.modal-footer) > :is(button,.btn){
  height:34px !important;min-height:34px !important;width:auto !important;padding:0 15px !important;border-radius:999px !important;font-size:.72rem !important;line-height:1 !important;
  display:inline-flex !important;align-items:center;justify-content:center;gap:6px;flex:0 0 auto !important}
html body .modal:is(#u-a,*):is(#u-b,*) .settings-sheet-foot{display:flex !important;justify-content:center !important;gap:8px !important;border-top:0 !important;background:none !important;padding:8px 12px 12px !important}
html body .modal:is(#u-a,*):is(#u-b,*) .settings-sheet-head{padding:12px 14px 8px !important;border-bottom:0 !important;background:none !important}
html body .modal:is(#u-a,*):is(#u-b,*) .settings-sheet-head h3{font-size:.95rem !important;margin:0 !important}
html body .modal:is(#u-a,*):is(#u-b,*) .settings-sheet-head p{font-size:.72rem !important;color:var(--muted) !important;margin:2px 0 0 !important}
html body .modal:is(#u-a,*):is(#u-b,*) .manage-plan-block-head > span:first-child{font-size:.84rem}
html.tm-tw-regular body .modal:is(#u-a,*):is(#u-b,*) :is(.manage-plan-block-head,.admin-access-kv,.admin-section-title) :is(span,strong,h4){font-weight:400 !important}

/* Header: no empty line under the logo when there are no company details (2026-11-14) */
html body #app .header .brand #mainAppSubtitle:empty{display:none !important}

/* ===== SOURCE: Assets/style/69-admin-user-manager.css ===== */
/* Triplem VIP · Admin user manager panel (2026-11-14)
   Admin → click a user. The Home Style side-panel design: one surface, a calm header, underline
   tabs, small uppercase section labels, regular text, primary-coloured icons and switches.
   Colours come from the theme tokens, so every light and dark theme works. The panel sits just
   below the app's dialogs, so a confirmation or the records viewer opens on top of it. */

.aum-root{position:fixed;inset:0;z-index:2147482000;pointer-events:none;visibility:hidden}
.aum-root.is-open{pointer-events:auto;visibility:visible}
.aum-backdrop{position:absolute;inset:0;background:rgba(8,15,30,.38);opacity:0;transition:opacity .2s ease}
.aum-root.is-open .aum-backdrop{opacity:1}
.aum-panel{
  position:absolute;top:12px;left:12px;bottom:12px;width:min(600px,calc(100vw - 24px));
  display:flex;flex-direction:column;overflow:hidden;
  border:1px solid var(--line,rgba(15,23,42,.12));border-radius:22px;
  background:linear-gradient(var(--surface-elevated,#fff),var(--surface-elevated,#fff)),var(--bg,#fff);color:var(--text,#0f172a);
  box-shadow:0 30px 70px rgba(8,15,30,.28),0 2px 8px rgba(8,15,30,.08);
  opacity:0;transform:translateX(-28px);transition:opacity .2s ease,transform .24s cubic-bezier(.22,.75,.22,1);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:400;font-size:13px;line-height:1.45;
}
.aum-root.is-open .aum-panel{opacity:1;transform:none}
.aum-frame{display:flex;flex-direction:column;min-height:0;flex:1}
html.aum-open body{overflow:hidden}

/* header */
.aum-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start;padding:16px 16px 10px}
.aum-avatar{width:46px;height:46px;border-radius:14px;object-fit:contain;background:color-mix(in srgb,var(--primary,#2563eb) 8%,transparent);padding:4px}
.aum-id strong{display:block;font-size:1.05rem;font-weight:500;letter-spacing:-.01em;line-height:1.25;overflow-wrap:anywhere}
.aum-id small{display:block;margin-top:1px;color:var(--muted,#64748b);font-size:.74rem;overflow-wrap:anywhere}
.aum-pills{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.aum-pill{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;font-size:.68rem;line-height:1.3;color:var(--muted,#64748b);
  background:color-mix(in srgb,var(--muted,#64748b) 11%,transparent)}
.aum-pill i{font-size:.62rem}
.aum-pill.is-ok{color:#15803d;background:color-mix(in srgb,#16a34a 13%,transparent)}
.aum-pill.is-warn{color:#b45309;background:color-mix(in srgb,#f59e0b 16%,transparent)}
.aum-pill.is-bad{color:#b91c1c;background:color-mix(in srgb,#dc2626 13%,transparent)}
.aum-pill.is-info{color:var(--primary,#2563eb);background:color-mix(in srgb,var(--primary,#2563eb) 12%,transparent)}
html[data-triplem-theme-mode="dark"] .aum-pill.is-ok{color:#4ade80}
html[data-triplem-theme-mode="dark"] .aum-pill.is-warn{color:#fbbf24}
html[data-triplem-theme-mode="dark"] .aum-pill.is-bad{color:#f87171}
.aum-close{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--text);cursor:pointer}
.aum-close:hover{background:color-mix(in srgb,var(--primary) 8%,transparent)}

/* tabs */
.aum-tabs{display:flex;gap:2px 14px;overflow-x:auto;scrollbar-width:none;padding:0 16px;border-bottom:1px solid var(--line)}
.aum-tabs::-webkit-scrollbar{display:none}
.aum-tabs button{flex:none;display:inline-flex;align-items:center;gap:6px;padding:10px 1px;margin-bottom:-1px;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font:inherit;font-size:.78rem;cursor:pointer;white-space:nowrap}
.aum-tabs button i{font-size:.74rem}
.aum-tabs button:hover{color:var(--text)}
.aum-tabs button[aria-selected="true"]{color:var(--primary);border-bottom-color:var(--primary)}

/* body and sections */
.aum-body{flex:1;overflow:auto;overscroll-behavior:contain;padding:6px 16px 22px}
.aum-section{padding:14px 0;border-bottom:1px dashed color-mix(in srgb,var(--line) 85%,transparent)}
.aum-section:last-child{border-bottom:0}
.aum-section h3{margin:0 0 10px;font-size:.66rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.aum-muted{margin:4px 0 8px;color:var(--muted);font-size:.72rem;line-height:1.45}

/* key / value */
.aum-kv{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px 14px;margin:0}
.aum-kv div{min-width:0}
.aum-kv dt{font-size:.66rem;color:var(--muted);margin:0 0 1px}
.aum-kv dd{margin:0;font-size:.8rem;overflow-wrap:anywhere}

/* notes */
.aum-note{display:flex;gap:10px;align-items:flex-start;margin:12px 0 0;padding:10px 12px;border-radius:12px;font-size:.76rem;line-height:1.45;
  background:color-mix(in srgb,var(--primary) 7%,transparent)}
.aum-note > i{margin-top:2px;color:var(--primary)}
.aum-note.is-warn{background:color-mix(in srgb,#f59e0b 12%,transparent)}.aum-note.is-warn > i{color:#d97706}
.aum-note.is-bad{background:color-mix(in srgb,#dc2626 9%,transparent)}.aum-note.is-bad > i{color:#dc2626}
.aum-note b{font-weight:500}
.aum-link{border:0;background:none;padding:0;margin-right:4px;color:var(--primary);font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}

/* switches (Home Style switch) */
.aum-switches{display:grid}
.aum-switch{appearance:none;width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:9px 0;border:0;border-top:1px solid color-mix(in srgb,var(--line) 60%,transparent);background:transparent;color:var(--text);font:inherit;text-align:right;cursor:pointer}
.aum-switches .aum-switch:first-child{border-top:0}
.aum-switch:not(:has(.aum-ico)){grid-template-columns:minmax(0,1fr) auto}
.aum-ico{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 10%,transparent);color:var(--primary);font-size:.78rem}
.aum-switch-copy b{display:block;font-size:.8rem;font-weight:400}
.aum-switch-copy small{display:block;margin-top:1px;font-size:.68rem;color:var(--muted);line-height:1.35}
.aum-track{position:relative;width:38px;height:22px;border-radius:999px;background:color-mix(in srgb,var(--muted,#667085) 32%,transparent);transition:background-color .15s ease;flex:none}
.aum-track i{position:absolute;top:3px;right:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.3);transition:transform .15s ease}
.aum-switch[aria-checked="true"] .aum-track{background:var(--primary)}
.aum-switch[aria-checked="true"] .aum-track i{transform:translateX(-16px)}
.aum-switch:disabled{cursor:not-allowed;opacity:.55}
.aum-switch.is-busy .aum-track{opacity:.6}
.aum-switch:focus-visible,.aum-seg button:focus-visible,.aum-chip:focus-visible,.aum-btn:focus-visible,.aum-tabs button:focus-visible{outline:2px solid color-mix(in srgb,var(--primary) 50%,transparent);outline-offset:2px}

/* rows, segmented choices, chips */
.aum-row{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;flex-wrap:wrap;padding:8px 0}
.aum-row.is-stack{align-items:flex-start;flex-direction:column}
.aum-row-label{font-size:.78rem;display:inline-flex;align-items:center;gap:7px}
.aum-row-label i{color:var(--primary)}
.aum-seg{display:inline-flex;padding:3px;border-radius:999px;background:color-mix(in srgb,var(--muted,#64748b) 12%,transparent);gap:2px}
.aum-seg.is-wrap{flex-wrap:wrap;border-radius:14px}
.aum-seg button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:.74rem;padding:6px 12px;border-radius:999px;cursor:pointer;white-space:nowrap}
.aum-seg button[aria-checked="true"]{background:var(--surface-elevated,#fff);color:var(--primary);box-shadow:0 1px 3px rgba(15,23,42,.14)}
.aum-seg button:disabled{opacity:.45;cursor:not-allowed}
.aum-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:4px 0 8px}
.aum-chip{border:1px solid var(--line);background:transparent;color:var(--text);font:inherit;font-size:.74rem;padding:5px 11px;border-radius:999px;cursor:pointer}
.aum-chip:hover{border-color:color-mix(in srgb,var(--primary) 45%,var(--line))}
.aum-chip[aria-pressed="true"]{border-color:var(--primary);color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,transparent)}
.aum-chip:disabled{opacity:.5;cursor:not-allowed}
.aum-chip.is-busy{opacity:.55}

/* fields and buttons */
.aum-form{display:grid;gap:10px}
.aum-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.aum-field{display:grid;gap:4px;min-width:0}
.aum-field.is-wide{grid-column:1/-1}
.aum-field.is-inline{grid-template-columns:auto minmax(0,220px);align-items:center;gap:10px;margin:6px 0}
.aum-field > span{font-size:.7rem;color:var(--muted)}
.aum-field :is(input,textarea,select),.aum-mini{width:100%;min-height:34px;padding:6px 10px;border:1px solid var(--line);border-radius:9px;background:color-mix(in srgb,var(--bg,#fff) 70%,transparent);color:var(--text);font:inherit;font-size:.8rem;font-weight:400;box-sizing:border-box}
.aum-field textarea{min-height:58px;resize:vertical}
.aum-field :is(input,textarea):focus,.aum-mini:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 16%,transparent)}
.aum-field :is(input,textarea):disabled{opacity:.6}
.aum-mini{width:70px;min-height:30px}
.aum-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.aum-actions.is-left{justify-content:flex-start}
.aum-actions.is-wrap{flex-wrap:wrap;justify-content:flex-start}
.aum-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:0 13px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--text);font:inherit;font-size:.74rem;cursor:pointer;white-space:nowrap}
.aum-btn i{color:var(--primary);font-size:.74rem}
.aum-btn:hover{background:color-mix(in srgb,var(--primary) 8%,transparent)}
.aum-btn.is-primary{background:var(--primary);border-color:var(--primary);color:var(--on-primary,#fff)}
.aum-btn.is-primary i{color:inherit}
.aum-btn.is-primary:hover{filter:brightness(1.06);background:var(--primary)}
.aum-btn.is-danger{color:#dc2626;border-color:color-mix(in srgb,#dc2626 40%,var(--line))}
.aum-btn.is-danger i{color:inherit}
.aum-btn.is-danger:hover{background:color-mix(in srgb,#dc2626 9%,transparent)}
.aum-btn:disabled{opacity:.5;cursor:not-allowed}
.aum-btn.is-busy{opacity:.6;pointer-events:none}
.aum-btn.is-busy::after,.aum-chip.is-busy::after,.aum-seg button.is-busy::after{content:"";width:11px;height:11px;margin-right:4px;border:2px solid currentColor;border-left-color:transparent;border-radius:50%;animation:aumSpin .7s linear infinite}

/* plan */
.aum-status{display:grid;gap:2px;padding:12px 14px;border-radius:14px;background:color-mix(in srgb,var(--muted) 9%,transparent)}
.aum-status b{font-weight:500;font-size:.9rem}
.aum-status span{font-size:.72rem;color:var(--muted)}
.aum-status.is-ok{background:color-mix(in srgb,#16a34a 10%,transparent)}
.aum-status.is-warn{background:color-mix(in srgb,#f59e0b 13%,transparent)}
.aum-status.is-bad{background:color-mix(in srgb,#dc2626 10%,transparent)}
.aum-summary{margin:8px 0 0;font-size:.76rem;color:var(--muted)}
.aum-summary b{color:var(--text);font-weight:500}

/* lists, stats, logo, danger */
.aum-list{list-style:none;margin:0;padding:0;display:grid}
.aum-list li{display:grid;gap:1px;padding:8px 0;border-top:1px solid color-mix(in srgb,var(--line) 60%,transparent);font-size:.78rem}
.aum-list li:first-child{border-top:0}
.aum-list li b{font-weight:400}
.aum-list li small{color:var(--muted);font-size:.68rem}
.aum-list li.is-row{grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px}
.aum-list li.is-row img{width:30px;height:30px;border-radius:9px;object-fit:contain}
.aum-list li.is-row span{display:grid}
.aum-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}
.aum-stats div{padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--primary) 6%,transparent)}
.aum-stats b{display:block;font-size:1rem;font-weight:500;font-variant-numeric:tabular-nums}
.aum-stats small{display:block;font-size:.66rem;color:var(--muted)}
.aum-logo{display:flex;gap:12px;align-items:center;padding:10px 12px;border:1px dashed var(--line);border-radius:14px}
.aum-logo img{width:54px;height:54px;object-fit:contain;border-radius:12px;background:color-mix(in srgb,var(--primary) 6%,transparent);padding:4px;flex:none}
.aum-logo b{display:block;font-weight:400;font-size:.8rem}
.aum-logo small{display:block;font-size:.68rem;color:var(--muted)}
.aum-logo .aum-actions{margin-top:6px}
.aum-danger{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid color-mix(in srgb,var(--line) 60%,transparent)}
.aum-danger:first-of-type{border-top:0}
.aum-danger b{display:block;font-weight:400;font-size:.8rem}
.aum-danger small{display:block;font-size:.68rem;color:var(--muted)}
.aum-compose{margin-top:10px;display:grid;gap:8px;padding:12px;border-radius:14px;background:color-mix(in srgb,var(--primary) 5%,transparent)}
.aum-compose.hide{display:none}

/* skeleton */
.aum-skel{display:grid;gap:8px;animation:tmSkelPulse 1.25s ease-in-out infinite}
.aum-skel span{display:block;height:12px;border-radius:999px;background:color-mix(in srgb,var(--text,#0f172a) 9%,transparent)}
.aum-skel span:nth-child(2n){width:70%}.aum-skel span:nth-child(3n){width:45%}

/* toast */
.aum-toast{position:absolute;right:16px;left:16px;bottom:14px;display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:12px;font-size:.76rem;line-height:1.4;
  background:var(--text,#0f172a);color:var(--surface-elevated,#fff);box-shadow:0 10px 30px rgba(8,15,30,.25);opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.aum-toast.is-on{opacity:1;transform:none}
.aum-toast.is-ok i{color:#4ade80}.aum-toast.is-bad i{color:#f87171}
.aum-toast i{margin-top:2px}

@keyframes aumSpin{to{transform:rotate(360deg)}}
@media (max-width:700px){
  .aum-panel{top:auto;right:0;left:0;bottom:0;width:auto;height:92dvh;border-radius:22px 22px 0 0;transform:translateY(40px)}
  .aum-grid{grid-template-columns:1fr}
  .aum-field.is-inline{grid-template-columns:1fr}
  .aum-danger{flex-direction:column;align-items:stretch}
}
@media (prefers-reduced-motion:reduce){.aum-panel,.aum-backdrop,.aum-toast{transition:none}.aum-skel{animation:none}}
/* Dialogs opened from the panel (records, payment review, confirmations) stay on top of it. */
html.aum-open body .modal:not(.hide){z-index:2147482600 !important}
.aum-form[data-aum-form="username"]{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0}
.aum-form[data-aum-form="username"] .aum-field{flex:1 1 260px;margin:0}
.aum-form[data-aum-form="username"] .aum-btn{flex:none}

/* ═══════════════════════════════════════════════════════════════════════════════════════════
   Side panels for every overlay of Admin, Loans, Installments, Assets / Depreciation, Notes
   (ui/09-side-sheets.js marks them "tm-sheet"). Same frame as the user panel above. The
   doubled :is(#…,*) raises the weight above the theme files without changing what matches.
   ═══════════════════════════════════════════════════════════════════════════════════════════ */
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*):not(.hide){display:block !important;padding:0 !important;place-items:unset !important;align-items:unset !important;justify-content:unset !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) > .modal-backdrop{background:rgba(8,15,30,.38) !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) > .modal-dialog{
  position:absolute !important;top:12px !important;left:12px !important;bottom:12px !important;right:auto !important;
  width:min(600px,calc(100vw - 24px)) !important;max-width:none !important;height:auto !important;max-height:none !important;min-height:0 !important;margin:0 !important;
  display:flex !important;flex-direction:column !important;overflow:hidden !important;transform:none;
  border:1px solid var(--line,rgba(15,23,42,.12)) !important;border-radius:22px !important;
  background:linear-gradient(var(--surface-elevated,#fff),var(--surface-elevated,#fff)),var(--bg,#fff) !important;color:var(--text,#0f172a) !important;
  box-shadow:0 30px 70px rgba(8,15,30,.28),0 2px 8px rgba(8,15,30,.08) !important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:400;
}

html body .modal.tm-sheet.tm-sheet-in:is(#sh-a,*) > .modal-dialog{animation:tmSheetIn .24s cubic-bezier(.22,.75,.22,1)}
html body .modal.tm-sheet.tm-sheet-in:is(#sh-a,*) > .modal-backdrop{animation:tmSheetFade .2s ease}
@keyframes tmSheetIn{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:none}}
@keyframes tmSheetFade{from{opacity:0}to{opacity:1}}

/* A form wrapping head + body + footer behaves like the dialog itself */
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) > .modal-dialog > form{display:flex !important;flex-direction:column !important;flex:1 1 auto !important;min-height:0 !important;margin:0 !important}

/* Header */
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-head,.settings-sheet-head){
  flex:none !important;display:flex !important;align-items:flex-start !important;gap:12px !important;flex-wrap:wrap;
  padding:16px 16px 12px !important;margin:0 !important;border:0 !important;border-bottom:1px solid var(--line) !important;
  background:none !important;box-shadow:none !important;position:relative;
}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-head,.settings-sheet-head) > div:not(.tm-sheet-actions):not(.section-details-actions):first-of-type{flex:1 1 220px;min-width:0}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-head,.settings-sheet-head) h3{font-size:1.02rem !important;font-weight:500 !important;letter-spacing:-.01em !important;line-height:1.3 !important;margin:0 !important;color:var(--text) !important;text-transform:none !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-head,.settings-sheet-head) :is(p,small,.help){font-size:.74rem !important;line-height:1.45 !important;color:var(--muted) !important;margin:2px 0 0 !important;font-weight:400 !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-head,.settings-sheet-head) > :is(button.icon-btn,[data-close-modal],button[aria-label="Close"],.settings-sheet-close):last-child,
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-head,.settings-sheet-head) > :is([data-close-modal],button[aria-label="Close"]){
  order:99;flex:none !important;margin-right:auto !important;width:34px !important;height:34px !important;min-width:34px !important;min-height:34px !important;padding:0 !important;
  display:grid !important;place-items:center !important;border:1px solid var(--line) !important;border-radius:50% !important;background:transparent !important;color:var(--text) !important;
  font-size:1.05rem !important;line-height:1 !important;box-shadow:none !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-head,.settings-sheet-head) > :is([data-close-modal],button[aria-label="Close"]):hover{background:color-mix(in srgb,var(--primary) 8%,transparent) !important}
.tm-sheet-icon{flex:none;width:46px;height:46px;border-radius:14px;background:color-mix(in srgb,var(--primary,#2563eb) 10%,transparent);position:relative}
.tm-sheet-icon::after{content:"";position:absolute;inset:11px;background:var(--primary,#2563eb);-webkit-mask:var(--tm-sheet-icon) center/contain no-repeat;mask:var(--tm-sheet-icon) center/contain no-repeat}

/* Body */
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-body,.settings-sheet-body){flex:1 1 auto !important;min-height:0 !important;max-height:none !important;overflow:auto !important;overscroll-behavior:contain;padding:12px 16px 16px !important;background:none !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-body,.settings-sheet-body) :is(h4,.section-title,.admin-section-title,legend){font-size:.66rem !important;font-weight:500 !important;letter-spacing:.12em !important;text-transform:uppercase !important;color:var(--muted) !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-body,.settings-sheet-body) :is(label,.form-label):not([class*="switch"],[class*="check"],[class*="chip"],[class*="toggle"],[class*="option"],[class*="card"],[class*="tab"]){font-size:.7rem !important;font-weight:400 !important;color:var(--muted) !important;text-transform:none !important;letter-spacing:normal !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-body,.settings-sheet-body) :is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="file"],[type="color"],[type="hidden"]),select,textarea){
  min-height:36px !important;font-size:.8rem !important;font-weight:400 !important;border-radius:9px !important;border:1px solid var(--line) !important;
  background:color-mix(in srgb,var(--bg,#fff) 70%,transparent) !important;color:var(--text) !important;box-shadow:none !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-body,.settings-sheet-body) :is(input,select,textarea):focus{border-color:var(--primary) !important;box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 16%,transparent) !important;outline:none !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-body,.settings-sheet-body) textarea{min-height:80px !important}

/* Footer: stays at the bottom of the panel */
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-footer,.settings-sheet-footer,.settings-sheet-foot,.modal-actions,.note-action-row){
  position:sticky !important;bottom:0 !important;z-index:2;display:flex !important;flex-direction:row !important;flex-wrap:wrap !important;justify-content:flex-end !important;align-items:center !important;gap:8px !important;
  margin:12px -16px -16px !important;padding:12px 16px !important;border-top:1px solid var(--line) !important;
  background:linear-gradient(var(--surface-elevated,#fff),var(--surface-elevated,#fff)),var(--bg,#fff) !important;box-shadow:none !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) > .modal-dialog > :is(.modal-footer,.settings-sheet-footer,.settings-sheet-foot),
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) > .modal-dialog > form > :is(.modal-footer,.settings-sheet-footer){position:static !important;flex:none !important;margin:0 !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-footer,.settings-sheet-footer,.settings-sheet-foot,.modal-actions,.note-action-row) > :is(button,.btn,a.btn){
  height:34px !important;min-height:34px !important;width:auto !important;min-width:0 !important;flex:0 0 auto !important;padding:0 15px !important;border-radius:999px !important;
  font-size:.74rem !important;font-weight:400 !important;line-height:1 !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;gap:6px !important}

/* Buttons inside the panel body: pills like the user panel */
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-body,.settings-sheet-body) :is(.btn,button.btn){border-radius:999px !important;font-weight:400 !important}

/* Section details (loans, installments, wallets) inside a panel */
html body .modal.tm-sheet:is(#sh-a,*) .section-details-actions:not(.hide){display:flex !important;flex-wrap:wrap;gap:8px;align-items:center;width:100%;order:50;margin:4px 52px 0 0}
html body .modal.tm-sheet:is(#sh-a,*) .section-details-head-text{flex:1 1 260px;min-width:0}
html body .modal.tm-sheet:is(#sh-a,*) .section-details-title-text{font-weight:500}
html body .modal.tm-sheet:is(#sh-a,*) #sectionDetailsTitle > i{display:none}
html body .modal.tm-sheet:is(#sh-a,*) :is(.section-details-metric,.section-details-chart-card,.installment-plan-overlay .ipo-card){border-radius:14px !important;box-shadow:none !important}

/* Extra actions added by ui/09-side-sheets.js */
.tm-sheet-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#installmentPlanModal .tm-sheet-actions{width:100%;margin:6px 52px 0 0;order:50}
#noteDetailModal .tm-sheet-note-tools{margin-left:auto}
.tm-sheet-btn{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 13px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--text);font:inherit;font-size:.74rem;font-weight:400;cursor:pointer;white-space:nowrap}
.tm-sheet-btn i{color:var(--primary);font-size:.74rem}
.tm-sheet-btn:hover{background:color-mix(in srgb,var(--primary) 8%,transparent)}
.tm-sheet-btn.is-primary{background:var(--primary);border-color:var(--primary);color:var(--on-primary,#fff)}
.tm-sheet-btn.is-primary i{color:inherit}
.tm-sheet-btn.is-primary:hover{filter:brightness(1.06);background:var(--primary)}
.tm-sheet-caret{font-size:.6rem !important;color:var(--muted) !important}
.tm-sheet-menu{position:relative}
.tm-sheet-menu-list{position:absolute;top:calc(100% + 6px);right:0;z-index:30;min-width:210px;display:none;padding:6px;border:1px solid var(--line);border-radius:14px;
  background:linear-gradient(var(--surface-elevated,#fff),var(--surface-elevated,#fff)),var(--bg,#fff);box-shadow:0 18px 40px rgba(8,15,30,.18)}
.tm-sheet-menu.is-open .tm-sheet-menu-list{display:grid}
.tm-sheet-menu-list button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:9px;background:none;color:var(--text);font:inherit;font-size:.78rem;text-align:right;cursor:pointer}
.tm-sheet-menu-list button i{width:16px;text-align:center;color:var(--primary)}
.tm-sheet-menu-list button:hover{background:color-mix(in srgb,var(--primary) 8%,transparent)}
.tm-sheet-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:.72rem;color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,transparent)}
.tm-sheet-chip.is-bad{color:#b91c1c;background:color-mix(in srgb,#dc2626 11%,transparent)}
.tm-sheet-progress{display:grid;gap:4px;margin-top:8px;max-width:420px}
.tm-sheet-progress span{display:block;height:6px;border-radius:999px;background:linear-gradient(90deg,var(--primary) 0 var(--p),color-mix(in srgb,var(--muted,#64748b) 18%,transparent) var(--p) 100%)}
.tm-sheet-progress small{font-size:.68rem !important;color:var(--muted) !important;margin:0 !important}
.tm-sheet-counts{font-size:.68rem !important;color:var(--muted) !important;margin:2px 0 0 !important}
.tm-sheet-flash{font-size:.72rem;color:#15803d;opacity:0;transition:opacity .15s ease}
.tm-sheet-flash.is-on{opacity:1}.tm-sheet-flash.is-bad{color:#dc2626}

@media (max-width:700px){
  html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) > .modal-dialog,
  html body .modal.tm-sheet.tm-sheet-wide:is(#sh-a,*):is(#sh-b,*) > .modal-dialog{top:auto !important;right:0 !important;left:0 !important;bottom:0 !important;width:auto !important;height:92dvh !important;border-radius:22px 22px 0 0 !important}
  @keyframes tmSheetIn{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}
  html body .modal.tm-sheet:is(#sh-a,*) .section-details-actions:not(.hide),#installmentPlanModal .tm-sheet-actions{margin-right:0}
}
@media (prefers-reduced-motion:reduce){html body .modal.tm-sheet.tm-sheet-in > :is(.modal-dialog,.modal-backdrop){animation:none !important}}
/* Panels: content starts at the top (no stretched rows), close button pinned top-right */
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-body,.settings-sheet-body){align-content:start !important;justify-content:flex-start !important;grid-auto-rows:auto !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-head,.settings-sheet-head){padding-left:60px !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-head,.settings-sheet-head) :is([data-close-modal],button[aria-label="Close"]):is(button){position:absolute !important;top:14px !important;left:14px !important;margin:0 !important;
  width:34px !important;height:34px !important;min-width:34px !important;min-height:34px !important;padding:0 !important;display:grid !important;place-items:center !important;
  border:1px solid var(--line) !important;border-radius:50% !important;background:transparent !important;color:var(--text) !important;font-size:1rem !important;line-height:1 !important;box-shadow:none !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) .installment-plan-overlay{background:none !important}
/* Detail lists (asset / depreciation information) as a tidy key / value grid */
html body .modal.tm-sheet:is(#sh-a,*) dl.asset-detail-dl{display:grid !important;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px 14px;margin:12px 0 !important;padding:12px 14px;border-radius:14px;background:color-mix(in srgb,var(--primary) 5%,transparent)}
html body .modal.tm-sheet:is(#sh-a,*) dl.asset-detail-dl > div{min-width:0;display:block !important}
html body .modal.tm-sheet:is(#sh-a,*) dl.asset-detail-dl dt{font-size:.66rem !important;color:var(--muted) !important;font-weight:400 !important;margin:0 0 1px !important}
html body .modal.tm-sheet:is(#sh-a,*) dl.asset-detail-dl dd{margin:0 !important;font-size:.8rem !important;font-weight:400 !important;overflow-wrap:anywhere}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-body,.settings-sheet-body) :is(p.help,.help,.form-help,.field-help,small.help){font-size:.72rem !important;line-height:1.45 !important;color:var(--muted) !important;font-weight:400 !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-body,.settings-sheet-body) > p:not([class]),html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is([id$="WalletHint"],[id$="WalletHelp"]),html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) .asset-form-grid > p{font-size:.74rem !important;line-height:1.45 !important;color:var(--muted) !important}


/* ═══ 2026-11-14 b: one size and one look for every panel ═══════════════════════════════ */
/* Overlay header = the user panel header */
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-head,.settings-sheet-head){padding:16px 16px 12px 60px !important;gap:12px !important;align-items:center !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) :is(.modal-head,.settings-sheet-head) h3{font-size:1.05rem !important}
/* Content made for wide dialogs, rearranged to the panel width */
html body .modal.tm-sheet:is(#sh-a,*) :is(.section-details-charts,.asset-charts-grid,.asset-info-grid){grid-template-columns:1fr !important}
html body .modal.tm-sheet:is(#sh-a,*) :is(.section-details-metrics,.asset-kpi-grid){grid-template-columns:repeat(auto-fill,minmax(150px,1fr)) !important}
html body .modal.tm-sheet:is(#sh-a,*) :is(table){font-size:.74rem}
html body .modal.tm-sheet:is(#sh-a,*) :is(.admin-raw-body,.table-wrap,.dep-history-table-wrap,.admin-storage-body){overflow-x:auto !important}
html body .modal.tm-sheet:is(#sh-a,*) .admin-analytics-body :is([class*="grid"]){grid-template-columns:repeat(auto-fill,minmax(150px,1fr)) !important}

/* Detail panels (ui/10-detail-panels.js) */
.tm-dp-avatar{position:relative;display:block;background:color-mix(in srgb,var(--primary,#2563eb) 10%,transparent) !important;padding:0 !important}
.tm-dp-avatar::after{content:"";position:absolute;inset:11px;background:var(--primary,#2563eb);-webkit-mask:var(--tm-sheet-icon) center/contain no-repeat;mask:var(--tm-sheet-icon) center/contain no-repeat}
.tm-dp-progress{display:grid;gap:5px;margin:10px 0 2px}
.tm-dp-progress span{display:block;height:8px;border-radius:999px;background:linear-gradient(90deg,var(--primary) 0 var(--p),color-mix(in srgb,var(--muted,#64748b) 18%,transparent) var(--p) 100%)}
.tm-dp-progress small{font-size:.7rem;color:var(--muted)}
.tm-dp-rows{list-style:none;margin:0;padding:0;display:grid}
.tm-dp-rows li{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:9px 0;border-top:1px solid color-mix(in srgb,var(--line) 60%,transparent)}
.tm-dp-rows li:first-child{border-top:0}
.tm-dp-row-ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:.76rem;color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,transparent)}
.tm-dp-row-ico b{font-weight:500;font-size:.74rem}
.tm-dp-row-ico.is-in,.tm-dp-row-ico.is-ok{color:#15803d;background:color-mix(in srgb,#16a34a 12%,transparent)}
.tm-dp-row-ico.is-out{color:#b45309;background:color-mix(in srgb,#f59e0b 14%,transparent)}
.tm-dp-row-ico.is-bad{color:#b91c1c;background:color-mix(in srgb,#dc2626 11%,transparent)}
html[data-triplem-theme-mode="dark"] .tm-dp-row-ico.is-in,html[data-triplem-theme-mode="dark"] .tm-dp-row-ico.is-ok{color:#4ade80}
html[data-triplem-theme-mode="dark"] .tm-dp-row-ico.is-out{color:#fbbf24}
html[data-triplem-theme-mode="dark"] .tm-dp-row-ico.is-bad{color:#f87171}
.tm-dp-row-main{min-width:0;display:grid;gap:2px}
.tm-dp-row-main b{font-weight:400;font-size:.8rem}
.tm-dp-row-main small{font-size:.68rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-dp-row-main small .aum-pill{padding:1px 7px;font-size:.62rem}
.tm-dp-row-amt{display:grid;justify-items:end;gap:2px;text-align:left}
.tm-dp-row-amt b{font-weight:500;font-size:.8rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.tm-dp-row-amt small{font-size:.66rem;color:var(--muted);white-space:nowrap}
.tm-dp-row-act{display:flex;gap:4px;align-items:center;justify-content:flex-end}
.tm-dp-row-act .aum-btn{min-height:28px;padding:0 10px;font-size:.7rem}
.tm-dp-icon-btn{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer;font-size:.72rem}
.tm-dp-icon-btn:hover{background:color-mix(in srgb,var(--primary) 9%,transparent);color:var(--primary)}
.tm-dp-icon-btn.is-danger:hover{background:color-mix(in srgb,#dc2626 10%,transparent);color:#dc2626}
.tm-dp-ok{color:#16a34a;font-size:.9rem}
.tm-dp-next{display:flex;align-items:center;gap:12px;margin:12px 0 0;padding:10px 12px;border-radius:14px;background:color-mix(in srgb,var(--primary) 7%,transparent)}
.tm-dp-next > i{color:var(--primary)}
.tm-dp-next div{flex:1;min-width:0;display:grid}
.tm-dp-next b{font-weight:500;font-size:.82rem}
.tm-dp-next small{font-size:.7rem;color:var(--muted)}
.tm-dp-next.is-bad{background:color-mix(in srgb,#dc2626 9%,transparent)}.tm-dp-next.is-bad > i{color:#dc2626}
.tm-dp-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.86rem;line-height:1.65;padding:14px;border-radius:14px;background:color-mix(in srgb,var(--primary) 4%,transparent);max-height:46vh;overflow:auto}
.tm-dp-spacer{flex:1}
.aum-chips:has(.tm-dp-spacer){flex-wrap:nowrap}
/* charts */
.tm-dp-chart{margin:0}
.tm-dp-chart figcaption{display:flex;justify-content:space-between;gap:8px;font-size:.72rem;color:var(--muted);margin:0 0 6px}
.tm-dp-chart figcaption span{color:var(--text)}
.tm-dp-chart svg{display:block;width:100%;height:auto;overflow:visible}
.tm-dp-chart .tm-dp-base{stroke:color-mix(in srgb,var(--line) 90%,transparent);stroke-width:1}
.tm-dp-chart text{font-size:10px;fill:var(--muted);font-family:inherit}
.tm-dp-chart .tm-dp-bar path{fill:var(--primary)}
.tm-dp-chart .tm-dp-bar:hover path{filter:brightness(1.12)}
.tm-dp-chart .tm-dp-hit{fill:transparent}
.tm-dp-chart .tm-dp-bar:hover .tm-dp-hit,.tm-dp-chart .tm-dp-pt:hover .tm-dp-hit{fill:color-mix(in srgb,var(--primary) 7%,transparent)}
.tm-dp-chart .tm-dp-line{fill:none;stroke:var(--primary);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.tm-dp-chart .tm-dp-area{fill:color-mix(in srgb,var(--primary) 10%,transparent)}
.tm-dp-chart .tm-dp-pt circle{fill:var(--primary);stroke:var(--surface-elevated,#fff);stroke-width:2;opacity:0}
.tm-dp-chart .tm-dp-pt:hover circle,.tm-dp-chart .tm-dp-pt:last-of-type circle{opacity:1}
@media (max-width:700px){.tm-dp-rows li{grid-template-columns:34px minmax(0,1fr) auto}.tm-dp-row-act{grid-column:2/-1;justify-content:flex-start}}
/* Detail panels · performance: long lists only paint the rows on screen */
.tm-dp-rows li{content-visibility:auto;contain-intrinsic-size:auto 54px}
.tm-dp-root .aum-body{contain:content}
/* Wallet panel */
.tm-dp-avatar.is-custom{display:grid;place-items:center;overflow:hidden}
.tm-dp-avatar.is-custom::after{content:none}
.tm-dp-avatar.is-custom :is(img,svg){max-width:30px;max-height:30px}
.tm-dp-row-ico.is-info{color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,transparent)}
.tm-dp-row-amt b.is-in{color:#15803d}
html[data-triplem-theme-mode="dark"] .tm-dp-row-amt b.is-in{color:#4ade80}
.tm-dp-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:8px;margin-top:12px}
.tm-dp-quick .aum-btn{justify-content:center;min-height:38px}
.tm-dp-quick .tm-dp-icon-btn{width:38px;height:38px;border:1px solid var(--line)}
.tm-dp-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.tm-dp-pager span{font-size:.72rem;color:var(--muted)}
.tm-dp-pager .aum-btn{min-height:32px;padding:0 12px;font-size:.74rem}
.tm-dp-pager .aum-btn[data-p] i.fa-chevron-right{order:2}
/* Docked app forms (Spend / Receive / Transfer / New wallet) inside the panel body */
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-formhost{display:block;padding-top:10px}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-formhost > .modal-dialog.tm-dp-docked{position:static !important;inset:auto !important;transform:none !important;translate:none !important;width:auto !important;min-width:0 !important;max-width:none !important;height:auto !important;max-height:none !important;margin:0 !important;padding:0 !important;border:0 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;animation:none !important;overflow:visible !important;display:block !important;opacity:1 !important;color:var(--text)}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked > .modal-head{position:static !important;display:flex !important;align-items:center;gap:10px;margin:2px 0 12px !important;padding:0 !important;border:0 !important;background:none !important;box-shadow:none !important;min-height:0 !important}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked > .modal-head > [data-close-modal]{display:none !important}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked > .modal-head :is(h3,h2){margin:0;font-size:.74rem !important;font-weight:600 !important;letter-spacing:.06em;text-transform:uppercase;color:var(--muted) !important}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked > .modal-head p{margin:2px 0 0;font-size:.74rem;color:var(--muted)}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked > .modal-head .goods-modal-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked > .modal-body{padding:0 !important;margin:0 !important;overflow:visible !important;max-height:none !important;height:auto !important}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.input,.select){background-color:var(--control-bg,var(--surface-elevated,#fff)) !important;background-image:none !important;border-color:var(--line) !important;color:var(--text) !important;-webkit-text-fill-color:var(--text) !important;caret-color:var(--primary)}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.input,.select):focus{border-color:color-mix(in srgb,var(--primary) 58%,var(--line)) !important;box-shadow:0 0 0 3px var(--focus-ring,color-mix(in srgb,var(--primary) 22%,transparent)) !important;outline:none !important}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked :is(input,textarea)::placeholder{color:var(--muted) !important;-webkit-text-fill-color:var(--muted) !important}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked :is(select,.select) option{background:var(--surface-elevated,#fff);color:var(--text)}
html[data-triplem-theme-mode="dark"] body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked :is(select,.select,input[type="date"]){color-scheme:dark}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked label{color:var(--text)}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked .modal-footer{position:sticky;bottom:-22px;z-index:2;display:flex !important;justify-content:flex-end;gap:8px;margin:14px -16px -22px !important;padding:12px 16px 16px !important;background:var(--surface-elevated,var(--modal-bg,#fff));border-top:1px solid var(--line)}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked .modal-footer .btn{min-height:38px;border-radius:12px}
html body #tmDetailPanel#tmDetailPanel#tmDetailPanel .tm-dp-docked .expense-optional-details{border-radius:14px}

/* ===== SOURCE: Assets/style/70-ms-store.css ===== */
/* Triplem VIP · Microsoft Store availability on the homepage (2026-11-16)
   Hero chip, the "Now on the Microsoft Store" section, the official badge and the
   recommended Store option in the Windows download dialog. Hidden inside the Windows apps. */

html.triplem-windows-app [data-ms-store-promo],
html.triplem-store-app [data-ms-store-promo],
[data-ms-store-promo][hidden]{display:none !important}

/* ── hero announcement chip ──────────────────────────────────────────── */
#lockScreen .msstore-hero-chip{
  display:inline-flex;align-items:center;gap:8px;max-width:100%;
  margin:0 0 14px;padding:5px 5px 5px 12px;border-radius:999px;
  border:1px solid rgba(147,197,253,.32);
  background:linear-gradient(120deg,rgba(37,99,235,.28),rgba(14,165,233,.14) 60%,rgba(16,185,129,.16));
  color:#e2e8f0;font-size:.78rem;line-height:1.25;text-decoration:none;
  box-shadow:0 8px 24px rgba(2,6,23,.28),inset 0 1px 0 rgba(255,255,255,.12);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
#lockScreen .msstore-hero-chip:hover,#lockScreen .msstore-hero-chip:focus-visible{transform:translateY(-1px);border-color:rgba(191,219,254,.6);box-shadow:0 12px 30px rgba(2,6,23,.34),inset 0 1px 0 rgba(255,255,255,.16)}
#lockScreen .msstore-hero-chip:focus-visible{outline:2px solid #93c5fd;outline-offset:3px}
#lockScreen .msstore-hero-chip strong{color:#fff;font-weight:700}
#lockScreen .msstore-hero-chip .fa-microsoft{color:#7dd3fc;font-size:.95rem}
#lockScreen .msstore-hero-chip-new{padding:3px 8px;border-radius:999px;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-size:.6rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
#lockScreen .msstore-hero-chip-arrow{font-size:.7rem;opacity:.8;transition:transform .2s ease}
#lockScreen .msstore-hero-chip:hover .msstore-hero-chip-arrow{transform:translateX(-2px)}

/* ── section ─────────────────────────────────────────────────────────── */
#lockScreen .msstore-section{margin:clamp(14px,2vw,22px) 0;scroll-margin-top:96px}
#lockScreen .msstore-inner{
  position:relative;isolation:isolate;overflow:hidden;
  display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:clamp(18px,3vw,40px);align-items:center;
  padding:clamp(22px,3.6vw,46px);border-radius:clamp(22px,2.2vw,32px);
  border:1px solid rgba(148,163,184,.22);
  background:radial-gradient(60% 80% at 0% 0%,rgba(37,99,235,.30),transparent 60%),
    radial-gradient(50% 70% at 100% 100%,rgba(16,185,129,.18),transparent 60%),
    linear-gradient(150deg,#0b1736 0%,#0a1330 55%,#081026 100%);
  color:#e2e8f0;text-align:right;
  box-shadow:0 30px 70px rgba(2,6,23,.28),inset 0 1px 0 rgba(255,255,255,.06);
}
#lockScreen .msstore-inner::after{ /* Microsoft-style four-colour accent line */
  content:"";position:absolute;right:0;left:0;top:0;height:3px;z-index:-1;
  background:linear-gradient(90deg,#f25022 0 25%,#7fba00 25% 50%,#00a4ef 50% 75%,#ffb900 75%);opacity:.9;
}
#lockScreen .msstore-kicker{display:inline-flex;align-items:center;gap:7px;margin:0 0 10px;padding:4px 11px;border-radius:999px;background:rgba(125,211,252,.12);border:1px solid rgba(125,211,252,.24);color:#bae6fd;font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
#lockScreen .msstore-copy h2{margin:0 0 10px;color:#fff;font-size:clamp(1.3rem,2.6vw,2rem);line-height:1.15;letter-spacing:-.02em;font-weight:800}
#lockScreen .msstore-lead{margin:0 0 14px;color:#cbd5e1;font-size:clamp(.84rem,1.2vw,.96rem);line-height:1.6;max-width:62ch}
#lockScreen .msstore-points{list-style:none;margin:0 0 18px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
#lockScreen .msstore-points li{display:flex;gap:8px;align-items:flex-start;color:#e2e8f0;font-size:.8rem;line-height:1.4}
#lockScreen .msstore-points i{color:#4ade80;margin-top:2px}
#lockScreen .msstore-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
#lockScreen .msstore-link{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;border-radius:12px;border:1px solid rgba(148,163,184,.3);background:rgba(255,255,255,.06);color:#e2e8f0;font-size:.8rem;font-weight:600;text-decoration:none;transition:background .2s ease,border-color .2s ease}
#lockScreen .msstore-link:hover,#lockScreen .msstore-link:focus-visible{background:rgba(255,255,255,.12);border-color:rgba(191,219,254,.5)}
#lockScreen .msstore-link[hidden]{display:none}
#lockScreen .msstore-note{margin:14px 0 0;color:#94a3b8;font-size:.74rem;line-height:1.5}
#lockScreen .msstore-note[hidden]{display:none}
#lockScreen .msstore-copy-btn{display:inline-flex;align-items:center;gap:5px;margin-right:4px;padding:3px 9px;border-radius:999px;border:1px solid rgba(148,163,184,.35);background:transparent;color:#bfdbfe;font:inherit;font-weight:600;cursor:pointer;word-break:break-all}
#lockScreen .msstore-copy-btn:hover{background:rgba(255,255,255,.08)}

/* official badge (artwork served by Microsoft) */
.msstore-badge{display:inline-flex;align-items:center;border-radius:10px;text-decoration:none;line-height:0;transition:transform .2s ease,filter .2s ease}
.msstore-badge:hover,.msstore-badge:focus-visible{transform:translateY(-1px);filter:drop-shadow(0 8px 18px rgba(0,0,0,.35))}
.msstore-badge:focus-visible{outline:2px solid #93c5fd;outline-offset:3px}
.msstore-badge img{display:block;height:52px;width:auto}
.msstore-badge img[hidden]{display:none}
.msstore-badge--sm img{height:44px}
.msstore-badge-fallback{display:inline-flex;align-items:center;gap:10px;height:52px;padding:0 14px 0 18px;border-radius:10px;background:#000;border:1px solid #a6a6a6;color:#fff;line-height:1.05}
.msstore-badge-fallback[hidden]{display:none}
.msstore-badge-fallback i{font-size:1.5rem}
.msstore-badge-fallback small{display:block;font-size:.66rem;font-weight:500}
.msstore-badge-fallback strong{display:block;font-size:1.08rem;font-weight:600}
.msstore-badge--sm .msstore-badge-fallback{height:44px}

/* Store card */
#lockScreen .msstore-card{position:relative;padding:18px;border-radius:20px;border:1px solid rgba(148,163,184,.24);background:linear-gradient(160deg,rgba(255,255,255,.10),rgba(255,255,255,.04));box-shadow:0 18px 40px rgba(2,6,23,.3),inset 0 1px 0 rgba(255,255,255,.08);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
#lockScreen .msstore-card-top{display:flex;align-items:center;gap:14px;margin-bottom:14px}
#lockScreen .msstore-card-top img{width:64px;height:64px;border-radius:16px;background:#fff;padding:6px;box-shadow:0 8px 20px rgba(2,6,23,.35)}
#lockScreen .msstore-card-top strong{display:block;color:#fff;font-size:1.05rem}
#lockScreen .msstore-card-top span{display:block;color:#cbd5e1;font-size:.76rem}
#lockScreen .msstore-card-top em{display:inline-flex;align-items:center;gap:5px;margin-top:4px;font-style:normal;color:#7dd3fc;font-size:.72rem;font-weight:700}
#lockScreen .msstore-facts{margin:0;display:grid;gap:1px;border-radius:14px;overflow:hidden;background:rgba(148,163,184,.16)}
#lockScreen .msstore-facts div{display:grid;grid-template-columns:86px 1fr;gap:10px;padding:9px 12px;background:rgba(8,16,38,.72)}
#lockScreen .msstore-facts dt{color:#94a3b8;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em}
#lockScreen .msstore-facts dd{margin:0;color:#e2e8f0;font-size:.78rem}
#lockScreen .msstore-card-more{display:inline-flex;align-items:center;gap:6px;margin-top:12px;color:#bfdbfe;font-size:.76rem;font-weight:600;text-decoration:none}
#lockScreen .msstore-card-more:hover{text-decoration:underline}

/* recommended Store option in the Windows download dialog */
.msstore-modal-pick{margin:0 0 14px;padding:14px;border-radius:16px;border:1px solid color-mix(in srgb,var(--primary,#2457d6) 28%,transparent);background:color-mix(in srgb,var(--primary,#2457d6) 7%,transparent);text-align:right}
.msstore-modal-pick p{margin:0 0 10px;font-size:.82rem;line-height:1.5;color:var(--text,#0f172a)}
.msstore-modal-pick .fa-microsoft{color:#00a4ef}
.msstore-modal-pick .msstore-modal-or{margin:12px 0 0;color:var(--muted,#64748b);font-size:.74rem}

@media (max-width:900px){
  #lockScreen .msstore-inner{grid-template-columns:1fr;text-align:center}
  #lockScreen .msstore-lead{margin-inline:auto}
  #lockScreen .msstore-points{grid-template-columns:1fr;max-width:420px;margin-inline:auto;text-align:right}
  #lockScreen .msstore-actions{justify-content:center}
  #lockScreen .msstore-card{text-align:right;max-width:440px;margin:0 auto;width:100%}
}
@media (max-width:520px){
  #lockScreen .msstore-hero-chip{font-size:.7rem;gap:6px}
  #lockScreen .msstore-inner{padding:20px 16px}
  #lockScreen .msstore-actions{flex-direction:column;align-items:stretch}
  #lockScreen .msstore-actions .msstore-badge{align-self:center}
  #lockScreen .msstore-link{justify-content:center}
}
@media (prefers-reduced-motion:reduce){
  #lockScreen .msstore-hero-chip,.msstore-badge,#lockScreen .msstore-hero-chip-arrow{transition:none}
}
#lockScreen .msstore-legal{margin:10px 0 0;color:#64748b;font-size:.64rem;line-height:1.4}

/* ===== SOURCE: Assets/style/71-i18n.css ===== */
/* Triplem VIP · languages (2026-11-16)
   Language buttons, the Language card in Account settings, Arabic / Urdu fonts and the
   right-to-left fixes that are not plain left/right mirroring (scripts/build_rtl_css.js
   mirrors the rest). Rules for RTL pages are written with [dir="rtl"] so the mirroring
   script leaves them as they are. */

/* ── language button + menu ─────────────────────────────────────────── */
.tm-lang{position:relative;display:inline-flex;align-items:center}
.tm-lang-btn{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--line,rgba(148,163,184,.35));background:var(--surface-elevated,rgba(255,255,255,.75));color:var(--text,#0f172a);font:inherit;font-size:.8rem;font-weight:600;cursor:pointer;white-space:nowrap;transition:background .18s ease,border-color .18s ease}
.tm-lang-btn:hover,.tm-lang-btn:focus-visible{border-color:color-mix(in srgb,var(--primary,#2457d6) 45%,var(--line,#cbd5e1));background:color-mix(in srgb,var(--primary,#2457d6) 8%,var(--surface-elevated,#fff))}
.tm-lang-btn:focus-visible{outline:2px solid color-mix(in srgb,var(--primary,#2457d6) 55%,transparent);outline-offset:2px}
.tm-lang-btn .fa-language{color:var(--primary,#2457d6);font-size:.95rem}
.tm-lang-caret{font-size:.6rem;opacity:.65}
.tm-lang-menu{position:absolute;top:calc(100% + 6px);inset-inline-end:0;z-index:2147483000;min-width:168px;padding:6px;border-radius:14px;border:1px solid var(--line,rgba(148,163,184,.35));background:var(--surface-elevated,#fff);box-shadow:0 18px 40px rgba(15,23,42,.18)}
.tm-lang-menu[hidden]{display:none}
.tm-lang-menu button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:38px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--text,#0f172a);font-size:.88rem;font-weight:600;cursor:pointer;text-align:start}
.tm-lang-menu button:hover,.tm-lang-menu button:focus-visible{background:color-mix(in srgb,var(--primary,#2457d6) 9%,transparent)}
.tm-lang-menu button[aria-checked="true"]{color:var(--primary,#2457d6)}
.tm-lang-menu button[lang="ar"]{font-family:"Noto Naskh Arabic",system-ui,sans-serif}
.tm-lang-menu button[lang="ur"]{font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",system-ui,sans-serif;line-height:2}
.landing-lang-picker{margin-inline-end:4px}
.landing-mobile-lang{display:flex;justify-content:center;padding:6px 8px 10px}
.login-lang-row,.signup-lang-row{display:flex;justify-content:flex-end;margin:0 0 8px}
.signup-lang-row .tm-lang-btn{background:rgba(255,255,255,.12);color:inherit;border-color:rgba(255,255,255,.28)}

/* ── Account settings › Language ────────────────────────────────────── */
.tm-lang-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tm-lang-option{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 10px;border-radius:12px;border:1px solid var(--line,#cbd5e1);background:var(--surface,#fff);color:var(--text,#0f172a);font-size:.92rem;font-weight:600;cursor:pointer}
.tm-lang-option.is-active{border-color:var(--primary,#2457d6);background:color-mix(in srgb,var(--primary,#2457d6) 9%,var(--surface,#fff));color:var(--primary,#2457d6)}
.tm-lang-option[lang="ar"]{font-family:"Noto Naskh Arabic",system-ui,sans-serif}
.tm-lang-option[lang="ur"]{font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",system-ui,sans-serif;line-height:2}
@media (max-width:420px){.tm-lang-options{grid-template-columns:1fr}}

/* ── Arabic and Urdu typography ─────────────────────────────────────── */
html[lang="ar"]{--tm-font-i18n:Inter,"Noto Naskh Arabic","Noto Sans Arabic",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif}
html[lang="ur"]{--tm-font-i18n:Inter,"Noto Nastaliq Urdu","Noto Naskh Arabic",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif}
html[lang="ar"] body,html[lang="ur"] body,
html[lang="ar"] body :is(button,input,select,textarea,optgroup,option,h1,h2,h3,h4,h5,h6,p,span,a,label,li,td,th,dt,dd,small,strong,b,em,div,section,article,aside,nav,header,footer,summary,legend,caption,figcaption,blockquote):not([class*="fa-"]):not(.symbol):not(.symbol-dirham):not(.symbol-riyal):not(.float-currency){font-family:var(--tm-font-i18n) !important}
/* Amounts, codes and data entry stay in clear Latin digits */
html[dir="rtl"] :is(input[type="number"],input[type="tel"],input[type="email"],input[type="url"],input[inputmode="decimal"],input[inputmode="numeric"]){direction:ltr;text-align:right}
html[dir="rtl"] :is(.float-currency,.money,.amount,[data-amount],code,kbd,samp){unicode-bidi:isolate}
/* Urdu Nastaliq is tall: give text room so it is never clipped */
html[lang="ur"] body{line-height:2.05}
html[lang="ur"] :is(p,li,dd,dt,label,small,td,th,summary,.settings-readonly-note,.aum-note,.tm-dp-note){line-height:2.05 !important}
html[lang="ur"] :is(h1,h2,h3,h4,h5,h6){line-height:1.8 !important;letter-spacing:0 !important}
html[lang="ur"] :is(button,.btn,.aum-btn,.chip,.pill,.tab,[role="tab"],.menu-item,.landing-nav-cta){line-height:1.9 !important;padding-block:2px}
html[lang="ur"] :is(input,select,textarea){line-height:1.8}
html:is([lang="ar"],[lang="ur"]) *:not(:is(.landing-brand-mark,.landing-brand-name,.auth-resume-brand,[aria-label="Triplem VIP"],[aria-label="Triplem VIP"] *,.landing-brand-mark *,.landing-brand-name *,.auth-resume-brand *)){letter-spacing:0 !important;text-transform:none !important}

/* ── direction-aware icons (arrows and chevrons point the reading way) ── */
html[dir="rtl"] :is(.fa-arrow-right,.fa-arrow-left,.fa-chevron-right,.fa-chevron-left,.fa-angle-right,.fa-angle-left,.fa-angles-right,.fa-angles-left,.fa-caret-right,.fa-caret-left,.fa-arrow-right-long,.fa-arrow-left-long,.fa-right-long,.fa-left-long,.fa-arrow-right-from-bracket,.fa-right-from-bracket,.fa-right-to-bracket,.fa-arrow-right-to-bracket,.fa-reply,.fa-share,.fa-arrow-up-right-from-square,.fa-up-right-from-square,.fa-list-ul,.fa-align-left,.fa-align-right,.fa-paper-plane,.fa-person-walking-arrow-right,.fa-arrow-trend-up,.fa-arrow-trend-down,.fa-chart-line,.fa-file-export,.fa-file-import,.fa-sign-out-alt,.fa-sign-in-alt,.fa-door-open,.fa-quote-left,.fa-quote-right){transform:scaleX(-1)}
html[dir="rtl"] .fa-spin,html[dir="rtl"] .btn-loader{transform:none}
/* phone numbers, IBANs, card numbers, usernames and e-mail addresses read left to right */
html[dir="rtl"] :is(.ltr,[dir="ltr"],.username,.iban,.card-number,.account-number,.trn,.phone,.email){direction:ltr;unicode-bidi:isolate}

/* ── brand wordmarks always read "TRIPLE M VIP" left to right ────────── */
html[dir="rtl"] :is(.auth-resume-brand,.landing-brand-mark,.landing-brand-name,.brand-title,.brand,[aria-label="Triplem VIP"]){direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .landing-nav-actions{gap:6px}
html[dir="rtl"] .landing-nav-actions :is(a,button){white-space:nowrap}

/* compact language button in the top bar */
.tm-lang--compact .tm-lang-btn{gap:5px;min-height:34px;padding:0 10px;font-size:.76rem}
.tm-lang--compact .tm-lang-caret{display:none}
/* phones: the language choice lives in the ☰ menu, the top bar stays as before */
@media (max-width:760px){
  .landing-nav-actions .landing-lang-picker{display:none}
}
@media (max-width:1365px){
  html[dir="rtl"] .landing-nav .landing-brand-mark{display:none}
}

/* Urdu: Nastaliq letters stack higher than Latin, so plain text blocks (card descriptions,
   panel notes, list rows) get a little more room between lines. Small labels inside chips,
   badges and pills keep their compact height. */
html[lang="ur"] body :is(div,span,a,strong,em,b):not(:has(*)):not(:is([class*="badge"],[class*="chip"],[class*="pill"],[class*="tag"],[class*="dot"],[class*="count"],[class*="kbd"],.fa,[class*="fa-"])){line-height:1.95}

/* ===== SOURCE: Assets/style/72-bitcoin-v2.css ===== */
/* Triplem VIP · Bitcoin section, new layout (2026-11-16) — page, wallet cards and the forms
   shown inside the shared side panel. Same surfaces, radii and type scale as Loans/Assets. */

/* the old page body stays in the DOM (its forms are borrowed by the panel) but is not shown */
html body #app#app #bitcoinPanel.btc-v2-on > .card.section{display:none !important}

.btc2{display:grid;gap:14px;padding-bottom:28px}
.btc2-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.btc2-title h3{margin:0;font-size:1.45rem;font-weight:400;color:var(--text);letter-spacing:-.01em}
.btc2-title p{margin:4px 0 0;font-size:.82rem;color:var(--muted)}
.btc2-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.btc2-caret{font-size:.6rem;opacity:.85}
.btc2-menu-wrap{position:relative}
.btc2-menu{position:absolute;top:calc(100% + 6px);inset-inline-end:0;z-index:40;min-width:300px;max-width:calc(100vw - 24px);padding:6px;border-radius:14px;
  background:var(--surface-elevated,var(--panel,#fff));border:1px solid color-mix(in srgb,var(--line) 85%,transparent);
  box-shadow:0 18px 40px -18px rgba(15,23,42,.45),0 2px 6px rgba(15,23,42,.06);display:grid;gap:2px}
.btc2-menu.is-small{min-width:210px}
.btc2-menu-item{display:flex;gap:11px;align-items:center;width:100%;padding:9px 10px;border:0;border-radius:10px;background:none;color:var(--text);font:inherit;text-align:start;cursor:pointer}
.btc2-menu-item:hover,.btc2-menu-item:focus-visible{background:color-mix(in srgb,var(--primary) 8%,transparent);outline:none}
.btc2-menu-item > i{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,transparent);font-size:.8rem}
.btc2-menu-item span{display:grid;gap:1px;min-width:0}
.btc2-menu-item b{font-weight:500;font-size:.82rem}
.btc2-menu-item small{font-size:.7rem;color:var(--muted)}

.btc2-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.btc2-tile{display:flex;gap:12px;align-items:center;padding:14px;border-radius:16px;min-width:0;
  background:var(--surface-elevated,var(--panel));border:1px solid color-mix(in srgb,var(--line) 85%,transparent);
  box-shadow:0 1px 2px rgba(15,23,42,.05),0 8px 20px -18px rgba(15,23,42,.35)}
.btc2-tile > div{display:grid;gap:2px;min-width:0}
.btc2-tile b{font-size:1.08rem;font-weight:500;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:ltr;unicode-bidi:isolate;text-align:start}
.btc2-tile small{font-size:.7rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.btc2-tile-k{font-size:.68rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.btc2-tile-ico{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:12px;color:#fff;background:linear-gradient(135deg,#f7931a,#f2a93b);font-size:1rem}
.btc2-tile-ico.is-gold{background:linear-gradient(135deg,#f59e0b,#fbbf24)}
.btc2-tile-ico.is-blue{background:linear-gradient(135deg,var(--primary,#2563eb),color-mix(in srgb,var(--primary,#2563eb) 70%,#60a5fa))}
.btc2-tile-ico.is-green{background:linear-gradient(135deg,#0f766e,#14b8a6)}
.btc2-tile.is-main{background:linear-gradient(135deg,color-mix(in srgb,#f7931a 10%,var(--surface-elevated,var(--panel))),var(--surface-elevated,var(--panel)))}
.btc2-chg{display:inline-flex;gap:4px;align-items:center}
.btc2-chg.is-up{color:#15803d !important}.btc2-chg.is-down{color:#dc2626 !important}
.btc2-chg span{color:var(--muted)}

.btc2-session{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:16px;cursor:pointer;font:inherit;color:var(--text);text-align:start;
  background:color-mix(in srgb,var(--primary) 6%,var(--surface-elevated,var(--panel)));border:1px solid color-mix(in srgb,var(--primary) 35%,var(--line))}
.btc2-session:hover{border-color:var(--primary)}
.btc2-session-ico{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:11px;background:var(--primary);color:var(--on-primary,#fff)}
.btc2-session-main{display:grid;gap:2px;min-width:0;flex:1}
.btc2-session-main b{font-weight:500;font-size:.9rem}
.btc2-session-bal{display:grid;gap:2px;text-align:end}
.btc2-session-bal b{font-weight:500}.btc2-session-bal small{font-size:.7rem;color:var(--muted)}

.btc2-note{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:12px;font-size:.76rem;line-height:1.5;color:var(--text);
  background:color-mix(in srgb,#f59e0b 9%,transparent);border:1px solid color-mix(in srgb,#f59e0b 22%,transparent)}
.btc2-note i{color:#d97706;margin-top:2px}

.btc2-tools{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.btc2-search{display:flex;align-items:center;gap:8px;min-width:min(320px,100%);flex:0 1 340px;border-bottom:1px solid var(--line);padding:4px 2px}
.btc2-search i{color:var(--muted);font-size:.8rem}
.btc2-search input{border:0;background:transparent;outline:none;font:inherit;font-size:.86rem;color:var(--text);width:100%;padding:4px 0}
.btc2-search:focus-within{border-bottom-color:var(--primary)}
.btc2-chips{display:flex;gap:6px;flex-wrap:wrap}
.btc2 .aum-chip[aria-pressed="true"],.btc2-types .aum-chip[aria-pressed="true"]{background:var(--primary);border-color:var(--primary);color:var(--on-primary,#fff)}

.btc2-list{display:grid;gap:8px}
.btc2-card{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(4,minmax(0,1fr)) auto;gap:12px;align-items:center;padding:12px 14px;border-radius:16px;cursor:pointer;
  background:var(--surface-elevated,var(--panel));border:1px solid color-mix(in srgb,var(--line) 85%,transparent);
  box-shadow:0 1px 2px rgba(15,23,42,.05),0 8px 20px -18px rgba(15,23,42,.35);transition:border-color .15s ease,box-shadow .15s ease}
.btc2-card:hover,.btc2-card:focus-visible{border-color:color-mix(in srgb,var(--primary) 45%,var(--line));outline:none;box-shadow:0 2px 4px rgba(15,23,42,.06),0 14px 26px -18px rgba(15,23,42,.4)}
.btc2-card.is-open{border-color:color-mix(in srgb,var(--primary) 55%,var(--line))}
.btc2-card-id{display:flex;align-items:center;gap:10px;min-width:0}
.btc2-idx{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;font-size:.7rem;color:var(--primary);background:color-mix(in srgb,var(--primary) 12%,transparent)}
.btc2-card-ico{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:12px;font-size:1.15rem;color:#fff;background:linear-gradient(135deg,#f7931a,#f2a93b)}
.btc2-card-ico.is-test{background:linear-gradient(135deg,#64748b,#94a3b8)}
.btc2-card-name{display:grid;gap:3px;min-width:0}
.btc2-card-name > b{font-weight:400;font-size:.96rem;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.btc2-card-name > small{font-size:.72rem;color:var(--muted)}
.btc2-pills{display:flex;gap:5px;flex-wrap:wrap}
.btc2-pill{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:.64rem;line-height:1.4;color:var(--muted);background:color-mix(in srgb,var(--muted,#64748b) 12%,transparent)}
.btc2-pill.is-watch{color:var(--primary);background:color-mix(in srgb,var(--primary) 12%,transparent)}
.btc2-pill.is-keys{color:#15803d;background:color-mix(in srgb,#16a34a 13%,transparent)}
.btc2-pill.is-live{color:#b45309;background:color-mix(in srgb,#f7931a 16%,transparent)}
.btc2-pill.is-warn{color:#b45309;background:color-mix(in srgb,#f59e0b 16%,transparent);font-weight:400}
.btc2-cell{display:grid;gap:3px;min-width:0}
.btc2-cell small{font-size:.68rem;color:var(--muted)}
.btc2-cell b{font-weight:400;font-size:.88rem;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.btc2-card-act{display:flex;gap:6px;align-items:center}
.btc2-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:0 !important;direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .btc2-chev{transform:scaleX(-1)}

.btc2-empty{display:grid;justify-items:center;gap:8px;text-align:center;padding:34px 18px;border-radius:18px;border:1px dashed color-mix(in srgb,var(--line) 90%,transparent);background:color-mix(in srgb,var(--surface-elevated,var(--panel)) 70%,transparent)}
.btc2-empty-ico{width:56px;height:56px;display:grid;place-items:center;border-radius:18px;font-size:1.6rem;color:#fff;background:linear-gradient(135deg,#f7931a,#f2a93b)}
.btc2-empty h4{margin:4px 0 0;font-weight:500;font-size:1rem}
.btc2-empty p{margin:0;max-width:520px;font-size:.8rem;color:var(--muted)}
.btc2-empty-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:6px}
.btc2-none{font-size:.82rem;color:var(--muted);text-align:center;padding:18px}
.btc2-flash{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);z-index:20000;padding:9px 16px;border-radius:999px;font-size:.78rem;color:#fff;background:rgba(15,23,42,.9);opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease}
.btc2-flash.is-on{opacity:1;transform:translateX(-50%) translateY(0)}

/* ── inside the side panel ─────────────────────────────────────────────────────────── */
#tmDetailPanel .btc2-balance b{font-size:1.25rem;font-weight:500}
#tmDetailPanel .btc2-rows .tm-dp-row-amt b.is-in{color:#15803d}
#tmDetailPanel .btc2-rows .tm-dp-row-amt b.is-out{color:#b45309}
html[data-triplem-theme-mode="dark"] #tmDetailPanel .btc2-rows .tm-dp-row-amt b.is-in{color:#4ade80}
html[data-triplem-theme-mode="dark"] #tmDetailPanel .btc2-rows .tm-dp-row-amt b.is-out{color:#fbbf24}
#tmDetailPanel .tm-dp-row-ico.is-self{color:var(--muted);background:color-mix(in srgb,var(--muted,#64748b) 12%,transparent)}
#tmDetailPanel .btc2-rows li.is-selected .tm-dp-row-main b{color:var(--primary)}
#tmDetailPanel .btc2-rows .tm-dp-row-main small.btc2-mono{white-space:normal;word-break:break-all;overflow:visible}
#tmDetailPanel .btc2-rows .tm-dp-row-act{display:flex;gap:6px;align-items:center}
#tmDetailPanel a.tm-dp-icon-btn{text-decoration:none}
#tmDetailPanel .btc2-inline-search{margin:10px 0 4px}
#tmDetailPanel .btc2-receive{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;align-items:start;margin-top:12px}
#tmDetailPanel .btc2-qr{margin:0;padding:10px;border-radius:16px;background:#fff;border:1px solid color-mix(in srgb,var(--line) 85%,transparent);aspect-ratio:1/1;display:grid;place-items:center;position:relative}
#tmDetailPanel .btc2-qr img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
#tmDetailPanel .btc2-qr.is-loading img{opacity:.15}
#tmDetailPanel .btc2-qr.is-loading::after{content:"";position:absolute;width:26px;height:26px;border-radius:50%;border:3px solid color-mix(in srgb,var(--primary) 25%,transparent);border-top-color:var(--primary);animation:btc2spin .8s linear infinite}
@keyframes btc2spin{to{transform:rotate(360deg)}}
#tmDetailPanel .btc2-receive-main{display:grid;gap:8px;min-width:0}
#tmDetailPanel .btc2-receive-main > small{font-size:.68rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
#tmDetailPanel .btc2-addr,#tmDetailPanel .btc2-uri{display:block;padding:10px 12px;border-radius:12px;font-size:.78rem;line-height:1.5;word-break:break-all;color:var(--text);
  background:color-mix(in srgb,var(--primary) 6%,transparent);border:1px solid color-mix(in srgb,var(--primary) 18%,transparent);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;direction:ltr;text-align:right;unicode-bidi:isolate}
#tmDetailPanel .btc2-uri{margin-top:10px;font-size:.72rem;color:var(--muted);background:transparent}
#tmDetailPanel .btc2-req{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}
#tmDetailPanel .btc2-types{margin-top:0}
#tmDetailPanel .btc2-key{display:flex;gap:8px;align-items:center;min-width:0}
#tmDetailPanel .btc2-key code{font-size:.72rem;word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;direction:ltr;unicode-bidi:isolate;text-align:right}
#tmDetailPanel .btc2-fees{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
#tmDetailPanel .btc2-fee{display:grid;gap:2px;padding:9px 10px;border-radius:12px;border:1px solid var(--line);background:transparent;color:var(--text);font:inherit;text-align:start;cursor:pointer}
#tmDetailPanel .btc2-fee b{font-weight:500;font-size:.78rem}
#tmDetailPanel .btc2-fee span{font-size:.74rem}
#tmDetailPanel .btc2-fee small{font-size:.66rem;color:var(--muted)}
#tmDetailPanel .btc2-fee:hover{border-color:color-mix(in srgb,var(--primary) 45%,var(--line))}
#tmDetailPanel .btc2-fee.is-on{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 8%,transparent)}
#tmDetailPanel .btc2-create{display:grid;gap:8px;margin:12px 0}
#tmDetailPanel .btc2-choice{display:flex;gap:12px;align-items:center;padding:12px;border-radius:14px;border:1px solid var(--line);background:transparent;color:var(--text);font:inherit;text-align:start;cursor:pointer}
#tmDetailPanel .btc2-choice:hover{border-color:color-mix(in srgb,var(--primary) 45%,var(--line));background:color-mix(in srgb,var(--primary) 5%,transparent)}
#tmDetailPanel .btc2-choice > i{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:11px;color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,transparent)}
#tmDetailPanel .btc2-choice span{display:grid;gap:2px}
#tmDetailPanel .btc2-choice b{font-weight:500;font-size:.84rem}
#tmDetailPanel .btc2-choice small{font-size:.72rem;color:var(--muted)}

/* the existing Bitcoin forms, shown in the panel with the panel's field style */
#tmDetailPanel .btc2-formhost{display:grid;gap:12px;margin-top:12px}
#tmDetailPanel .btc2-formhost > div{margin:0 !important}
#tmDetailPanel .btc2-formhost label{display:block !important;margin:0 0 6px !important;font-size:.7rem !important;font-weight:400 !important;color:var(--muted) !important;text-transform:uppercase;letter-spacing:.05em}
#tmDetailPanel .btc2-formhost :is(textarea,input:not([type=checkbox]):not([type=radio]):not([type=file]),select){
  width:100%;box-sizing:border-box;padding:10px 12px !important;border-radius:12px !important;border:1px solid var(--line) !important;background:var(--surface,transparent) !important;
  color:var(--text) !important;font:inherit !important;font-size:.84rem !important;box-shadow:none !important;min-height:42px}
#tmDetailPanel .btc2-formhost textarea{min-height:88px !important;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace !important;direction:ltr;text-align:right}
#tmDetailPanel .btc2-formhost :is(textarea,input):focus{border-color:var(--primary) !important;outline:none}
#tmDetailPanel .btc2-formhost .btc-wif-scan-row{display:flex;gap:8px;align-items:stretch}
#tmDetailPanel .btc2-formhost .tools{display:flex !important;flex-wrap:wrap;gap:8px;margin-top:10px !important}
#tmDetailPanel .btc2-formhost .btn{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 14px !important;border-radius:999px !important;font-size:.76rem !important;border:1px solid var(--line) !important;background:transparent !important;color:var(--text) !important;box-shadow:none !important}
#tmDetailPanel .btc2-formhost .btn.primary{background:var(--primary) !important;border-color:var(--primary) !important;color:var(--on-primary,#fff) !important}
#tmDetailPanel .btc2-formhost .btn.btc-qr-scan-btn{min-width:44px;justify-content:center;padding:0 !important;border-radius:12px !important}
#tmDetailPanel .btc2-formhost #btcWalletStatus{white-space:pre-line;padding:10px 12px !important;border-radius:12px;font-size:.76rem;color:var(--muted);border:1px dashed var(--line);background:transparent;text-align:start;margin:0 !important}
#tmDetailPanel .btc2-formhost [style*="font-size:.76rem"],#tmDetailPanel .btc2-formhost [style*="font-size: .76rem"]{font-size:.72rem !important}
#tmDetailPanel .btc2-formhost .btc-bulk-wallets-section{border:0 !important;box-shadow:none !important;background:none !important;padding:0 !important}
#tmDetailPanel .btc2-send .btc2-send-dialog{display:block;padding:0 !important;margin:0 !important;max-height:none !important;overflow:visible !important}
#tmDetailPanel .btc2-send .modal-grid{display:grid !important;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px}
#tmDetailPanel .btc2-send .field.w12{grid-column:1/-1}
#tmDetailPanel .btc2-send .field.w6{grid-column:span 6}
#tmDetailPanel .btc2-send .btc-send-from-box{padding:10px 12px;border-radius:12px;font-size:.76rem;word-break:break-all;background:color-mix(in srgb,var(--primary) 6%,transparent);border:1px solid color-mix(in srgb,var(--primary) 18%,transparent)}
#tmDetailPanel .btc2-send .btc-recipient-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border-radius:14px;border:1px solid color-mix(in srgb,var(--line) 85%,transparent);margin-bottom:8px;position:relative}
#tmDetailPanel .btc2-send .btc-recipient-row .btc-recipient-title{grid-column:1/-1;font-size:.74rem;color:var(--muted)}
#tmDetailPanel .btc2-send .btc-recipient-row .btc-recipient-address-field{grid-column:1/-1}
#tmDetailPanel .btc2-send .btc-recipient-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
#tmDetailPanel .btc2-send .btc-remove-recipient-btn{position:absolute;top:8px;inset-inline-end:8px}
#tmDetailPanel .btc2-send #btcSendStatus{white-space:pre-line;padding:10px 12px;border-radius:12px;font-size:.76rem;border:1px dashed var(--line);background:transparent;text-align:start}
#tmDetailPanel .btc2-send .modal-footer{display:flex;justify-content:flex-end;gap:8px;position:sticky;bottom:-1px;padding:10px 0 2px;background:var(--surface-elevated,var(--panel))}
#tmDetailPanel .btc2-send .btc-guest-fee-box{padding:12px;border-radius:14px;background:color-mix(in srgb,#f59e0b 9%,transparent)}
#tmDetailPanel .btc2-send .btc-guest-fee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#tmDetailPanel .btc2-send .btc-guest-fee-address{grid-column:1/-1}
#tmDetailPanel .btc2-send :is(input,textarea).input{direction:ltr;text-align:right}

/* ── narrow screens ───────────────────────────────────────────────────────────────── */
@media (max-width:1100px){
  .btc2-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .btc2-card{grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr)) auto}
  .btc2-hide-sm{display:none !important}
}
@media (max-width:640px){
  .btc2-title h3{font-size:1.2rem}
  .btc2-tile{padding:11px;gap:10px}
  .btc2-tile-ico{width:34px;height:34px;flex-basis:34px;font-size:.86rem}
  .btc2-tile b{font-size:.95rem}
  .btc2-card{grid-template-columns:minmax(0,1fr) auto;gap:10px}
  .btc2-card .btc2-cell{display:none}
  .btc2-card .btc2-cell:nth-of-type(2){display:grid;grid-column:1/-1;order:3}
  .btc2-idx{display:none}
  .btc2-menu{inset-inline-end:auto;inset-inline-start:0;min-width:min(300px,calc(100vw - 32px))}
  .btc2-actions .btc2-menu-wrap:last-child .btc2-menu{inset-inline-start:auto;inset-inline-end:0}
  .btc2-session{flex-wrap:wrap}
  .btc2-session .btc2-pill{display:none}
  #tmDetailPanel .btc2-receive{grid-template-columns:1fr;justify-items:center}
  #tmDetailPanel .btc2-qr{width:min(240px,70vw)}
  #tmDetailPanel .btc2-receive-main{width:100%}
  #tmDetailPanel .btc2-req{grid-template-columns:1fr}
  #tmDetailPanel .btc2-fees{grid-template-columns:repeat(2,minmax(0,1fr))}
  #tmDetailPanel .btc2-send .field.w6{grid-column:1/-1}
  #tmDetailPanel .btc2-send .btc-recipient-row{grid-template-columns:1fr}
}
@media (max-width:420px){
  .btc2-tiles{grid-template-columns:1fr 1fr;gap:8px}
  .btc2-tile-ico{display:none}
}
html body #app#app #bitcoinPanel .btc2 .aum-chip[aria-pressed="true"],#tmDetailPanel .btc2-types .aum-chip[aria-pressed="true"]{color:var(--on-primary,#fff) !important;-webkit-text-fill-color:var(--on-primary,#fff)}
#tmDetailPanel .btc2-qr-off{display:grid;gap:8px;justify-items:center;text-align:center;font-size:.72rem;color:#64748b;padding:12px}
#tmDetailPanel .btc2-qr-off i{font-size:2rem;color:#94a3b8}
#tmDetailPanel .btc2-send .modal-footer{position:static;flex-direction:row !important;justify-content:flex-end !important;padding:12px 0 0}
#tmDetailPanel .btc2-send .modal-footer .btn{width:auto !important;flex:0 0 auto !important;min-width:110px;justify-content:center}

/* ===== SOURCE: Assets/style/73-pdf-progress.css ===== */
/* Triplem VIP · PDF progress bar (2026-11-17)
 * A small pill at the bottom of the screen while a PDF is prepared. It never takes clicks.
 */
.tm-pdfp{
  position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:2147482400;
  display:flex;align-items:center;gap:10px;min-width:220px;max-width:min(340px,calc(100vw - 28px));
  padding:9px 10px 9px 14px;border-radius:14px;pointer-events:none;
  color:var(--text,#0f172a);
  background:color-mix(in srgb,var(--panel,#fff) 92%,transparent);
  border:1px solid color-mix(in srgb,var(--line,#e2e8f0) 80%,transparent);
  box-shadow:0 14px 34px -14px rgba(15,23,42,.38),0 2px 6px rgba(15,23,42,.08);
  -webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);
  opacity:0;transform:translate(-50%,14px) scale(.98);visibility:hidden;
  transition:opacity .22s ease,transform .26s cubic-bezier(.2,.8,.2,1),visibility 0s linear .26s;
}
.tm-pdfp.is-on{opacity:1;transform:translate(-50%,0) scale(1);visibility:visible;transition:opacity .22s ease,transform .26s cubic-bezier(.2,.8,.2,1),visibility 0s}
.tm-pdfp-ico{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;font-size:.9rem;
  color:#e11d48;background:color-mix(in srgb,#e11d48 12%,transparent)}
.tm-pdfp-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.tm-pdfp-text{display:flex;align-items:baseline;justify-content:space-between;gap:10px;line-height:1.1}
.tm-pdfp-text b{font-size:.78rem;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-pdfp-text small{flex:none;font-size:.7rem;font-weight:700;font-variant-numeric:tabular-nums;color:var(--muted,#64748b)}
.tm-pdfp-track{position:relative;display:block;height:4px;border-radius:999px;overflow:hidden;
  background:color-mix(in srgb,var(--muted,#64748b) 18%,transparent)}
.tm-pdfp-track>span{position:absolute;inset:0 0 0 auto;width:0;border-radius:inherit;
  background:linear-gradient(90deg,var(--primary,#2457d6),color-mix(in srgb,var(--primary,#2457d6) 55%,#22d3ee));
  transition:width .35s ease}
.tm-pdfp-track>span::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);
  transform:translateX(100%);animation:tmPdfpShine 1.3s ease-in-out infinite}
.tm-pdfp.is-done .tm-pdfp-ico{color:#16a34a;background:color-mix(in srgb,#16a34a 14%,transparent)}
.tm-pdfp.is-done .tm-pdfp-ico i::before{content:"\f058"}
.tm-pdfp.is-done .tm-pdfp-track>span{background:#16a34a}
.tm-pdfp.is-done .tm-pdfp-track>span::after{animation:none}
@keyframes tmPdfpShine{to{transform:translateX(-100%)}}
@media (prefers-reduced-motion:reduce){.tm-pdfp,.tm-pdfp-track>span{transition:none}.tm-pdfp-track>span::after{animation:none}}
/* Phones: above the bottom navigation and the home indicator. */
@media (max-width:640px){
  .tm-pdfp{bottom:calc(78px + env(safe-area-inset-bottom,0px));min-width:0;width:calc(100vw - 32px);max-width:360px}
}
html[dir="rtl"] .tm-pdfp-track>span{inset:0 0 0 auto;background:linear-gradient(270deg,var(--primary,#2457d6),color-mix(in srgb,var(--primary,#2457d6) 55%,#22d3ee))}
html[dir="rtl"] .tm-pdfp-track>span::after{animation-direction:reverse}

/* ===== SOURCE: Assets/style/74-expenses-history-v3.css ===== */
/* Triplem VIP · Expenses history v3 (2026-11-17)
 * Every transaction directly on the page, grouped by day; summary, category chips, Select mode
 * with PDF / CSV; skeleton while loading. Theme tokens only, so every light and dark theme works.
 */
#expensesList .exh{--exh-r:16px;display:grid;gap:12px;margin-top:2px}

/* summary */
.exh-sum{display:grid;grid-template-columns:1.35fr repeat(3,minmax(0,1fr));gap:10px}
.exh-sum-card{position:relative;min-width:0;display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:var(--exh-r);
  border:1px solid color-mix(in srgb,var(--line,#e2e8f0) 85%,transparent);background:color-mix(in srgb,var(--panel,#fff) 82%,transparent);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.exh-sum-card.is-main{border-color:color-mix(in srgb,var(--primary,#2457d6) 30%,var(--line,#e2e8f0));
  background:radial-gradient(120% 140% at 100% 0%,color-mix(in srgb,var(--primary,#2457d6) 16%,transparent),transparent 60%),color-mix(in srgb,var(--panel,#fff) 86%,transparent)}
.exh-sum-label{display:flex;align-items:center;gap:6px;font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#64748b)}
.exh-sum-label i{color:var(--primary,#2457d6);font-size:.7rem}
.exh-sum-card b{font-size:1.02rem;font-weight:750;font-variant-numeric:tabular-nums;color:var(--text,#0f172a);letter-spacing:-.01em;line-height:1.25}
.exh-sum-total{display:flex;flex-wrap:wrap;gap:2px 14px}
.exh-sum-card.is-main b{font-size:1.32rem}
.exh-sum-card small{font-size:.7rem;color:var(--muted,#64748b)}
.exh-sum-more{color:var(--primary,#2457d6) !important}
.exh-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* category chips */
.exh-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:1px 1px 2px;margin:0 -1px}
.exh-chips::-webkit-scrollbar{display:none}
.exh-chip{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 11px;border-radius:999px;cursor:pointer;
  border:1px solid color-mix(in srgb,var(--line,#e2e8f0) 90%,transparent);background:color-mix(in srgb,var(--panel,#fff) 70%,transparent);
  color:var(--text,#0f172a);font:inherit;font-size:.74rem;font-weight:600;transition:background .15s,border-color .15s,color .15s}
.exh-chip small{font-size:.66rem;font-weight:700;color:var(--muted,#64748b);font-variant-numeric:tabular-nums}
.exh-chip:hover{border-color:color-mix(in srgb,var(--t,var(--primary,#2457d6)) 45%,var(--line,#e2e8f0))}
.exh-chip.is-on{color:#fff;border-color:transparent;background:var(--t,var(--primary,#2457d6))}
.exh-chip.is-on small,.exh-chip.is-on .exh-dot{color:#fff}
.exh-dot{width:8px;height:8px;border-radius:50%;background:var(--t);flex:none}
.exh-chip.is-on .exh-dot{background:#fff}

/* toolbar */
.exh-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 10px;border-radius:14px;
  border:1px solid color-mix(in srgb,var(--line,#e2e8f0) 80%,transparent);background:color-mix(in srgb,var(--panel,#fff) 70%,transparent)}
.exh-bar.is-selecting{position:sticky;top:8px;z-index:6;border-color:color-mix(in srgb,var(--primary,#2457d6) 45%,var(--line,#e2e8f0));
  background:color-mix(in srgb,var(--panel,#fff) 94%,transparent);box-shadow:0 12px 26px -18px rgba(15,23,42,.45);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.exh-bar-left,.exh-bar-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.exh-range{display:inline-flex;align-items:center;gap:7px;font-size:.76rem;color:var(--muted,#64748b)}
.exh-range i{color:var(--primary,#2457d6)}
.exh-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:0 12px;border-radius:999px;cursor:pointer;
  border:1px solid var(--line,#e2e8f0);background:transparent;color:var(--text,#0f172a);font:inherit;font-size:.74rem;font-weight:650;white-space:nowrap}
.exh-btn i{color:var(--primary,#2457d6);font-size:.74rem}
.exh-btn:hover:not(:disabled){background:color-mix(in srgb,var(--primary,#2457d6) 8%,transparent)}
.exh-btn:disabled{opacity:.45;cursor:not-allowed}
.exh-btn.is-primary{background:var(--primary,#2457d6);border-color:var(--primary,#2457d6);color:var(--on-primary,#fff)}
.exh-btn.is-primary i{color:inherit}
.exh-btn.is-primary:hover:not(:disabled){filter:brightness(1.07);background:var(--primary,#2457d6)}
.exh-btn.is-ghost{border-color:transparent}
.exh-caret{font-size:.6rem !important;opacity:.85}
.exh-sort{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 10px;border-radius:999px;border:1px solid var(--line,#e2e8f0);color:var(--muted,#64748b);font-size:.74rem}
.exh-sort i{color:var(--primary,#2457d6);font-size:.72rem}
.exh-sort select{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:var(--text,#0f172a);font:inherit;font-weight:650;padding:0 2px;cursor:pointer;outline:none}
.exh-sort:focus-within{outline:2px solid color-mix(in srgb,var(--primary,#2457d6) 45%,transparent);outline-offset:1px}
.exh-scope{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:.74rem;color:var(--muted,#64748b)}
.exh-scope > span{display:inline-flex;align-items:center;gap:6px;margin-left:4px}
.exh-scope > span i{color:var(--primary,#2457d6)}
.exh-scope button{min-height:28px;padding:0 11px;border-radius:999px;border:1px solid var(--line,#e2e8f0);background:transparent;color:var(--text,#0f172a);font:inherit;font-size:.72rem;font-weight:650;cursor:pointer}
.exh-scope button[aria-checked="true"]{background:color-mix(in srgb,var(--primary,#2457d6) 14%,transparent);border-color:color-mix(in srgb,var(--primary,#2457d6) 45%,transparent);color:var(--primary,#2457d6)}
.exh-check-all{display:inline-flex;align-items:center;gap:8px;font-size:.76rem;font-weight:650;cursor:pointer;color:var(--text,#0f172a)}
.exh-check-all input,.exh-cb input{width:17px;height:17px;margin:0;accent-color:var(--primary,#2457d6);cursor:pointer}
.exh-sel-count{font-size:.76rem;color:var(--muted,#64748b);font-variant-numeric:tabular-nums}
.exh-sel-count b{color:var(--text,#0f172a)}
.exh-pdf-wrap{position:relative;display:inline-flex}
.exh-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:40;min-width:236px;display:grid;gap:2px;padding:6px;border-radius:14px;
  border:1px solid var(--line,#e2e8f0);background:var(--surface-elevated,var(--panel,#fff));box-shadow:0 22px 48px -20px rgba(15,23,42,.45)}
.exh-menu[hidden]{display:none}
.exh-menu button{display:flex;align-items:flex-start;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:10px;background:transparent;color:var(--text,#0f172a);font:inherit;text-align:right;cursor:pointer}
.exh-menu button:hover{background:color-mix(in srgb,var(--primary,#2457d6) 8%,transparent)}
.exh-menu button > i{margin-top:2px;color:var(--primary,#2457d6);width:16px;text-align:center}
.exh-menu b{display:block;font-size:.78rem;font-weight:700}
.exh-menu small{display:block;font-size:.68rem;color:var(--muted,#64748b)}

/* list */
.exh-list{display:grid;gap:14px}
.exh-group{display:grid;border-radius:var(--exh-r);overflow:hidden;
  border:1px solid color-mix(in srgb,var(--line,#e2e8f0) 85%,transparent);background:color-mix(in srgb,var(--panel,#fff) 84%,transparent);
  box-shadow:0 10px 26px -24px rgba(15,23,42,.5)}
.exh-day{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;font-size:.7rem;font-weight:750;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#64748b);
  background:color-mix(in srgb,var(--primary,#2457d6) 5%,transparent);border-bottom:1px solid color-mix(in srgb,var(--line,#e2e8f0) 70%,transparent)}
.exh-day-tot{display:inline-flex;align-items:baseline;gap:10px;text-transform:none;letter-spacing:0}
.exh-day-tot b{font-size:.8rem;font-weight:750;color:var(--text,#0f172a);font-variant-numeric:tabular-nums}
.exh-day-tot small{font-size:.68rem;font-weight:600}
.exh-row{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:11px 14px 11px 12px;cursor:pointer;
  border-top:1px solid color-mix(in srgb,var(--line,#e2e8f0) 55%,transparent);transition:background .14s ease;outline:none}
.exh-day + .exh-row,.exh-group > .exh-row:first-child{border-top:0}
.exh.is-selecting .exh-row{grid-template-columns:auto auto minmax(0,1fr) auto auto}
.exh-row::before{content:"";position:absolute;right:0;top:10px;bottom:10px;width:3px;border-radius:3px 0 0 3px;background:var(--t);opacity:0;transition:opacity .14s}
.exh-row:hover{background:color-mix(in srgb,var(--t,var(--primary,#2457d6)) 6%,transparent)}
.exh-row:hover::before,.exh-row:focus-visible::before,.exh-row.is-checked::before{opacity:1}
.exh-row:focus-visible{background:color-mix(in srgb,var(--primary,#2457d6) 8%,transparent);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--primary,#2457d6) 45%,transparent)}
.exh-row.is-checked{background:color-mix(in srgb,var(--primary,#2457d6) 9%,transparent)}
.exh-cb{display:grid;place-items:center;padding:4px;margin:-4px -4px -4px 0;cursor:pointer}
.exh-ico{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:.92rem;color:var(--t);
  background:color-mix(in srgb,var(--t) 13%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--t) 18%,transparent)}
.exh-main{min-width:0;display:grid;gap:4px}
.exh-title{display:flex;align-items:center;gap:8px;min-width:0}
.exh-title b{min-width:0;font-size:.88rem;font-weight:700;color:var(--text,#0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.005em}
.exh-cat{flex:none;padding:2px 8px;border-radius:999px;font-size:.64rem;font-weight:700;color:var(--t);background:color-mix(in srgb,var(--t) 12%,transparent)}
.exh-meta{display:flex;align-items:center;gap:7px;min-width:0;font-size:.72rem;color:var(--muted,#64748b);white-space:nowrap;overflow:hidden}
.exh-meta > span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.exh-wallet{display:inline-flex;align-items:center;gap:5px;flex:none;max-width:46%}
.exh-wallet > span{overflow:hidden;text-overflow:ellipsis}
.exh-wallet img,.exh-wallet svg{flex:none}
.exh-note{flex:1}
.exh-sep{flex:none;width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.55}
.exh-amt{display:grid;justify-items:end;gap:2px;text-align:left}
.exh-amt b{font-size:.9rem;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--text,#0f172a)}
.exh-amt small{font-size:.66rem;color:var(--muted,#64748b);white-space:nowrap;font-variant-numeric:tabular-nums}
.exh-ref{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.02em;opacity:.8}
.exh-act{display:flex;align-items:center;gap:2px}
.exh-kebab{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:var(--muted,#64748b);cursor:pointer}
.exh-kebab:hover,.exh-kebab[aria-expanded="true"]{background:color-mix(in srgb,var(--primary,#2457d6) 10%,transparent);color:var(--primary,#2457d6)}
.exh-row .expense-tx-menu{display:none}
.exh-row.is-inactive{cursor:pointer}
.exh-row.is-inactive .exh-title b,.exh-row.is-inactive .exh-amt b{text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--muted,#64748b) 70%,transparent);color:var(--muted,#64748b)}
.exh-row.is-inactive .exh-ico{filter:grayscale(1);opacity:.6}
.exh-title .expense-audit-badge{flex:none;transform:scale(.92);transform-origin:right center}

/* empty, more, end */
.exh-empty{display:grid;justify-items:center;gap:6px;padding:34px 16px;text-align:center;border-radius:var(--exh-r);
  border:1px dashed color-mix(in srgb,var(--line,#e2e8f0) 95%,transparent);background:color-mix(in srgb,var(--panel,#fff) 60%,transparent)}
.exh-empty-ico{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;font-size:1.2rem;color:var(--primary,#2457d6);background:color-mix(in srgb,var(--primary,#2457d6) 10%,transparent);margin-bottom:4px}
.exh-empty b{font-size:.9rem;font-weight:700}
.exh-empty small{font-size:.74rem;color:var(--muted,#64748b)}
.exh-more{display:flex;justify-content:center;padding:4px 0}
.exh-more .exh-btn{min-height:36px;padding:0 18px}
.exh-end{display:flex;align-items:center;justify-content:center;gap:7px;padding:4px 0 2px;font-size:.72rem;color:var(--muted,#64748b)}
.exh-end i{color:#16a34a}

/* skeleton */
.exh-skel{display:grid;border-radius:var(--exh-r);overflow:hidden;border:1px solid color-mix(in srgb,var(--line,#e2e8f0) 80%,transparent);background:color-mix(in srgb,var(--panel,#fff) 80%,transparent)}
.exh-skel-day{padding:12px 14px;border-bottom:1px solid color-mix(in srgb,var(--line,#e2e8f0) 60%,transparent)}
.exh-skel-day i{display:block;width:150px;height:9px}
.exh-skel-row{display:grid;grid-template-columns:40px minmax(0,1fr) 90px;gap:12px;align-items:center;padding:12px 14px;border-top:1px solid color-mix(in srgb,var(--line,#e2e8f0) 45%,transparent)}
.exh-skel-row:first-of-type{border-top:0}
.exh-skel-ico{width:40px;height:40px;border-radius:12px}
.exh-skel-lines,.exh-skel-amt{display:grid;gap:7px}
.exh-skel-amt{justify-items:end}
.exh-skel-lines i:first-child{height:11px}.exh-skel-lines i:last-child{height:8px}
.exh-skel-amt i:first-child{width:72px;height:11px}.exh-skel-amt i:last-child{width:48px;height:8px}
.exh-skel i,.exh-skel-ico{display:block;border-radius:6px;
  background:linear-gradient(90deg,color-mix(in srgb,var(--muted,#94a3b8) 14%,transparent) 0%,color-mix(in srgb,var(--muted,#94a3b8) 26%,transparent) 40%,color-mix(in srgb,var(--muted,#94a3b8) 14%,transparent) 80%);
  background-size:220% 100%;animation:exhShimmer 1.25s ease-in-out infinite;animation-delay:var(--d,0ms)}
.exh-skel-ico{border-radius:12px}
@keyframes exhShimmer{0%{background-position:-20% 0}100%{background-position:-120% 0}}
.exh.is-loading .exh-sum,.exh.is-loading .exh-chips{opacity:.55;transition:opacity .2s}
@media (prefers-reduced-motion:reduce){.exh-skel i,.exh-skel-ico{animation:none}}

/* phones */
@media (max-width:760px){
  .exh-sum{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .exh-sum-card.is-main{grid-column:1/-1}
  .exh-sum-card:not(.is-main) small{display:none}
  .exh-sum-card:not(.is-main) .exh-sum-label{font-size:.58rem;letter-spacing:.05em}
  .exh-sum-card:not(.is-main) .exh-sum-label i{display:none}
}
@media (max-width:640px){
  #expensesList .exh{gap:10px}
  .exh-sum-card{padding:10px 12px}
  .exh-sum-card b{font-size:.94rem}
  .exh-sum-card.is-main b{font-size:1.18rem}
  .exh-bar{padding:8px}
  .exh-bar .exh-btn span{display:none}
  .exh-bar .exh-btn{width:34px;padding:0}
  .exh-bar .exh-btn.is-primary{width:auto;padding:0 12px}
  .exh-bar .exh-btn.is-primary span{display:inline}
  .exh-bar:not(.is-selecting) .exh-btn{width:auto;padding:0 12px}
  .exh-bar:not(.is-selecting) .exh-btn span{display:inline}
  .exh-sort{flex:1}
  .exh-sort select{width:100%}
  .exh-bar-left,.exh-bar-right{width:100%}
  .exh-bar-right{justify-content:space-between}
  .exh-bar.is-selecting .exh-bar-right{justify-content:flex-end}
  .exh-row{grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;padding:10px 12px 10px 4px}
  .exh.is-selecting .exh-row{grid-template-columns:auto auto minmax(0,1fr) auto}
  .exh-row .exh-act .tm-att-icon,.exh-row .exh-act [data-offline-sync-id]{display:none}
  .exh.is-selecting .exh-act{display:none}
  .exh-ico{width:36px;height:36px;border-radius:11px;font-size:.84rem}
  .exh-title b{font-size:.84rem}
  .exh-cat{display:none}
  .exh-meta{font-size:.68rem}
  .exh-meta .exh-note{display:none}
  .exh-amt b{font-size:.84rem}
  .exh-kebab{width:28px}
  .exh-day{padding:9px 12px}
  .exh-menu{left:auto;right:0}
}
html[dir="rtl"] .exh-row::before{left:auto;right:0;border-radius:3px 0 0 3px}
html[dir="rtl"] .exh-menu{right:auto;left:0}
html[dir="rtl"] .exh-menu button{text-align:right}
html[dir="rtl"] .exh-amt{justify-items:start;text-align:left}

/* ── side panel: transaction ───────────────────────────────────────────────────────────── */
.tm-dp-txico{width:100%;height:100%;display:grid;place-items:center;border-radius:12px;font-size:1.1rem;color:var(--t);background:color-mix(in srgb,var(--t) 14%,transparent)}
.tm-dp-txbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 4px}
.tm-dp-txbar-label{font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.tm-dp-back{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 6px 0 10px;border:0;border-radius:999px;background:transparent;color:var(--primary);font:inherit;font-size:.76rem;cursor:pointer}
.tm-dp-back:hover{background:color-mix(in srgb,var(--primary) 8%,transparent)}
.tm-dp-txnav{display:inline-flex;align-items:center;gap:4px}
.tm-dp-txnav small{font-size:.7rem;color:var(--muted);font-variant-numeric:tabular-nums;min-width:52px;text-align:center}
.tm-dp-txnav .tm-dp-icon-btn{border:1px solid var(--line)}
.tm-dp-txnav .tm-dp-icon-btn:disabled{opacity:.35;cursor:default}
.tm-dp-txhero{position:relative;display:grid;gap:4px;margin:8px 0 2px;padding:18px 18px 16px;border-radius:18px;overflow:hidden;
  border:1px solid color-mix(in srgb,#e11d48 22%,var(--line));
  background:radial-gradient(130% 120% at 100% 0%,color-mix(in srgb,#e11d48 13%,transparent),transparent 60%),color-mix(in srgb,var(--primary) 3%,transparent)}
.tm-dp-txhero.is-in{border-color:color-mix(in srgb,#16a34a 26%,var(--line));background:radial-gradient(130% 120% at 100% 0%,color-mix(in srgb,#16a34a 14%,transparent),transparent 60%),color-mix(in srgb,var(--primary) 3%,transparent)}
.tm-dp-txhero.is-transfer{border-color:color-mix(in srgb,var(--primary) 26%,var(--line));background:radial-gradient(130% 120% at 100% 0%,color-mix(in srgb,var(--primary) 14%,transparent),transparent 60%),color-mix(in srgb,var(--primary) 3%,transparent)}
.tm-dp-txhero.is-inactive{filter:grayscale(.85);opacity:.8}
.tm-dp-txhero > small{font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.tm-dp-txhero > strong{font-size:1.9rem;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1.15}
.tm-dp-txhero > span{font-size:.78rem;color:var(--muted)}
.tm-dp-txsplit{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px;padding-top:12px;border-top:1px dashed color-mix(in srgb,var(--line) 90%,transparent)}
.tm-dp-txsplit span{display:grid;gap:2px;min-width:0}
.tm-dp-txsplit small{font-size:.66rem;color:var(--muted)}
.tm-dp-txsplit b{font-weight:600;font-size:.84rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.tm-dp-txacts{display:flex;flex-wrap:wrap;gap:8px}
.tm-dp-txacts .aum-btn{min-height:36px;padding:0 15px}
.tm-dp-txacts .aum-btn.is-danger{margin-right:auto}
.tm-dp-link{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:0;border:0;background:none;color:var(--primary);font:inherit;cursor:pointer;text-align:right}
.tm-dp-link > i{font-size:.62rem;opacity:.7}
.tm-dp-link:hover{text-decoration:underline}
.tm-dp-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.78rem;letter-spacing:.02em}
.tm-dp-small{font-size:.66rem;overflow-wrap:anywhere}
.aum-kv dd .tm-dp-icon-btn{display:inline-grid;vertical-align:middle;width:24px;height:24px}
.tm-dp-rows li.is-current{background:color-mix(in srgb,var(--primary) 7%,transparent);border-radius:10px;padding-right:6px;padding-left:6px}
.tm-dp-rows li[role="button"]{cursor:pointer;border-radius:10px;transition:background .14s}
.tm-dp-rows li[role="button"]:hover,.tm-dp-rows li[role="button"]:focus-visible{background:color-mix(in srgb,var(--primary) 6%,transparent);outline:none}
.tm-dp-rows li.is-target{background:color-mix(in srgb,var(--primary) 10%,transparent);box-shadow:inset 3px 0 0 var(--primary)}

/* wallet activity: go to date */
.tm-dp-datebar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:10px 0 2px;padding:10px 12px;border-radius:14px;background:color-mix(in srgb,var(--primary) 5%,transparent);border:1px solid color-mix(in srgb,var(--primary) 16%,var(--line))}
.tm-dp-datefield{display:inline-flex;align-items:center;gap:8px;font-size:.76rem;color:var(--text)}
.tm-dp-datefield > i{color:var(--primary)}
.tm-dp-datefield input{min-height:32px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-elevated,#fff);color:var(--text);font:inherit;font-size:.76rem;color-scheme:light dark}
.tm-dp-datechip{display:inline-flex;align-items:center;gap:6px;padding:2px 11px 2px 4px;border-radius:999px;font-size:.72rem;color:var(--primary);background:color-mix(in srgb,var(--primary) 12%,transparent)}
.tm-dp-datechip b{font-weight:600}
.tm-dp-datechip .tm-dp-icon-btn{width:24px;height:24px;color:inherit}
.tm-dp-datehint{font-size:.7rem;color:var(--muted)}
@media (max-width:700px){
  .tm-dp-txhero > strong{font-size:1.6rem}
  .tm-dp-txacts .aum-btn{flex:1 1 calc(50% - 8px)}
  .tm-dp-txacts .aum-btn.is-danger{margin-right:0}
  .tm-dp-datefield{width:100%}
  .tm-dp-datefield input{flex:1}
}

/* ── wallet cards: PDF / Edit / Delete as plain icons (no circles) ─────────────────────── */
html body #walletsOverviewSection.ev2 .wallet-details-card .overview-card-actions .tiny:not(.ev2-act),
html body #walletsOverviewSection .wallet-details-card .overview-card-actions .tiny:not(.ev2-act){
  width:26px !important;min-width:26px !important;height:28px !important;min-height:28px !important;padding:0 !important;
  border:0 !important;border-radius:6px !important;background:transparent !important;box-shadow:none !important;
  color:var(--muted,#64748b) !important;font-size:.82rem !important;transition:color .15s ease,transform .15s ease !important}
html body #walletsOverviewSection .wallet-details-card .overview-card-actions .tiny:not(.ev2-act) i{color:inherit !important}
html body #walletsOverviewSection .wallet-details-card .overview-card-actions .tiny:not(.ev2-act):hover{color:var(--primary,#2457d6) !important;background:transparent !important;transform:translateY(-1px)}
html body #walletsOverviewSection .wallet-details-card .overview-card-actions .tiny.danger:not(.ev2-act){color:color-mix(in srgb,#e11d48 80%,var(--muted,#64748b)) !important}
html body #walletsOverviewSection .wallet-details-card .overview-card-actions .tiny.danger:not(.ev2-act):hover{color:#e11d48 !important}
html body #walletsOverviewSection .wallet-details-card .overview-card-actions .tiny:not(.ev2-act):focus-visible{outline:2px solid color-mix(in srgb,var(--primary,#2457d6) 55%,transparent) !important;outline-offset:1px}

/* Amounts keep their size here (a global phone rule shrinks .money .amount in tables). */
html body #expensesList .exh :is(.money,.money .amount,.money .symbol),
html body .tm-dp-root :is(.tm-dp-txhero,.tm-dp-txsplit,.aum-stats,.tm-dp-rows,.aum-kv,.tm-dp-route) :is(.money,.money .amount,.money .symbol){font-size:inherit !important;line-height:inherit;font-weight:inherit}
@media (max-width:640px){ #expensesList .exh-meta .exh-sep:has(+ .exh-note){display:none} }
/* Summary card: its PDF button is a plain icon too. */
html body #walletsOverviewSection .summary.expense-overview .overview-card-actions .tiny:has(> .fa-file-pdf){
  width:28px !important;min-width:28px !important;padding:0 !important;border:0 !important;background:transparent !important;box-shadow:none !important;color:rgba(255,255,255,.85) !important;font-size:.86rem !important}
html body #walletsOverviewSection .summary.expense-overview .overview-card-actions .tiny:has(> .fa-file-pdf):hover{color:#fde68a !important}

/* ── 2026-11-17 b: one button style for the whole history page ─────────────────────────────
   Category chips, "Search in", sort, Select / PDF / CSV / Done and Load more use the same plain
   text-tab look as the date buttons (Today · Yesterday · …): no pill borders or fills, muted text,
   the active one in the primary colour with a short underline. */
html body #app#app #expensesList .exh-chips{gap:2px;padding:0}
html body #app#app #expensesList .exh-chip,
html body #app#app #expensesList .exh-scope button{position:relative;min-height:32px;padding:0 12px;border:0 !important;border-radius:10px;background:none !important;
  color:var(--muted,#64748b) !important;font-size:.76rem;font-weight:600;box-shadow:none !important;transition:color .15s ease,background-color .15s ease}
html body #app#app #expensesList .exh-chip .exh-dot{display:none}
html body #app#app #expensesList .exh-chip small{font-weight:600;color:inherit !important;opacity:.7}
html body #app#app #expensesList .exh-chip.is-on,
html body #app#app #expensesList .exh-scope button[aria-checked="true"]{color:var(--primary,#2457d6) !important;background:none !important}
html body #app#app #expensesList .exh-chip.is-on small{color:inherit !important;opacity:.85}
html body #app#app #expensesList .exh-chip.is-on::after,
html body #app#app #expensesList .exh-scope button[aria-checked="true"]::after{content:"";position:absolute;right:12px;left:12px;bottom:2px;height:2px;border-radius:2px;background:var(--primary,#2457d6)}

#expensesList .exh-bar{padding:0;border:0;border-radius:0;background:none}
#expensesList .exh-bar.is-selecting{padding:6px 8px;border:0;border-radius:12px;background:color-mix(in srgb,var(--panel,#fff) 92%,transparent);box-shadow:0 10px 24px -18px rgba(15,23,42,.45)}
#expensesList .exh-range{font-size:.76rem}
#expensesList .exh-btn,
#expensesList .exh-sort{min-height:32px;padding:0 12px;border:0 !important;border-radius:10px;background:none !important;box-shadow:none !important;
  color:var(--muted,#64748b) !important;font-size:.76rem;font-weight:600}
#expensesList .exh-btn i,#expensesList .exh-sort i{color:var(--primary,#2457d6) !important}
#expensesList .exh-btn.is-primary{color:var(--primary,#2457d6) !important}
#expensesList .exh-btn.is-primary i{color:var(--primary,#2457d6) !important}
#expensesList .exh-btn[aria-expanded="true"]{color:var(--primary,#2457d6) !important}
html body.tm-app-on:not(#tmAppOff) #app#app #expensesList .exh-sort select,
html body #app#app #expensesList .exh-sort select{font-weight:600;color:inherit !important;background:transparent !important;border:0 !important;box-shadow:none !important}
#expensesList .exh-sort select option{color:var(--text,#0f172a);background:var(--panel,#fff)}
#expensesList .exh-sort:focus-within{outline:2px solid color-mix(in srgb,var(--primary,#2457d6) 45%,transparent);outline-offset:1px}
#expensesList .exh-more .exh-btn{color:var(--primary,#2457d6) !important}
@media (max-width:640px){
  #expensesList .exh-bar .exh-btn{width:auto;padding:0 10px}
  #expensesList .exh-bar .exh-sort{flex:0 1 auto;margin-inline-start:auto;padding:0 8px}
  #expensesList .exh-bar .exh-sort select{width:auto}
  #expensesList .exh-bar.is-selecting .exh-btn:not(.is-primary) span{display:none}
}
@media (hover:hover){
  html body #app#app #expensesList .exh-chip:hover,
  html body #app#app #expensesList .exh-scope button:hover{color:var(--text,#0f172a) !important;background:color-mix(in srgb,var(--primary,#2457d6) 7%,transparent) !important}
  #expensesList .exh-btn:hover:not(:disabled),
  #expensesList .exh-sort:hover{color:var(--text,#0f172a) !important;background:color-mix(in srgb,var(--primary,#2457d6) 7%,transparent) !important;filter:none}
}

/* ── 2026-11-17 c: "Money added" / "Transfer successful" inside the side panel ─────────────── */
.aum-panel .tm-dp-done{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;padding:24px;
  background:color-mix(in srgb,var(--panel,#fff) 72%,transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  border-radius:inherit;opacity:0;transition:opacity .2s ease}
.aum-panel .tm-dp-done.is-on{opacity:1}
.tm-dp-done-card{width:min(400px,100%);display:flex;flex-direction:column;align-items:center;gap:10px;padding:26px 18px 20px;text-align:center;
  border-radius:20px;border:1px solid var(--line,#e2e8f0);background:var(--panel,#fff);color:var(--text,#0f172a);
  box-shadow:0 24px 60px -24px rgba(15,23,42,.45);transform:translateY(10px) scale(.97);transition:transform .25s cubic-bezier(.2,.9,.3,1.2)}
.tm-dp-done.is-on .tm-dp-done-card{transform:none}
.tm-dp-done-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,#16a34a 12%,transparent)}
.tm-dp-done-icon svg{width:46px;height:46px;fill:none;stroke:#16a34a;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
.tm-dp-done-icon circle{stroke-dasharray:145;stroke-dashoffset:145;animation:tmDpDraw .55s ease-out .05s forwards}
.tm-dp-done-icon path{stroke-dasharray:36;stroke-dashoffset:36;animation:tmDpDraw .35s ease-out .5s forwards}
@keyframes tmDpDraw{to{stroke-dashoffset:0}}
.tm-dp-done-card h3{margin:4px 0 0;font-size:1.02rem;font-weight:700;color:var(--text,#0f172a)}
.tm-dp-done-amt{font-size:1.6rem;font-weight:800;color:#16a34a;line-height:1.2;font-variant-numeric:tabular-nums}
.tm-dp-done-amt .money,.tm-dp-done-amt .amount{font-size:inherit !important;color:inherit}
.tm-dp-done-route{display:flex;flex-wrap:nowrap;min-width:0;align-items:center;justify-content:center;gap:8px;max-width:100%}
.tm-dp-done-wallet{flex:0 1 auto;min-width:0;display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:5px 10px;border-radius:999px;
  background:color-mix(in srgb,var(--primary,#2457d6) 8%,transparent);font-size:.8rem}
.tm-dp-done-wallet b{font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-dp-done-wallet img{width:16px;height:16px;object-fit:contain}
.tm-dp-done-arrow{color:var(--muted,#64748b);font-size:.78rem}
[dir="rtl"] .tm-dp-done-arrow{transform:scaleX(-1)}
.tm-dp-done-card [data-dp-done]{margin-top:8px;min-width:132px;justify-content:center}
@media (prefers-reduced-motion:reduce){
  .aum-panel .tm-dp-done,.tm-dp-done-card{transition:none}
  .tm-dp-done-icon circle,.tm-dp-done-icon path{animation:none;stroke-dashoffset:0}
}

/* ── 2026-11-17 d: every wallet-page record opens in the panel (money added, transfers, spends) ── */
/* Row icons: shown on hover / keyboard focus with a mouse; on touch screens a tap opens the record
   (all actions are inside). A small chevron tells the row opens. */
#tmDetailPanel .tm-dp-row-click .tm-dp-row-go{font-size:.7rem;color:var(--muted,#64748b);opacity:.55;margin-inline-start:2px;transition:transform .15s ease,opacity .15s ease}
#tmDetailPanel .tm-dp-row-click:hover .tm-dp-row-go{opacity:1;transform:translateX(-2px)}
[dir="rtl"] #tmDetailPanel .tm-dp-row-click .tm-dp-row-go{transform:scaleX(-1)}
[dir="rtl"] #tmDetailPanel .tm-dp-row-click:hover .tm-dp-row-go{transform:scaleX(-1) translateX(2px)}
@media (hover:hover){
  #tmDetailPanel .tm-dp-row-click .tm-dp-row-act .tm-dp-icon-btn{opacity:0;transition:opacity .15s ease}
  #tmDetailPanel .tm-dp-row-click:is(:hover,:focus-within) .tm-dp-row-act .tm-dp-icon-btn{opacity:1}
}
@media (hover:none){
  #tmDetailPanel .tm-dp-row-click .tm-dp-row-act .tm-dp-icon-btn{display:none}
}
@media (max-width:700px){
  #tmDetailPanel .tm-dp-row-click{grid-template-columns:34px minmax(0,1fr) auto auto}
  #tmDetailPanel .tm-dp-row-click .tm-dp-row-act{grid-column:auto;justify-content:flex-end}
}
/* Loading a record from the server */
#tmDetailPanel .tm-dp-rows li.is-busy{pointer-events:none}
#tmDetailPanel .tm-dp-rows li.is-busy .tm-dp-row-go::before{content:"\f110";display:inline-block;animation:tmDpSpin .8s linear infinite}
#tmDetailPanel .tm-dp-rows li.is-busy .tm-dp-row-go{opacity:1;color:var(--primary,#2457d6)}
#tmDetailPanel .tm-dp-rows li.is-busy{background:color-mix(in srgb,var(--primary,#2457d6) 6%,transparent)}
@keyframes tmDpSpin{to{transform:rotate(360deg)}}

/* Transfer: From → To wallets */
.tm-dp-route{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:stretch;gap:8px;margin:10px 0 4px}
.tm-dp-route-w{display:grid;justify-items:start;gap:2px;min-width:0;padding:12px 14px;text-align:start;border-radius:16px;
  border:1px solid var(--line,#e2e8f0);background:var(--panel,#fff);color:var(--text,#0f172a);cursor:pointer;font:inherit;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
@media (hover:hover){.tm-dp-route-w:hover:not(:disabled){border-color:color-mix(in srgb,var(--primary,#2457d6) 45%,var(--line,#e2e8f0));box-shadow:0 8px 20px -16px rgba(15,23,42,.5);transform:translateY(-1px)}}
.tm-dp-route-w:focus-visible{outline:2px solid var(--primary,#2457d6);outline-offset:2px}
.tm-dp-route-w:disabled{cursor:default}
.tm-dp-route-logo{display:grid;place-items:center;width:34px;height:34px;margin-bottom:4px;border-radius:11px;background:color-mix(in srgb,var(--primary,#2457d6) 8%,transparent)}
.tm-dp-route-logo img{width:22px;height:22px;object-fit:contain}
.tm-dp-route-w small{font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted,#64748b)}
.tm-dp-route-w b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.86rem;font-weight:650}
.tm-dp-route-w em{font-style:normal;font-size:.82rem;font-weight:650;font-variant-numeric:tabular-nums}
.tm-dp-route-w em.is-out{color:var(--danger,#dc2626)}
.tm-dp-route-w em.is-in{color:#16a34a}
.tm-dp-route-w em :is(.money,.amount){font-size:inherit !important;color:inherit}
.tm-dp-route-mid{display:grid;place-items:center;align-content:center;gap:4px;padding:0 2px;color:var(--primary,#2457d6)}
.tm-dp-route-mid i{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--primary,#2457d6) 10%,transparent);font-size:.78rem}
.tm-dp-route-mid small{font-size:.6rem;color:var(--muted,#64748b);white-space:nowrap}
[dir="rtl"] .tm-dp-route-mid i{transform:scaleX(-1)}
@media (max-width:480px){
  .tm-dp-route{grid-template-columns:1fr;gap:6px}
  .tm-dp-route-mid{grid-auto-flow:column;justify-content:center}
  .tm-dp-route-mid i{transform:rotate(90deg)}
}
@media (prefers-reduced-motion:reduce){.tm-dp-route-w,.tm-dp-row-go{transition:none}}

/* ── 2026-11-17 e: background refresh keeps the list (no skeleton, no jump) ── */
#expensesList .exh.is-refreshing .exh-list{opacity:.72;transition:opacity .2s ease}

/* ── 2026-11-17 f: deleted transactions sit in their own day, in a calm "deleted" style ── */
#expensesList .exh .exh-row.is-inactive.expense-record-disabled{filter:none;opacity:1;
  background:repeating-linear-gradient(135deg,transparent 0 9px,color-mix(in srgb,var(--muted,#64748b) 5%,transparent) 9px 18px)}
#expensesList .exh .exh-row.is-inactive::before{opacity:.75;background:color-mix(in srgb,#dc2626 70%,transparent)}
#expensesList .exh .exh-row.is-inactive.is-archived::before{background:color-mix(in srgb,var(--muted,#64748b) 70%,transparent)}
#expensesList .exh .exh-row.is-inactive:hover{background:color-mix(in srgb,#dc2626 4%,transparent)}
#expensesList .exh .exh-row.is-inactive .exh-ico{filter:grayscale(1);opacity:.45}
#expensesList .exh .exh-row.is-inactive .exh-title b{color:var(--muted,#64748b);text-decoration:line-through;text-decoration-color:color-mix(in srgb,#dc2626 55%,transparent);text-decoration-thickness:1.5px}
#expensesList .exh .exh-row.is-inactive .exh-cat{filter:grayscale(1);opacity:.6}
#expensesList .exh .exh-row.is-inactive .exh-meta{opacity:.7}
#expensesList .exh .exh-row.is-inactive .exh-amt b{color:var(--muted,#64748b);text-decoration:line-through;text-decoration-color:color-mix(in srgb,#dc2626 55%,transparent)}
#expensesList .exh .exh-row.is-inactive .exh-amt small{opacity:.6}
.exh-del{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:.62rem;font-weight:600;letter-spacing:.02em;white-space:nowrap;
  color:#b91c1c;background:color-mix(in srgb,#dc2626 10%,transparent)}
.exh-del i{font-size:.58rem}
.exh-row.is-archived .exh-del{color:var(--muted,#64748b);background:color-mix(in srgb,var(--muted,#64748b) 12%,transparent)}
html[data-triplem-theme-mode="dark"] .exh-del{color:#f87171}
html[data-triplem-theme-mode="dark"] .exh-row.is-archived .exh-del{color:var(--muted,#94a3b8)}

/* ===== SOURCE: Assets/style/75-account-panels.css ===== */
/* Triplem VIP · Account menu side panels (2026-11-17)
   VAT Settings, Default start page and Help & Support in the shared side panel
   (ui/12-account-panels.js), plus the account dialogs shown as side sheets (ui/09-side-sheets.js).
   Colours come from the theme tokens: every light and dark theme works. */

/* Header icon */
.tm-ap-ico{width:46px;height:46px;border-radius:14px;font-size:1.05rem}

/* Sticky footer with the save buttons */
.tm-ap-foot{position:sticky;bottom:-22px;z-index:3;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;
  margin:14px -16px -22px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line,#e2e8f0);
  background:linear-gradient(var(--surface-elevated,#fff),var(--surface-elevated,#fff)),var(--bg,#fff)}
.tm-ap-dirty{margin-inline-end:auto;display:inline-flex;align-items:center;gap:6px;font-size:.72rem;color:#b45309}
.tm-ap-dirty i{font-size:.5rem}
.tm-ap-dirty.is-clean{color:var(--muted,#64748b)}
.tm-ap-dirty.is-clean i{font-size:.7rem;color:#16a34a}
html[data-triplem-theme-mode="dark"] .tm-ap-dirty{color:#fbbf24}
.tm-ap-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tm-ap-list li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:start;font-size:.78rem;line-height:1.5}
.tm-ap-list li i{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;font-size:.62rem;color:var(--primary,#2563eb);background:color-mix(in srgb,var(--primary,#2563eb) 10%,transparent)}

/* ── VAT ── */
.tm-vat-list{display:grid;gap:8px}
.tm-vat-row{position:relative;display:grid;gap:8px;padding:12px 14px;border:1px solid var(--line,#e2e8f0);border-radius:16px;
  background:var(--panel,#fff);transition:border-color .15s ease,box-shadow .15s ease}
.tm-vat-row.has-vat{border-color:color-mix(in srgb,var(--primary,#2563eb) 28%,var(--line,#e2e8f0))}
.tm-vat-row.is-changed{box-shadow:inset 3px 0 0 #f59e0b}
[dir="rtl"] .tm-vat-row.is-changed{box-shadow:inset -3px 0 0 #f59e0b}
.tm-vat-top{display:grid;grid-template-columns:54px 112px minmax(0,1fr) 10px;gap:10px;align-items:center}
.tm-vat-cur{display:grid;place-items:center;height:32px;border-radius:10px;font-size:.74rem;font-weight:650;letter-spacing:.04em;
  color:var(--primary,#2563eb);background:color-mix(in srgb,var(--primary,#2563eb) 10%,transparent)}
.tm-vat-rate{position:relative;display:flex;align-items:center;margin:0}
.tm-vat-rate input{width:100%;min-height:34px;padding:0 10px 0 28px;border:1px solid var(--line,#e2e8f0);border-radius:10px;
  background:color-mix(in srgb,var(--bg,#fff) 70%,transparent);color:var(--text,#0f172a);font:inherit;font-size:.86rem;font-variant-numeric:tabular-nums}
[dir="rtl"] .tm-vat-rate input{padding:0 10px 0 28px}
.tm-vat-rate input:focus{outline:none;border-color:var(--primary,#2563eb);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary,#2563eb) 16%,transparent)}
.tm-vat-rate span{position:absolute;inset-inline-end:10px;font-size:.78rem;color:var(--muted,#64748b);pointer-events:none}
.tm-vat-mode{display:inline-flex;justify-self:start;padding:3px;border-radius:999px;background:color-mix(in srgb,var(--muted,#64748b) 11%,transparent)}
.tm-vat-mode button{min-height:28px;padding:0 12px;border:0;border-radius:999px;background:none;color:var(--muted,#64748b);font:inherit;font-size:.72rem;cursor:pointer;white-space:nowrap}
.tm-vat-mode button[aria-checked="true"]{background:var(--surface-elevated,#fff);color:var(--primary,#2563eb);box-shadow:0 1px 3px rgba(15,23,42,.14)}
html[data-triplem-theme-mode="dark"] .tm-vat-mode button[aria-checked="true"]{background:color-mix(in srgb,var(--primary,#2563eb) 22%,transparent);color:var(--text,#fff)}
.tm-vat-dot{width:8px;height:8px;border-radius:50%;background:#f59e0b;opacity:0;transition:opacity .15s ease}
.tm-vat-row.is-changed .tm-vat-dot{opacity:1}
.tm-vat-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px}
.tm-vat-ex{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:.74rem;color:var(--muted,#64748b);font-variant-numeric:tabular-nums}
.tm-vat-ex i{font-size:.68rem;color:var(--primary,#2563eb)}
.tm-vat-ex b{color:var(--text,#0f172a);font-weight:600}
.tm-vat-ex small{font-size:.7rem}
.tm-vat-quick{display:inline-flex;flex-wrap:wrap;gap:4px}
.tm-vat-quick button{min-height:24px;padding:0 9px;border:1px solid var(--line,#e2e8f0);border-radius:999px;background:none;color:var(--muted,#64748b);font:inherit;font-size:.68rem;cursor:pointer;font-variant-numeric:tabular-nums}
.tm-vat-quick button:hover{color:var(--text,#0f172a);border-color:color-mix(in srgb,var(--primary,#2563eb) 40%,var(--line,#e2e8f0))}
.tm-vat-quick button.is-on{color:var(--primary,#2563eb);border-color:var(--primary,#2563eb);background:color-mix(in srgb,var(--primary,#2563eb) 8%,transparent)}
.tm-vat-all{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tm-vat-all .tm-vat-rate{width:112px}
@media (max-width:560px){
  .tm-vat-top{grid-template-columns:50px minmax(0,1fr) 10px}
  .tm-vat-top .tm-vat-mode{grid-column:1/-1;grid-row:2}
  .tm-vat-bottom{flex-direction:column;align-items:flex-start}
}

/* ── Default start page ── */
.tm-sp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.tm-sp-card{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;text-align:start;
  border:1px solid var(--line,#e2e8f0);border-radius:16px;background:var(--panel,#fff);color:var(--text,#0f172a);font:inherit;cursor:pointer;
  transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}
.tm-sp-card:hover{border-color:color-mix(in srgb,var(--primary,#2563eb) 40%,var(--line,#e2e8f0))}
.tm-sp-card:focus-visible{outline:2px solid var(--primary,#2563eb);outline-offset:2px}
.tm-sp-card.is-on{border-color:var(--primary,#2563eb);background:color-mix(in srgb,var(--primary,#2563eb) 6%,var(--panel,#fff));box-shadow:0 8px 20px -16px color-mix(in srgb,var(--primary,#2563eb) 70%,transparent)}
.tm-sp-ico{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;color:var(--primary,#2563eb);background:color-mix(in srgb,var(--primary,#2563eb) 10%,transparent)}
.tm-sp-txt{min-width:0;display:grid;gap:1px}
.tm-sp-txt b{font-size:.84rem;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-sp-txt small{font-size:.7rem;color:var(--muted,#64748b);line-height:1.35}
.tm-sp-radio{width:18px;height:18px;border-radius:50%;border:2px solid color-mix(in srgb,var(--muted,#64748b) 45%,transparent)}
.tm-sp-card.is-on .tm-sp-radio{border:5px solid var(--primary,#2563eb)}
.tm-sp-tag{padding:3px 8px;border-radius:999px;font-size:.62rem;letter-spacing:.04em;color:#15803d;background:color-mix(in srgb,#16a34a 13%,transparent)}
html[data-triplem-theme-mode="dark"] .tm-sp-tag{color:#4ade80}

/* ── Help & Support ── */
.tm-help-intro{margin:12px 0 10px;font-size:.8rem;line-height:1.55;color:var(--muted,#64748b)}
.tm-help-cards{display:grid;gap:8px;margin-bottom:10px}
.tm-help-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line,#e2e8f0);border-radius:16px;
  background:var(--panel,#fff);color:var(--text,#0f172a);text-decoration:none;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}
.tm-help-card:hover{border-color:color-mix(in srgb,var(--primary,#2563eb) 45%,var(--line,#e2e8f0));box-shadow:0 10px 24px -18px rgba(15,23,42,.45)}
.tm-help-card > i{color:var(--muted,#64748b);font-size:.74rem}
.tm-help-card-ico{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;font-size:1.1rem;color:var(--primary,#2563eb);background:color-mix(in srgb,var(--primary,#2563eb) 10%,transparent)}
.tm-help-card.is-wa .tm-help-card-ico{color:#16a34a;background:color-mix(in srgb,#16a34a 12%,transparent)}
.tm-help-card small{display:block;font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#64748b)}
.tm-help-card b{display:block;font-size:.92rem;font-weight:550}
.tm-help-card em{display:block;font-style:normal;font-size:.7rem;color:var(--muted,#64748b)}
.tm-help-search{display:flex;align-items:center;gap:8px;margin:12px 0 2px;padding:0 12px;min-height:38px;border:1px solid var(--line,#e2e8f0);border-radius:12px;background:color-mix(in srgb,var(--bg,#fff) 70%,transparent)}
.tm-help-search:focus-within{border-color:var(--primary,#2563eb);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary,#2563eb) 16%,transparent)}
.tm-help-search i{color:var(--muted,#64748b);font-size:.78rem}
.tm-help-search input{flex:1;min-width:0;border:0;background:none;color:var(--text,#0f172a);font:inherit;font-size:.82rem;outline:none}
.tm-help-list{display:grid;gap:6px}
.tm-help-item{border:1px solid var(--line,#e2e8f0);border-radius:14px;background:var(--panel,#fff);overflow:hidden}
.tm-help-item summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;cursor:pointer;list-style:none;font-size:.82rem}
.tm-help-item summary::-webkit-details-marker{display:none}
.tm-help-item summary i{font-size:.66rem;color:var(--muted,#64748b);transition:transform .15s ease}
.tm-help-item[open] summary i{transform:rotate(180deg)}
.tm-help-item[open] summary{color:var(--primary,#2563eb)}
.tm-help-item p{margin:0 14px 10px;font-size:.78rem;line-height:1.55;color:var(--muted,#64748b)}
.tm-help-item .aum-btn{margin:0 14px 12px}
@media (prefers-reduced-motion:reduce){.tm-vat-row,.tm-sp-card,.tm-help-card,.tm-help-item summary i{transition:none}}

/* ═══ Account dialogs shown as side panels (ui/09-side-sheets.js: "tm-sheet-account") ═══ */
.tm-sheet-icon.is-fa{display:grid;place-items:center;color:var(--primary,#2563eb);font-size:1.08rem}
.tm-sheet-icon.is-fa::after{display:none}
/* The header icon replaces the small icon some titles had */
html body .modal.tm-sheet-account :is(.settings-sheet-head,.modal-head) h3 > i:first-child{display:none !important}
html body .modal.tm-sheet-account :is(.account-settings-kicker,.company-team-kicker,.account-security-kicker,.tvb-kicker){
  margin:0 0 2px !important;font-size:.62rem !important;font-weight:500 !important;letter-spacing:.12em !important;text-transform:uppercase !important;color:var(--muted,#64748b) !important}
html body .modal.tm-sheet-account :is(.account-settings-kicker,.company-team-kicker,.account-security-kicker) i{display:none}

/* Backup & Restore: its own head / body / foot inside the panel frame */
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) > .modal-dialog > .tvb-head{flex:none;display:flex;align-items:flex-start;gap:12px;padding:16px 16px 12px !important;border-bottom:1px solid var(--line) !important;background:none !important}
html body .modal.tm-sheet:is(#sh-a,*) .tvb-head .tvb-head-text{flex:1 1 auto;min-width:0}
html body .modal.tm-sheet:is(#sh-a,*) .tvb-head h3{font-size:1.02rem !important;font-weight:500 !important;margin:0 !important}
html body .modal.tm-sheet:is(#sh-a,*) .tvb-head .tvb-sub{font-size:.74rem !important;color:var(--muted) !important;margin:2px 0 0 !important}
html body .modal.tm-sheet:is(#sh-a,*) .tvb-head .tvb-icon-btn{flex:none;width:34px !important;height:34px !important;border:1px solid var(--line) !important;border-radius:50% !important;background:transparent !important;color:var(--text) !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) > .modal-dialog > .tvb-body{flex:1 1 auto !important;min-height:0 !important;overflow:auto !important;padding:14px 16px 18px !important}
html body .modal.tm-sheet:is(#sh-a,*):is(#sh-b,*) > .modal-dialog > .tvb-foot{flex:none !important}

/* Company Team: the side navigation and the content scroll inside the panel */
html body #companyTeamModal.tm-sheet:is(#sh-a,*):is(#sh-b,*) > .company-team-dialog{max-height:none !important;border-radius:22px !important}
html body #companyTeamModal.tm-sheet:is(#sh-a,*) .company-team-head .company-team-icon-btn{order:99;margin-right:auto !important;width:34px !important;height:34px !important;border:1px solid var(--line) !important;border-radius:50% !important;background:transparent !important}
html body #companyTeamModal.tm-sheet:is(#sh-a,*) .company-team-shell{flex:1 1 auto !important;min-height:0 !important;max-height:none !important}
html body #companyTeamModal.tm-sheet:is(#sh-a,*) .company-team-body{overflow:auto !important;min-height:0 !important;max-height:none !important}

/* Account settings: one column of cards in the panel */
html body #accountSettingsModal.tm-sheet:is(#sh-a,*):is(#sh-b,*) .account-settings-overview-body{grid-template-columns:1fr !important;align-content:start}

/* ═══ Download App: side panel instead of a centred dialog ═══ */
html body .triplem-apps-overlay:not(.hide){display:block !important;padding:0 !important;place-items:unset !important;z-index:2147481900}
html body .triplem-apps-overlay .triplem-apps-backdrop{background:rgba(8,15,30,.38) !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;animation:tmSheetFade .2s ease}
html body .triplem-apps-overlay .triplem-apps-modal{align-self:stretch !important;justify-self:stretch !important;
  position:absolute !important;top:12px !important;left:12px !important;bottom:12px !important;right:auto !important;
  width:min(600px,calc(100vw - 24px)) !important;max-height:none !important;height:auto !important;
  border-radius:22px !important;border:1px solid var(--line,rgba(15,23,42,.12)) !important;
  background:linear-gradient(var(--surface-elevated,#fff),var(--surface-elevated,#fff)),var(--bg,#fff) !important;
  box-shadow:0 30px 70px rgba(8,15,30,.28),0 2px 8px rgba(8,15,30,.08) !important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;animation:tmSheetIn .24s cubic-bezier(.22,.75,.22,1)}
html body .triplem-apps-overlay .triplem-apps-header{justify-content:flex-start !important;padding:16px 16px 12px !important;background:none !important;border-bottom:1px solid var(--line) !important}
html body .triplem-apps-overlay .triplem-apps-header > div:not(.tm-sheet-icon){flex:1 1 auto;min-width:0}
html body .triplem-apps-overlay .triplem-apps-header h3{font-size:1.02rem !important;font-weight:500 !important}
html body .triplem-apps-overlay .triplem-apps-kicker{font-weight:500 !important;letter-spacing:.12em !important}
html body .triplem-apps-overlay .triplem-apps-close{width:34px !important;height:34px !important;flex:0 0 34px !important;border-radius:50% !important;background:transparent !important}
html body .triplem-apps-overlay .triplem-apps-body{flex:1 1 auto;min-height:0;padding:14px 16px 18px !important}
@media (max-width:700px){
  html body .triplem-apps-overlay .triplem-apps-modal{align-self:stretch !important;justify-self:stretch !important;top:auto !important;right:0 !important;left:0 !important;bottom:0 !important;width:auto !important;height:92dvh !important;border-radius:22px 22px 0 0 !important}
}

/* Account settings · Preferences & tools card */
.tm-acct-pref-list{display:grid;gap:6px}
.tm-acct-pref{width:100%}
.tm-acct-pref > .fa-chevron-right{margin-inline-start:auto;font-size:.68rem;color:var(--muted,#64748b)}
[dir="rtl"] .tm-acct-pref > .fa-chevron-right{transform:scaleX(-1)}
html body .modal.tm-sheet-account .settings-field{display:grid;gap:5px}
html body .modal.tm-sheet-account .settings-field :is(input,select,textarea){width:100% !important;max-width:none !important}
