/* TCHAHIT — «مساعد تشهيت» launcher and chat panel (V97 rebuild; loaded only where the launcher mounts).
 * Layout contract: bottom-start launcher; the panel sits above it and never
 * reaches under the sticky site header (max-height = viewport - header -
 * launcher - margins); header always visible; only the thread scrolls, and
 * only vertically; suggestions / tools / input live in one footer that never
 * overlaps; safe areas respected; logical properties for RTL/LTR. */
:root {
  --as-gap: 16px;
  --as-launch: 56px;
  --as-top: calc(var(--tc-header-h, 64px) + 12px);
  --as-bottom: calc(var(--as-gap) + var(--as-launch) + 12px + env(safe-area-inset-bottom, 0px));
  --as-ink: var(--tc-text, #1f1a17);
  --as-ink-2: var(--tc-text-2, #5f5650);
  --as-line: var(--tc-border, #efe2d4);
  --as-field: var(--tc-field-border, #dccdbe);
  --as-surface: var(--tc-surface, #fff);
  --as-soft: var(--tc-cream-50, #fff8f1);
  --as-action: var(--tc-action, #c2410c);
  --as-action-hover: var(--tc-action-hover, #9a3412);
  --as-on-action: var(--tc-on-action, #fff);
  --as-night: var(--tc-night-900, #111814);
  --as-focus: var(--tc-focus, #c2410c);
  --as-radius: var(--tc-r-xl, 24px);
}
.assistant-launcher { position: fixed; inset-inline-start: calc(var(--as-start, 0px) + max(var(--as-gap), env(safe-area-inset-left, 0px))); inset-inline-end: auto; bottom: calc(var(--as-gap) + env(safe-area-inset-bottom, 0px)); z-index: 70; min-height: var(--as-launch); max-width: calc(100vw - 2 * var(--as-gap)); padding-block: 0; padding-inline: 16px 20px; border: 0; border-radius: var(--tc-r-pill, 999px); display: inline-flex; align-items: center; gap: 10px; background: var(--as-night); color: #fff; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; box-shadow: var(--tc-shadow-2, 0 14px 32px rgba(31, 26, 23, .18)); cursor: pointer; transition: transform var(--tc-dur-2, 180ms) var(--tc-ease-out, ease), background var(--tc-dur-2, 180ms); }
/* The launcher floats over the bottom-start corner: the shared footer keeps that
   corner free, so the last links and the © line can always scroll clear of it. */
footer.tc-footer { padding-bottom: calc(var(--as-gap) + var(--as-launch) + 16px + env(safe-area-inset-bottom, 0px)); }
.assistant-launcher svg { width: 22px; height: 22px; flex: none; color: var(--tc-flame, #ff5728); }
.assistant-launcher span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The alert count is a chip inside the pill (never outside its box). */
.assistant-launcher .assistant-badge { position: static; margin-inline-start: 2px; box-shadow: none; }
.assistant-launcher:hover { background: var(--tc-night-800, #17201c); transform: translateY(-1px); }
.assistant-launcher:focus-visible { outline: 3px solid var(--as-focus); outline-offset: 3px; }
@media (max-width: 640px) {
  .assistant-launcher { width: var(--as-launch); height: var(--as-launch); padding: 0; justify-content: center; }
  .assistant-launcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* On the round launcher the count sits on the top corner, inside the button box. */
  .assistant-launcher .assistant-badge { position: absolute; top: 0; inset-inline-end: 0; margin: 0; height: 20px; min-width: 20px; font-size: 11px; }
  .assistant-launcher[aria-expanded="true"] { display: none; }
}

.assistant-panel { position: fixed; z-index: 90; inset-inline-start: calc(var(--as-start, 0px) + max(var(--as-gap), env(safe-area-inset-left, 0px))); inset-inline-end: auto; bottom: var(--as-bottom); top: auto; width: min(420px, calc(100vw - var(--as-start, 0px) - 2 * var(--as-gap))); max-width: calc(100vw - var(--as-start, 0px) - 2 * var(--as-gap)); height: auto; max-height: calc(100dvh - var(--as-top) - var(--as-bottom)); min-height: min(320px, calc(100dvh - var(--as-top) - var(--as-bottom))); display: flex; flex-direction: column; box-sizing: border-box; border: 1px solid var(--as-line); border-radius: var(--as-radius); background: var(--as-surface); color: var(--as-ink); box-shadow: var(--tc-shadow-3, 0 24px 60px rgba(31, 26, 23, .18)); overflow: hidden; overflow-wrap: anywhere; }
@supports not (height: 100dvh) { .assistant-panel { max-height: calc(100vh - var(--as-top) - var(--as-bottom)); } }
.assistant-panel *, .assistant-panel *::before, .assistant-panel *::after { box-sizing: border-box; }
@media (max-width: 640px) {
  .assistant-panel { inset-inline: 0; bottom: 0; width: 100%; max-width: 100%; max-height: calc(100dvh - var(--as-top)); border-radius: var(--as-radius) var(--as-radius) 0 0; border-bottom: 0; }
}

/* Pages with the floating bottom navigation (home ≤ 900px): the launcher sits above the bar
   (home-v93.css lifts it to 88px); the panel geometry follows the same variables so its
   header can never slide under the sticky site header. */
@media (max-width: 900px) {
  .shell:has(.mobile-nav) { --as-bottom: calc(148px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
  .shell:has(.mobile-nav) .assistant-panel.assistant-v97 { inset-inline: 8px !important; width: auto; max-width: none; bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; max-height: calc(100dvh - var(--as-top) - 80px - env(safe-area-inset-bottom, 0px)); border-radius: var(--as-radius); border-bottom: 1px solid var(--as-line); }
  .shell:has(.mobile-nav) .assistant-panel.assistant-v97 .assistant-foot { padding-bottom: 12px; }
}

/* header: never scrolls, never clipped */
.assistant-head { flex: none; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; padding-inline-start: 16px; background: var(--as-night); color: #fff; }
.assistant-head > span, .assistant-mark { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--tc-flame, #ff5728); }
.assistant-head > span svg, .assistant-mark svg { width: 20px; height: 20px; }
.assistant-head > div { flex: 1; min-width: 0; }
.assistant-head h2, .assistant-head b { display: block; margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: #fff; }
.assistant-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tc-on-night-2, #cbd2cd); font-size: 13px; line-height: 1.4; }
.assistant-head > button, .assistant-close { flex: none; margin-inline-start: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.assistant-head > button:hover { background: rgba(255, 255, 255, .18); }
.assistant-head > button:focus-visible { outline: 3px solid var(--tc-flame-soft, #ff9a78); outline-offset: 2px; }
.assistant-head > button svg { width: 20px; height: 20px; }

/* thread: the only scrolling region, vertical only */
.assistant-thread { flex: 1 1 auto; min-height: 120px; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: var(--as-soft); }
.assistant-thread:focus-visible { outline: 3px solid var(--as-focus); outline-offset: -3px; }
.assistant-thread > article { max-width: 92%; min-width: 0; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: var(--tc-lh-body, 1.7); white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-thread > article p { margin: 0; }
.assistant-thread > article.user { align-self: flex-end; background: var(--as-night); color: #fff; border-end-end-radius: 6px; }
.assistant-thread > article.assistant { align-self: flex-start; background: var(--as-surface); border: 1px solid var(--as-line); border-end-start-radius: 6px; color: var(--as-ink); }
.assistant-thread > article.error { border-color: var(--tc-warn-700, #b45309); background: var(--tc-warn-50, #fffbeb); color: var(--tc-warn-800, #92400e); }
.assistant-thread > article.assistant small { display: block; margin-top: 6px; color: var(--as-ink-2); font-size: 13px; }
.assistant-data { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--as-soft); border: 1px solid var(--as-line); color: var(--as-ink); font: inherit; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; white-space: normal; }
.assistant-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 12px; background: var(--as-action); color: var(--as-on-action); font-size: 14px; font-weight: 700; text-decoration: none; }
.assistant-cta:hover { background: var(--as-action-hover); }
.assistant-cta:focus-visible, .assistant-cite:focus-visible { outline: 3px solid var(--as-focus); outline-offset: 2px; }
.assistant-cite { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 100%; padding: 4px 2px; color: var(--tc-link, #9a3412); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.assistant-cite svg { width: 16px; height: 16px; flex: none; }
.assistant-cite span { min-width: 0; overflow-wrap: anywhere; }
.assistant-tasks { margin: 8px 0 0; padding-inline-start: 18px; font-size: 13px; color: var(--as-ink-2); white-space: normal; }
.assistant-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; white-space: normal; }
.assistant-thread > article.assistant .assistant-feedback small { margin: 0; margin-inline-end: 4px; }
.assistant-feedback button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 12px; border: 1px solid var(--as-field); border-radius: 999px; background: var(--as-surface); color: var(--as-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.assistant-feedback button svg { width: 16px; height: 16px; }
.assistant-feedback button:focus-visible, .assistant-suggest button:focus-visible, .assistant-tools button:focus-visible { outline: 3px solid var(--as-focus); outline-offset: 2px; }
.assistant-thread > article.assistant small.assistant-thanks { color: var(--tc-success-800, #166534); }
.assistant-sources { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.assistant-sources a { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 10px; border-radius: 999px; background: var(--tc-brand-50, #fff5f0); color: var(--tc-link, #9a3412); font-size: 12px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.assistant-ticket { align-self: stretch; padding: 12px; border-radius: 12px; background: var(--tc-success-50, #f0fdf4); color: var(--tc-success-800, #166534); font-size: 14px; line-height: 1.6; }
.assistant-ticket b { display: block; font-size: 16px; letter-spacing: .4px; direction: ltr; text-align: start; }
.assistant-report-form { align-self: stretch; padding: 12px; border: 1px solid var(--as-line); border-radius: 16px; background: var(--as-surface); }

/* footer: suggestions, tools and input stacked — never overlapping */
.assistant-foot { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--as-line); background: var(--as-surface); }
@media (min-width: 641px) { .assistant-foot { padding-bottom: 12px; } }
.assistant-suggest { display: flex; flex-wrap: wrap; gap: 6px; max-height: 100px; overflow: hidden; }
.assistant-suggest button { min-height: 44px; max-width: 100%; padding: 6px 12px; border: 1px solid var(--as-field); border-radius: 999px; background: var(--as-soft); color: var(--as-ink); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: start; cursor: pointer; overflow-wrap: anywhere; }
.assistant-suggest button:hover { border-color: var(--as-action); }
.assistant-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.assistant-tools:empty { display: none; }
.assistant-tools button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--as-ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.assistant-tools button svg { width: 16px; height: 16px; flex: none; }
.assistant-tools .assistant-human { border-color: var(--as-action); color: var(--tc-brand-700, #9a3412); background: var(--tc-brand-50, #fff5f0); }
.assistant-tools button:hover { color: var(--as-ink); background: var(--as-soft); }
.assistant-tools button:disabled { opacity: .6; cursor: default; }
.assistant-form { display: flex; gap: 8px; margin: 0; padding: 0; }
.assistant-panel:not(.assistant-v97) .assistant-form { flex: none; padding: 10px 12px 12px; border-top: 1px solid var(--as-line); background: var(--as-surface); }
.assistant-form input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--as-field); border-radius: 14px; background: var(--as-surface); color: var(--as-ink); font: inherit; font-size: 16px; }
.assistant-form input:focus-visible { outline: 3px solid var(--as-focus); outline-offset: 1px; border-color: var(--as-action); }
.assistant-form button { flex: none; width: 48px; height: 48px; border: 0; border-radius: 14px; display: grid; place-items: center; background: var(--as-action); color: var(--as-on-action); cursor: pointer; }
.assistant-form button:hover:not(:disabled) { background: var(--as-action-hover); }
.assistant-form button:focus-visible { outline: 3px solid var(--as-focus); outline-offset: 2px; }
.assistant-form button:disabled { opacity: .45; cursor: default; }
.assistant-form button svg { width: 20px; height: 20px; }
[dir="rtl"] .assistant-form button svg { transform: scaleX(-1); }
.assistant-note { flex: none; margin: 0; color: var(--as-ink-2); font-size: 12px; line-height: 1.5; }
.assistant-panel:not(.assistant-v97) .assistant-note { padding: 0 14px 10px; background: var(--as-surface); }
.assistant-typing { display: inline-flex; gap: 4px; padding-block: 6px; }
.assistant-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--tc-ink-400, #9a8f87); animation: assistant-blink 1s infinite; }
.assistant-typing i:nth-child(2) { animation-delay: .2s; } .assistant-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes assistant-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .assistant-typing i { animation: none; opacity: .7; } .assistant-launcher { transition: none; } }
@media print { .assistant-launcher, .assistant-panel:not(.helper-panel) { display: none !important; } }

/* ---- V94: «مساعد تشهيت» merchant helper, POS helper, issue form ---- */
.assistant-badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: #8f5600; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.assistant-badge.critical { background: #b42318; }
.pos-helper-launcher { inset-inline-end: auto; inset-inline-start: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); min-height: 44px; font-size: 13px; opacity: .92; }
@media (max-width: 640px) { .pos-helper-launcher { width: 44px; height: 44px; } }
@media (min-width: 641px) { .helper-panel { width: min(460px, calc(100vw - var(--as-start, 0px) - 2 * var(--as-gap))); max-width: calc(100vw - var(--as-start, 0px) - 2 * var(--as-gap)); } }
.helper-tabs { display: flex; gap: 2px; padding: 6px 8px; background: #f7f5ef; border-bottom: 1px solid #e6eae7; overflow-x: auto; }
.helper-tabs button { position: relative; flex: 1 0 auto; min-height: 40px; padding: 4px 10px; border: 0; border-radius: 10px; background: transparent; color: #48534d; font: inherit; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.helper-tabs button svg { width: 16px; height: 16px; }
.helper-tabs button.active { background: #fff; color: #1f4d36; box-shadow: 0 1px 2px rgba(22, 32, 27, .08); }
.helper-tabs button:focus-visible, .helper-body button:focus-visible, .helper-body a:focus-visible { outline: 3px solid rgba(194, 65, 12, .45); outline-offset: 2px; }
.helper-tabs i { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-style: normal; font-size: 11px; color: #fff; background: #8f5600; display: inline-grid; place-items: center; }
.helper-tabs i.critical { background: #b42318; }
.helper-feedback { margin: 0; padding: 8px 14px; background: #ebf2f9; color: #2c5b86; font-size: 13px; font-weight: 700; }
.helper-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; color: #1d2a23; font-size: 14px; line-height: 1.6; }
.helper-body h3, .helper-body h4 { margin: 0; font-size: 16px; }
.helper-muted { color: #5b6861; font-size: 13px; margin: 0; }
.helper-tips { margin: 0 14px 8px; padding: 10px 12px; border-radius: 12px; background: #fdf4e3; color: #5c3b00; font-size: 13px; line-height: 1.6; }
.helper-body .helper-tips { margin: 0; }
.helper-tips p { margin: 4px 0 0; }
.helper-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.helper-chips button, .helper-alert-actions button, .helper-alert-actions a, .helper-checklist span button, .helper-toolbar button, .helper-link, .helper-back, .helper-alert-ops button, .helper-confirm button, .issue-done button { min-height: 36px; padding: 4px 12px; border: 1px solid #d5ddd8; border-radius: 10px; background: #fff; color: #1f4d36; font: inherit; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; }
.helper-chips svg, .helper-alert-actions svg, .helper-toolbar svg, .helper-link svg, .helper-back svg, .helper-cite svg, .assistant-sources svg { width: 15px; height: 15px; }
[dir="rtl"] .helper-back svg { transform: scaleX(-1); }
.helper-body .helper-primary, .helper-confirm .helper-primary { background: #1f4d36; color: #fff; border-color: #1f4d36; min-height: 40px; padding: 6px 14px; border-radius: 10px; font: inherit; font-weight: 800; cursor: pointer; }
.helper-task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.helper-task-list button { width: 100%; text-align: start; padding: 10px 12px; border: 1px solid #e6eae7; border-radius: 12px; background: #fff; font: inherit; color: #1d2a23; cursor: pointer; display: grid; gap: 2px; }
.helper-task-list button:hover { border-color: #1f4d36; }
.helper-task-list small, .helper-checklist small { color: #5b6861; font-size: 12.5px; }
.helper-task ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.helper-task li { display: grid; grid-template-columns: 32px 1fr; gap: 6px; align-items: start; padding: 8px; border-radius: 12px; background: #fafbfa; }
.helper-task li.done span { color: #5b6861; text-decoration: line-through; }
.helper-task li .helper-link { grid-column: 2; justify-self: start; }
.helper-step-check { width: 32px; height: 32px; border: 0; background: transparent; color: #17734a; display: grid; place-items: center; cursor: pointer; }
.helper-step-check svg { width: 20px; height: 20px; }
.helper-cite { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 13px; }
.helper-cite a { color: #2c5b86; display: inline-flex; gap: 4px; align-items: center; }
.helper-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.helper-ok { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 12px; background: #e9f6ef; color: #17734a; margin: 0; }
.helper-ok svg { width: 20px; height: 20px; flex: none; }
.helper-alert { padding: 12px; border-radius: 14px; border: 1px solid #e6eae7; border-inline-start: 4px solid #2c5b86; background: #fff; display: grid; gap: 6px; }
.helper-alert.warning { border-inline-start-color: #8f5600; }
.helper-alert.critical { border-inline-start-color: #b42318; }
.helper-alert header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.helper-alert p { margin: 0; }
.helper-fix { color: #17734a; font-weight: 700; }
.helper-sev { display: inline-flex; gap: 4px; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #ebf2f9; color: #2c5b86; }
.helper-sev svg { width: 14px; height: 14px; }
.helper-sev.warning { background: #fdf4e3; color: #8f5600; }
.helper-sev.critical { background: #fdeceb; color: #b42318; }
.helper-alert-actions, .helper-alert-ops { display: flex; flex-wrap: wrap; gap: 6px; }
.helper-alert-ops button { border-style: dashed; color: #48534d; min-height: 32px; font-size: 12px; }
.helper-chart { margin: 4px 0 0; padding: 10px; border: 1px solid #e6eae7; border-radius: 12px; }
.helper-chart figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #48534d; }
.helper-chart figcaption button { border: 0; background: none; color: #2c5b86; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.helper-bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; margin-top: 18px; border-bottom: 1px solid #d6d2ca; }
.helper-bars span { position: relative; flex: 1; min-width: 4px; background: #2a78d6; border-radius: 4px 4px 0 0; }
.helper-bars span em { position: absolute; bottom: 100%; inset-inline-start: 50%; transform: translateX(-50%); padding: 2px 6px; border-radius: 6px; background: #16201b; color: #fff; font-size: 11px; font-style: normal; white-space: nowrap; opacity: 0; pointer-events: none; }
.helper-bars span:hover em { opacity: 1; }
.helper-chart table, .issues-board table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.helper-chart td { padding: 4px 6px; border-bottom: 1px solid #eef0ee; }
.helper-chart td + td { text-align: end; font-variant-numeric: tabular-nums; }
.helper-progress { position: relative; height: 30px; border-radius: 999px; background: #f1efeb; overflow: hidden; }
.helper-progress span { position: absolute; inset-block: 0; inset-inline-start: 0; background: #cfe9da; }
.helper-progress b { position: relative; display: block; padding: 4px 12px; font-size: 13px; color: #17734a; }
.helper-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.helper-checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 10px; border-radius: 12px; background: #fafbfa; }
.helper-checklist li > svg { width: 20px; height: 20px; color: #9aa6a0; }
.helper-checklist li.done > svg { color: #17734a; }
.helper-checklist li.verify > svg { color: #8f5600; }
.helper-checklist div { display: grid; gap: 2px; }
.helper-checklist span { display: flex; gap: 6px; margin-top: 4px; }
.helper-issues ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.helper-issues li { padding: 8px 10px; border-radius: 10px; background: #fafbfa; display: grid; }
.helper-issues small { color: #5b6861; }
.helper-confirm { position: absolute; inset: auto 12px 12px; z-index: 2; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #d5ddd8; box-shadow: 0 18px 40px rgba(20, 30, 25, .25); display: grid; gap: 6px; }
.helper-confirm p { margin: 0; }
.helper-confirm div { display: flex; gap: 8px; margin-top: 6px; }
.issue-form { display: grid; gap: 10px; }
.issue-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: #33413a; }
.issue-form input:not([type="checkbox"]):not([type="file"]), .issue-form select, .issue-form textarea { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #d5ddd8; border-radius: 12px; background: #fafbfa; color: #1d2a23; font: inherit; font-size: 14px; font-weight: 400; }
.issue-form .issue-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; }
.issue-form .issue-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.issue-form .issue-files { display: flex; align-items: center; gap: 8px; }
.issue-files svg { width: 18px; height: 18px; }
.issue-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12px; }
.issue-file-list li { display: flex; justify-content: space-between; align-items: center; }
.issue-file-list button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; }
.issue-diagnostics { display: block; padding: 6px 10px; border-radius: 8px; background: #f1efeb; color: #48534d; font-size: 12px; overflow-wrap: anywhere; direction: ltr; text-align: start; }
.issue-muted { color: #5b6861; font-size: 12px; margin: 0; }
.issue-error { color: #b42318; font-size: 13px; font-weight: 700; margin: 0; }
.issue-form button[type="submit"] { min-height: 46px; border: 0; border-radius: 12px; background: #c2410c; color: #fff; font: inherit; font-weight: 800; display: inline-flex; justify-content: center; align-items: center; gap: 8px; cursor: pointer; }
.issue-form button[type="submit"] svg { width: 18px; height: 18px; }
.issue-done { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 12px; border-radius: 14px; background: #e9f6ef; color: #17734a; }
.issue-done svg { width: 32px; height: 32px; }
.issue-done p { margin: 0; }
.helper-body .spin, .issue-form .spin { animation: helper-spin 1s linear infinite; }
@keyframes helper-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .helper-body .spin, .issue-form .spin { animation: none; } }
@media print {
  body[data-helper-print] * { visibility: hidden; }
  body[data-helper-print] .helper-panel, body[data-helper-print] .helper-panel * { visibility: visible; }
  body[data-helper-print] .helper-panel { display: flex !important; position: absolute; inset: 0 0 auto 0; width: auto; max-height: none; box-shadow: none; border: 0; }
  body[data-helper-print] .helper-panel .assistant-head button, body[data-helper-print] .helper-tabs, body[data-helper-print] .helper-toolbar, body[data-helper-print] .helper-alert-ops, body[data-helper-print] .helper-alert-actions { display: none; }
  body[data-helper-print] .helper-body { overflow: visible; }
}

/* ---- V97: phone touch targets inside the merchant / POS helper (44px, WCAG 2.5.8) ---- */
@media (max-width: 767px) {
  .helper-tabs button, .helper-chips button, .helper-alert-actions button, .helper-alert-actions a, .helper-checklist span button, .helper-toolbar button, .helper-link, .helper-back, .helper-alert-ops button, .helper-confirm button, .helper-body .helper-primary, .issue-done button, .helper-step-check, .helper-chart figcaption button, .issue-file-list button { min-height: 44px; min-width: 44px; }
  .helper-tabs { overflow-x: auto; }
}
