#artworkReader{width:min(880px,94vw);max-height:88dvh;padding:clamp(20px,4vw,36px);color:#282839}
#artworkReader .art-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
#artworkReader h2{font-size:clamp(25px,4vw,36px);margin:10px 0}
#artworkReader p{line-height:1.65}#artworkReader .art-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}#artworkReader .art-actions button{flex:1;min-width:130px}
#artworkReader .art-preview{display:block;max-width:100%;max-height:38dvh;margin:16px auto;border-radius:14px;object-fit:contain}
#artworkReader [hidden]{display:none!important}#artworkReader .art-result{border:1px solid #fff;border-radius:24px;padding:24px;background:#ffffffb8;margin-top:20px}#artworkReader .art-result h3{font-size:36px;margin:8px 0}#artworkReader .art-reference{max-width:180px;max-height:240px;object-fit:contain;border-radius:8px;float:right;margin:0 0 12px 16px}#artworkReader .art-note{font-size:14px;color:#626270}#artworkReader #artStatus{min-height:1.7em;color:#365c47;font-weight:600}#artworkReader #artRead{background:linear-gradient(120deg,#b89be7,#7345d3);color:white;width:100%;margin:8px 0}#artworkReader::backdrop{background:#20232a99;backdrop-filter:blur(6px)}

body .voice-actions #openPhotoOCR svg{color:#2463dc!important;stroke:#2463dc!important;fill:none!important}
#artDescription{clear:both;font-size:18px}#artCaption{font-size:16px;color:#545460}@media(max-width:480px){#artworkReader .art-reference{max-width:110px;max-height:160px}#artworkReader .art-result{padding:18px}}

#artGalleryDialog{width:min(980px,95vw);height:90dvh;max-height:92dvh;padding:12px;overflow:hidden}#closeArtGallery{display:block;margin:0 0 8px auto;min-width:44px;min-height:44px}#artGalleryFrame{display:block;width:100%;height:calc(100% - 60px);border:0;border-radius:18px}.open-art-gallery{margin:8px 0}#artGalleryDialog::backdrop{background:#20232a99}
body #artworkReader .open-art-gallery,body .header-actions .open-art-gallery{display:flex!important;align-items:center;justify-content:center;min-height:56px!important;padding:15px 24px!important;border-radius:32px!important;border:1px solid #fff5e7!important;background:linear-gradient(135deg,#ffe2b5,#f5a855 60%,#ee9342)!important;box-shadow:inset 0 2px 7px #fff9,0 8px 24px #eb9b5370!important;color:#603510!important;font-weight:700;font-size:18px!important;white-space:normal;line-height:1.5}body #artworkReader .open-art-gallery{width:100%;margin:8px 0 18px}#artGalleryDialog{margin:auto!important;inset:0}#artGalleryFrame{margin:0 auto}

body #artworkReader button.open-art-gallery[hidden]{display:none!important}

#artCameraDialog{box-sizing:border-box;width:min(900px,96vw);max-width:96vw;height:min(94dvh,1000px);max-height:94dvh;margin:auto;padding:16px;overflow:auto;background:#172125;color:#fff;border:1px solid #ffffff70;border-radius:24px;box-shadow:0 20px 70px #0009}
#artCameraDialog::backdrop{background:#101820d9;backdrop-filter:blur(6px)}
#artCameraDialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}#artCameraDialog h2{font-size:clamp(20px,3vw,28px);margin:4px 0}#artCameraDialog button{min-height:48px;padding:12px 20px;border-radius:28px;font-size:17px;color:#183229;background:#fff;border:1px solid #ddd;cursor:pointer}#artCameraDialog button:disabled{opacity:.5;cursor:default}
#artCameraDialog .camera-hint{font-size:clamp(17px,2.5vw,22px);text-align:center;margin:12px 0;line-height:1.4}#artCameraDialog .camera-stage{position:relative;min-height:160px;height:calc(94dvh - 245px);max-height:690px;overflow:hidden;border-radius:16px;background:#080c0d}#artCameraDialog .camera-stage[hidden]{display:none!important}#artCameraDialog video{display:block;width:100%;height:100%;object-fit:cover}
#artCameraDialog .camera-frame{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:82%;width:auto;aspect-ratio:53/72;max-width:86%;border:2px solid #fff;border-radius:3px;box-shadow:0 0 0 200vmax #0006;pointer-events:none}#artCameraDialog .camera-frame i{position:absolute;width:24px;height:24px;border:4px solid #70e5ff}#artCameraDialog .camera-frame i:nth-child(1){top:-4px;left:-4px;border-right:0;border-bottom:0}#artCameraDialog .camera-frame i:nth-child(2){top:-4px;right:-4px;border-left:0;border-bottom:0}#artCameraDialog .camera-frame i:nth-child(3){bottom:-4px;left:-4px;border-right:0;border-top:0}#artCameraDialog .camera-frame i:nth-child(4){bottom:-4px;right:-4px;border-left:0;border-top:0}
#artCameraDialog .camera-status{margin:8px 0;line-height:1.5}#artCameraDialog .camera-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}#artCameraDialog .camera-capture{background:#85e5f7;color:#102a33;font-weight:700;min-width:140px}#artCameraDialog .camera-native{font-size:14px;background:#263b43;color:#fff;border-color:#78909c}@media(max-height:500px){#artCameraDialog{height:96dvh;max-height:96dvh;padding:10px}#artCameraDialog .camera-stage{height:45dvh}#artCameraDialog .camera-hint{margin:6px;font-size:15px}}

