/* HET shared experience: additive, no application data or permission changes. */
@font-face{font-family:HETTahoma;src:url('/report/fonts/tahoma.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:HETTahoma;src:url('/report/fonts/tahomabd.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
:root{--het-ink:#193c50;--het-line:#dce5ec;--het-accent:#b50020;--het-focus:#157ca8;--het-radius:12px;--het-motion:130ms}
html{scroll-padding-top:18px;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%}
body.het-premium{font-family:HETTahoma,Tahoma,"Noto Sans Thai",sans-serif;-webkit-font-smoothing:antialiased;padding-bottom:env(safe-area-inset-bottom)}
body.het-premium.eir-page{font-family:HetEirTahoma,Tahoma,sans-serif}
body.het-premium.het-report{font-family:TERTahoma,Tahoma,sans-serif}
.het-premium :where(button,.button,[role=button],summary){touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color var(--het-motion),border-color var(--het-motion),box-shadow var(--het-motion),opacity var(--het-motion);cursor:pointer}
.het-premium :where(button,.button,[role=button],summary):active:not(:disabled){filter:brightness(.94);transform:translateY(1px)}
.het-premium :where(button,a,input,textarea,select,summary):focus-visible{outline:3px solid #157ca855;outline-offset:3px}
.het-premium :where(button[disabled],button[aria-busy=true]){cursor:wait}
.het-premium :where(nav,.tabs,.nav-tabs,.team-tabs,.tabbar){scrollbar-width:thin;overscroll-behavior-x:contain}
.het-premium :where(dialog){max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overscroll-behavior:contain}
.het-premium dialog[open]{animation:het-dialog-in 140ms ease-out}
.het-premium dialog::backdrop{background:#122b3b7d}
.het-premium :where(input,textarea,select){transition:border-color var(--het-motion),box-shadow var(--het-motion);scroll-margin-block:80px}
.het-premium :where(textarea){line-height:1.6}
.het-premium :where(.panel,.card,.job,.draft-card,.ti-history-card,.report-card){border-color:var(--het-line)}
.het-premium :where(.loading,.empty[role=status]){min-height:72px;align-content:center}
.het-premium :where(#toast,#runglo-toast){z-index:200}
#het-experience{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom));z-index:90;font-family:HETTahoma,Tahoma,sans-serif}
.het-report #het-experience{bottom:calc(106px + env(safe-area-inset-bottom))}
.het-premium:has(dialog[open]) #het-experience{visibility:hidden;pointer-events:none}
#het-launcher{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;width:auto;margin:0;padding:9px 14px;border:1px solid #d4dfe7;border-radius:999px;background:#fff;color:#193c50;box-shadow:0 3px 14px #173e511c;font:700 13px HETTahoma,Tahoma,sans-serif;line-height:1.2}
.het-dot{display:inline-block;width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#267758;box-shadow:0 0 0 3px #26775814}
#het-launcher[data-offline=true] .het-dot{background:#bf7b13;box-shadow:0 0 0 3px #bf7b131a}
#het-launcher[data-update=true]::after{content:"";width:6px;height:6px;border-radius:50%;background:#b50020}
#het-experience-dialog{position:fixed;inset:auto 14px calc(68px + env(safe-area-inset-bottom)) auto;margin:0;padding:0;box-sizing:border-box;width:min(370px,calc(100% - 28px));max-width:370px;max-height:calc(100dvh - 96px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border:1px solid #dae4ec;border-radius:18px;box-shadow:0 16px 65px #17364d33;color:#193c50;background:#fff;overflow:auto;font:14px/1.6 HETTahoma,Tahoma,sans-serif}
#het-experience-dialog::backdrop{background:#17384a45}
.het-x-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px 12px;border-bottom:1px solid #edf1f5;position:sticky;top:0;background:#fff;z-index:1}
.het-x-head strong{font-size:17px}.het-x-head small{display:block;color:#6b7c8c;font-size:11px}
#het-experience-dialog button{min-height:44px;padding:8px 12px;border:1px solid #d8e3eb;border-radius:9px;background:#fff;color:#193c50;font:inherit}
#het-experience-dialog .het-x-close{display:grid;place-items:center;padding:0;width:36px;min-height:36px;font-size:22px}
.het-x-content{padding:12px 18px 18px}.het-x-status{display:flex;align-items:center;gap:8px;color:#52687a;font-size:12px;margin-bottom:12px}.het-x-status[data-offline=true] .het-dot{background:#bf7b13}
.het-x-content h2{margin:18px 0 9px;font-size:13px;color:#6a7b88;font-weight:700}
.het-x-links{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.het-x-links a{display:grid;align-content:center;gap:2px;min-height:57px;padding:9px 10px;border:1px solid #e3eaf0;border-radius:10px;color:#193c50;text-decoration:none;font-size:12px;line-height:1.45;background:#fafcfd}
.het-x-links a small{color:#6d7e8a;font-size:10px}.het-x-links a[aria-current=page]{border-color:#bdcfdc;background:#edf5f9;font-weight:700}
.het-x-links a:hover{border-color:#9cb9cb;background:#eff6fa}
.het-x-links[aria-busy=true]{pointer-events:none;opacity:.7}.het-x-nav-error{font-size:12px;padding:10px;border:1px solid #ebc4cc;border-radius:8px;background:#fff3f5;color:#9b2340}
.het-x-install{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0 0}.het-x-install button{flex:1}
#het-experience-dialog .het-x-primary{background:#193c50;color:#fff;border-color:#193c50}
.het-x-help,.het-x-update{border:1px solid #dce6ee;background:#f6f9fc;border-radius:10px;padding:12px;margin-top:12px;font-size:12px;line-height:1.65}
.het-x-help p,.het-x-update p{margin:0 0 6px}.het-x-help p:last-child,.het-x-update p:last-child{margin:0}
.het-x-help ol{padding-left:20px;margin:6px 0}.het-x-help li{margin:4px 0}.het-x-help strong{color:#193c50}.het-x-update{border-color:#e7d7a9;background:#fff9eb;color:#645324}
.het-x-version{margin:15px 0 0;font-size:10px;color:#7b8c98}
.het-home-page{background:#f3f6f9;color:#193c50;min-height:100vh;margin:0}
.het-home{width:min(1000px,calc(100% - 36px));margin:40px auto 100px}
.het-home-brand{display:flex;align-items:center;gap:20px;padding:24px 0;border-bottom:1px solid #dce5ec;margin-bottom:22px}
.het-home-brand img{width:140px;height:auto;object-fit:contain}.het-home-brand h1{font-size:25px;line-height:1.4;margin:0}.het-home-brand p{font-size:13px;color:#6d7c89;margin:4px 0 0}
.het-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.het-system-tile{display:flex;flex-direction:column;gap:7px;padding:19px 20px;border:1px solid #dce5ec;border-radius:14px;background:#fff;color:#193c50;text-decoration:none;box-shadow:0 2px 5px #183b4f04;transition:box-shadow var(--het-motion),border-color var(--het-motion);min-height:127px;box-sizing:border-box}
.het-system-tile:hover{border-color:#9fb8c9;box-shadow:0 7px 18px #183b4f0a}.het-system-tile strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}.het-system-tile small{font-size:12px;line-height:1.65;color:#657c8d}.het-tile-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eef4f8;color:#204e68;font-size:12px;font-weight:700;margin-bottom:3px}
.het-system-tile[data-pending]{background:#fbfcfd}.het-system-tile[data-pending] .het-tile-icon{background:#f1f3f5;color:#7e8d97}.het-home-note{font-size:12px;line-height:1.8;color:#6e7f8b;margin-top:22px}.het-home-admin{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}.het-home-admin a{padding:8px 11px;color:#365e75;font-size:12px;text-decoration:none;border:1px solid #dbe4eb;border-radius:8px;background:#fff}
.het-offline-panel{max-width:460px;margin:15vh auto;padding:32px 26px;background:#fff;border:1px solid #dce5ec;border-radius:16px;box-shadow:0 8px 32px #193c5008}.het-offline-panel img{width:120px;height:auto}.het-offline-panel h1{font-size:23px;line-height:1.4;margin:22px 0 12px}.het-offline-panel p{font-size:14px;line-height:1.8;color:#657987}.het-offline-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}.het-offline-actions a,.het-offline-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;box-sizing:border-box;border:1px solid #dce5ec;border-radius:9px;color:#193c50;background:#fff;text-decoration:none;font:14px HETTahoma,Tahoma,sans-serif}.het-offline-actions .primary{background:#193c50;color:#fff;border-color:#193c50}
@keyframes het-dialog-in{from{opacity:.45;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(pointer:coarse){.het-premium :where(button,.button,[role=button],summary){min-height:44px}.het-premium :where(input:not([type=radio]):not([type=checkbox]):not([type=file]):not([type=range]):not([type=color]),textarea,select){font-size:16px;min-height:44px}.het-premium :where(input[type=radio],input[type=checkbox]){accent-color:#b50020}}
@media(max-width:760px){.het-home{width:calc(100% - 28px);margin-top:15px}.het-home-brand{gap:13px;padding:18px 0}.het-home-brand img{width:95px}.het-home-brand h1{font-size:21px}.het-home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.het-system-tile{padding:15px;min-height:132px}.het-system-tile strong{font-size:14px}.het-system-tile small{font-size:11px}.het-offline-panel{margin:13vh 14px 90px;padding:25px 22px}}
@media(max-width:390px){.het-system-tile{padding:13px;min-height:132px}.het-system-tile strong{font-size:13px}.het-home-brand h1{font-size:19px}.het-x-links{gap:6px}.het-x-links a{padding:8px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.het-premium *, .het-premium *::before,.het-premium *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.het-premium :where(button,.button,[role=button],summary):active{transform:none}}
@media print{#het-experience,#het-experience-dialog{display:none!important}}
/* Approved family icons remain visible at touch size without expanding forms. */
#het-launcher img{width:26px;height:26px;object-fit:contain;border-radius:7px;flex:0 0 26px}
.het-x-current{display:flex;align-items:center;gap:11px;margin-bottom:13px;padding:9px;background:#f6f9fc;border:1px solid #e4ebf0;border-radius:11px}
.het-x-current img{width:52px;height:52px;object-fit:contain;border-radius:12px;flex:0 0 52px}
.het-x-current strong{display:block;font-size:14px;line-height:1.4}.het-x-current small{display:block;color:#6b7c8c;font-size:11px;line-height:1.5;margin-top:3px}
.het-x-links a{grid-template-columns:34px minmax(0,1fr);column-gap:7px;min-height:62px}
.het-x-links a img{grid-row:1/3;width:34px;height:34px;object-fit:contain;border-radius:8px;align-self:center}
.het-x-links a span,.het-x-links a small{overflow-wrap:anywhere}
.het-system-tile .het-tile-icon{display:block;width:64px;height:64px;object-fit:contain;border-radius:14px;background:transparent;margin-bottom:2px;box-shadow:0 2px 7px #16374810}
.het-system-tile[data-pending] .het-tile-icon{background:transparent}
@media(max-width:390px){.het-system-tile .het-tile-icon{width:58px;height:58px}.het-x-links a{grid-template-columns:29px minmax(0,1fr);column-gap:6px}.het-x-links a img{width:29px;height:29px}}
/* R18 permission presentation: hidden stays hidden in grid/flex layouts. */
.het-premium [hidden],.het-home-page [hidden]{display:none!important}
html[data-het-access="loading"] .het-home-grid{visibility:hidden}
.het-home-account,.het-x-account{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 16px;font-size:12px}
.het-home-account a,.het-home-account button{display:inline-flex;align-items:center;min-height:44px;padding:6px 11px;border:1px solid #d5e2eb;border-radius:9px;color:#193c50;background:#fff;text-decoration:none;font:inherit}
.het-home-account span{font-weight:700;margin-right:auto}.het-x-account span{flex:1;min-width:100px;overflow-wrap:anywhere;font-weight:700}.het-x-account a{color:#193c50}
.het-home [data-het-access-status]{font-size:13px;color:#6d7c89;line-height:1.7}.het-home [data-het-access-status]:empty{display:none}
.het-x-empty{grid-column:1/-1;font-size:12px;color:#657987;padding:10px 0;margin:0}
html[data-het-access-locked="true"] body>:not(#het-access-lock):not(#het-experience):not(#het-experience-dialog){visibility:hidden!important}
#het-access-lock{position:fixed;z-index:950;inset:18vh 16px auto;max-width:420px;margin:auto;padding:26px;border:1px solid #dce5ec;border-radius:15px;background:#fff;color:#193c50;box-shadow:0 15px 50px #193c5026;font:14px/1.7 HETTahoma,Tahoma,sans-serif}
#het-access-lock h2{font-size:20px;margin:0 0 10px}#het-access-lock p{color:#687f8d;margin:0 0 15px}#het-access-lock a{display:inline-flex;min-height:44px;align-items:center;padding:8px 12px;background:#193c50;color:#fff;border-radius:9px;text-decoration:none}
