/* Amara assistant, Ask Point Turkey, Report. Mobile first; token fallbacks keep it working without pt.css. */
.as-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.as-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.as-muted { color: var(--pt-text-2); font-size: .875rem; margin: .25rem 0; }
.as-fine { color: var(--pt-text-2); font-size: .75rem; line-height: 1.45; margin: 10px 20px 16px; }
.as-iconbtn { min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 8px; color: inherit; }
.as-iconbtn:focus-visible, .as-chip:focus-visible, .as-linkbtn:focus-visible { outline: 3px solid var(--pt-ring); outline-offset: 2px; }
.as-linkbtn { min-height: 44px; border: 0; background: none; padding: 0 .25rem; color: var(--pt-text-2); text-decoration: underline; cursor: pointer; font: inherit; }
.as-askpt-open { min-height: 44px; }

/* Amara: inline chat card in the listing column (DESIGN_V2: elegant, never floating over the action bar) */
.as-panel { display: flex; flex-direction: column; background: var(--pt-surface); color: var(--pt-text); }
.as-panel[hidden] { display: none; }
.as-panel--inline { margin: 8px 0 36px; border: 1px solid var(--pt-border); border-radius: var(--pt-r-xl); box-shadow: var(--pt-shadow-2); overflow: hidden; scroll-margin-top: calc(var(--pt-header-h, 72px) + 16px); }
.as-panel__head { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: linear-gradient(180deg, var(--pt-surface-2), var(--pt-surface)); border-bottom: 1px solid var(--pt-border); }
.as-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--pt-primary-soft); color: var(--pt-primary-600); box-shadow: 0 0 0 1px var(--pt-primary-soft-2); }
.as-avatar svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.as-panel__head h2 { margin: 0; font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
.as-panel__head .as-muted { margin: 2px 0 0; }
.as-log { max-height: 340px; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; background: var(--pt-surface); }
.as-msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; line-height: 1.5; font-size: .9375rem; overflow-wrap: anywhere; }
.as-msg p { margin: 0 0 .4rem; }
.as-msg p:last-child { margin-bottom: 0; }
.as-msg--bot { align-self: flex-start; background: var(--pt-surface-3); border-bottom-left-radius: 6px; }
.as-msg--user { align-self: flex-end; background: var(--pt-ink, var(--pt-text)); color: #fff; border-bottom-right-radius: 6px; }
.as-msg--pending { opacity: .75; font-style: italic; }
.as-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; align-items: center; }
.as-actions .as-muted { flex-basis: 100%; margin: 0; }
.as-sources { flex-basis: 100%; font-size: .8rem; }
.as-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.as-suggest[hidden] { display: none; }
.as-chip { min-height: 44px; padding: 8px 16px; border: 1px solid var(--pt-border-strong); background: var(--pt-surface); border-radius: var(--pt-r-pill); cursor: pointer; font: inherit; font-size: .875rem; font-weight: 500; color: var(--pt-text); transition: background .16s var(--pt-ease), border-color .16s var(--pt-ease); }
.as-chip:hover { background: var(--pt-surface-2); border-color: var(--pt-text-3); }
.as-note { margin: 0 20px; min-height: 1.1rem; font-size: .8rem; color: var(--pt-text-2); }
.as-form { display: flex; gap: 8px; margin: 4px 16px 0; padding: 6px 6px 6px 16px; align-items: flex-end; border: 1px solid var(--pt-border-strong); border-radius: var(--pt-r-xl); background: var(--pt-surface); transition: border-color .16s var(--pt-ease), box-shadow .16s var(--pt-ease); }
.as-form:focus-within { border-color: var(--pt-primary); box-shadow: 0 0 0 3px var(--pt-ring); }
.as-input { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 10px 0; border: 0; background: transparent; font: inherit; color: var(--pt-text); line-height: 1.4; }
.as-input:focus { outline: none; }
.as-send { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: var(--pt-r-pill); background: var(--pt-primary); color: var(--pt-on-primary, #fff); font: inherit; font-weight: 600; cursor: pointer; }
.as-send:hover { background: var(--pt-primary-600); }
.as-send:disabled { opacity: .6; cursor: default; }
.as-send:focus-visible { outline: 3px solid var(--pt-ring); outline-offset: 2px; }
.as-send svg { width: 18px; height: 18px; }
@media (max-width: 479px) { .as-send { padding: 0; } .as-send__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
body.as-open { overflow: auto; }

/* dialogs */
.as-dialog { border: 0; padding: 0; border-radius: var(--pt-r-xl); box-shadow: var(--pt-shadow-3); width: min(560px, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); color: var(--pt-text); background: var(--pt-surface); }
.as-dialog::backdrop { background: var(--pt-overlay); }
.as-dialog__box { padding: 1rem 1.1rem 1.25rem; overflow-y: auto; max-height: calc(100vh - 2rem); }
.as-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.as-dialog__head h2 { margin: 0; font-size: 1.2rem; }
.as-consent__label { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; line-height: 1.4; }
.as-consent__label input { margin-top: .2rem; width: 22px; height: 22px; flex: none; }
.as-done { padding: 1rem 0; }
.as-done[hidden] { display: none; }
.as-page { max-width: 640px; }
.as-page .as-muted { font-size: 1rem; margin: 0 0 var(--pt-s5); }
@media (max-width: 480px) {
  .as-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .as-panel, .as-dialog { transition: none; } }



/* dialog forms (Ask Point Turkey, Report): tidy labels, help and spacing without touching kit classes */
.as-dialog .pt-stack { display: flex; flex-direction: column; gap: 16px; }
.as-dialog .pt-field { display: flex; flex-direction: column; gap: 6px; }
.as-dialog .pt-help { margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--pt-text-2); }
.pt-askpt__form .pt-error { margin: 0; min-height: 0; }
.pt-askpt__form .pt-error:empty { display: none; }
.as-dialog textarea.pt-textarea { min-height: 112px; padding-top: 12px; }
.as-dialog .as-dialog__head { padding-bottom: 8px; }
.as-dialog .as-dialog__box > .as-muted { margin: 0 0 16px; }
.as-dialog [data-askpt-body] > .as-muted { margin: 0 0 16px; }
.as-dialog .pt-btn[type="submit"] { width: 100%; min-height: 48px; }
.as-iconbtn { background: var(--pt-surface-3); border-radius: 50%; font-size: 1.4rem; }
.as-iconbtn:hover { background: var(--pt-border); }
