/* tamPrime professional interface: presentation only; business logic remains in existing pages. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
html:root:not([data-theme="dark"]):not([data-theme="glass"]) {
  --paper:#f6f9fb; --ground:#edf3f7; --sunk:#e8f0f5;
  --card:#ffffffee; --card-solid:#fff;
  --ink:#20374a; --ink-dim:#556c7d; --ink-mute:#697f90;
  --line:#dbe7ef; --line-soft:#e8eff4; --grid:#e5edf2;
  --accent:#356d9c; --accent-2:#244d72; --accent-ink:#fff; --accent-soft:#e8f1f7;
  --rail:#20394f; --rail-ink:#fff; --rail-dim:#d3e2eb; --rail-mute:#aac1ce;
  --rail-line:#ffffff27; --rail-on:#ffffff1c; --rail-accent:#b6deec;
  --in:#26765d; --out:#a66416; --success:#26765d; --success-bg:#e5f5ed;
  --shadow:0 8px 24px rgba(32,65,90,.09),0 1px 3px rgba(32,65,90,.04);
  --shadow-lift:0 18px 50px rgba(25,49,75,.18); --radius:15px;
  --font:'Plus Jakarta Sans','Avenir Next',system-ui,sans-serif;
}
html[data-theme="indigo"]{--paper:#f8f9fd!important;--ground:#eff1f8!important;--sunk:#e8ebf4!important;--ink:#273249!important;--accent:#596b93!important;--accent-2:#3c4e72!important;--accent-soft:#edf0f7!important;--rail:#29344c!important;--rail-accent:#cbd4ed!important}
html[data-theme="sage"]{--paper:#f8fcf9!important;--ground:#ecf5ef!important;--sunk:#e4efe8!important;--ink:#263d37!important;--accent:#638c79!important;--accent-2:#456a5b!important;--accent-soft:#eaf3ee!important;--rail:#28443d!important;--rail-accent:#c8ead9!important}
html[data-theme="graphite"]{--paper:#f8fafc!important;--ground:#edf2f6!important;--sunk:#e7edf1!important;--ink:#1d2e3c!important;--accent:#343f51!important;--accent-2:#202b3b!important;--accent-soft:#e9edf1!important;--rail:#182838!important;--rail-accent:#c4d6e1!important}
html:not([data-theme="dark"]):not([data-theme="glass"]) body{background:radial-gradient(ellipse 60% 45% at 80% -16%,var(--accent-soft),transparent 75%),linear-gradient(150deg,#f9fbfd,var(--paper) 70%);background-attachment:fixed}
html body{font-family:var(--font)!important;font-size:15px;line-height:1.5}
html h1{font-family:var(--font);font-size:27px!important;font-weight:800!important;letter-spacing:-.035em}
html h2{font-family:var(--font);font-size:18px!important;letter-spacing:-.025em}
html .sub,html .cap{font-size:13.5px!important;line-height:1.5}
html .stat .k,html .kpi .k{font-size:12px!important}
html .stat .v,html .kpi .v{font-size:29px!important;font-weight:760!important}
html .card,html .panel,html .stat,html .kpi,html .tablewrap,html .linkbox,html .preview,html .selbar,html .autoprint,html .drop{
  border-radius:15px!important;box-shadow:var(--shadow)!important;
}
html:not([data-theme="dark"]):not([data-theme="glass"]) .card,
html:not([data-theme="dark"]):not([data-theme="glass"]) .panel,
html:not([data-theme="dark"]):not([data-theme="glass"]) .stat,
html:not([data-theme="dark"]):not([data-theme="glass"]) .kpi,
html:not([data-theme="dark"]):not([data-theme="glass"]) .tablewrap{
  background:var(--card)!important;border:1px solid #fff!important;
  backdrop-filter:blur(20px) saturate(140%)!important;-webkit-backdrop-filter:blur(20px) saturate(140%)!important;
}
html .btn,html .btn.small{font-family:var(--font);font-size:14px!important;font-weight:700!important;border-radius:11px!important;padding:10px 15px!important}
html .btn.primary{background:var(--accent)!important;border-color:var(--accent)!important;color:var(--accent-ink)!important;box-shadow:0 5px 13px color-mix(in srgb,var(--accent) 23%,transparent)!important}
html .btn.primary:hover:not(:disabled){background:var(--accent-2)!important;border-color:var(--accent-2)!important}
html .btn.ghost,html .iconbtn{background:linear-gradient(150deg,#ffffffe8,#e8f2f7ab)!important;border:1px solid #fff!important;box-shadow:0 4px 12px rgba(38,85,115,.12),inset 0 1px #fff!important;color:var(--ink)!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
html .chip{border-radius:10px!important;font-size:13.5px!important;padding:8px 12px!important}
html .chip.active{background:var(--accent)!important;color:#fff!important}
html body table{font-size:14px!important}html th{font-size:12px!important}
html input,html select,html textarea{font-family:var(--font);font-size:14px!important;border-radius:10px!important}
html .secs button{font-family:var(--font);font-size:14px!important;border-radius:10px;padding:10px 11px}
html .secs button.on{background:#ffffff1b!important;box-shadow:inset 3px 0 var(--rail-accent)!important;border:1px solid #ffffff23}
html .side{width:242px;background:var(--rail)!important}
html .side .iconbtn,html .side form button{background:#ffffff10!important;border-color:#ffffff29!important;color:var(--rail-ink)!important}
html .bar{background:#ffffffdd!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);padding:11px 18px}
html .bar .here{font-size:16px;font-weight:750}
/* Existing night and glass remain usable. Preserve solid dialogs and focused fields. */
html .modal,html #pdPanel{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:var(--card-solid)!important}
html :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px}
@media(max-width:900px){html .side{position:fixed;width:242px}}
@media(max-width:600px){html .card,html .panel{border-radius:13px!important}html h1{font-size:23px!important}html .bar{padding:8px 10px}}
@media(prefers-reduced-motion:reduce){html .btn,html .chip{transition:none!important}}

.release-badge{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid var(--line);background:var(--accent-soft);color:var(--accent-2);padding:5px 9px;border-radius:999px;font:700 11px var(--font);letter-spacing:.01em}
@media(max-width:520px){.bar .release-badge{font-size:9px;padding:4px 6px}}
