/*
 * AI Room Design — Judy's line, the style tiles and the before/after slider (the card itself is core/tools-ai.js's).
 * Source: sites/dreamy-tools/tools/ai-room-design/tool.css (Dash repo); loaded after core/tools.css on this tool only.
 */
.ard-form .chqt-ai { margin-top: 0; }
.ard-card .chqt-ai-f { border-top: 0; padding-top: 0; } /* one feature, no line to part it from the heading */
.ard-rule { font-weight: 600; background: var(--chqt-cream); border-radius: 10px; padding: 8px 12px; }
.ard-card .chqt-ai-ph { min-height: 48px; display: inline-flex; align-items: center; }
.ard-card [data-phn] { display: none; } /* the page says it in its own words: "not kept" is said of us only (Judy 3.1) */
.ard-thumb { display: block; max-height: 96px; max-width: 160px; border-radius: 8px; object-fit: cover; }
.ard-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 2px 0 4px; }
.ard-tile { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px; font: inherit; font-size: 15px; text-align: left; color: var(--chqt-ink); background: #fff; border: 1.5px solid var(--chqt-line); border-radius: 10px; cursor: pointer; }
.ard-tile[aria-pressed="true"] { border-color: var(--chqt-accent); box-shadow: 0 0 0 2px var(--chqt-accent) inset; font-weight: 700; }
.ard-sw { display: inline-flex; flex: none; width: 36px; height: 24px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(43, 37, 34, .2); }
.ard-sw i { flex: 1; }
.ard-why { display: inline-block; padding: 10px 0; }
/* the before/after: the AI picture under, the photo over it clipped to the slider's split (--ard-x) */
.ard-ba { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #f4efe6; margin: 6px 0 10px; }
.ard-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ard-ba[data-state="done"] .ard-before { clip-path: inset(0 calc(100% - var(--ard-x, 50%)) 0 0); }
.ard-ba[data-state="done"]::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--ard-x, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); pointer-events: none; }
.ard-tag { position: absolute; top: 8px; z-index: 2; display: none; padding: 3px 8px; border-radius: 6px; font-size: 14px; font-weight: 700; color: #fff; background: rgba(27, 27, 27, .78); pointer-events: none; }
.ard-tag--before { left: 8px; }
.ard-tag--ai { right: 8px; }
.ard-ba[data-state="photo"] .ard-tag--before, .ard-ba[data-state="done"] .ard-tag { display: block; }
.ard-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 16px; text-align: center; color: #6b625b; }
.ard-ba:not([data-state="empty"]) .ard-empty { display: none; }
.ard-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; font-size: 16px; background: transparent; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ard-range::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.ard-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; margin-top: -20px; border-radius: 50%; background: #fff; border: 2px solid #1b1b1b; }
.ard-range::-moz-range-thumb { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid #1b1b1b; }
.ard-range::-moz-range-track { background: transparent; }
.ard-idea { font-size: 14px; color: #6b625b; margin: 4px 0 10px; }
.ard-mail { margin-top: 8px; }
/* RM4: the AI examples — one viewer, a room and a style at a time (Judy 4.1: "AI picture" on the picture itself) */
.ard-gal { margin: 28px 0 8px; max-width: 760px; }
.ard-gal-h { margin: 0 0 6px; }
.ard-gal-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ard-gal-pick button { min-height: 44px; padding: 6px 12px; font: inherit; font-size: 16px; color: var(--chqt-ink); background: #fff; border: 1.5px solid var(--chqt-line); border-radius: 999px; cursor: pointer; }
.ard-gal-pick button[aria-pressed="true"] { border-color: var(--chqt-accent); box-shadow: 0 0 0 2px var(--chqt-accent) inset; font-weight: 700; }
.ard-gal .ard-ba { aspect-ratio: var(--ard-r, 3 / 2); margin: 8px 0 6px; }
.ard-gal .ard-before { clip-path: inset(0 calc(100% - var(--ard-x, 50%)) 0 0); }
.ard-gal .ard-ba::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--ard-x, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); pointer-events: none; }
.ard-gal .ard-tag { display: block; }
.ard-credit { font-size: 14px; color: #6b625b; margin: 0 0 4px; }
.ard-gal-note { font-size: 14px; font-weight: 600; margin: 0; }
