/* 1.1.332 owner: AI helper robot (questions about this app only). */
/* 1.1.336 owner's picture: the assistant (her photo cut from the owner's picture) on a pale green card, a green
 chat bubble at the top right and a white "AI Assistant" pill under her. Sizes measured from the picture. */
.ai-help-button{position:fixed;right:13px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:39;width:86px;height:102px;padding:0;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ai-help-card{position:absolute;left:1px;top:26px;width:84px;height:75px;box-sizing:border-box;border:2px solid #fff;border-radius:11px;background:linear-gradient(160deg,#d5ecd9,#cfe3dd 60%,#dbe9ec);box-shadow:0 5px 16px #18342630}
.ai-help-person{position:absolute;left:0;top:0;width:86px;height:80px;pointer-events:none}
.ai-help-bubble{position:absolute;left:60px;top:2px;width:26px;height:26px;border-radius:50%;background:linear-gradient(160deg,#25b33a,#14901f);box-shadow:0 2px 6px #0f5a1a40}
.ai-help-bubble::before{content:"";position:absolute;left:3px;bottom:-4px;border:5px solid transparent;border-top-color:#14901f;border-left-color:#14901f;transform:rotate(10deg)}
.ai-help-bubble::after{content:"";position:absolute;left:6px;top:11px;width:3.4px;height:3.4px;border-radius:50%;background:#fff;box-shadow:5.4px 0 #fff,10.8px 0 #fff}
.ai-help-pill{position:absolute;left:0;top:77px;display:flex;align-items:center;gap:5px;width:86px;height:25px;box-sizing:border-box;padding:0 7px 0 4px;border-radius:12px;background:#fff;box-shadow:0 2px 8px #18342629;color:#111;font:700 11px/1 system-ui,-apple-system,sans-serif;white-space:nowrap}
.ai-help-pill b{display:grid;place-items:center;flex:0 0 18px;height:18px;border-radius:50%;background:linear-gradient(160deg,#25b33a,#14901f);color:#fff;font-size:9.5px;font-weight:800}
.ai-help-button:active{transform:scale(.95)}
@media(min-width:851px){.ai-help-button{right:28px;bottom:28px;transform:scale(1.15);transform-origin:right bottom}.ai-help-button:active{transform:scale(1.1)}}
body.searching .ai-help-button,body:has(dialog[open]) .ai-help-button{display:none}
.ai-help{position:fixed;inset:auto 0 0 0;display:flex;flex-direction:column;width:min(100%,520px);max-width:100vw;height:min(78svh,640px);margin:0 auto;padding:0;border:0;border-radius:26px 26px 0 0;background:#f5f9f4;color:#1b2a20;box-shadow:0 -10px 40px #1020182e;overflow:hidden}
.ai-help:not([open]){display:none}
.ai-help::backdrop{background:#10201866}
@media(min-width:851px){.ai-help{inset:auto 28px 28px auto;margin:0;border-radius:24px;height:min(620px,80vh)}}
.ai-help header{display:flex;align-items:center;gap:10px;padding:14px 14px 12px;background:linear-gradient(135deg,#1f8a37,#43a956);color:#fff}
.ai-help header img{width:46px;height:46px;border-radius:50%;background:#eaf7ff;object-fit:contain}
.ai-help header span{flex:1;display:grid;min-width:0}
.ai-help header b{font-size:18px;font-weight:800}
.ai-help header small{opacity:.9;font-size:12.5px}
.ai-help-x{width:38px;height:38px;border:0;border-radius:50%;background:#ffffff2e;color:#fff;font-size:26px;line-height:1;cursor:pointer}
.ai-help-log{flex:1;display:flex;flex-direction:column;gap:10px;padding:14px;overflow-y:auto;overscroll-behavior:contain}
.ai-help-msg{display:flex;align-items:flex-end;gap:8px;max-width:88%}
.ai-help-msg img{flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#eaf7ff;object-fit:contain}
.ai-help-msg p{margin:0;padding:10px 13px;border-radius:18px 18px 18px 6px;background:#fff;box-shadow:0 2px 8px #1834260f;font-size:14.5px;line-height:1.5;overflow-wrap:anywhere}
.ai-help-msg.me{align-self:flex-end}
.ai-help-msg.me p{border-radius:18px 18px 6px 18px;background:#1f8a37;color:#fff}
.ai-help-go{display:block;margin-top:8px;padding:7px 12px;border:0;border-radius:12px;background:#e3f3df;color:#1c7a32;font:inherit;font-weight:800;font-size:13.5px;cursor:pointer}
.ai-help-chips{display:flex;gap:7px;padding:0 12px 8px;overflow-x:auto;scrollbar-width:none}
.ai-help-chips button{flex:0 0 auto;padding:7px 12px;border:1px solid #cfe3cf;border-radius:99px;background:#fff;color:#1f6f33;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.ai-help-form{display:flex;gap:8px;padding:8px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e3ebe3}
.ai-help-form input{flex:1;min-width:0;height:44px;padding:0 14px;border:1px solid #d3e0d4;border-radius:22px;background:#f5f9f4;color:inherit;font:inherit;font-size:16px}
.ai-help-form button{flex:0 0 44px;height:44px;border:0;border-radius:50%;background:#1f8a37;cursor:pointer}
.ai-help-form svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
body:has(.ai-help[open]){overflow:hidden}
:root[data-theme="dark"] .ai-help{background:#101a14;color:#e1f0de}
:root[data-theme="dark"] .ai-help-msg p,:root[data-theme="dark"] .ai-help-chips button,:root[data-theme="dark"] .ai-help-form{background:#1b2a20;color:#e1f0de}
:root[data-theme="dark"] .ai-help-msg.me p{background:#28733a}
:root[data-theme="dark"] .ai-help-form input{background:#142119;border-color:#33453a}
.ai-help.ai-help-kb{max-height:none;border-radius:0;margin:0 auto}
.ai-help.ai-help-kb .ai-help-form{padding-bottom:8px}
.ai-help.ai-help-kb .ai-help-chips{display:none}
/* 1.1.335 owner: "Go" step-by-step guide on the real screen. */
.ai-help-go.ai-help-tour{background:#1f8a37;color:#fff;padding:8px 18px}
.ai-tour-target{outline:3px solid #22c55e!important;outline-offset:3px;border-radius:14px;animation:ai-tour-glow 1.1s ease-in-out infinite!important}
@keyframes ai-tour-glow{0%,100%{box-shadow:0 0 0 0 #22c55e66}50%{box-shadow:0 0 0 10px #22c55e00}}
.ai-tour-finger{position:fixed;z-index:72;width:34px;font-size:34px;line-height:1;text-align:center;pointer-events:none;animation:ai-tour-point .9s ease-in-out infinite;filter:drop-shadow(0 2px 3px #0005)}
.ai-tour-finger[hidden]{display:none}
@keyframes ai-tour-point{0%,100%{translate:0 0}50%{translate:0 6px}}
.ai-tour-card{position:fixed;z-index:71;box-sizing:border-box;padding:12px 14px;border-radius:18px;background:#fff;color:#1b2a20;box-shadow:0 10px 30px #10201840,0 0 0 2px #22c55e}
.ai-tour-card small{color:#1f8a37;font-weight:800;font-size:12px}
.ai-tour-card p{margin:4px 0 10px;font-size:15px;line-height:1.45;font-weight:650}
.ai-tour-card em{display:block;margin-top:6px;color:#9a5b00;font-style:normal;font-size:13px;font-weight:600}
.ai-tour-card div{display:flex;justify-content:flex-end;gap:8px}
.ai-tour-card button{min-height:38px;padding:0 14px;border:0;border-radius:12px;background:#eef3ee;color:#2b3a30;font:inherit;font-weight:800;font-size:14px;cursor:pointer}
.ai-tour-card button[data-tour="next"]{background:#1f8a37;color:#fff}
@media(prefers-reduced-motion:reduce){.ai-tour-target,.ai-tour-finger{animation:none!important}}
:root[data-theme="dark"] .ai-tour-card{background:#1b2a20;color:#e1f0de}
body.ai-touring .ai-help-button{display:none}
/* Her whole face and hair (bun too) show: rounded square, nothing cut off. */
.ai-help header img,.ai-help-msg img{object-fit:contain;border-radius:12px;background:linear-gradient(160deg,#d3e9d8,#cfe2dc)}
.ai-help header img{width:48px;height:48px}
.ai-help-msg img{flex-basis:34px;width:34px;height:34px;border-radius:9px}
.ai-help-log:focus{outline:none}
.ai-help-suggest{display:flex;flex-wrap:wrap;gap:7px;margin:-2px 0 2px 42px}
.ai-help-suggest button{padding:8px 13px;border:1px solid #bfe0c4;border-radius:99px;background:#fff;color:#1f6f33;font:inherit;font-size:13.5px;font-weight:800;cursor:pointer}
:root[data-theme="dark"] .ai-help-suggest button{background:#1b2a20;color:#e1f0de;border-color:#33453a}
/* 1.1.340 owner: a red number on the assistant when the owner has things to do. */
.ai-help-button[data-n]::after{content:attr(data-n);position:absolute;top:18px;left:-6px;box-sizing:border-box;min-width:22px;height:22px;padding:0 6px;border:2px solid #fff;border-radius:11px;background:#e5322d;color:#fff;font:800 12px/18px system-ui,-apple-system,sans-serif;text-align:center;box-shadow:0 2px 6px #0004}
.ai-help-todochip{border-color:#e5322d!important;color:#c0261f!important}

/* 1.1.404 owner: the AI Assistant slides away with the bottom bar while scrolling down and comes back with it. */
@media(max-width:850px){
 .ai-help-button{transition:transform .28s ease,opacity .2s ease}
 body.nav-gone .ai-help-button{transform:translate3d(0,calc(100% + 130px),0);opacity:0;pointer-events:none}
}

/* 1.1.410 owner: a pinned "Credit list" shortcut first in Sky AI's quick chips; it opens the STM credit list. */
.ai-help-pinchip{flex:0 0 auto;border-color:#1f9a3e!important;background:#1f9a3e!important;color:#fff!important;font-weight:800}

/* 1.1.410 owner: the credit list as a list in the chat — name, date, invoice number, amount. */
.ai-help-list{max-width:100%;min-width:0;padding:10px 10px 8px;border-radius:16px;background:#fff;box-shadow:0 2px 8px #1a3b2a14}
.ai-help-list>b{display:block;margin:0 2px 8px;color:#14532d;font-size:15px}
.ai-help-lt{max-height:52vh;overflow:auto;overscroll-behavior:contain;border-radius:10px;border:1px solid #e3ece6}
.ai-help-lt table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.35}
.ai-help-lt th{position:sticky;top:0;background:#eaf6ec;color:#14532d;font-weight:800;text-align:left;padding:7px 8px;white-space:nowrap}
.ai-help-lt td{padding:7px 8px;border-top:1px solid #edf2ee;vertical-align:top}
.ai-help-lt td:nth-child(2),.ai-help-lt td:nth-child(3){white-space:nowrap;color:#4b5b52}
.ai-help-lt td:last-child,.ai-help-lt th:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.ai-help-lt tfoot td{position:sticky;bottom:0;background:#eaf6ec;border-top:2px solid #b9dcc0;font-weight:800;color:#14532d}
.ai-help-msg.bot:has(.ai-help-list) p,.ai-help-msg.bot .ai-help-list{flex:1}
/* 1.1.410 fit the phone: no avatar beside the list, fixed columns so the Amount is always visible. */
.ai-help-msg:has(.ai-help-list)>img{display:none}
.ai-help-msg:has(.ai-help-list){display:block}
.ai-help-list{width:100%;box-sizing:border-box}
.ai-help-lt table{table-layout:fixed;font-size:12px}
.ai-help-lt th,.ai-help-lt td{padding:6px 5px;white-space:normal!important;overflow-wrap:anywhere}
.ai-help-lt th:nth-child(1),.ai-help-lt td:nth-child(1){width:31%}
.ai-help-lt th:nth-child(2),.ai-help-lt td:nth-child(2){width:21%}
.ai-help-lt th:nth-child(3),.ai-help-lt td:nth-child(3){width:23%}
.ai-help-lt th:nth-child(4),.ai-help-lt td:nth-child(4){width:25%}
/* 1.1.410 owner: the credit list uses the whole chat area — no empty strip beside it, and it grows to the screen height. */
.ai-help-log:has(.ai-help-list){padding:8px}
.ai-help-msg:has(.ai-help-list){max-width:none;width:100%;margin:0}
.ai-help-list{padding:8px 6px 6px;border-radius:14px}
.ai-help-lt{max-height:none;height:calc(100dvh - 340px);min-height:240px}
.ai-help-lt th,.ai-help-lt td{padding:7px 6px}

/* 1.1.411 owner: the list could not be scrolled — it now fits the chat area exactly (it scrolls inside), with a Close button back to the chat. */
.ai-help-log:has(.ai-help-list){display:flex;flex-direction:column;overflow:hidden}
.ai-help-msg:has(.ai-help-list){flex:1 1 auto;min-height:0;display:flex}
.ai-help-list{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.ai-help-lh{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 2px 6px}
.ai-help-lh>b{margin:0}
.ai-help-lclose{flex:0 0 auto;padding:6px 12px;border:1px solid #cfe3d3;border-radius:999px;background:#fff;color:#14532d;font:700 13px/1 system-ui,sans-serif;cursor:pointer}
.ai-help-lt{flex:1 1 auto;min-height:0;height:auto;max-height:none;overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y}
/* 1.1.411: while the list is open it is the only thing in the chat area; it fills the area and scrolls inside. */
.ai-help-log:has(.ai-help-list)>.ai-help-msg:not(:has(.ai-help-list)),.ai-help-log:has(.ai-help-list)>.ai-help-suggest{display:none}
.ai-help-msg:has(.ai-help-list){align-items:stretch;height:100%}
.ai-help-list{overflow:hidden}
/* 1.1.412 owner: big readable text like the Excel sheet; columns keep their size and the list slides sideways when it does not fit. */
.ai-help-lt table{table-layout:auto;min-width:600px;font-size:16.5px;line-height:1.35}
.ai-help-lt th,.ai-help-lt td{width:auto!important;padding:11px 10px;white-space:nowrap!important;overflow-wrap:normal}
.ai-help-lt th:nth-child(1),.ai-help-lt td:nth-child(1){position:sticky;left:0;z-index:2;min-width:190px;max-width:230px;white-space:normal!important;overflow-wrap:anywhere;background:#fff;box-shadow:2px 0 0 #e3ece6}
.ai-help-lt th:nth-child(1){z-index:4;background:#eaf6ec}
.ai-help-lt tfoot td:nth-child(1){background:#eaf6ec}
.ai-help-lt{overflow:auto;touch-action:pan-x pan-y}
/* 1.1.413 owner: no empty strip above the list — it starts right under the green header and fills the whole chat area. */
.ai-help-log:has(.ai-help-list){padding:0}
.ai-help-msg:has(.ai-help-list){margin:0}
.ai-help-list{padding:0;border-radius:0;box-shadow:none;background:#fff}
.ai-help-lh{margin:0;padding:6px 10px;min-height:0;border-bottom:1px solid #e3ece6}
.ai-help-lh>b{font-size:16px}
.ai-help-lclose{padding:5px 11px;font-size:13px}
.ai-help-lt{border:0;border-radius:0}
/* 1.1.414 owner: on phones Sky AI covers the whole screen, including the top bar behind it. */
@media(max-width:640px){
 .ai-help[open]{inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border-radius:0;box-shadow:none}
 .ai-help header{padding-top:max(14px,calc(env(safe-area-inset-top) + 8px))}
 .ai-help::backdrop{background:#f5f9f4}
}

/* 1.1.414 owner: the Total amount sits right beside the word Total (no sideways scrolling needed). */
.ai-help-tot{display:flex;align-items:baseline;justify-content:space-between;gap:10px;width:100%}
.ai-help-tot>span{font-variant-numeric:tabular-nums;white-space:nowrap}
.ai-help-lt tfoot td:nth-child(1){min-width:0;max-width:none;width:100%}

/* 1.1.414: the list now has the Excel's own columns (Name, Total Amount, %, PSM, DT, JSM): numbers on the right. */
.ai-help-lt table{min-width:760px}
.ai-help-lt td:nth-child(n+2),.ai-help-lt th:nth-child(n+2){text-align:right;white-space:nowrap!important;color:inherit}
.ai-help-lt td:nth-child(2){font-weight:700;color:#14532d}

/* 1.1.414 owner: the serial number (SR) in front of each name. */
.ai-help-nm{display:flex;align-items:baseline;gap:10px}
.ai-help-nm>i{flex:0 0 28px;font-style:normal;font-weight:800;color:#5d7a66;text-align:right}
.ai-help-nm>span{min-width:0}

/* 1.1.415 owner: tap a customer -> its invoices open underneath. */
.ai-help-cr{cursor:pointer}
.ai-help-ar{margin-left:auto;font-style:normal;color:#2a8a45;font-size:18px;transition:transform .15s}
.ai-help-cr.open .ai-help-ar{transform:rotate(180deg)}
.ai-help-nm{width:100%}
.ai-help-sub[hidden]{display:none}
.ai-help-sub>td{padding:0!important;background:#f3faf4}
.ai-help-subin{position:sticky;left:0;width:min(94vw,440px);padding:6px 10px 10px}
.ai-help-subin table{min-width:0!important;width:100%;font-size:15px}
.ai-help-subin th,.ai-help-subin td{position:static!important;padding:6px 8px;text-align:left!important;min-width:0!important;white-space:nowrap}
.ai-help-subin td:last-child,.ai-help-subin th:last-child{text-align:right!important}
.ai-help-subin tfoot td{font-weight:800;border-top:2px solid #cfe3d3}
/* 1.1.415 owner: the Total bar must cover the full width above the opened invoices. */
.ai-help-lt>table>tfoot td{z-index:5}
.ai-help-subin tfoot td{position:static;bottom:auto;background:transparent}

/* 1.1.415 owner: aligned date / invoice / amount columns; difference note under the list. */
.ai-help-subin table{table-layout:fixed}
.ai-help-subin th:nth-child(1),.ai-help-subin td:nth-child(1){width:34%}
.ai-help-subin th:nth-child(2),.ai-help-subin td:nth-child(2){width:36%}
.ai-help-subin th:nth-child(3),.ai-help-subin td:nth-child(3){width:30%}
.ai-help-subin td{font-variant-numeric:tabular-nums}
.ai-help-subin td:nth-child(3){font-weight:600;color:#14532d}
.ai-help-subin tfoot td:nth-child(1){width:auto}
.ai-help-note{flex:0 0 auto;margin:0;padding:8px 12px 10px;background:#fff7e0;border-top:2px solid #f0c75e;font-size:14.5px;color:#7a5200}
.ai-help-note table{width:100%;margin-top:4px;font-size:14.5px;border-collapse:collapse}
.ai-help-note th,.ai-help-note td{text-align:left;padding:3px 6px;position:static;background:transparent}
.ai-help-note td:last-child,.ai-help-note th:last-child{text-align:right}

/* 1.1.415 owner: the difference note is one small line; tap for details. */
.ai-help-note{padding:6px 12px;cursor:pointer}
.ai-help-note>b{display:flex;justify-content:space-between;font-size:14px}
.ai-help-note em{font-style:normal;transition:transform .15s}
.ai-help-note.open em{transform:rotate(180deg)}
.ai-help-notebody[hidden]{display:none}
.ai-help-notebody small{display:block;margin-top:4px;font-size:12.5px}

/* 1.1.415 owner: sliding sideways keeps Total readable; opening anything hides the Total bar. */
.ai-help-lt>table>tfoot td:nth-child(1){z-index:8}
.ai-help-list.has-open .ai-help-lt>table>tfoot{display:none}

/* 1.1.415 owner's design picture: green wave header, card table, pill badges, Total bar, soft chips. */
.ai-help-list.has-open .ai-help-totbar{display:none}
.ai-help-list{background:transparent;padding:0}
.ai-help-lh{margin:0 14px;padding:12px 2px 10px;border:0;background:transparent}
.ai-help-lh>b{display:flex;align-items:center;gap:10px;font-size:22px;color:#10321b}
.ai-help-lclose{padding:8px 16px;border-radius:99px;background:#fff;border:1px solid #d3e3d6;color:#14532d;font-weight:700}
.ai-help-lt{margin:0 12px;border:0!important;border-radius:18px!important;background:#fff;box-shadow:0 8px 22px rgba(20,83,45,.14)}
.ai-help-lt th{background:linear-gradient(180deg,#118038,#0b6a2c)!important;color:#fff!important;font-size:16px;font-weight:700;padding:13px 10px;box-shadow:inset -1px 0 0 rgba(255,255,255,.18)}
.ai-help-lt th:nth-child(1){box-shadow:2px 0 0 rgba(0,0,0,.08)}
.ai-help-lt td{border-top:1px solid #e6efe8}
.ai-help-lt th:nth-child(3),.ai-help-lt td:nth-child(3){text-align:center}
.ai-help-lt td:nth-child(3){color:#27402f}
.ai-help-lt th .ai-help-nm>i{color:#fff;font-weight:700}
.ai-help-lt td .ai-help-nm>i{background:#dff3e1;color:#1f6f33;border-radius:99px;height:30px;line-height:30px;text-align:center;font-weight:800;font-size:15px}
.ai-help-lt .ai-help-ar{color:#14532d;font-size:20px}
.ai-help-amt{display:inline-block;padding:5px 16px;border-radius:99px;background:linear-gradient(180deg,#e6f8e8,#cdeed2);color:#14532d;font-weight:800}
.ai-help-totbar{flex:0 0 auto;display:flex;align-items:center;gap:12px;margin:12px 12px 0;padding:14px 20px;border-radius:18px;background:linear-gradient(90deg,#0b6a2c,#1d8f41);color:#fff;font-size:20px;box-shadow:0 8px 20px rgba(11,106,44,.3)}
.ai-help-totbar>span{margin-left:auto;font-size:25px;font-weight:800;font-variant-numeric:tabular-nums}
.ai-help-note{margin:10px 12px 0!important;border:0!important;border-radius:16px;background:linear-gradient(90deg,#fff4cf,#fde9ab)!important;color:#9a3412!important;padding:12px 16px!important;box-shadow:0 4px 12px rgba(154,52,18,.1)}
.ai-help-note>b{font-size:17px}
.ai-help-chips{padding:12px 12px 10px!important;gap:9px!important}
.ai-help-chips button{padding:11px 16px!important;font-size:15px!important;border:1px solid #d5e6d7!important;box-shadow:0 3px 10px rgba(20,83,45,.1)}
.ai-help-pinchip{background:linear-gradient(180deg,#14803a,#0b6a2c)!important;border-color:#0b6a2c!important}
.ai-help-form input{height:50px;font-size:17px;border-radius:99px}
.ai-help-form button{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#25a94a,#13782f);box-shadow:0 6px 14px rgba(19,120,47,.35)}
@media(max-width:640px){
.ai-help header{position:relative;gap:12px;padding-bottom:30px;background:radial-gradient(110% 90% at 88% -25%,rgba(255,255,255,.2),transparent 55%),radial-gradient(90% 60% at 10% 130%,rgba(0,0,0,.18),transparent 60%),linear-gradient(135deg,#0b6a2c,#1c9040 55%,#2aa84f)}
.ai-help header img{width:60px;height:60px;border-radius:50%;border:2px solid rgba(255,255,255,.85)}
.ai-help header b{font-size:27px}
.ai-help header small{font-size:17px}
.ai-help header .ai-help-x{width:50px;height:50px;border-radius:50%;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.55);color:#fff;font-size:30px}
.ai-help header+.ai-help-log{margin-top:-20px;border-radius:28px 28px 0 0;background:#f6faf6;position:relative}
}
/* 1.1.415 sizes closer to the design picture */
.ai-help-lt table{font-size:15px}
.ai-help-lt th{font-size:15px;padding:11px 8px}
.ai-help-lt td{padding:8px 8px}
.ai-help-lt th:nth-child(1),.ai-help-lt td:nth-child(1){min-width:230px;max-width:260px}
.ai-help-amt{padding:4px 14px}
.ai-help-lh>b{font-size:20px}
.ai-help-totbar{padding:11px 18px;font-size:18px;margin-top:10px}
.ai-help-totbar>span{font-size:22px}
.ai-help-note{padding:9px 14px!important}
.ai-help-note>b{font-size:16px}
@media(max-width:640px){
.ai-help header{padding-bottom:26px}
.ai-help header img{width:54px;height:54px}
.ai-help header b{font-size:23px}
.ai-help header small{font-size:14.5px}
.ai-help header .ai-help-x{width:44px;height:44px;font-size:26px}
}
.ai-help-lt th:nth-child(1),.ai-help-lt td:nth-child(1){min-width:190px;max-width:190px}
.ai-help-lt th{top:-1px}

/* 1.1.415 owner's second picture: compact, flat, 10 rows visible, chips with outline icons. */
.ai-help-lh{padding:10px 2px 8px}
.ai-help-lh>b{font-size:19px}
.ai-help-lclose{padding:6px 14px;border:1.5px solid #1f7a3a;color:#1f7a3a;font-size:15px;background:#fff}
.ai-help-lt{border:1px solid #d9e7dc!important;border-radius:12px!important;box-shadow:none}
.ai-help-lt table{font-size:14px;line-height:1.25}
.ai-help-lt th{font-size:14.5px;padding:10px 8px;background:#0f7a33!important}
.ai-help-lt td{padding:5px 8px;border-top:1px solid #e9f0ea}
.ai-help-lt th:nth-child(1),.ai-help-lt td:nth-child(1){min-width:200px;max-width:200px}
.ai-help-lt td .ai-help-nm>i{height:26px;line-height:26px;border-radius:8px;flex:0 0 32px;font-size:14px;background:#e4f3e6}
.ai-help-nm{gap:10px}
.ai-help-lt .ai-help-ar{font-size:0;width:10px;height:10px;border-right:2px solid #14532d;border-bottom:2px solid #14532d;transform:rotate(45deg);margin:0 6px 4px auto;display:block;flex:0 0 10px}
.ai-help-lt .ai-help-cr.open .ai-help-ar{transform:rotate(225deg);margin-bottom:-2px}
.ai-help-amt{padding:3px 12px;border-radius:99px;background:#e9f6ea;font-size:15px}
.ai-help-totbar{margin:8px 12px 0;padding:0 18px;height:44px;border-radius:12px;background:linear-gradient(90deg,#0b6a2c,#128038);box-shadow:none;font-size:17px;gap:0}
.ai-help-totbar>svg{display:none}
.ai-help-totbar>span{margin-left:auto;margin-right:18%;font-size:19px}
.ai-help-note{margin:8px 12px 0!important;border:1px solid #f1d98a!important;border-radius:12px;background:#fff6d6!important;color:#8a5a00!important;padding:8px 12px!important;box-shadow:none}
.ai-help-note>b{font-size:15px}
.ai-help-chips{padding:10px 12px 6px!important;gap:8px!important}
.ai-help-chips button{padding:8px 12px!important;font-size:14px!important;border:1.5px solid #cfe5d2!important;box-shadow:none;display:inline-flex;align-items:center;gap:6px}
.ai-help-chips button::before{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat;flex:0 0 18px}
.ai-help-pinchip{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17v5M9 3h6l-1 6 3 3H7l3-3-1-6z'/%3E%3C/svg%3E");background:linear-gradient(90deg,#0b6a2c,#128038)!important}
.ai-help-ic0{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h3l2.7 12.4a2 2 0 0 0 2 1.6h8a2 2 0 0 0 2-1.5L21 7H6'/%3E%3Ccircle cx='10' cy='21' r='1'/%3E%3Ccircle cx='18' cy='21' r='1'/%3E%3C/svg%3E")}
.ai-help-ic1{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")}
.ai-help-ic2{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
.ai-help-ic3,.ai-help-ic4,.ai-help-ic5,.ai-help-ic6,.ai-help-todochip{--i:none}
.ai-help-ic3::before,.ai-help-ic4::before,.ai-help-ic5::before,.ai-help-ic6::before,.ai-help-todochip::before{display:none}
.ai-help-form{padding:4px 12px 12px}
.ai-help-form input{height:44px;font-size:16px}
.ai-help-form button{width:44px;height:44px;box-shadow:none;background:#16883a}
@media(max-width:640px){
.ai-help header{padding-bottom:22px;background:linear-gradient(180deg,#0e7a33,#16883a)}
.ai-help header img{width:50px;height:50px}
.ai-help header b{font-size:20px}
.ai-help header small{font-size:13.5px}
.ai-help header .ai-help-x{width:40px;height:40px;font-size:24px;background:rgba(255,255,255,.2);border:0}
.ai-help header+.ai-help-log{margin-top:-14px;border-radius:22px 22px 0 0;background:#fff}
}
/* 1.1.415 fit Name + Total + % on one phone width, centred arrow */
.ai-help-lt td,.ai-help-lt th{vertical-align:middle}
.ai-help-lt .ai-help-nm{align-items:center}
.ai-help-lt .ai-help-ar{margin:0 6px 4px auto}
.ai-help-lt th:nth-child(1),.ai-help-lt td:nth-child(1){min-width:172px;max-width:172px;padding-right:6px}
.ai-help-lt th:nth-child(2),.ai-help-lt td:nth-child(2){padding-left:4px;padding-right:6px;min-width:128px}
.ai-help-lt th:nth-child(3),.ai-help-lt td:nth-child(3){padding-left:4px;padding-right:4px;min-width:64px}
.ai-help-lt table{min-width:0;width:max-content}
.ai-help-amt{padding:3px 10px;font-size:14.5px}
.ai-help-lt th:nth-child(2){text-align:center}
.ai-help-lt td:nth-child(2){text-align:center}
.ai-help-lt th:nth-child(1),.ai-help-lt td:nth-child(1){min-width:208px;max-width:208px;padding-left:6px;padding-right:4px}
.ai-help-lt th:nth-child(2),.ai-help-lt td:nth-child(2){min-width:118px;padding-left:2px;padding-right:2px}
.ai-help-lt th:nth-child(3),.ai-help-lt td:nth-child(3){min-width:60px;padding-left:2px;padding-right:2px}
.ai-help-lt td .ai-help-nm>i{flex:0 0 30px;height:24px;line-height:24px}
.ai-help-nm{gap:8px}
.ai-help-lt .ai-help-ar{margin:0 4px 4px auto}
.ai-help-amt{padding:3px 8px;font-size:14px}
.ai-help-lt th{font-size:14px}
/* 1.1.415 owner: send arrow centred in its circle */
.ai-help-form button{display:grid!important;place-items:center;padding:0}
.ai-help-form button svg{width:22px;height:22px;display:block;margin:0;transform:translate(1px,0)}
/* 1.1.415 owner: Total Amount pills all the same width, numbers right-aligned in one line */
.ai-help-lt td:nth-child(2){text-align:right}
.ai-help-amt{display:block;width:104px;margin:0 auto;padding:3px 12px;text-align:right;font-variant-numeric:tabular-nums}
/* 1.1.415 owner: the Credit list chip has the tilted pushpin outline of the design picture */
.ai-help-pinchip{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(45 12 12)'%3E%3Cpath d='M12 17v5'/%3E%3Cpath d='M9 10.8a2 2 0 0 1-1.1 1.8l-1.8.9A2 2 0 0 0 5 15.2V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.8a2 2 0 0 0-1.1-1.8l-1.8-.9A2 2 0 0 1 15 10.8V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z'/%3E%3C/g%3E%3C/svg%3E")}
.ai-help-pinchip::before{width:20px;height:20px;flex-basis:20px}
/* 1.1.416 owner: when a customer is open and the list scrolls, the main header stays complete; the invoice table fills the card width. */
.ai-help-lt>table>thead th{z-index:6}
.ai-help-lt>table>thead th:nth-child(1){z-index:7}
.ai-help-subin{width:calc(100vw - 52px);max-width:none}
.ai-help-subin table{width:100%}

/* 1.1.416 owner's picture: the opened customer shows an "Invoice List" card (icons, pills, Total pill). */
.ai-help-lt .ai-help-cr.open td{background:#eef8ef!important}
.ai-help-lt .ai-help-sub>td{background:#fff;padding:0!important}
.ai-help-subin{width:calc(100vw - 50px);max-width:none;padding:8px 6px 10px}
.ai-help-ivcard{border:1px solid #d9e7dc;border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(20,83,45,.1);padding:10px 10px 10px}
.ai-help-ivh{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:#14532d}
.ai-help-ivh>.ai-help-si{width:30px;height:30px;color:#1f7a3a;flex:0 0 30px}
.ai-help-ivh b{font-size:17px;color:#10321b}
.ai-help-ivh em{font-style:normal;color:#1f7a3a}
.ai-help-ivt{margin-left:auto;padding:4px 10px;border-radius:99px;background:#e4f5e6;color:#14532d;font-weight:700;font-size:13px;white-space:nowrap}
.ai-help-ivcard table{width:100%;table-layout:fixed;border-collapse:collapse;min-width:0!important;font-size:14px}
.ai-help-ivcard th{background:linear-gradient(180deg,#118038,#0b6a2c)!important;color:#fff!important;padding:8px 6px!important;font-size:13.5px;text-align:left!important;position:static!important;box-shadow:inset -1px 0 0 rgba(255,255,255,.2)}
.ai-help-ivcard th:first-child{border-radius:10px 0 0 0}.ai-help-ivcard th:last-child{border-radius:0 10px 0 0;text-align:right!important}
.ai-help-ivcard th:nth-child(1){width:35%}.ai-help-ivcard th:nth-child(2){width:33%}.ai-help-ivcard th:nth-child(3){width:32%}
.ai-help-ivcard .ai-help-si{width:17px;height:17px;vertical-align:-3px;margin-right:6px}
.ai-help-ivcard td{position:static!important;padding:5px 6px!important;border-top:1px solid #e9f0ea;text-align:left!important;white-space:nowrap;background:#fff!important;font-weight:400;color:#1d2b22}
.ai-help-ivcard td:last-child{text-align:right!important;font-weight:800;color:#14532d}
.ai-help-ivcard td .ai-help-si{color:#14532d}
.ai-help-inv{display:inline-block;padding:2px 10px;border-radius:99px;background:#e4f5e6;color:#14532d;font-weight:800;font-size:13px}
.ai-help-ivtot{display:flex;align-items:center;justify-content:space-between;margin-top:6px;padding:6px 8px 6px 14px;border-radius:12px;background:linear-gradient(90deg,#e8f6ea,#d5eed9);color:#14532d;font-weight:800;font-size:16px}
.ai-help-ivtot>span{padding:6px 16px;border-radius:99px;background:linear-gradient(90deg,#0b6a2c,#157f38);color:#fff;font-size:16px}
.ai-help-subin{width:calc(100vw - 26px);padding:6px 4px 8px}
.ai-help-ivcard .ai-help-ivh>.ai-help-si{width:28px;height:28px;margin:0;vertical-align:baseline}

/* 1.1.416 owner: no Total pill at the top of the Invoice List; its Total is the plain pale bar at the bottom. */
.ai-help-ivtot{padding:8px 14px;background:linear-gradient(90deg,#eaf7ec,#dcf1df)}
.ai-help-ivtot>span{padding:0;background:transparent;color:#14532d;font-size:17px}

/* 1.1.417 owner: update time beside the Credit list title. */
.ai-help-tt{display:grid;line-height:1.15}
.ai-help-tt small{font-size:12px;font-weight:600;color:#5d7a66}
.ai-help-cr[hidden]{display:none}

/* 1.1.417 owner: download button before each invoice date; tap shows the picture first. */
.ai-help-list{position:relative}
.ai-help-dl{display:inline-grid;place-items:center;width:30px;height:30px;margin-right:8px;padding:0;border:0;border-radius:50%;background:#e1f4e4;color:#14803a;cursor:pointer;vertical-align:middle}
.ai-help-dl svg{width:17px;height:17px}
.ai-help-ivcard td:first-child{white-space:nowrap}
.ai-help-pv{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;background:#fff;border-radius:18px}
.ai-help-pvh{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #e3ece6}
.ai-help-pvh b{font-size:18px;color:#10321b}
.ai-help-pvx{padding:6px 14px;border-radius:99px;background:#fff;border:1.5px solid #1f7a3a;color:#1f7a3a;font:inherit;font-weight:700;cursor:pointer}
.ai-help-pvb{flex:1 1 auto;min-height:0;overflow:auto;padding:10px 12px;display:flex;flex-direction:column;gap:10px}
.ai-help-pvb img{width:100%;height:auto;border:1px solid #d9e7dc;border-radius:10px}
.ai-help-pva{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:12px;background:#eaf7ec;color:#14532d;font-weight:700}
.ai-help-pvd{padding:10px 20px;border:0;border-radius:99px;background:linear-gradient(90deg,#0b6a2c,#157f38);color:#fff;font:inherit;font-weight:800;cursor:pointer}

/* 1.1.419 owner: Excel menu lists (Debit list, Total sale, Summary) use a plain table. */
.ai-help-lt.plain table{width:100%;min-width:0;table-layout:auto}
.ai-help-lt.plain th,.ai-help-lt.plain td{position:static!important;min-width:0!important;max-width:none!important;padding:8px 8px!important;text-align:left!important;white-space:normal!important;font-size:14px;background:#fff;box-shadow:none}
.ai-help-lt.plain th{background:linear-gradient(180deg,#118038,#0b6a2c)!important;position:sticky!important;top:-1px;z-index:3}
.ai-help-lt.plain td:last-child,.ai-help-lt.plain th:last-child{text-align:right!important;font-weight:800;color:#14532d;white-space:nowrap!important}
.ai-help-lt.plain td:nth-child(2){font-weight:600}
.ai-help-totbar>b{font-weight:800}
/* 1.1.419 plain lists: fit the width (no cut-off Balance), short lists do not stretch. */
.ai-help-lt.plain{overflow-x:hidden}
.ai-help-lt.plain th,.ai-help-lt.plain td{padding:8px 5px!important;font-size:13.5px}
.ai-help-lt.plain th:first-child,.ai-help-lt.plain td:first-child{width:1%;white-space:nowrap!important}
.ai-help-lt.plain th{white-space:nowrap!important}
.ai-help-lt.plain td:nth-child(3),.ai-help-lt.plain td:nth-child(4){white-space:nowrap!important}
.ai-help-lt.short{flex:0 0 auto;height:auto}

/* 1.1.419 owner: each Debit-list shop opens its own purchase lines. */
.ai-help-lt.plain .ai-help-cr{cursor:pointer}
.ai-help-lt.plain .ai-help-cr.open td{background:#eef8ef!important}
.ai-help-lt.plain .ai-help-ar{font-size:15px;margin-left:6px}
.ai-help-lt.plain .ai-help-sub td{padding:0!important;background:#fff!important;text-align:left!important;font-weight:400;color:inherit}
.ai-help-lt.plain .ai-help-subin{width:calc(100vw - 30px);padding:6px 4px 8px}
.ai-help-lt.plain .ai-help-ivcard th,.ai-help-lt.plain .ai-help-ivcard td{padding:5px 6px!important;font-size:13px;white-space:normal!important}
.ai-help-lt.plain .ai-help-ivcard td:first-child{white-space:nowrap!important;width:auto}
.ai-help-lt.plain .ai-help-ivcard td:last-child,.ai-help-lt.plain .ai-help-ivcard th:last-child{text-align:right!important;white-space:nowrap!important}
.ai-help-pt{display:block;margin-top:2px;font-size:12px;color:#5d7a66}
.ai-help-lt.plain .ai-help-ar{display:inline-block!important;font-size:0!important;margin:0 0 4px 10px!important;vertical-align:middle}
.ai-help-lt.plain .ai-help-cr.open .ai-help-ar{margin-bottom:-2px!important}

/* 1.1.419 Debit list purchases: Date | Part No | Description | Amount (no SKU). */
.ai-help-lt.plain .ai-help-ivcard table{table-layout:fixed;width:100%}
.ai-help-lt.plain .ai-help-ivcard th:nth-child(1){width:23%}.ai-help-lt.plain .ai-help-ivcard th:nth-child(2){width:24%}
.ai-help-lt.plain .ai-help-ivcard th:nth-child(3){width:29%}.ai-help-lt.plain .ai-help-ivcard th:nth-child(4){width:24%}
.ai-help-lt.plain .ai-help-ivcard td,.ai-help-lt.plain .ai-help-ivcard th{padding:6px 4px!important;font-size:12.5px;text-align:left!important;overflow-wrap:anywhere;vertical-align:middle}
.ai-help-lt.plain .ai-help-ivcard td:nth-child(1){white-space:normal!important}
.ai-help-lt.plain .ai-help-ivcard .ai-help-inv{padding:2px 6px;font-size:12px;white-space:normal;overflow-wrap:anywhere}
.ai-help-lt.plain .ai-help-ivcard td:nth-child(3){color:#27402f;font-weight:500!important}
.ai-help-lt.plain .ai-help-ivcard td:last-child,.ai-help-lt.plain .ai-help-ivcard th:last-child{text-align:right!important;white-space:nowrap!important;font-weight:800}

/* 1.1.420 owner: signed-out visitors get a "create your account" notice instead of Skyler. */
.ai-help-lock{flex:1 1 auto;display:grid;place-items:center;padding:20px;background:#f6faf6}
.ai-help-lock[hidden]{display:none}
.ai-help-locked .ai-help-log,.ai-help-locked .ai-help-chips,.ai-help-locked .ai-help-form{display:none!important}
.ai-help-lockcard{display:grid;justify-items:center;gap:10px;max-width:360px;padding:26px 22px;border-radius:24px;background:#fff;box-shadow:0 10px 28px rgba(20,83,45,.14);text-align:center}
.ai-help-lockcard img{width:84px;height:84px;border-radius:50%;object-fit:contain;background:linear-gradient(160deg,#d3e9d8,#cfe2dc)}
.ai-help-lockcard b{font-size:21px;color:#10321b}
.ai-help-lockcard p{margin:0;color:#3d5446;line-height:1.5}
.ai-help-lockgo{margin-top:6px;padding:13px 24px;border:0;border-radius:99px;background:linear-gradient(90deg,#0b6a2c,#157f38);color:#fff;font:inherit;font-weight:800;cursor:pointer}
.ai-help-x:focus,.ai-help-x:focus-visible,.ai-help:focus,.ai-help-log:focus{outline:none}

/* 1.1.513 owner: teach Skyler + the red ! when the app has a problem */
.ai-help-teach{margin:2px 0 10px 44px;font-size:13px}
.ai-help-teach .ai-teach-open{border:1px dashed #9db8a4;background:#f4faf5;color:#2c6a3d;border-radius:999px;padding:6px 14px;font:600 13px system-ui,sans-serif}
.ai-help-teach label{display:block;margin:6px 0;font-weight:600;color:#2b3a30}
.ai-help-teach input,.ai-help-teach textarea{display:block;width:100%;box-sizing:border-box;margin-top:4px;padding:9px 10px;border:1px solid #c5d2c9;border-radius:10px;font:15px/1.4 system-ui,sans-serif;background:#fff}
.ai-help-teach .ai-teach-row{display:flex;gap:8px;margin-top:8px}
.ai-help-teach .ai-teach-save{border:0;border-radius:999px;padding:9px 18px;background:#137a2c;color:#fff;font:700 14px system-ui,sans-serif}
.ai-help-teach .ai-teach-cancel{border:1px solid #c5d2c9;border-radius:999px;padding:9px 16px;background:#fff;color:#44574a;font:600 14px system-ui,sans-serif}
.ai-help-teach .ai-teach-err{margin:4px 0 0;color:#b3261e;font-size:13px}
.ai-help-warn{position:absolute;left:-2px;top:-2px;z-index:3;display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:10px;background:#e53935;color:#fff;border:2px solid #fff;font:800 12px/1 system-ui,sans-serif}
.ai-help-warn[hidden]{display:none}
/* 1.1.514: result cards inside the chat (scroll with the chat; the "which one?" buttons stay visible) */
.ai-help-msg.bot>.ai-help-rc{flex:1 1 auto;min-width:0;max-width:100%;box-sizing:border-box;background:#fff;border-radius:16px;box-shadow:0 2px 8px #1a3b2a14;padding:10px 10px 8px;overflow:hidden}
.ai-help-rc-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.ai-help-rc-h b{color:#10321b;font-size:16px;line-height:1.25;overflow-wrap:anywhere}
.ai-help-rc-x{flex:0 0 auto;padding:5px 12px;border:1.5px solid #1f7a3a;border-radius:99px;background:#fff;color:#1f7a3a;font:700 13px/1 system-ui,sans-serif;cursor:pointer}
.ai-help-rc-n{margin:0 0 8px;padding:8px 10px;border-radius:12px;background:#fff6d6;border:1px solid #f0dc8c;color:#7a4f00;font-weight:700;font-size:14px}
.ai-help-rc-t{max-height:46vh;overflow:auto;-webkit-overflow-scrolling:touch;border:1px solid #d9e7dc;border-radius:12px}
.ai-help-rc-t table{width:100%;border-collapse:collapse;font-size:13.5px;line-height:1.3}
.ai-help-rc-t th{position:sticky;top:0;background:#0f7a33;color:#fff;text-align:left;padding:8px 6px;font-weight:700;white-space:nowrap}
.ai-help-rc-t td{padding:7px 6px;border-top:1px solid #e9f0ea;vertical-align:top;overflow-wrap:anywhere}
.ai-help-rc-t td:first-child{font-weight:600;color:#14532d}
.ai-help-rc-t td:last-child,.ai-help-rc-t th:last-child{text-align:right}
.ai-help-rc-tot{display:flex;align-items:center;margin-top:8px;padding:10px 14px;border-radius:12px;background:linear-gradient(90deg,#0b6a2c,#1d8f41);color:#fff;font-size:15px}
.ai-help-rc-tot span{margin-left:auto;font-weight:800;font-size:17px;font-variant-numeric:tabular-nums}
/* 1.1.516: Report to SkyShopMM (tick the wrong messages, Send, OK) and the owner's report cards */
.ai-help-reporting .ai-help-form,.ai-help-reporting .ai-help-chips{display:none}
.ai-help-reportbar{flex:0 0 auto;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dbe6de}
.ai-help-reportbar p{margin:0 0 8px;font-weight:700;color:#14532d;font-size:14px;line-height:1.35}
.ai-rb-row{display:flex;gap:8px}
.ai-rb-send,.ai-rb-ok{flex:1;border:0;border-radius:999px;padding:11px 14px;background:#137a2c;color:#fff;font:700 14px system-ui,sans-serif}
.ai-rb-send:disabled{background:#a9c4b0}
.ai-rb-cancel,.ai-rb-back{border:1px solid #c5d2c9;border-radius:999px;padding:11px 16px;background:#fff;color:#44574a;font:600 14px system-ui,sans-serif}
.ai-help-selecting .ai-help-msg{position:relative;cursor:pointer;padding-left:34px;-webkit-user-select:none;user-select:none}
.ai-help-selecting .ai-help-msg::before{content:"";position:absolute;left:4px;top:12px;width:20px;height:20px;box-sizing:border-box;border:2px solid #9db8a4;border-radius:50%;background:#fff}
.ai-help-selecting .ai-help-msg.sel::before{background:#137a2c;border-color:#137a2c;box-shadow:inset 0 0 0 3px #fff}
.ai-help-selecting .ai-help-msg.sel{background:#e8f5ea;border-radius:12px}
.ai-help-selecting .ai-help-teach,.ai-help-selecting .ai-help-suggest{display:none}
.ai-rep-m{display:flex;gap:8px;margin:6px 0;font-size:13.5px;line-height:1.4}
.ai-rep-m span{white-space:pre-wrap;overflow-wrap:anywhere}
.ai-rep-row{display:flex;gap:8px;margin-top:8px}
.ai-rep-teach,.ai-rep-done{border:1px solid #1f7a3a;border-radius:999px;padding:7px 14px;background:#fff;color:#1f7a3a;font:700 13px system-ui,sans-serif}
.ai-rep-done{background:#137a2c;color:#fff}
/* 1.1.519 owner's picture: Skyler stands full length at the bottom right with a glowing chat bubble and a red number. Only her body and the bubble catch taps. */
.ai-help-button{right:7px;bottom:max(94px,calc(67px + env(safe-area-inset-bottom)));width:var(--sky-w,118px);height:var(--sky-h,337px);pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.ai-help-button>*{pointer-events:none}
.ai-help-button .ai-help-fig{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:contain;display:block}
.ai-help-button .ai-help-glow{position:absolute;left:2px;top:25px;width:52px;height:52px;border-radius:50%;background:radial-gradient(circle,rgba(255,246,120,.95) 0%,rgba(255,244,140,.55) 38%,rgba(255,244,160,0) 72%)}
.ai-help-button .ai-help-bub{position:absolute;left:13.6px;top:38.6px;width:28.8px;height:auto;display:block}
.ai-help-button .ai-help-hit{position:absolute;left:44%;right:0;top:0;bottom:0;pointer-events:auto}
.ai-help-button .ai-help-bub,.ai-help-button .ai-help-glow{pointer-events:auto}
.ai-help-button[data-n]::after{left:34px;top:21px;min-width:17px;height:17px;padding:0 4px;border:2px solid #fff;border-radius:9px;background:#e5251b;font:800 11px/13px system-ui,-apple-system,sans-serif;box-shadow:0 2px 6px #0004;z-index:2;pointer-events:none}
.ai-help-button .ai-help-warn{left:74px;top:2px}
@media(min-width:851px){.ai-help-button{right:28px;bottom:20px;transform:scale(var(--sky-scale,.7));transform-origin:right bottom}.ai-help-button:active{transform:scale(calc(var(--sky-scale,.7) - .03))}}
/* 1.1.521 owner's design: product list card (green header, number / stock / price pills, 12 per page, < > buttons) */
.ai-help-msg.bot>.ai-pl{flex:1 1 auto;min-width:0;max-width:100%;box-sizing:border-box;border-radius:24px;overflow:hidden;background:linear-gradient(180deg,#bfe8c8,#f4fbf5 38%);box-shadow:0 10px 26px rgba(20,83,45,.22),0 0 0 1px #ffffffaa inset}
.ai-pl-h{position:relative;display:flex;align-items:center;gap:10px;padding:14px 12px 30px;color:#fff;background:radial-gradient(circle at 85% 100%,rgba(255,255,255,.38),transparent 55%),linear-gradient(155deg,#188a38 0%,#2fa24d 55%,#74cd86 100%)}
.ai-pl-ic{flex:0 0 40px;height:40px;display:grid;place-items:center}
.ai-pl-t{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.ai-pl-t b{font:800 18px/1.15 system-ui,-apple-system,sans-serif;overflow-wrap:anywhere}
.ai-pl-n{display:inline-flex;align-items:center;gap:6px;padding:4px 11px 4px 8px;border-radius:999px;background:#fff;color:#14532d;font:700 12.5px/1 system-ui,sans-serif}
.ai-pl-x{flex:0 0 auto;align-self:flex-start;display:inline-flex;align-items:center;gap:5px;padding:7px 12px;border:1.5px solid #ffffffd9;border-radius:999px;background:transparent;color:#fff;font:700 13px/1 system-ui,sans-serif;cursor:pointer}
.ai-pl-x i{width:7px;height:7px;border-left:2px solid #fff;border-top:2px solid #fff;transform:rotate(45deg) translate(1px,1px)}
.ai-pl-b{position:relative;margin:-20px 8px 8px;padding:6px;border-radius:20px;background:#ffffffe8;box-shadow:0 4px 14px rgba(20,83,45,.12)}
.ai-pl-r{display:grid;grid-template-columns:34px 56px minmax(0,1fr) 40px minmax(60px,auto);gap:6px;align-items:center;padding:7px 4px;font:14px/1.3 system-ui,-apple-system,sans-serif;color:#1a2a20}
.ai-pl-hd{margin-bottom:2px;padding:10px 4px;border-radius:15px;background:linear-gradient(180deg,#0f7030,#176f33);color:#fff;font:800 13.5px/1.1 system-ui,sans-serif}
.ai-pl-hd span:first-child,.ai-pl-hd span:nth-child(4){text-align:center}
.ai-pl-hd span:last-child{text-align:right;padding-right:4px}
.ai-pl-rows>.ai-pl-r{cursor:pointer;border-radius:0}
.ai-pl-rows>.ai-pl-r:nth-child(even){background:#e7f5ea}
.ai-pl-no{display:grid;place-items:center}
.ai-pl-no b{min-width:30px;height:28px;padding:0 4px;box-sizing:border-box;display:grid;place-items:center;border-radius:11px;background:linear-gradient(180deg,#c9f4b6,#a9e895);color:#166528;font:800 15px/1 system-ui,sans-serif}
.ai-pl-pn{overflow-wrap:anywhere}
.ai-pl-ds{overflow-wrap:anywhere}
.ai-pl-sk{display:grid;place-items:center}
.ai-pl-sk b{min-width:34px;height:28px;padding:0 4px;box-sizing:border-box;display:grid;place-items:center;border-radius:11px;background:#e6ecf8;color:#1c2b45;font:800 14.5px/1 system-ui,sans-serif}
.ai-pl-pr{display:flex;justify-content:flex-end}
.ai-pl-pr b{padding:5px 8px;border-radius:11px;background:linear-gradient(180deg,#eefbe6,#d6f3c9);color:#14341e;font:800 13.5px/1.1 system-ui,sans-serif;white-space:nowrap}
.ai-pl-f{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;padding:8px;border-radius:18px;background:#fff;box-shadow:0 2px 8px rgba(20,83,45,.1)}
.ai-pl-s{flex:1;text-align:center;font:500 13.5px/1.3 system-ui,sans-serif;color:#1a2a20}
.ai-pl-pv,.ai-pl-nx{flex:0 0 auto;width:44px;height:38px;border:0;border-radius:15px;position:relative;cursor:pointer}
.ai-pl-pv{background:#dcefdf}.ai-pl-nx{background:#137a2c}
.ai-pl-pv:disabled,.ai-pl-nx:disabled{opacity:.4;cursor:default}
.ai-pl-pv[hidden],.ai-pl-nx[hidden]{display:none}
.ai-pl-pv::after,.ai-pl-nx::after{content:"";position:absolute;left:50%;top:50%;width:10px;height:10px;border-left:3px solid #1b7a35;border-bottom:3px solid #1b7a35;transform:translate(-30%,-50%) rotate(45deg)}
.ai-pl-nx::after{border-color:#fff;transform:translate(-70%,-50%) rotate(-135deg)}
.ai-help-msg:has(.ai-pl){display:block;max-width:none;width:100%;margin:2px 0}
.ai-help-msg:has(.ai-pl)>img{display:none}
.ai-help-msg.bot>.ai-pl{width:100%}
.ai-pl-r{grid-template-columns:32px 58px minmax(0,1fr) 38px minmax(58px,auto);gap:5px;font-size:13.5px}
.ai-pl-hd{font-size:13px}
.ai-pl-hd span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:clip}
.ai-pl-r{grid-template-columns:32px 54px minmax(0,1fr) 42px 78px;gap:5px}
.ai-pl-pr b{padding:5px 7px;font-size:13px}
.ai-pl-hd span:nth-child(4){text-align:center;margin-left:-4px}
.ai-pl-hd span:last-child{text-align:right;padding-right:6px}
/* 1.1.522 owner: the list slides sideways (more Excel columns), no cramped columns, # stays in place */
.ai-help-log:has(.ai-pl){padding-left:4px;padding-right:4px}
.ai-pl-b{margin:-20px 4px 6px;padding:4px 0 6px}
.ai-pl-sc{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;padding:0 4px 4px}
.ai-pl-in{min-width:100%;width:max-content}
.ai-pl .ai-pl-r{grid-template-columns:var(--c);gap:8px;padding:8px 6px;align-items:center}
.ai-pl-in[style*="min-width:"]{width:auto}
.ai-pl-rows>.ai-pl-r{background:#fff}
.ai-pl-rows>.ai-pl-r:nth-child(even){background:#e7f5ea}
.ai-pl-r>span:first-child{position:sticky;left:0;z-index:2;background:inherit}
.ai-pl-hd>span:first-child{background:#0f7030;border-radius:15px 0 0 15px;margin:-10px 0 -10px -6px;padding:10px 0 10px 6px;align-self:stretch;display:grid;place-items:center}
.ai-pl-hd span{text-align:left!important;white-space:normal;overflow:visible;padding:0!important;margin-left:0}
.ai-pl-hd>span:first-child{text-align:center!important}
.ai-pl-hd>span:nth-child(4){text-align:center!important}
.ai-pl-hd>span:nth-child(5){text-align:right!important;padding-right:4px!important}
.ai-pl-tx,.ai-pl-pn,.ai-pl-ds{overflow-wrap:anywhere}
.ai-pl-pr{justify-content:flex-end}
.ai-pl-f{margin:8px 4px 0}
.ai-pl-hd{background:#12712f}
.ai-pl-hd>span:first-child{background:#12712f}
.ai-pl .ai-pl-r{column-gap:0}
.ai-pl-r>span:not(:first-child){padding-left:8px}
.ai-pl-hd span:not(:first-child){padding-left:8px!important}
.ai-pl-hd>span:first-child{margin:0;padding:0;border-radius:0;align-self:auto}
.ai-pl-hd{border-radius:0 15px 15px 0}
.ai-pl .ai-pl-r{padding-left:0}
.ai-pl-sc{padding-left:0;padding-right:0}
.ai-pl-hd{border-radius:0 15px 15px 0}
/* 1.1.523 owner: tap a row -> Go / Explain; small Skyler icon over the Excel */
.ai-pl-rows>.ai-pl-r.on{background:#c6efcf!important;box-shadow:inset 3px 0 0 #137a2c}
.ai-pl-act{display:flex;align-items:center;gap:8px;margin:8px 4px 0;padding:8px 10px;border-radius:16px;background:#fff;box-shadow:0 2px 8px rgba(20,83,45,.12);font:600 13.5px/1.2 system-ui,sans-serif;color:#14341e}
.ai-pl-act[hidden]{display:none}
.ai-pl-act span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ai-pl-go,.ai-pl-ex{flex:0 0 auto;border-radius:999px;padding:9px 16px;font:800 14px/1 system-ui,sans-serif}
.ai-pl-go{border:0;background:#137a2c;color:#fff}
.ai-pl-ex{border:1px solid #bcd6c2;background:#fff;color:#1d5a2f}
.ai-help-back{position:fixed;top:calc(env(safe-area-inset-top) + 8px);right:10px;z-index:2147483000;width:42px;height:42px;padding:0;border:2px solid #fff;border-radius:50%;background:#e7f4ea;box-shadow:0 3px 12px rgba(0,0,0,.3);overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ai-help-back[hidden]{display:none}
.ai-help-back img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
html.ai-back-on .excel-sheet-search{padding-right:54px;box-sizing:border-box}
/* 1.1.524 owner: scrolling a list down hides the typing box and the chips; scrolling up brings them back */
.ai-help-scrolling .ai-help-form,.ai-help-scrolling .ai-help-chips{display:none}
/* 1.1.525: product card in the same pretty style */
.ai-pd-rows{border-radius:16px;overflow:hidden;background:#fff}
.ai-pd-r{display:grid;grid-template-columns:minmax(92px,36%) minmax(0,1fr);gap:10px;align-items:center;padding:11px 12px;font:14px/1.35 system-ui,-apple-system,sans-serif;color:#1a2a20}
.ai-pd-r:nth-child(even){background:#e7f5ea}
.ai-pd-r>span:first-child{font-weight:800;color:#14532d}
.ai-pd-r>span:last-child{text-align:right;overflow-wrap:anywhere}
.ai-pd-sk{display:inline-block;min-width:34px;padding:6px 10px;box-sizing:border-box;border-radius:11px;background:#e6ecf8;color:#1c2b45;font:800 14.5px/1 system-ui,sans-serif;text-align:center}
.ai-pd-pr{display:inline-block;padding:6px 10px;border-radius:11px;background:linear-gradient(180deg,#eefbe6,#d6f3c9);color:#14341e;font:800 14px/1.1 system-ui,sans-serif}
.ai-pd-f{display:flex;flex-wrap:wrap;gap:8px;margin:10px 4px 2px}
.ai-pd-q{border:1px solid #b9d8c0;border-radius:999px;padding:9px 14px;background:#fff;color:#1d5a2f;font:700 13.5px/1 system-ui,sans-serif}
.ai-pd-go{border:0;border-radius:999px;padding:9px 18px;background:#137a2c;color:#fff;font:800 14px/1 system-ui,sans-serif;margin-left:auto}
/* 1.1.527 owner: "rows are far too tall - show it like the Excel": a long cell (e.g. a 200-character Data Detail) shows at most 2 lines, like a fixed Excel row */
.ai-pl-pn,.ai-pl-ds,.ai-pl-tx{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;line-height:1.3;max-height:2.7em}
.ai-pd-r>span:last-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.ai-pl-f[hidden]{display:none}

/* 1.1.536 owner: no "Skyler" bar on top (the list starts at the top like his picture 2); the SkyShopMM logo at the start of the chips goes Home */
.ai-help header{display:none!important}
.ai-help-locked header{display:flex!important}
.ai-help{padding-top:max(10px,env(safe-area-inset-top,0px))}
.ai-help header+.ai-help-log{margin-top:0!important;border-radius:0!important}
.ai-help-chips .ai-help-homechip{padding:4px 12px!important;border:1.5px solid #cfe5d2!important;background:#fff!important;display:inline-flex;align-items:center}
.ai-help-chips .ai-help-homechip::before{display:none!important}
.ai-help-homechip img{display:block;height:24px;width:auto}

/* 1.1.538 owner: round arrow that jumps to the newest message (like the Message chat) */
.ai-help-jump{position:absolute;right:14px;z-index:6;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#137a2c;box-shadow:0 4px 16px rgba(20,83,45,.3);display:grid;place-items:center;padding:0;cursor:pointer}
.ai-help-jump[hidden]{display:none}
.ai-help-jump svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
:root[data-theme="dark"] .ai-help-jump{background:#1b2a20;color:#8fd19e}

/* 1.1.540 owner: "Skyler is too big" - the full-length button is drawn at 65% on phones (70% on PC), still standing on the bottom bar */
@media(max-width:850px){.ai-help-button{transform:scale(var(--sky-scale,.65));transform-origin:right bottom}.ai-help-button:active{transform:scale(calc(var(--sky-scale,.65) - .03))}body.nav-gone .ai-help-button{transform:scale(var(--sky-scale,.65)) translate3d(0,calc(100% + 130px),0)}}

/* 1.1.541 owner: Skyler's size and picture are set by the person (Skyler look panel). A chosen picture has no chat bubble, so the badge sits at its top right. */
.ai-help-custom .ai-help-bub,.ai-help-custom .ai-help-glow{display:none}
.ai-help-custom .ai-help-hit{left:0}
.ai-help-button.ai-help-custom[data-n]::after{left:auto;right:2px;top:2px}
.ai-help-custom .ai-help-warn{left:auto;right:2px;top:26px}
dialog.ai-look{width:min(92vw,380px);border:0;border-radius:22px;padding:18px 18px 16px;background:#fff;color:#1b2a20;box-shadow:0 18px 60px #0004}
dialog.ai-look::backdrop{background:rgba(10,30,18,.45)}
.ai-look h3{margin:0 0 10px;font-size:19px;color:#137a2c}
.ai-look-prev{height:250px;border-radius:16px;background:linear-gradient(160deg,#e3f2e6,#f5faf5);display:grid;place-items:end center;overflow:hidden;margin-bottom:12px}
.ai-look-prev img{width:auto;max-width:100%;object-fit:contain}
.ai-look label{display:grid;gap:6px;font-weight:700;font-size:14px}
.ai-look label b{color:#137a2c}
.ai-look input[type=range]{width:100%;accent-color:#137a2c}
.ai-look-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.ai-look-row button{flex:1 1 auto;padding:10px 12px;border:1.5px solid #cfe5d2;border-radius:99px;background:#fff;color:#137a2c;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
.ai-look-row button.on{background:#137a2c;color:#fff;border-color:#137a2c}
.ai-look-msg{min-height:18px;margin:8px 0 0;font-size:13px;color:#b42318}
:root[data-theme="dark"] dialog.ai-look{background:#16231a;color:#e1f0de}
:root[data-theme="dark"] .ai-look-row button{background:#1b2a20;color:#8fd19e;border-color:#2c4a35}
/* 1.1.546 owner: "too many layers piled under the list - hide the ones underneath". The list card is now ONE card: a single soft shadow, the table sheet runs to the bottom edge, and the Go / Explain bar and the page bar are flat strips with a hairline (no extra rounded boxes with their own shadows). */
.ai-help-msg.bot>.ai-pl{box-shadow:0 4px 14px rgba(20,83,45,.16)!important}
.ai-pl-b{margin:-20px 0 0!important;padding:4px 0 0!important;border-radius:20px 20px 0 0!important;box-shadow:none!important;background:#fff!important}
.ai-pl-act,.ai-pl-f{margin:0!important;padding:10px 12px!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;border-top:1px solid #d7ebdb}
.ai-pl-act[hidden],.ai-pl-f[hidden]{display:none!important}

.ai-draft-copy{margin-left:8px}

/* 1.1.560 owner: Skyler's reports (Stock / Invoice / Sales trend) as a real card: green head, number tiles, short lists with bars, status bar, Copy. */
.ai-help-msg:has(.ai-rp){display:block;max-width:none;width:100%;margin:4px 0}
.ai-help-msg:has(.ai-rp)>img{display:none}
.ai-help-log:has(.ai-rp){padding-left:6px;padding-right:6px}
.ai-rp{box-sizing:border-box;width:100%;background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 8px 24px rgba(20,83,45,.16),0 0 0 1px #e3efe6;font:14px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;color:#17321f}
.ai-rp-h{display:flex;align-items:center;gap:10px;padding:14px 14px 16px;color:#fff;background:radial-gradient(circle at 90% 0,rgba(255,255,255,.3),transparent 55%),linear-gradient(155deg,#188a38,#35a653 60%,#6cc982)}
.ai-rp-ic{flex:0 0 40px;height:40px;border-radius:13px;background:#ffffff2e;display:grid;place-items:center;font-size:22px}
.ai-rp-h>div{flex:1;min-width:0}
.ai-rp-h b{display:block;font-size:17px;font-weight:800;line-height:1.2}
.ai-rp-h small{display:block;margin-top:2px;font-size:12px;opacity:.92;overflow-wrap:anywhere}
.ai-rp-x{flex:0 0 30px;height:30px;border:0;border-radius:50%;background:#ffffff38;color:#fff;font-size:14px;cursor:pointer}
.ai-rp-ts{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:12px 12px 4px;margin-top:-8px;position:relative}
@media(min-width:520px){.ai-rp-ts{grid-template-columns:repeat(4,1fr)}}
.ai-rp-t{background:#f3faf5;border:1px solid #dcefe1;border-radius:14px;padding:9px 10px;min-width:0}
.ai-rp-t b{display:block;font-size:21px;font-weight:800;line-height:1.15;color:#157a31;overflow-wrap:anywhere}
.ai-rp-t span{display:block;margin-top:1px;font-size:12px;color:#5b7566}
.ai-rp-t.warn{background:#fff8e8;border-color:#f6e2b0}.ai-rp-t.warn b{color:#b46a00}
.ai-rp-t.bad{background:#fff1f0;border-color:#f6cfcb}.ai-rp-t.bad b{color:#c0392b}
.ai-rp-t.ok b{color:#157a31}
.ai-rp-b{padding:12px 14px 4px}
.ai-rp-b+.ai-rp-b{border-top:1px solid #edf4ef}
.ai-rp-b h4{display:flex;align-items:center;gap:8px;margin:0 0 2px;font-size:15px;font-weight:800;color:#17321f}
.ai-rp-b h4 em{font-style:normal;font-size:12px;font-weight:800;background:#e8f6ec;color:#157a31;border-radius:999px;padding:1px 9px}
.ai-rp-hint{margin:0 0 6px;font-size:12px;color:#6b8374}
.ai-rp-r{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #f0f5f1}
.ai-rp-l .ai-rp-r:first-child{border-top:0}
.ai-rp-n{flex:0 0 26px;height:26px;border-radius:9px;background:#e8f6ec;color:#157a31;font-weight:800;font-size:12px;display:grid;place-items:center}
.ai-rp-m{flex:1;min-width:0}
.ai-rp-m b{display:block;font-size:13.5px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.ai-rp-m small{display:block;font-size:12px;color:#6b8374;line-height:1.3;overflow-wrap:anywhere}
.ai-rp-bar{display:block;height:5px;border-radius:5px;background:#e8f1ea;margin-top:5px;overflow:hidden}
.ai-rp-bar u{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#2fa24d,#74cd86)}
.ai-rp-v{flex:0 0 auto;min-width:44px;text-align:center;padding:4px 10px;border-radius:999px;background:#e8f6ec;color:#157a31;font-weight:800;font-size:13px}
.ai-rp-v.warn{background:#fff1d6;color:#a35d00}.ai-rp-v.bad{background:#fde4e1;color:#b8321f}.ai-rp-v.ok{background:#e2f6e8;color:#13722d}.ai-rp-v.mute{background:#eef1ef;color:#5b6b61}
.ai-rp-tg,.ai-rp-cp{display:block;width:100%;margin:6px 0 8px;padding:9px 12px;border:1px solid #cfe6d5;border-radius:12px;background:#f6fcf7;color:#157a31;font:700 13px system-ui,sans-serif;cursor:pointer}
.ai-rp-cp{background:#157a31;border-color:#157a31;color:#fff;margin-top:10px}
.ai-rp-empty,.ai-rp-note{margin:4px 0 8px;font-size:12.5px;color:#5b7566}
.ai-rp-note.ok{color:#157a31;font-weight:700}.ai-rp-note.bad{color:#b8321f;font-weight:700}.ai-rp-note.mute{color:#7a8a80}
.ai-rp-st{display:flex;height:14px;border-radius:9px;overflow:hidden;background:#eef1ef;margin:6px 0 8px}
.ai-rp-st u{display:block;min-width:4px}
.ai-rp-st u.ok,.ai-rp-lg i.ok{background:#2fa24d}.ai-rp-st u.warn,.ai-rp-lg i.warn{background:#f2a516}.ai-rp-st u.bad,.ai-rp-lg i.bad{background:#e0533f}.ai-rp-st u.mute,.ai-rp-lg i.mute{background:#b8c4bb}
.ai-rp-lg{display:flex;flex-wrap:wrap;gap:6px 14px;margin-bottom:8px;font-size:12.5px;color:#4b6455}
.ai-rp-lg i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}
.ai-rp-f{margin:4px 0 8px}
.ai-rp-i{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid #f0f5f1;font-size:13.5px}
.ai-rp-f .ai-rp-i:first-child{border-top:0}
.ai-rp-i span{color:#4b6455}.ai-rp-i b{font-weight:800;text-align:right}
.ai-rp-i b.ok{color:#157a31}.ai-rp-i b.warn{color:#b46a00}.ai-rp-i b.bad{color:#c0392b}
.ai-rp-foot{margin:0;padding:10px 14px 14px;font-size:12px;color:#7a8a80;border-top:1px solid #edf4ef}
.ai-rp-b:last-of-type{padding-bottom:10px}
.ai-help-typing p{display:inline-flex;gap:5px;align-items:center;padding:13px 15px}
.ai-help-typing p i{width:7px;height:7px;border-radius:50%;background:#9bbfa6;animation:ai-dot 1s ease-in-out infinite}
.ai-help-typing p i:nth-child(2){animation-delay:.15s}.ai-help-typing p i:nth-child(3){animation-delay:.3s}
@keyframes ai-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.ai-help-typing p i{animation:none;opacity:.7}}
/* the chat's own bubble style for <p> must not leak into the report card */
.ai-help-msg .ai-rp p{background:none;box-shadow:none;border-radius:0;padding:0;margin:0}
.ai-help-msg .ai-rp .ai-rp-hint{margin:0 0 6px;font-size:12px;line-height:1.4}
.ai-help-msg .ai-rp .ai-rp-empty,.ai-help-msg .ai-rp .ai-rp-note{margin:4px 0 8px;font-size:12.5px;line-height:1.45}
.ai-help-msg .ai-rp .ai-rp-foot{padding:10px 14px 14px;font-size:12px}
.ai-rp-m small{white-space:pre-line}
/* supplier chips in the Stock report: pick one supplier and every list narrows to it (the number = items to order) */
.ai-rp-cs{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:10px 12px 2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.ai-rp-cs::-webkit-scrollbar{display:none}
.ai-rp-cl{flex:0 0 auto;font-size:12px;font-weight:700;color:#5b7566}
.ai-rp-c{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid #cfe6d5;border-radius:999px;background:#f6fcf7;color:#157a31;font:700 13px system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.ai-rp-c em{font-style:normal;font-size:11px;font-weight:800;min-width:18px;text-align:center;padding:1px 6px;border-radius:999px;background:#e2f3e7}
.ai-rp-c.on{background:#157a31;border-color:#157a31;color:#fff}
.ai-rp-c.on em{background:#ffffff33;color:#fff}
.ai-rp-cs+.ai-rp-ts{margin-top:0}
.ai-rp-c[hidden]{display:none}
.ai-rp-sb{padding:10px 12px 0}
.ai-rp-q{box-sizing:border-box;width:100%;padding:9px 14px;border:1px solid #cfe6d5;border-radius:999px;background:#fff;color:#17321f;font:14px system-ui,sans-serif;outline:none}
.ai-rp-q:focus{border-color:#2fa24d;box-shadow:0 0 0 3px #2fa24d22}
.ai-rp-sb+.ai-rp-cs{padding-top:8px}
/* source link under a report line: opens the file, the sheet and that row in the Excel viewer */
.ai-rp-src{display:inline-block;margin-top:5px;padding:3px 9px;border:1px solid #cfe6d5;border-radius:999px;background:#f6fcf7;color:#157a31;font:700 11.5px system-ui,sans-serif;cursor:pointer;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ai-rp-v.go{border:0;cursor:pointer;background:#157a31;color:#fff}

/* 1.1.578 owner: the person attaches / detaches the pinned shortcuts: a pencil at the end of the chips row opens a list with a switch per shortcut. */
.ai-help-chips .ai-help-editchip{position:sticky;right:0;margin-left:auto;padding:8px 10px!important;border:1.5px solid #cfe5d2!important;background:#fff!important;color:#157a2f!important;box-shadow:-10px 0 10px -4px #fff}
.ai-help-chips .ai-help-editchip::before{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0'/%3E%3Ccircle cx='16' cy='6' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E")}
:root[data-theme="dark"] .ai-help-chips .ai-help-editchip{background:#1b2a20!important;border-color:#2c4332!important;color:#8fe0a4!important;box-shadow:-10px 0 10px -4px #1b2a20}
dialog.ai-pins{width:min(92vw,400px);max-height:88dvh;overflow:auto;border:0;border-radius:22px;padding:18px 18px 16px;background:#fff;color:#1b2a20;box-shadow:0 18px 60px #0004}
dialog.ai-pins::backdrop{background:rgba(10,30,18,.45)}
.ai-pins h3{margin:0 0 4px;font-size:19px;color:#137a2c}
.ai-pins-sub{margin:0 0 10px;color:#5d6f63;font-size:13.5px;line-height:1.45}
.ai-pins h4{margin:12px 0 6px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#6b7d71}
.ai-pins ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.ai-pins li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:8px 12px;border:1px solid #e1eae3;border-radius:14px;background:#f7faf7;font-size:15px;font-weight:600}
.ai-pins li span{min-width:0;overflow-wrap:anywhere}
.ai-pin-sw{position:relative;display:block;flex:none;width:48px;height:28px;cursor:pointer}
.ai-pin-sw input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.ai-pin-sw i{position:absolute;inset:0;border-radius:999px;background:#cfd8e0;transition:background-color .2s}
.ai-pin-sw i::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .2s}
.ai-pin-sw input:checked+i{background:linear-gradient(180deg,#2aa845,#17852f)}
.ai-pin-sw input:checked+i::after{transform:translateX(20px)}
.ai-pin-sw input:focus-visible+i{outline:3px solid #98d94d;outline-offset:2px}
:root[data-theme="dark"] dialog.ai-pins{background:#142019;color:#e1f0de}
:root[data-theme="dark"] .ai-pins li{background:#1b2a20;border-color:#2c4332}
:root[data-theme="dark"] .ai-pins-sub,:root[data-theme="dark"] .ai-pins h4{color:#a3b3a9}
@media(prefers-reduced-motion:reduce){.ai-pin-sw i,.ai-pin-sw i::after{transition:none}}
dialog.ai-pins .ai-look-row{position:sticky;bottom:-16px;margin:12px -18px -16px;padding:12px 18px 16px;background:inherit}

.ai-pins li.ai-pin-locked{background:#eef5ef}
.ai-pins li small{display:block;margin-top:2px;color:#6b7d71;font-size:12px;font-weight:500;line-height:1.35}
.ai-pins .ai-pin-locked input:disabled{cursor:not-allowed}
:root[data-theme="dark"] .ai-pins li.ai-pin-locked{background:#17261c}
:root[data-theme="dark"] .ai-pins li small{color:#a3b3a9}
/* 1.1.579 owner: a short looping "video" (the Home Screen helper's phone clips) under an explanation, one step after another. */
.ai-clip{width:min(268px,68vw);margin:10px 0 6px;cursor:pointer}
.ai-clip .ig-video{margin-top:0}
.ai-clip-cap{display:block;margin:8px 2px 0;color:#3e4f45;font-size:12.5px;font-weight:600;line-height:1.45}
.ai-clip-dots{display:flex;justify-content:center;gap:6px;margin-top:7px}
.ai-clip-dots i{width:7px;height:7px;border-radius:50%;background:#cfdad2}
.ai-clip-dots i.on{background:#1f8a37}
:root[data-theme="dark"] .ai-clip-cap{color:#c4d3c9}
:root[data-theme="dark"] .ai-clip-dots i{background:#3a4a40}
:root[data-theme="dark"] .ai-clip-dots i.on{background:#4cc46a}
/* the clip sits inside a chat bubble (a <p>): the bubble's own <p> look must not leak into the drawn phone screen */
.ai-help-msg .ai-clip p{margin:0;padding:0 10px;border-radius:0;background:transparent;box-shadow:none;font-size:11px;line-height:26px;color:inherit}
.ai-help-msg .ai-clip .ig-hit{border-radius:6px}
.ai-help-msg .ai-clip .ig-dialog>p{padding:0;line-height:1.3;color:#0b57d0}
/* the Home Screen step's wrapper carries the class ig-home too (the animation rules need it) - keep the wrapper a plain box, the grid belongs to the inner element only */
.ai-clip>.ig-video.ig-home{position:relative;inset:auto;display:block;padding:0;background:#eef1f4}
