/* DOBAY v545: history is optional, inert/read-only, scoped to authorized chat shell. */
#dfa-chat .dfa-v545-control-section{padding:9px 10px 10px;border-bottom:1px solid rgba(176,38,109,.12)}
#dfa-chat .dfa-v545-control-title{font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#9a366b;margin:4px 8px 7px}
#dfa-chat .dfa-v545-control-btn{display:flex;align-items:center;gap:11px;width:100%;border:0;border-radius:10px;background:transparent;padding:10px 12px;min-height:39px;text-align:left;color:#182342;font-size:13px;font-weight:750;cursor:pointer}
#dfa-chat .dfa-v545-control-btn:hover,#dfa-chat .dfa-v545-control-btn:focus-visible{background:#fff0f7;outline:2px solid transparent;color:#ba126e}
#dfa-chat .dfa-v545-control-symbol{font-size:20px;color:#ce1479;line-height:1;flex-shrink:0;width:23px;text-align:center}
#dfa-chat .dfa-v545-history-layer[hidden]{display:none!important}
#dfa-chat .dfa-v545-history-layer{position:absolute;inset:0;z-index:215;display:flex;align-items:center;justify-content:center;padding:10px;background:rgba(17,15,32,.5);box-sizing:border-box}
#dfa-chat .dfa-v545-history-dialog{position:relative;width:min(100%,540px);max-height:min(80vh,720px);display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid rgba(201,18,111,.22);border-radius:20px;box-shadow:0 20px 65px rgba(22,10,40,.26);color:#19213a}
#dfa-chat .dfa-v545-history-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 17px;border-bottom:1px solid #f1dbe6}
#dfa-chat .dfa-v545-history-head strong{font-size:16px;line-height:1.3}
#dfa-chat .dfa-v545-history-x{background:#fff3f8;border:1px solid #f0cbdc;border-radius:50%;width:34px;height:34px;color:#9b1759;cursor:pointer;flex:none;font-size:21px}
#dfa-chat .dfa-v545-history-content{padding:13px;overflow-y:auto;overscroll-behavior:contain;min-height:80px}
#dfa-chat .dfa-v545-history-btn{border:1px solid #ebc3d5;background:#fff4f9;color:#b20c63;padding:9px 12px;border-radius:10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;min-height:36px}
#dfa-chat .dfa-v545-history-btn.is-primary{background:#cf0a74;color:#fff;border-color:#cf0a74}
#dfa-chat .dfa-v545-history-btn:focus-visible,#dfa-chat .dfa-v545-history-x:focus-visible{outline:3px solid #8bc8fe;outline-offset:2px}
#dfa-chat .dfa-v545-history-row{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:11px 5px;border-bottom:1px solid #f4e1ea}
#dfa-chat .dfa-v545-history-row-main{flex:1;min-width:0}
#dfa-chat .dfa-v545-history-row-title{font-weight:750;font-size:12px;overflow-wrap:anywhere}
#dfa-chat .dfa-v545-history-row-time{display:block;font-size:11px;color:#6f7485;padding-top:4px}
#dfa-chat .dfa-v545-history-row-actions{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
#dfa-chat .dfa-v545-history-row-actions .dfa-v545-history-btn{padding:6px 8px;min-height:30px}
#dfa-chat .dfa-v545-history-copy{font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
#dfa-chat .dfa-v545-history-bubble{border-radius:12px;background:#f8f7fb;padding:9px 11px;margin:8px 0;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
#dfa-chat .dfa-v545-history-bubble.is-user{background:#fff0f8;margin-left:15px}
#dfa-chat .dfa-v545-history-note{font-size:11px;line-height:1.45;color:#666476;margin:10px 0}
#dfa-chat .dfa-v545-history-controls{display:flex;gap:8px;flex-wrap:wrap;padding:12px 14px;border-top:1px solid #f1dbe6}
#dfa-chat .dfa-v545-history-input{display:block;box-sizing:border-box;width:100%;border:1px solid #dbb6cb;border-radius:9px;padding:10px;font:inherit;color:#19213a}
#dfa-chat .dfa-v545-history-error{font-size:12px;color:#b11256;line-height:1.4}
#dfa-chat > .dfa-compact-header-v542 .dfa-v542-quick-actions > #dfa-wa-header{background:#25D366!important;border-color:#1dba55!important;color:#fff!important;box-shadow:0 3px 12px rgba(37,211,102,.23)!important}
#dfa-chat > .dfa-compact-header-v542 .dfa-v542-quick-actions > #dfa-wa-header svg,#dfa-chat > .dfa-compact-header-v542 .dfa-v542-quick-actions > #dfa-wa-header svg *{fill:#fff!important;stroke:#fff!important}
#dfa-chat > .dfa-compact-header-v542 .dfa-v542-quick-actions > #dfa-wa-header:hover{background:#1db954!important}
@media(max-width:390px){#dfa-chat .dfa-v545-history-layer{padding:5px}#dfa-chat .dfa-v545-history-dialog{max-height:88%;border-radius:14px}#dfa-chat .dfa-v545-history-row{align-items:flex-start;flex-direction:column}#dfa-chat .dfa-v545-history-row-actions{justify-content:flex-start}}

/* v547: full, readable passive archive; no modification to conversation runtime or mode buttons */
#dfa-chat .dfa-v545-history-layer.is-archive-view .dfa-v545-history-dialog{height:min(92%,740px);max-height:92%}
#dfa-chat .dfa-v545-history-layer.is-archive-view .dfa-v545-history-content{flex:1;min-height:0}
#dfa-chat .dfa-v545-archive-title{font-size:14px;font-weight:800;overflow-wrap:anywhere;margin:0 0 10px;color:#8b1252}
#dfa-chat .dfa-v545-history-btn:disabled{opacity:.62;cursor:progress}
@media(max-width:390px){#dfa-chat .dfa-v545-history-layer.is-archive-view .dfa-v545-history-dialog{height:94%;max-height:94%}}

/* v548: historical product cards and confirmed event snapshots are inert. */
#dfa-chat .dfa-v548-archive-products{margin:12px 0;padding:12px 8px;background:#fff8fb;border:1px solid #efd9e4;border-radius:14px}
#dfa-chat .dfa-v548-section-title{display:block;color:#821248;font-size:13px;margin:0 4px 7px}
#dfa-chat .dfa-v548-product-grid,#dfa-chat .dfa-v548-live-archive-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:10px 0}
#dfa-chat .dfa-v548-archive-product{box-sizing:border-box;min-width:0;border:1px solid rgba(197,39,109,.13);border-radius:12px;padding:8px;background:#fff;display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere;pointer-events:none}
#dfa-chat .dfa-v548-archive-product img{display:block;width:100%;max-height:146px;aspect-ratio:1/1;object-fit:contain;border-radius:9px;background:#f7f8fa}
#dfa-chat .dfa-v548-archive-product strong{font-size:11px;line-height:1.4;color:#15233b}
#dfa-chat .dfa-v548-product-subtitle,#dfa-chat .dfa-v548-product-stock,#dfa-chat .dfa-v548-archive-product small{font-size:10px;color:#64667a;line-height:1.4}
#dfa-chat .dfa-v548-product-price{font-size:11px;font-weight:750;color:#9d1557}
#dfa-chat .dfa-v548-operation-note{margin:9px 0;padding:11px;border-radius:12px;border:1px solid #d1eadb;background:#f3fff7;display:flex;flex-direction:column;gap:4px;font-size:11px;line-height:1.4}
#dfa-chat .dfa-v548-restored-banner{margin:10px;padding:10px;border-radius:12px;background:#fff1f8;color:#83234d;font-weight:700;font-size:11px;line-height:1.5}
#dfa-chat .dfa-v548-restored-row{opacity:.9}
#dfa-chat .dfa-v548-live-archive-products{max-width:100%;padding:0 12px}
@media(max-width:390px){#dfa-chat .dfa-v548-product-grid,#dfa-chat .dfa-v548-live-archive-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#dfa-chat .dfa-v548-archive-product{padding:6px}#dfa-chat .dfa-v548-archive-product img{max-height:110px}}

/* v549: readable chronological archive cards on both theme families; old live buttons are never replayed. */
#dfa-chat .dfa-v548-archive-products{border-color:rgba(178,35,98,.16);background:linear-gradient(160deg,#fff9fc,#fff)}
#dfa-chat .dfa-v548-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#dfa-chat .dfa-v548-archive-product{border-radius:14px;box-shadow:0 4px 15px rgba(44,15,39,.055)}
#dfa-chat .dfa-v545-history-content{overflow-wrap:anywhere;scrollbar-gutter:stable}
#dfa-chat .dfa-v545-history-row-title{font-size:12.5px;line-height:1.4}
#dfa-chat .dfa-v545-history-dialog{max-width:min(540px,100%)}
@media(max-width:390px){#dfa-chat .dfa-v545-history-content{padding:10px}#dfa-chat .dfa-v548-product-grid{gap:7px}}

/* v550: restored archive messages occupy the full chat lane; inert product showcase uses a full-width grid. */
#dfa-chat .dfa-v548-restored-row{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
#dfa-chat .dfa-v550-restored-entry{width:100%;max-width:100%;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:8px;box-sizing:border-box}
#dfa-chat .dfa-v550-restored-entry > .dfa-message{box-sizing:border-box;min-width:0;max-width:100%;width:fit-content;overflow-wrap:anywhere;flex:none}
#dfa-chat .dfa-v548-restored-row.user .dfa-v550-restored-entry > .dfa-message{align-self:flex-end}
#dfa-chat .dfa-v548-restored-row.assistant .dfa-v550-restored-entry > .dfa-message{align-self:flex-start}
#dfa-chat .dfa-v550-live-archive-products{display:block;width:100%;min-width:0;max-width:100%;margin:0;padding:12px;border:1px solid #f0d9e5;border-radius:18px;background:linear-gradient(145deg,#fff8fc,#fff);box-sizing:border-box;pointer-events:none}
#dfa-chat .dfa-v550-live-archive-title{display:block;font-size:12px;font-weight:800;color:#8d1450;margin-bottom:10px}
#dfa-chat .dfa-v550-live-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-width:100%;box-sizing:border-box}
#dfa-chat .dfa-v550-product-card{box-shadow:0 5px 16px rgba(41,17,35,.06)}
#dfa-chat .dfa-v550-product-meta{display:flex;gap:4px;flex-wrap:wrap;margin:2px 0 0}
#dfa-chat .dfa-v550-product-badge,#dfa-chat .dfa-v550-product-discount{background:#fff0f7;border:1px solid #f4ccdf;color:#a50d59;border-radius:9px;padding:3px 6px;font-size:10px;line-height:1.2}
#dfa-chat .dfa-v550-product-code{font-size:10px;color:#64748b}
#dfa-chat .dfa-v550-product-regular{font-size:10px;color:#97a0ac}
#dfa-chat .dfa-v548-archive-product .dfa-v548-product-price{font-weight:850;font-size:13px;color:#18223a}
#dfa-chat .dfa-v548-archive-product img{object-fit:contain;aspect-ratio:1/1;max-height:160px}
#dfa-chat .dfa-v545-history-layer .dfa-v548-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
@media(max-width:360px){#dfa-chat .dfa-v550-live-archive-products{padding:8px}#dfa-chat .dfa-v550-live-product-grid{gap:6px}#dfa-chat .dfa-v548-archive-product img{max-height:115px}}

/* v551 — readonly historical Smart Showcase, same horizontal layout vocabulary as live cards.
   Scope to history/restored snapshots only: active commerce, themes and composer remain untouched. */
#dfa-chat .dfa-v551-showcase{display:block;min-width:0;width:100%;max-width:100%;box-sizing:border-box;margin:10px 0 12px;padding:12px 11px 10px;background:linear-gradient(135deg,#fffaff,#fff3f9);border:1px solid #efd9e5;border-radius:19px;overflow:hidden;color:#18223a}
#dfa-chat .dfa-v551-showcase-title{display:block;font-size:12px;font-weight:850;line-height:1.5;margin:0 0 4px;color:#872450}
#dfa-chat .dfa-v551-showcase-caution{font-size:10px;line-height:1.5;color:#646478;margin:0 0 9px}
#dfa-chat .dfa-v551-showcase-track{display:flex;gap:12px;width:100%;max-width:100%;box-sizing:border-box;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;align-items:stretch;padding:4px 3px 9px;outline-offset:2px}
#dfa-chat .dfa-v551-showcase-track::-webkit-scrollbar{display:none}
#dfa-chat .dfa-v551-showcase-card{flex:0 0 clamp(188px,72%,236px);box-sizing:border-box;scroll-snap-align:start;display:flex;flex-direction:column;min-width:0;margin:0;border:1px solid #eddce7;background:#fff;border-radius:19px;overflow:hidden;box-shadow:0 9px 20px rgba(67,30,53,.075)}
#dfa-chat .dfa-v551-showcase-picture{display:flex;align-items:center;justify-content:center;height:197px;max-height:35vh;min-height:145px;margin:8px 8px 0;padding:5px;background:#f7f8fa;border:6px solid #fff;border-radius:14px;box-sizing:border-box;overflow:hidden}
#dfa-chat .dfa-v551-showcase-picture img{display:block;width:100%;height:100%;object-fit:contain;aspect-ratio:1/1;max-width:100%;max-height:100%;border-radius:9px}
#dfa-chat .dfa-v551-picture-fallback{font-size:11px;text-align:center;color:#8b92a3}
#dfa-chat .dfa-v551-showcase-details{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1;padding:10px 11px 12px;border-top:1px dotted #f2b8d3;box-sizing:border-box}
#dfa-chat .dfa-v551-showcase-badges{display:flex;flex-wrap:wrap;gap:5px;min-height:16px}
#dfa-chat .dfa-v551-showcase-chip{background:#fff0f6;color:#98214d;border:1px solid #f7d6e5;border-radius:11px;padding:3px 6px;font-size:10px;line-height:1.15}
#dfa-chat .dfa-v551-showcase-chip.is-stock{background:#f1fff9;color:#27634d;border-color:#d0f0e2}
#dfa-chat .dfa-v551-showcase-product-title{font-size:11px;font-weight:800;line-height:1.35;color:#202943;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:2.7em}
#dfa-chat .dfa-v551-showcase-code{font-size:10px;line-height:1.3;color:#75829a}
#dfa-chat .dfa-v551-showcase-subtitle{margin:0;color:#54566b;font-size:10px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#dfa-chat .dfa-v551-showcase-prices{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:auto;padding-top:5px;min-height:22px}
#dfa-chat .dfa-v551-showcase-regular{color:#9c9ead;font-size:10px}
#dfa-chat .dfa-v551-showcase-price{color:#17233e;font-size:13px;font-weight:850;white-space:nowrap}
#dfa-chat .dfa-v551-showcase-discount{background:#ffedf5;color:#9f2760;border-radius:8px;font-size:9px;padding:4px 5px;line-height:1.2}
#dfa-chat .dfa-v551-showcase-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding-top:4px}
#dfa-chat .dfa-v551-showcase-action{min-width:0;box-sizing:border-box;padding:8px 4px;border-radius:11px;border:1px solid #dcdfe9;color:#818498;background:#f7f7fa;font:inherit;font-size:10px;line-height:1.25;text-align:center;opacity:1;cursor:not-allowed}
#dfa-chat .dfa-v551-showcase-action.is-accent{color:#a46e8c;background:#ffeaf3;border-color:#f8d1e4}
#dfa-chat .dfa-v551-showcase-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 0;padding:0 4px}
#dfa-chat .dfa-v551-showcase-progress{height:5px;background:#f0deea;border-radius:99px;overflow:hidden;flex:1;max-width:210px}
#dfa-chat .dfa-v551-showcase-progress-bar{height:100%;width:8%;background:linear-gradient(90deg,#ad0e63,#da318d);border-radius:99px;display:block;transition:width .18s ease}
#dfa-chat .dfa-v551-showcase-controls{display:flex;gap:7px;flex:none}
#dfa-chat .dfa-v551-showcase-arrow{width:30px;height:29px;border:1px solid #f2d3e2;background:#fff;border-radius:11px;color:#b8176c;font-size:19px;line-height:1;font-family:inherit;cursor:pointer}
#dfa-chat .dfa-v551-showcase-arrow:disabled{opacity:.42;cursor:default}
#dfa-chat .dfa-v551-showcase-arrow:focus-visible,#dfa-chat .dfa-v551-showcase-track:focus-visible{outline:2px solid #6daeff;outline-offset:2px}
#dfa-chat .dfa-v545-history-content .dfa-v551-showcase{margin-inline:0}
#dfa-chat .dfa-v550-restored-entry > .dfa-v551-showcase{align-self:stretch;flex:0 0 auto}
@media(max-width:390px){#dfa-chat .dfa-v551-showcase{padding:10px 8px}#dfa-chat .dfa-v551-showcase-card{flex-basis:clamp(166px,78%,220px)}#dfa-chat .dfa-v551-showcase-picture{height:166px;min-height:138px;max-height:27vh}#dfa-chat .dfa-v551-showcase-track{gap:9px}}
@media(prefers-reduced-motion:reduce){#dfa-chat .dfa-v551-showcase-progress-bar{transition:none}#dfa-chat .dfa-v551-showcase-track{scroll-behavior:auto}}


/* v552 — historical carousel markup REUSES the exact Structured UI live classes.
   This file only fences historical rendering inside the archive layer. The live
   Structured UI stylesheet, theme presets, and commerce behavior are untouched. */
#dfa-chat .dfa-v552-archive-showcase{margin:10px 0 12px;min-width:0;width:100%;max-width:100%;box-sizing:border-box;overflow:hidden}
#dfa-chat .dfa-v552-archive-showcase .dfa-sui-product-rail{width:100%;max-width:100%;box-sizing:border-box;min-width:0}
#dfa-chat .dfa-v552-archive-showcase .dfa-sui-product-card{pointer-events:none;min-width:0}
#dfa-chat .dfa-v552-archive-showcase .dfa-sui-product-card:hover{transform:none;box-shadow:0 10px 26px rgba(15,23,42,.075),0 3px 10px rgba(var(--dfa-main-rgb,13,6,84),.045),inset 0 1px 0 rgba(255,255,255,.96)}
#dfa-chat .dfa-v552-archive-showcase .dfa-sui-actions{margin-top:10px;gap:6px}
#dfa-chat .dfa-v552-archive-showcase .dfa-v552-archive-action{pointer-events:none!important;cursor:default;opacity:.78!important;min-height:30px;box-sizing:border-box;text-align:center;user-select:none}
#dfa-chat .dfa-v552-archive-showcase .dfa-sui-action[data-tone="accent"]{box-shadow:none!important}
#dfa-chat .dfa-v552-archive-showcase .dfa-sui-product-card__image{pointer-events:none}
#dfa-chat .dfa-v552-archive-showcase .dfa-sui-product-rail{touch-action:pan-x pan-y}
#dfa-chat .dfa-v545-history-content .dfa-v552-archive-showcase{margin-inline:0}
#dfa-chat .dfa-v550-restored-entry > .dfa-v552-archive-showcase{align-self:stretch;flex:0 0 auto}
@media(max-width:390px){#dfa-chat .dfa-v552-archive-showcase{padding:11px 10px}}


/* v553 — exact live-component layout context inside the archive modal.
 * Root cause in v552: the modal is wider than an assistant message, so
 * percentage-based live showcase cards scaled larger than their live equivalents.
 * Limit ONLY history replays to the real responsive message-width contract;
 * retain the live Structured UI appearance, images and carousel CSS unchanged.
 */
#dfa-chat .dfa-v545-history-content .dfa-v552-archive-showcase,
#dfa-chat .dfa-v550-restored-entry > .dfa-v552-archive-showcase{
    width:100%;
    max-width:min(100%,var(--dfa-v553-live-showcase-width,318px));
    box-sizing:border-box;
    margin-inline-start:0;
    margin-inline-end:auto;
}
/* Dock Pro has a full-width live panel card override. A history modal is not
 * that panel: size its carousel against the original *message*, not modal.
 * The live Dock Pro selector is not modified or shadowed outside archive replays. */
#dfa-chat .dfa-v545-history-layer .dfa-v552-archive-showcase .dfa-sui-product-card,
#dfa-chat .dfa-v550-restored-entry .dfa-v552-archive-showcase .dfa-sui-product-card{
    flex:0 0 min(238px,78%);
    scroll-snap-align:start;
    contain-intrinsic-size:238px 356px;
}
/* Same live media semantics; use a consistent white image inset so the
 * portrait thumbnail never appears to touch the card edges in an archive. */
#dfa-chat .dfa-v552-archive-showcase .dfa-sui-product-card__media{
    aspect-ratio:1 / 1;
    padding:5px;
    box-sizing:border-box;
}
#dfa-chat .dfa-v552-archive-showcase .dfa-sui-product-card__image{
    border-radius:11px;
    padding:5px;
    background:rgba(var(--dfa-surface-rgb,255,255,255),.90);
}
/* Keep actual live button shape/colors, while archive actions remain inert.
 * This is visual parity, NOT a restoration of old cart or stock authority. */
#dfa-chat .dfa-v552-archive-showcase .dfa-v552-archive-action{
    opacity:1!important;
    pointer-events:none!important;
}
#dfa-chat .dfa-v552-archive-showcase .dfa-sui-actions{gap:7px}
@media (max-width:360px){
 #dfa-chat .dfa-v545-history-content .dfa-v552-archive-showcase,
 #dfa-chat .dfa-v550-restored-entry > .dfa-v552-archive-showcase{max-width:100%}
}

/* v554: sector-neutral local history controls; no live chat visual changes. */
#dfa-chat .dfa-v554-local-note{font-size:11px;line-height:1.5;padding:9px 12px;border-radius:12px;color:#7b2552;background:rgba(252,235,246,.82)}
#dfa-chat .dfa-v554-history-search{margin:10px 0 8px;min-height:42px;border-radius:12px;background:#fff8fc;outline-offset:2px}
#dfa-chat .dfa-v554-list-wrap{min-width:0}#dfa-chat .dfa-v554-list-wrap .dfa-v545-history-row[hidden]{display:none!important}
#dfa-chat .dfa-v554-paging{margin:10px 0 4px;display:flex;align-items:center;justify-content:center}
#dfa-chat .dfa-chat-input{position:relative}#dfa-chat .dfa-chat-input>.dfa-v554-consent-prompt{position:absolute;left:4px;right:4px;bottom:calc(100% + 7px);z-index:222;padding:12px;border:1px solid #edcae1;border-radius:15px;box-shadow:0 12px 32px rgba(60,12,45,.15);background:linear-gradient(150deg,#fff,#fff0f7);color:#242440;font-size:12px;line-height:1.5;max-width:100%;box-sizing:border-box;margin:4px 8px 7px}
#dfa-chat .dfa-v554-consent-prompt p{margin:5px 0 9px;font-size:11px;line-height:1.5;color:#53546c}
#dfa-chat .dfa-v554-consent-prompt strong{font-size:12px}
#dfa-chat .dfa-v554-consent-actions{display:flex;flex-wrap:wrap;gap:9px}#dfa-chat .dfa-v554-consent-actions button{min-height:38px}
#dfa-chat .dfa-v545-history-layer:focus-within{isolation:isolate}
@media(max-width:390px){#dfa-chat .dfa-v554-consent-prompt{margin:3px 5px 5px;padding:10px}#dfa-chat .dfa-v554-consent-actions button{flex:1}}


/* v555 — History LIST ONLY: one actual entry = one rounded card.  No phantom
 * separator rows, and no changes to archive/showcase/cart styles. */
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v545-history-content{
    padding:14px 13px 10px;min-width:0;box-sizing:border-box;
}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v554-list-wrap{
    display:flex;flex-direction:column;gap:9px;min-width:0;margin:10px 0 6px;
}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v554-list-wrap > .dfa-v545-history-row{
    display:flex;align-items:center;justify-content:space-between;gap:9px;
    margin:0;padding:11px 10px;border:1px solid #f1dce8;border-radius:15px;
    background:linear-gradient(135deg,#fffdfd 0%,#fff6fa 100%);
    box-shadow:0 5px 15px rgba(65,13,49,.045);box-sizing:border-box;min-width:0;
}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v555-history-info{
    display:flex;align-items:flex-start;gap:10px;min-width:0;flex:1;
}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v555-history-icon{
    flex:none;width:34px;height:34px;display:grid;place-items:center;
    border:1px solid #f5c8dd;background:linear-gradient(145deg,#fff,#ffeafa);
    border-radius:12px;color:#cf086b;font-size:21px;line-height:1;
}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v545-history-row-main{min-width:0;flex:1}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v545-history-row-title{
    color:#142044;font-size:12px;line-height:1.4;font-weight:800;overflow-wrap:anywhere;
}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v545-history-row-time{
    color:#778099;font-size:10.5px;padding-top:4px;
}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v545-history-row-actions{
    flex:none;align-items:center;gap:4px;flex-wrap:nowrap;justify-content:flex-end;
}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v545-history-row-actions .dfa-v545-history-btn{
    min-height:33px;padding:6px 7px;border-radius:9px;font-size:11px;
    color:#b10960;border:1px solid #f0bfd7;background:#fff8fc;
}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v545-history-row-actions .dfa-v545-history-btn:hover{
    background:#ffe8f4;border-color:#de88ae;
}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v555-history-searchbox{position:relative}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v555-history-searchbox:before{
    content:'⌕';position:absolute;left:12px;top:50%;transform:translateY(-50%);
    z-index:1;color:#c90072;font-size:23px;line-height:1;pointer-events:none;
}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v554-history-search{
    box-sizing:border-box;margin:2px 0 5px;padding-left:38px;background:#fff7fb;
    border:1px solid #efc6da;border-radius:13px;min-height:44px;
}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v555-privacy-footnote{
    text-align:center;color:#7d6781;background:#f9f7ff;margin:12px 0 0;
}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v545-history-controls{
    padding:12px 14px 14px;border-top:1px solid #f3dbe8;
}
#dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v545-history-controls .dfa-v545-history-btn.is-primary{
    flex:1;max-width:100%;min-height:43px;font-size:13px;
    background:linear-gradient(100deg,#e60080,#c00066);box-shadow:0 7px 17px rgba(203,16,105,.18);
}
@media(max-width:430px){
    #dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v554-list-wrap>.dfa-v545-history-row{
        align-items:stretch;flex-direction:column;gap:8px;padding:10px;
    }
    #dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v545-history-row-actions{
        justify-content:flex-end;align-self:flex-end;
    }
}
@media(prefers-reduced-motion:reduce){
    #dfa-chat .dfa-v545-history-layer.is-history-list .dfa-v545-history-row-actions .dfa-v545-history-btn{transition:none}
}