#artCameraDialog .camera-orientation{display:flex;justify-content:center;gap:10px;margin:8px 0 12px;flex-wrap:wrap}#artCameraDialog .camera-orientation button{font-size:16px;min-height:44px;padding:8px 16px;background:#263b43;color:white;border-color:#78909c}#artCameraDialog .camera-orientation button[aria-pressed="true"]{background:#85e5f7;color:#102a33;border-color:#85e5f7;font-weight:700}#artCameraDialog .camera-stage{height:calc(94dvh - 305px)}@media(max-height:500px){#artCameraDialog .camera-stage{height:40dvh}}

/* Large result image, with its complete canvas kept visible. */
#artworkReader .art-result{scroll-margin-top:16px}
#artworkReader .art-result .art-reference{display:block;float:none;width:100%;height:auto;max-width:100%;max-height:65dvh;object-fit:contain;border-radius:12px;margin:0 auto 24px}
#artworkReader #artDescription{font-size:clamp(19px,2.6vw,24px);line-height:1.85;padding:18px;border:2px solid transparent;border-radius:16px;transition:background-color .2s,border-color .2s,color .2s}
#artworkReader #artDescription[data-speaking="true"]{background:#fff0c9;border-color:#c58b24;color:#33270d}
@media(prefers-reduced-motion:reduce){#artworkReader #artDescription{transition:none}}

/* Keep camera controls readable under the site's global glass theme. */
body dialog#artCameraDialog{background:linear-gradient(135deg,#f8f6f0,#e0edf3)!important;color:#243447!important}
body #artCameraDialog .camera-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;background:none;border:0;box-shadow:none}
body #artCameraDialog #artCameraHeading{color:#243447!important;-webkit-text-fill-color:#243447!important;font-size:clamp(22px,3vw,30px);font-weight:750;margin:0;text-shadow:none!important;opacity:1!important}
body #artCameraDialog .camera-hint,body #artCameraDialog .camera-status{color:#243447!important}
body #artCameraDialog .camera-orientation{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 14px}
body #artCameraDialog .camera-orientation button{display:block!important;min-width:0!important;width:100%!important;min-height:52px!important;padding:10px 6px!important;background:#f8fcff!important;color:#243447!important;-webkit-text-fill-color:#243447!important;border:2px solid #bdcbd5!important;border-radius:18px!important;font-size:clamp(13px,2.2vw,18px)!important;line-height:1.4;white-space:normal!important;overflow-wrap:break-word;box-shadow:none!important}
body #artCameraDialog .camera-orientation button[aria-pressed="true"]{background:#c3eaff!important;border-color:#2167ac!important;color:#143b63!important;font-weight:750!important;box-shadow:inset 0 0 0 1px #2167ac!important}
body #artCameraDialog .camera-close,body #artCameraDialog .camera-native{color:#243447!important;background:#fff!important;-webkit-text-fill-color:#243447!important}
body #artCameraDialog .camera-capture{color:#143b63!important;background:#c3eaff!important;-webkit-text-fill-color:#143b63!important}
