/* JewelBooks premium details: shared by the landing page and the dashboard. Pure polish, no layout changes. */
html{-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
html{scroll-behavior:smooth}
::selection{background:rgba(201,150,60,.30);color:inherit}
*{-webkit-tap-highlight-color:transparent}
/* thin quiet scrollbars */
*{scrollbar-width:thin;scrollbar-color:rgba(130,130,140,.38) transparent}
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-thumb{background:rgba(130,130,140,.38);border-radius:10px;border:3px solid transparent;background-clip:content-box}
*::-webkit-scrollbar-thumb:hover{background:rgba(130,130,140,.6);background-clip:content-box;border:3px solid transparent}
*::-webkit-scrollbar-track{background:transparent}
/* keyboard focus ring in brand gold (mouse clicks stay clean) */
:focus{outline:none}
:focus-visible{outline:2px solid var(--jb-acc,#9a6b1f);outline-offset:2px;border-radius:8px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none}
/* soft gold glow on fields */
body input:not([type=checkbox]):not([type=radio]):focus,body select:focus,body textarea:focus{border-color:var(--jb-acc,#9a6b1f);box-shadow:0 0 0 4px color-mix(in srgb,var(--jb-acc,#9a6b1f) 18%,transparent)}
/* press feedback */
.btn,button.btn,.nav-radio+*{transition:transform .16s cubic-bezier(.2,.7,.2,1),box-shadow .2s,background-color .2s,border-color .2s}
.btn:active:not(:disabled){transform:scale(.97)}
/* brand-gold shine on primary buttons */
.btn.gold{position:relative;overflow:hidden;isolation:isolate}
.btn.gold::after{content:"";position:absolute;top:0;left:-70%;width:45%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.38),transparent);transform:skewX(-18deg);transition:left .65s ease;pointer-events:none;z-index:-1}
.btn.gold:hover::after{left:130%}

/* ---------- landing ---------- */
#jbProg{position:fixed;top:0;left:0;right:0;height:3px;z-index:99999;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#ffd978,#f0a92e,#d9831a);pointer-events:none;opacity:0;transition:opacity .25s}
#jbProg.on{opacity:1}
.hero .eyebrow{display:inline-flex;align-items:center;gap:8px}
.hero .eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:linear-gradient(135deg,#ffd978,#d9831a);box-shadow:0 0 0 4px rgba(240,169,46,.18);animation:jbPulse 2.6s ease-in-out infinite}
@keyframes jbPulse{50%{box-shadow:0 0 0 8px rgba(240,169,46,0)}}
.hero-proof span{transition:transform .22s cubic-bezier(.2,.7,.2,1),box-shadow .22s}
.hero-proof span:hover{transform:translateY(-2px)}
/* gentle lift on content cards across the landing page */
.section [class*="card"],.pricing [class*="plan"],.faq details{transition:transform .28s cubic-bezier(.2,.7,.2,1),box-shadow .28s}
@media (hover:hover){.section [class*="card"]:hover,.pricing [class*="plan"]:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(60,40,10,.10)}}

/* ---------- dashboard ---------- */
body.dash-body.dash-body.dash-body.dash-body .topbar{position:sticky;top:0;z-index:40;background:color-mix(in srgb,var(--jb-bg,#f5f5f7) 76%,transparent);-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);border-bottom:0!important;box-shadow:none}
@keyframes jbIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
#content.jb-enter>*{animation:jbIn .42s cubic-bezier(.2,.7,.2,1) both}
#content.jb-enter>*:nth-child(2){animation-delay:.04s}
#content.jb-enter>*:nth-child(3){animation-delay:.08s}
#content.jb-enter>*:nth-child(4){animation-delay:.12s}
#content.jb-enter>*:nth-child(5){animation-delay:.16s}
#content.jb-enter>*:nth-child(n+6){animation-delay:.2s}
/* KPI tiles react to the pointer */
@media (hover:hover){body.dash-body .dash-kpi,body.dash-body .stat{transition:transform .22s cubic-bezier(.2,.7,.2,1),box-shadow .22s}body.dash-body .dash-kpi:hover,body.dash-body .stat:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.08)}}
/* friendly greeting line */
#jbGreet{display:block;font-size:15px;font-weight:500;color:var(--jb-mute,#6e6e73);margin:2px 2px 12px;letter-spacing:-.01em}
#jbGreet b{color:var(--jb-ink,#1d1d1f);font-weight:700}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}

/* ---------- compact action icons in every table (desktop and tablet; phones keep bigger touch targets) ---------- */
@media (min-width:821px){
  body.dash-body.dash-body.dash-body td.actions,
  body.dash-body.dash-body.dash-body .actions,
  body.dash-body.dash-body.dash-body .karigar-row-actions{gap:4px;align-items:center}
  body.dash-body.dash-body.dash-body td.actions .icon-btn,
  body.dash-body.dash-body.dash-body .actions .icon-btn,
  body.dash-body.dash-body.dash-body .karigar-row-actions .icon-btn,
  body.dash-body.dash-body.dash-body table .icon-btn{
    width:auto;min-width:26px;height:26px;min-height:26px;padding:0 4px;flex:0 0 auto;
    font-size:11.5px;line-height:1;letter-spacing:-.02em;border-radius:50%;
    display:inline-flex;align-items:center;justify-content:center;box-shadow:none}
  body.dash-body.dash-body.dash-body td.actions .icon-btn:hover,
  body.dash-body.dash-body.dash-body table .icon-btn:hover{transform:none;box-shadow:0 2px 8px rgba(0,0,0,.12)}
  body.dash-body.dash-body.dash-body td.actions .icon-btn svg,
  body.dash-body.dash-body.dash-body table .icon-btn svg{width:13px;height:13px}
}

/* ---------- contrast: slightly deeper gold and grey text so small labels pass WCAG AA (4.5:1). Other themes keep their own accents. ---------- */
html:root{--gold:#8a5e17;--mute:#66666b}
.legend>.tag,.legend .tag{color:#17703d}
body.dash-body:not([data-theme]),body.dash-body[data-theme=""]{--jb-acc:#8a5e17;--jb-mute:#66666b}
body.dash-body:not([data-theme="jb-graphite"]) .voucher-table-head span{color:#756647}
.aimap .kick{color:#8a5e17}
body.dash-body:not(.jbx1):not(.jbx2):not(.jbx3):not([data-theme="jb-graphite"]) .owner-action-row.ok strong{color:#17703d!important}
/* contrast in the dark (graphite) theme and on warning cards */
body.dash-body[data-theme="jb-graphite"] #content .stat .l,
body.dash-body[data-theme="jb-graphite"] #content .muted,
body.dash-body[data-theme="jb-graphite"] #content .settings-card>p,
body.dash-body[data-theme="jb-graphite"] #content .ai-analysis-launch>p,
body.dash-body[data-theme="jb-graphite"] #content p:not([class]){color:#a8a8ad!important}
body.dash-body #content .warn.owner-os-card small,body.dash-body #content .warn.owner-os-card>span{color:#5c5c61!important}
body.dash-body[data-theme="jb-graphite"] #content .warn.owner-os-card small,body.dash-body[data-theme="jb-graphite"] #content .warn.owner-os-card>span{color:#a8a8ad!important}
body.dash-body:not([data-theme="jb-graphite"]) #content details>summary>span{color:#6b5d44!important}
body.dash-body[data-theme="jb-graphite"] #content details>summary>span{color:#b5ab94!important}
/* action buttons stay in one row on desktop tables, so rows stay short */
@media (min-width:821px){
  body.dash-body td.actions,body.dash-body td .actions{display:table-cell!important;white-space:nowrap;vertical-align:middle;min-width:max-content}
  body.dash-body td.actions .icon-btn,body.dash-body td .actions .icon-btn{display:inline-flex!important;vertical-align:middle;margin:0 2px!important}
  body.dash-body .karigar-row-actions{display:flex!important;flex-flow:row nowrap!important;gap:4px;white-space:nowrap}
}
/* Save buttons inside form grids: normal size, not stretched to fill the grid cell */
body.dash-body.dash-body #content .form-grid>button.btn,body.dash-body.dash-body #content .form-grid>.btn.gold,body.dash-body.dash-body #content form>button.btn.gold{width:auto!important;min-width:0!important;justify-self:start;align-self:end;height:auto!important;min-height:40px!important;padding:0 26px!important;font-size:14px!important;font-weight:600;border-radius:99px!important;box-shadow:0 4px 14px rgba(0,0,0,.16)!important}
