/* Codee Connects: artwork, readable content, and persistent access to the tools. */
html.cc-art-enabled { scroll-padding-top: 125px; }
html.cc-art-enabled body { isolation: isolate; padding-bottom: calc(94px + env(safe-area-inset-bottom)) !important; }
.cc-art-wallpaper { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #06111c; }
.cc-art-wallpaper::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(3,12,22,.48),rgba(3,12,22,.94) 31%,rgba(3,12,22,.94) 69%,rgba(3,12,22,.48)); }
.cc-art-light .cc-art-wallpaper { background: #f2f6fa; }
.cc-art-light .cc-art-wallpaper::after { background: linear-gradient(90deg,#f2f6fabd,#f2f6faf5 31%,#f2f6faf5 69%,#f2f6fabd); }
.cc-art-ribbon { position: absolute; top: -100px; width: clamp(190px,24vw,370px); display: grid; gap: 26px; opacity: .36; transform: translate3d(0,calc(-1 * var(--cc-art-scroll,0px)),0) rotate(-8deg); }
.cc-art-ribbon:first-child { left: -5%; }
.cc-art-ribbon:nth-child(2) { right: -5%; top: -320px; transform: translate3d(0,calc(-.65 * var(--cc-art-scroll,0px)),0) rotate(8deg); }
.cc-art-ribbon img { display: block; width: 100%; height: auto; border: 1px solid #a6d7ed55; border-radius: 16px; box-shadow: 0 16px 45px #0008; }
.cc-art-sticky { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; max-width: none !important; margin: 0 !important; z-index: 800 !important; box-sizing: border-box; }
.cc-art-header-spacer { width: 100%; pointer-events: none; }
.cc-art-generated-header { display: flex; align-items: center; gap: 24px; padding: 17px max(20px,calc((100vw - 1200px)/2)); background: #081a28f5; border-bottom: 1px solid #70b8d64f; backdrop-filter: blur(16px); }
.cc-art-generated-header a { color: #e5f5ff !important; text-decoration: none; font: 600 14px/1.4 system-ui,sans-serif; }
.cc-art-generated-header a:first-child { margin-right: auto; font-weight: 800; }
#cc-quick-tools { position: fixed; z-index: 900; inset: auto 16px max(12px,env(safe-area-inset-bottom)); width: min(620px,calc(100% - 32px)); margin-inline: auto; padding: 7px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; border: 1px solid #70b8d66b; border-radius: 17px; background: #081a28f5; box-shadow: 0 14px 45px #0008; backdrop-filter: blur(16px); }
#cc-quick-tools a { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 8px; min-height: 52px; padding: 9px 8px; border: 1px solid #88cfea40; border-radius: 10px; text-align: center; text-decoration: none; background: #123047; color: #f2fbff !important; font: 750 14px/1.2 system-ui,sans-serif; transition: background .18s ease,transform .18s ease; }
#cc-quick-tools a:last-child { background: #b5e9ff; color: #072133 !important; }
#cc-quick-tools a:hover { transform: translateY(-2px); background: #28516b; }
#cc-quick-tools a:last-child:hover { background: #d2f2ff; }
#cc-quick-tools .cc-tool-icon { font-size: 19px; line-height: 1; }
#cc-quick-tools small { display: block; flex-basis: 100%; color: inherit; font: 450 10px/1.2 system-ui,sans-serif; opacity: .8; }
#cc-quick-tools a:focus-visible,#codee-art-gallery a:focus-visible,#codee-art-gallery button:focus-visible { outline: 3px solid #ffd780; outline-offset: 4px; }
#codee-art-gallery { box-sizing: border-box; margin: 32px auto 48px; padding: clamp(22px,4vw,48px); width: min(1280px,100%); border: 1px solid #79b5d14f; border-radius: 24px; background: linear-gradient(145deg,#0c2133f5,#06121ff5); color: #f1f8ff; overflow: hidden; }
#codee-art-gallery * { box-sizing: border-box; }
#codee-art-gallery .cc-art-intro { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
#codee-art-gallery .cc-art-eyebrow { color: #90dbf7 !important; font: 750 12px/1.5 system-ui,sans-serif; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 12px; }
#codee-art-gallery h2 { color: #fff !important; max-width: 20ch; font: 600 clamp(30px,4.5vw,58px)/1.05 Georgia,serif; letter-spacing: -.025em; margin: 0 0 15px; }
#codee-art-gallery .cc-art-description { color: #c4d9e8 !important; max-width: 63ch; font: 400 16px/1.65 system-ui,sans-serif; margin: 0; }
#codee-art-gallery .cc-art-controls { display: flex; align-items: center; gap: 8px; }
#codee-art-gallery button { min-width: 44px; min-height: 44px; border: 1px solid #7dbbd65c; border-radius: 9px; background: #123149; color: #eaf9ff; cursor: pointer; font: 650 14px/1 system-ui,sans-serif; padding: 10px 14px; }
#codee-art-gallery button:hover { background: #28516b; }
#codee-art-gallery .cc-art-track { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-color: #6fbdd9 #0b2030; scrollbar-width: thin; padding: 4px 1px 18px; }
#codee-art-gallery .cc-art-card { flex: 0 0 calc((100% - 40px)/3); min-width: 0; margin: 0; scroll-snap-align: start; border: 1px solid #7fb9d54a; border-radius: 15px; overflow: hidden; background: #0b1c2c; }
#codee-art-gallery .cc-art-card>a { display: block; color: inherit; text-decoration: none; }
#codee-art-gallery .cc-art-card img { display: block; width: 100%; height: auto; aspect-ratio: 9/16; object-fit: contain; background: #06111c; }
#codee-art-gallery .cc-art-caption { padding: 17px; }
#codee-art-gallery .cc-art-caption strong { display: block; color: #f2faff !important; font: 700 17px/1.3 system-ui,sans-serif; }
#codee-art-gallery .cc-art-caption span { display: block; margin-top: 7px; color: #9ad9ef !important; font: 450 13px/1.45 system-ui,sans-serif; }
#codee-art-gallery .cc-art-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
#codee-art-gallery .cc-art-footer p { flex: 1 1 260px; max-width: 65ch; margin: 0; color: #b6cad8 !important; font: 400 13px/1.6 system-ui,sans-serif; }
#codee-art-gallery .cc-art-bundle-link { display: inline-flex; align-items: center; min-height: 46px; padding: 12px 20px; border: 1px solid #b9eaff; border-radius: 9px; background: #b9eaff; color: #062033 !important; text-decoration: none; font: 750 14px/1.3 system-ui,sans-serif; }
#codee-art-gallery .cc-art-status { color: #a9c9db !important; font: 450 12px/1.5 system-ui,sans-serif; margin: 8px 0 0; }
@media(max-width:950px) { #codee-art-gallery .cc-art-card { flex-basis: calc((100% - 20px)/2); } }
@media(max-width:600px) {
 #codee-art-gallery { padding: 23px 15px; border-radius: 17px; margin: 24px auto 34px; }
 #codee-art-gallery .cc-art-track { gap: 13px; }
 #codee-art-gallery .cc-art-card { flex-basis: 87%; }
 #codee-art-gallery .cc-art-controls { width: 100%; justify-content: flex-end; }
 #codee-art-gallery .cc-art-caption { padding: 14px; }
 #cc-quick-tools { inset-inline: 8px; width: calc(100% - 16px); gap: 5px; padding: 6px; }
 #cc-quick-tools a { padding: 8px 3px; font-size: 12px; min-height: 51px; gap: 4px; }
 #cc-quick-tools .cc-tool-icon { font-size: 16px; }
 .cc-art-ribbon { opacity: .2; width: 210px; }
 .cc-art-wallpaper::after { background: #04101c70; }
}
@media(prefers-reduced-motion:reduce) { .cc-art-ribbon { transform: none !important; } #cc-quick-tools a { transition: none; } #codee-art-gallery .cc-art-track { scroll-behavior: auto !important; } }
@media print { .cc-art-wallpaper,#cc-quick-tools,.cc-art-controls { display: none !important; } html.cc-art-enabled body { padding-bottom: 0 !important; } }
