/* ===========================================================
   DeskKit Design Studio (js/premium-studio-panel.js) + the Premium
   template gallery of the creation flow (js/site-ai-generate.js).
   Colours are mixed from currentColor / the editor's own accent, so the
   panel reads in the editor's dark theme and in its light theme alike.
   Logical properties throughout (RTL + LTR).
   =========================================================== */

@media (min-width: 901px) {
  .bsx-panel[data-mode="studio"] { --bsx-panel-w: 420px; width: var(--bsx-panel-w); }
}
@media (min-width: 901px) and (max-width: 1180px) { .bsx-panel[data-mode="studio"] { --bsx-panel-w: 380px; } }
.dkps-line { border-color: color-mix(in srgb, currentColor 14%, transparent); }

/* top-bar button */
.bsx-btn.dkps-top { gap: 7px; }
#bsx-studio-btn.is-premium { background: linear-gradient(120deg, rgba(201,169,110,.22), rgba(110,139,255,.22)); border-color: rgba(201,169,110,.45); }
#bsx-studio-btn:not(.is-premium) { border: 1px dashed color-mix(in srgb, currentColor 40%, transparent); }
@media (max-width: 1679px) { #bsx-studio-btn span { display: none; } #bsx-studio-btn { width: 36px; padding: 0; justify-content: center; } }
@media (max-width: 760px) { #bsx-studio-btn { display: none; } }

/* Classic / Premium switch */
.dkps-tier { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.dkps-tier-opt { display: grid; gap: 3px; text-align: start; padding: 11px 12px; border-radius: 12px; cursor: pointer; font: inherit; color: inherit;
  background: color-mix(in srgb, currentColor 5%, transparent); border: 1px solid color-mix(in srgb, currentColor 14%, transparent); transition: border-color .2s, background .2s; }
.dkps-tier-opt b { font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dkps-tier-opt b em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #14B8A6; color: #04221f; }
.dkps-tier-opt span { font-size: 11.5px; opacity: .72; }
.dkps-tier-opt.is-on { border-color: var(--bsx-accent, #14B8A6); background: color-mix(in srgb, var(--bsx-accent, #14B8A6) 14%, transparent); box-shadow: 0 0 0 1px var(--bsx-accent, #14B8A6) inset; }
.dkps-tier-opt:focus-visible { outline: 2px solid var(--bsx-accent, #14B8A6); outline-offset: 2px; }
.dkps-intro { padding: 14px; border-radius: 14px; margin: 0 0 14px; background: linear-gradient(135deg, rgba(201,169,110,.16), rgba(110,139,255,.14)); border: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.dkps-intro h3 { margin: 0 0 6px; font-size: 15px; }
.dkps-intro p { margin: 0; font-size: 12.8px; line-height: 1.6; opacity: .85; }

/* tabs */
.dkps-tabs { display: flex; gap: 6px; margin: -16px -16px 16px; padding: 10px 16px; position: sticky; top: -16px; z-index: 3; overflow-x: auto; scrollbar-width: thin; overscroll-behavior-x: contain;
  background: var(--bsx-surface, #fff); border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
html:not(.hv-light):not(.dka-contrast-light) body.theme-v2 .bsx-panel-body .dkps-tabs { background: #0c111b; }
.dkps-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 600; color: inherit; cursor: pointer; white-space: nowrap;
  background: color-mix(in srgb, currentColor 5%, transparent); border: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.dkps-tab svg { width: 15px; height: 15px; opacity: .8; }
.dkps-tab.is-on { border-color: var(--bsx-accent, #14B8A6); color: var(--bsx-accent, #14B8A6); background: color-mix(in srgb, var(--bsx-accent, #14B8A6) 12%, transparent); }

/* group head + reset */
.dkps-ghead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.dkps-ghead .bsx-pgroup-title { margin: 0; }
.dkps-reset { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 11.5px; font-weight: 600; color: inherit; opacity: .7; background: none; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 8px; padding: 4px 8px; cursor: pointer; }
.dkps-reset:hover { opacity: 1; }
.dkps-reset svg { width: 13px; height: 13px; }
.dkps-link { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--bsx-accent, #14B8A6); cursor: pointer; text-decoration: underline; }

/* segmented choices (wrap when many) */
.dkps-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 10px; background: color-mix(in srgb, currentColor 6%, transparent); }
.dkps-seg button { flex: 1 1 auto; min-height: 32px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: 12.2px; font-weight: 600; color: inherit; opacity: .78; cursor: pointer; white-space: nowrap; }
.dkps-seg button.is-on { opacity: 1; background: var(--bsx-surface, #fff); color: var(--bsx-accent-dark, #0F766E); box-shadow: 0 1px 3px rgba(15,23,42,.14); }
html:not(.hv-light):not(.dka-contrast-light) body.theme-v2 .dkps-seg button.is-on { background: rgba(255,255,255,.12); color: #fff; }
.dkps-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.dkps-chip { font: inherit; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; cursor: pointer; color: inherit; background: color-mix(in srgb, currentColor 5%, transparent); border: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.dkps-chip.is-on { border-color: var(--bsx-accent, #14B8A6); color: var(--bsx-accent, #14B8A6); }

/* template / preset cards */
.dkps-cards { display: grid; gap: 12px; }
.dkps-cards.is-presets { grid-template-columns: 1fr 1fr; }
.dkps-card { display: block; text-align: start; border-radius: 14px; overflow: hidden; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); background: color-mix(in srgb, currentColor 3%, transparent); font: inherit; color: inherit; padding: 0; transition: border-color .2s, transform .25s; }
button.dkps-card { cursor: pointer; }
.dkps-card:hover { border-color: color-mix(in srgb, var(--bsx-accent, #14B8A6) 60%, transparent); }
.dkps-card.is-current { border-color: var(--bsx-accent, #14B8A6); box-shadow: 0 0 0 1px var(--bsx-accent, #14B8A6) inset; }
.dkps-card-img { display: block; width: 100%; aspect-ratio: 3 / 2; border: 0; padding: 0; margin: 0; background: color-mix(in srgb, currentColor 8%, transparent); cursor: pointer; overflow: hidden; }
.dkps-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.dkps-card:hover .dkps-card-img img { transform: scale(1.04); }
.dkps-card-body { display: grid; gap: 4px; padding: 10px 12px 12px; }
.dkps-card-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dkps-card-cat { font-size: 11.5px; opacity: .65; }
.dkps-card-body p, .dkps-card-desc { margin: 0; font-size: 12px; line-height: 1.5; opacity: .8; }
.dkps-card-actions { display: flex; gap: 6px; margin-top: 6px; }
.dkps-card-actions .bsx-btn { height: 32px; font-size: 12.5px; padding: 0 10px; }
.dkps-badge { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bsx-accent, #14B8A6); color: #04221f; }
.dkps-preset .dkps-card-img { aspect-ratio: 4 / 3; }
.dkps-pal { display: flex; border-radius: 6px; overflow: hidden; height: 14px; min-width: 70px; box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent); }
.dkps-pal i { flex: 1; }

/* colours */
.dkps-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-bottom: 10px; }
.dkps-colors.is-3 { grid-template-columns: repeat(3, 1fr); }
.dkps-colors.is-1 { grid-template-columns: 1fr; margin-top: 4px; }
.dkps-color { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dkps-color input[type="color"] { width: 36px !important; height: 34px !important; padding: 2px !important; flex: none; cursor: pointer; }
.dkps-color label { font-size: 12.3px; font-weight: 600; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dkps-warn { color: #F59E0B; }
.dkps-grad-prev { height: 40px; border-radius: 10px; margin: 0 0 10px; box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 12%, transparent) inset; }
.dkps-pallist { display: grid; gap: 6px; margin-bottom: 10px; }
.dkps-palrow { display: flex; align-items: center; gap: 6px; }
.dkps-palbtn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font: inherit; font-size: 12.5px; font-weight: 600; color: inherit; cursor: pointer; text-align: start;
  background: color-mix(in srgb, currentColor 4%, transparent); border: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.dkps-palbtn:hover { border-color: var(--bsx-accent, #14B8A6); }
.dkps-palbtn > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dkps-palbtn small { opacity: .65; font-weight: 500; }

/* ranges */
.dkps-range-label { display: flex !important; justify-content: space-between; align-items: baseline; }
.dkps-range-label output { font-variant-numeric: tabular-nums; font-size: 12px; opacity: .75; }
.dkps-range { width: 100%; accent-color: var(--bsx-accent, #14B8A6); height: 24px; }
.dkps-fontprev { font-size: 19px; line-height: 1.4; padding: 8px 12px; margin: -6px 0 14px; border-radius: 10px; background: color-mix(in srgb, currentColor 5%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* demo tiles (buttons, cards, backgrounds, hero types, animations) */
.dkps-demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.dkps-demos.is-hero, .dkps-demos.is-bg { grid-template-columns: repeat(2, 1fr); }
.dkps-demo { display: grid; gap: 6px; padding: 8px; border-radius: 12px; font: inherit; color: inherit; cursor: pointer; text-align: center;
  background: color-mix(in srgb, currentColor 4%, transparent); border: 1px solid color-mix(in srgb, currentColor 12%, transparent); transition: border-color .2s; }
.dkps-demo em { font-style: normal; font-size: 11.5px; font-weight: 600; opacity: .85; line-height: 1.25; }
.dkps-demo.is-on { border-color: var(--bsx-accent, #14B8A6); box-shadow: 0 0 0 1px var(--bsx-accent, #14B8A6) inset; }
.dkps-demo:focus-visible { outline: 2px solid var(--bsx-accent, #14B8A6); outline-offset: 2px; }
/* button hover demos */
.dkps-bd { position: relative; overflow: hidden; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: #C9A96E; color: #111; font-size: 11.5px; font-weight: 700; margin-inline: auto; transition: transform .4s, box-shadow .4s, background .4s, color .4s; }
.dkps-bd i { font-style: normal; transition: transform .4s; display: inline-block; }
[dir="rtl"] .dkps-bd i { transform: scaleX(-1); }
.dkps-bdemo.is-lift:hover .dkps-bd { transform: translateY(-3px); box-shadow: 0 10px 18px -8px rgba(0,0,0,.5); }
.dkps-bdemo.is-glow:hover .dkps-bd { box-shadow: 0 0 0 1px #C9A96E, 0 0 22px #C9A96E; }
.dkps-bdemo.is-fill .dkps-bd { background: transparent; color: inherit; box-shadow: 0 0 0 1px #C9A96E inset; }
.dkps-bdemo.is-fill:hover .dkps-bd { background: #C9A96E; color: #111; }
.dkps-bdemo.is-arrow:hover .dkps-bd i { transform: translateX(4px); }
[dir="rtl"] .dkps-bdemo.is-arrow:hover .dkps-bd i { transform: scaleX(-1) translateX(4px); }
.dkps-bdemo.is-shine .dkps-bd::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg); transition: left .7s; }
.dkps-bdemo.is-shine:hover .dkps-bd::after { left: 130%; }
.dkps-bdemo.is-magnetic:hover .dkps-bd { transform: translate(3px, -2px); }
/* card style demos */
.dkps-cd { display: grid; gap: 4px; padding: 8px; border-radius: 9px; height: 54px; align-content: end; background: rgba(127,127,127,.12); }
.dkps-cd i { width: 14px; height: 14px; border-radius: 50%; background: #C9A96E; }
.dkps-cd b { height: 4px; border-radius: 2px; background: currentColor; opacity: .4; }
.dkps-cd b + b { width: 60%; opacity: .25; }
.dkps-cdemo.is-flat .dkps-cd { background: rgba(127,127,127,.16); }
.dkps-cdemo.is-elevated .dkps-cd { background: rgba(127,127,127,.12); box-shadow: 0 10px 18px -10px rgba(0,0,0,.55); }
.dkps-cdemo.is-glass .dkps-cd { background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.04)); box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset; }
.dkps-cdemo.is-outline .dkps-cd { background: transparent; box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 40%, transparent) inset; }
.dkps-cdemo.is-neumorph .dkps-cd { background: rgba(127,127,127,.1); box-shadow: 5px 5px 10px rgba(0,0,0,.35), -4px -4px 10px rgba(255,255,255,.1); }
.dkps-cdemo.is-gradient .dkps-cd { background: linear-gradient(160deg, rgba(201,169,110,.45), rgba(127,127,127,.08)); }
.dkps-cdemo.is-gborder .dkps-cd { border: 1.5px solid transparent; background: linear-gradient(#0000, #0000) padding-box, linear-gradient(120deg, #6E8BFF, #22D3EE, #A78BFA) border-box; }
/* background effect demos */
.dkps-bgd { position: relative; display: block; height: 58px; border-radius: 9px; overflow: hidden; background: #0d1220; }
.dkps-bgd i { position: absolute; display: block; font-style: normal; }
.fx-none .dkps-bgd { background: repeating-linear-gradient(45deg, rgba(127,127,127,.12) 0 6px, transparent 6px 12px); }
.fx-gradient-motion .dkps-bgd { background: linear-gradient(115deg, #5B7CFF, #0d1220 35%, #22D3EE 60%, #0d1220 80%, #A78BFA); background-size: 300% 300%; animation: dkps-gm 6s ease-in-out infinite alternate; }
@keyframes dkps-gm { to { background-position: 100% 70%; } }
.fx-aurora .dkps-bgd i { width: 70px; height: 70px; border-radius: 50%; filter: blur(16px); opacity: .7; animation: dkps-drift 6s ease-in-out infinite alternate; }
.fx-aurora .dkps-bgd i:nth-child(1) { background: #5B7CFF; top: -20px; left: -10px; }
.fx-aurora .dkps-bgd i:nth-child(2) { background: #22D3EE; top: -10px; right: -20px; animation-delay: -2s; }
.fx-aurora .dkps-bgd i:nth-child(3) { background: #A78BFA; bottom: -40px; left: 40%; animation-delay: -4s; }
.fx-orbs .dkps-bgd i { width: 54px; height: 54px; border-radius: 50%; animation: dkps-drift 7s ease-in-out infinite alternate; }
.fx-orbs .dkps-bgd i:nth-child(1) { background: radial-gradient(circle, rgba(201,169,110,.8), transparent 65%); top: -14px; right: 6px; }
.fx-orbs .dkps-bgd i:nth-child(2) { background: radial-gradient(circle, rgba(110,139,255,.7), transparent 65%); top: 10px; left: 4px; animation-delay: -3s; }
.fx-orbs .dkps-bgd i:nth-child(3) { background: radial-gradient(circle, rgba(34,211,238,.6), transparent 65%); bottom: -20px; left: 45%; animation-delay: -5s; }
@keyframes dkps-drift { to { transform: translate(14px, 8px) scale(1.15); } }
.fx-shapes .dkps-bgd { background: #FFFCF5; }
.fx-shapes .dkps-bgd i { animation: dkps-float 3s ease-in-out infinite alternate; }
.fx-shapes .dkps-bgd i:nth-child(1) { width: 24px; height: 24px; border-radius: 50%; background: #FF5A36; top: 8px; right: 14px; }
.fx-shapes .dkps-bgd i:nth-child(2) { width: 18px; height: 18px; border-radius: 5px; border: 2px solid #2E5BFF; top: 26px; left: 20px; animation-delay: -1s; }
.fx-shapes .dkps-bgd i:nth-child(3) { width: 34px; height: 30px; border-radius: 62% 38% 46% 54%/55% 46% 54% 45%; background: #FFB443; bottom: -8px; left: 44%; animation-delay: -2s; }
@keyframes dkps-float { to { transform: translateY(-6px) rotate(12deg); } }
.fx-particles .dkps-bgd i { width: 3px; height: 3px; border-radius: 50%; background: #F08A4B; bottom: -4px; animation: dkps-rise 3.5s linear infinite; }
.fx-particles .dkps-bgd i:nth-child(1) { left: 20%; } .fx-particles .dkps-bgd i:nth-child(2) { left: 55%; animation-delay: -1.2s; } .fx-particles .dkps-bgd i:nth-child(3) { left: 80%; animation-delay: -2.4s; }
@keyframes dkps-rise { to { transform: translateY(-64px); opacity: 0; } }
.fx-lines .dkps-bgd { background-image: linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 25% 100%; background-color: #0d1220; }
.fx-lines .dkps-bgd i { width: 1px; height: 18px; background: linear-gradient(transparent, #4D8DFF, transparent); top: -20px; animation: dkps-line 2.4s linear infinite; }
.fx-lines .dkps-bgd i:nth-child(1) { left: 25%; } .fx-lines .dkps-bgd i:nth-child(2) { left: 50%; animation-delay: -.8s; } .fx-lines .dkps-bgd i:nth-child(3) { left: 75%; animation-delay: -1.6s; }
@keyframes dkps-line { to { top: 70px; } }
/* hero schematics */
.dkps-hd { position: relative; display: block; height: 62px; border-radius: 9px; overflow: hidden; background: rgba(127,127,127,.14); }
.dkps-hd i, .dkps-hd b, .dkps-hd u { position: absolute; display: block; font-style: normal; }
.dkps-hd b { height: 5px; border-radius: 3px; background: currentColor; opacity: .55; inset-inline-start: 10px; width: 46%; top: 22px; }
.dkps-hd b + b { top: 31px; width: 32%; opacity: .3; }
.dkps-hd u { width: 22px; height: 7px; border-radius: 4px; background: #14B8A6; top: 42px; inset-inline-start: 10px; text-decoration: none; }
.is-split .dkps-hd i { inset-inline-end: 6px; top: 6px; bottom: 6px; width: 38%; border-radius: 6px; background: linear-gradient(135deg, #C9A96E, #6E8BFF); }
.is-fullscreen .dkps-hd, .is-image .dkps-hd, .is-video .dkps-hd { background: linear-gradient(160deg, #4c5a6b, #1d232c); color: #fff; }
.is-fullscreen .dkps-hd b, .is-fullscreen .dkps-hd u, .is-luxury .dkps-hd b, .is-luxury .dkps-hd u, .is-gradient .dkps-hd b, .is-gradient .dkps-hd u { inset-inline-start: 50%; translate: -50% 0; }
[dir="rtl"] .is-fullscreen .dkps-hd b, [dir="rtl"] .is-fullscreen .dkps-hd u, [dir="rtl"] .is-luxury .dkps-hd b, [dir="rtl"] .is-luxury .dkps-hd u, [dir="rtl"] .is-gradient .dkps-hd b, [dir="rtl"] .is-gradient .dkps-hd u { translate: 50% 0; }
.is-video .dkps-hd i { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; inset-inline-end: 14px; top: 10px; opacity: .8; }
.is-minimal .dkps-hd b { height: 10px; width: 66%; top: 14px; }
.is-minimal .dkps-hd b + b { top: 44px; height: 4px; width: 40%; }
.is-minimal .dkps-hd u { top: 44px; inset-inline-start: auto; inset-inline-end: 10px; background: none; border-bottom: 2px solid currentColor; height: 4px; }
.is-cinematic .dkps-hd { background: linear-gradient(180deg, #000 0 14%, #3a2a22 14% 86%, #000 86%); color: #fff; }
.is-cinematic .dkps-hd b { top: 30px; width: 54%; height: 7px; }
.is-cinematic .dkps-hd b + b { top: 40px; height: 4px; }
.is-luxury .dkps-hd { background: #0B0B0C; color: #C9A96E; box-shadow: 0 0 0 1px rgba(201,169,110,.5) inset; }
.is-luxury .dkps-hd i { inset: 5px; border: 1px solid rgba(201,169,110,.45); }
.is-luxury .dkps-hd u { background: transparent; box-shadow: 0 0 0 1px #C9A96E inset; }
.is-gradient .dkps-hd { background: radial-gradient(circle at 20% 20%, #5B7CFF, transparent 55%), radial-gradient(circle at 80% 60%, #22D3EE, transparent 55%), radial-gradient(circle at 50% 100%, #A78BFA, transparent 55%), #070B14; color: #fff; }
/* entrance animation demos */
.dkps-ad { display: flex; justify-content: center; gap: 5px; height: 44px; align-items: center; overflow: hidden; }
.dkps-ad i { width: 16px; height: 22px; border-radius: 4px; background: linear-gradient(160deg, #14B8A6, #6E8BFF); display: block; }
.dkps-ad.go i { animation-duration: .9s; animation-timing-function: cubic-bezier(.16,1,.3,1); animation-fill-mode: both; }
.dkps-ad.go i:nth-child(2) { animation-delay: .09s; } .dkps-ad.go i:nth-child(3) { animation-delay: .18s; }
.dkps-ad.go[data-a="stagger"] i:nth-child(2) { animation-delay: .22s; } .dkps-ad.go[data-a="stagger"] i:nth-child(3) { animation-delay: .44s; }
.dkps-ad.go[data-a="fade"] i { animation-name: dkpa-fade; }
.dkps-ad.go[data-a="fade-up"] i, .dkps-ad.go[data-a="stagger"] i { animation-name: dkpa-up; }
.dkps-ad.go[data-a="fade-down"] i { animation-name: dkpa-down; }
.dkps-ad.go[data-a="fade-left"] i { animation-name: dkpa-left; }
.dkps-ad.go[data-a="fade-right"] i { animation-name: dkpa-right; }
.dkps-ad.go[data-a="slide"] i { animation-name: dkpa-slide; }
[dir="rtl"] .dkps-ad.go[data-a="slide"] i { animation-name: dkpa-slide-rtl; }
.dkps-ad.go[data-a="scale"] i { animation-name: dkpa-scale; }
.dkps-ad.go[data-a="zoom"] i { animation-name: dkpa-zoom; }
.dkps-ad.go[data-a="blur"] i { animation-name: dkpa-blur; }
.dkps-ad.go[data-a="rotate"] i { animation-name: dkpa-rotate; transform-origin: 0 100%; }
.dkps-ad.go[data-a="clip"] i { animation-name: dkpa-clip; }
@keyframes dkpa-fade { from { opacity: 0; } }
@keyframes dkpa-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes dkpa-down { from { opacity: 0; transform: translateY(-18px); } }
@keyframes dkpa-left { from { opacity: 0; transform: translateX(18px); } }
@keyframes dkpa-right { from { opacity: 0; transform: translateX(-18px); } }
@keyframes dkpa-slide { from { opacity: 0; transform: translateX(-40px); } }
@keyframes dkpa-slide-rtl { from { opacity: 0; transform: translateX(40px); } }
@keyframes dkpa-scale { from { opacity: 0; transform: scale(.7); } }
@keyframes dkpa-zoom { from { opacity: 0; transform: scale(1.5); } }
@keyframes dkpa-blur { from { opacity: 0; filter: blur(8px); transform: translateY(8px); } }
@keyframes dkpa-rotate { from { opacity: 0; transform: translateY(14px) rotate(-12deg); } }
@keyframes dkpa-clip { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .dkps-ad.go i, .dkps-bgd, .dkps-bgd i { animation: none !important; } }

.dkps-motion-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.dkps-motion-head .bsx-field { flex: 1; margin: 0; }
.dkps-motion-head .bsx-btn { height: 34px; font-size: 12.5px; }
.dkps-devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 16px; }
.dkps-devices .bsx-btn { justify-content: center; height: 40px; font-size: 12px; padding: 0 6px; }
.dkps-devices .bsx-btn.is-on { border-color: var(--bsx-accent, #14B8A6); color: var(--bsx-accent, #14B8A6); }
.dkps-upload { display: grid; place-items: center; border: 1.5px dashed color-mix(in srgb, currentColor 30%, transparent) !important; }

/* full preview dialog */
.dkps-prev { max-width: min(1280px, 96vw) !important; width: 96vw; height: 92vh; display: flex; flex-direction: column; }
.dkps-prev .bsx-modal-head { flex-wrap: wrap; gap: 10px; align-items: center; }
.dkps-prev .bsx-modal-head .dkps-seg { flex: none; }
.dkps-prev-stage { flex: 1; min-height: 0; display: flex; justify-content: center; background: color-mix(in srgb, currentColor 6%, transparent); border-radius: 12px; overflow: hidden; }
.dkps-prev-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width .35s cubic-bezier(.22,.61,.36,1); box-shadow: 0 10px 40px -10px rgba(0,0,0,.4); }
.dkps-prev-pages { margin: 0; padding: 10px 20px 14px; font-size: 12.5px; opacity: .75; line-height: 1.5; }
.dkps-prev-stage { margin: 0 16px; }
@media (max-width: 760px) { .dkps-prev { height: 94vh; } .dkps-prev .bsx-modal-head p { display: none; } }

/* ---------- creation flow: tier choice + Premium gallery ---------- */
.dk-tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 4px; }
.dk-tier-card { display: grid; gap: 8px; text-align: start; padding: 18px; border-radius: 16px; cursor: pointer; font: inherit; color: inherit; border: 1.5px solid color-mix(in srgb, currentColor 16%, transparent); background: color-mix(in srgb, currentColor 3%, transparent); transition: border-color .2s, transform .25s; }
.dk-tier-card:hover { transform: translateY(-2px); }
.dk-tier-card.selected { border-color: #14B8A6; box-shadow: 0 0 0 1px #14B8A6 inset; }
.dk-tier-card b { font-size: 17px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dk-tier-card b em { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #14B8A6; color: #04221f; }
.dk-tier-card span { font-size: 13.5px; line-height: 1.55; opacity: .8; }
.dk-tier-card.is-premium { background: linear-gradient(135deg, rgba(201,169,110,.14), rgba(110,139,255,.12)); }
.dk-tier-vis { height: 74px; border-radius: 10px; background: linear-gradient(160deg, #eef2f6, #dfe5ec); position: relative; overflow: hidden; }
.dk-tier-vis::before { content: ""; position: absolute; inset: 14px 40% auto 14px; height: 8px; border-radius: 4px; background: #94a3b8; box-shadow: 0 16px 0 -1px #cbd5e1; }
.is-premium .dk-tier-vis { background: radial-gradient(circle at 80% 30%, rgba(201,169,110,.9), transparent 45%), radial-gradient(circle at 20% 90%, rgba(110,139,255,.8), transparent 50%), #0B0B0C; }
.is-premium .dk-tier-vis::before { background: #C9A96E; box-shadow: 0 16px 0 -1px rgba(255,255,255,.4); }
@media (max-width: 560px) { .dk-tier-grid { grid-template-columns: 1fr; } }

.dkp-gallery-sec { max-width: 1180px; margin: 0 auto; padding: 8px 20px clamp(40px, 6vw, 72px); }
.dkp-gallery-sec[hidden] { display: none; }
.dkp-gallery-sec { scroll-margin-top: 88px; }
/* The questionnaire stays the main way in; the gallery opens right under it. */
/* Compact intro, so the designs below show up sooner (owner, 11.2026). */
#dk-sites-intro-section .dk-sites-intro { margin: 26px auto 8px; }
#dk-sites-intro-section .dk-sites-intro h1 { font-size: clamp(26px, 3.4vw, 32px); margin-bottom: 8px; }
#dk-sites-intro-section .dk-sites-intro p.lead { margin-bottom: 14px; }
#dk-sites-intro-section .dk-sites-intro-facts { margin-bottom: 18px; }
/* Background and text colour are always set TOGETHER (light by default,
   dark in the dark theme), so the label can never end up dark-on-dark. */
.dk-intro-more { --dk-intro-more-bg: #FFFFFF; --dk-intro-more-ink: #0F172A;
  display: inline-flex; align-items: center; gap: 9px; margin: 16px auto 0; padding: 11px 20px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; color: var(--dk-intro-more-ink); cursor: pointer;
  border: 1.5px solid transparent; background: linear-gradient(var(--dk-intro-more-bg), var(--dk-intro-more-bg)) padding-box, linear-gradient(120deg, #14B8A6, #8B5CF6, #F472B6) border-box;
  box-shadow: 0 8px 24px -14px rgba(139,92,246,.6); transition: transform .2s, box-shadow .2s; }
.dk-intro-more:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(139,92,246,.7); }
.dk-intro-more-ic { transition: transform .25s; }
.dk-intro-more.is-open .dk-intro-more-ic { transform: rotate(180deg); }
html:not(.hv-light):not(.dk-light):not(.dka-contrast-light) body.theme-v2 .dk-intro-more { --dk-intro-more-bg: #121826; --dk-intro-more-ink: #F8FAFC; }
.dk-intro-more:focus-visible { outline: 2px solid #14B8A6; outline-offset: 3px; border-radius: 6px; }
.dk-ai-quota { margin: 14px auto 0; font-size: 13.5px; opacity: .78; max-width: 560px; line-height: 1.55; }
.dk-ai-quota.is-out { opacity: .9; }
.wizard-modal .dk-ai-quota { margin: -2px 0 12px; text-align: start; }
.dk-ai-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.6; background: color-mix(in srgb, currentColor 6%, transparent); border: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.dkp-gallery-tabs { display: flex; justify-content: center; gap: 6px; margin: 0 auto 14px; padding: 4px; border-radius: 999px; width: fit-content; max-width: 100%; background: color-mix(in srgb, currentColor 6%, transparent); }
.dkp-gallery-tabs button { font: inherit; font-size: 14px; font-weight: 700; padding: 9px 18px; border-radius: 999px; border: 0; background: transparent; color: inherit; cursor: pointer; opacity: .75; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dkp-gallery-tabs button small { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); }
.dkp-gallery-tabs button[aria-selected="true"] { opacity: 1; background: #14B8A6; color: #04221f; }
.dkp-gallery-tabs button:focus-visible { outline: 2px solid #14B8A6; outline-offset: 2px; }
.dkp-gallery-tierline { text-align: center; margin: 0 0 14px; font-size: 14px; opacity: .78; }
@media (max-width: 420px) { .dkp-gallery-tabs button { padding: 8px 12px; font-size: 13px; } }
.dkp-gallery-head { text-align: center; max-width: 720px; margin: 0 auto 16px; }
.dkp-gallery-head .kicker { display: inline-block; font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: linear-gradient(120deg, rgba(201,169,110,.25), rgba(110,139,255,.25)); margin-bottom: 12px; }
.dkp-gallery-head h2 { margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 26px); }
.dkp-gallery-head p { margin: 0; opacity: .8; line-height: 1.6; }
/* Categories as one row of tabs (owner, 11.2026: the wrapped pills were
   too busy) — an underline marks the chosen one; the row scrolls sideways
   when it doesn't fit, never wraps. */
.dkp-gallery-cats { display: flex; flex-wrap: nowrap; justify-content: safe center; gap: 2px; margin: 0 auto 20px; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); padding-inline: 18px; }
.dkp-gallery-cats::-webkit-scrollbar { display: none; }
.dkp-gallery-cats button { flex: none; font: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 10px 11px; border: 0; border-bottom: 2.5px solid transparent; margin-bottom: -1px; background: none; color: inherit; opacity: .62; cursor: pointer; white-space: nowrap; transition: opacity .2s, border-color .2s, color .2s; }
.dkp-gallery-cats button:hover { opacity: .9; }
.dkp-gallery-cats button[aria-pressed="true"] { opacity: 1; color: #14B8A6; border-bottom-color: #14B8A6; }
.dkp-gallery-cats button:focus-visible { outline: 2px solid #14B8A6; outline-offset: -2px; border-radius: 6px; }
.dkp-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.dkp-gallery-card { display: grid; grid-template-rows: auto 1fr auto; text-align: start; border-radius: 16px; overflow: hidden; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); background: color-mix(in srgb, currentColor 3%, transparent); color: inherit; transition: transform .35s cubic-bezier(.22,.61,.36,1), border-color .2s, box-shadow .3s; }
.dkp-gallery-card:hover, .dkp-gallery-card:focus-within { transform: translateY(-4px); border-color: #14B8A6; box-shadow: 0 18px 40px -24px rgba(0,0,0,.45); }
.dkp-gallery-img { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.dkp-gallery-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; display: block; background: color-mix(in srgb, currentColor 8%, transparent); transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.dkp-gallery-card:hover img { transform: scale(1.03); }
.dkp-gallery-info { display: grid; gap: 4px; padding: 12px 14px 4px; }
.dkp-gallery-card b { font-size: 16px; }
.dkp-gallery-card small { font-size: 12px; opacity: .65; }
.dkp-gallery-card em { font-style: normal; font-size: 13px; opacity: .8; line-height: 1.5; }
.dk-tier-note { text-align: center; margin: 12px 0 0; font-size: 13px; opacity: .72; }

/* Card actions: preview / choose */
.dkp-gallery-actions { display: flex; gap: 8px; padding: 10px 14px 14px; }
.dkp-gbtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 12px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: transform .15s, background .2s; }
.dkp-gbtn-main { border: 0; color: #04221f; background: linear-gradient(120deg, #14B8A6, #5EEAD4); }
.dkp-gbtn-main:hover { transform: translateY(-1px); }
.dkp-gbtn-ghost { border: 1.5px solid color-mix(in srgb, currentColor 22%, transparent); background: transparent; color: inherit; }
.dkp-gbtn-ghost:hover { background: color-mix(in srgb, currentColor 7%, transparent); }
.dkp-gbtn:focus-visible, .dkp-gallery-img:focus-visible { outline: 2px solid #14B8A6; outline-offset: 2px; }

/* Full preview window */
.dkp-pv-overlay { position: fixed; inset: 0; z-index: 6000; background: rgba(8,12,20,.72); display: flex; align-items: center; justify-content: center; padding: 18px; }
.dkp-pv { width: min(1280px, 100%); height: min(92vh, 980px); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #0f1420; color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.dkp-pv-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: #161d2c; }
.dkp-pv-name { font-size: 16px; }
.dkp-pv-dev { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); margin-inline: auto; }
.dkp-pv-dev button { border: 0; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; opacity: .75; }
.dkp-pv-dev button[aria-pressed="true"] { background: #fff; color: #0f1420; opacity: 1; }
.dkp-pv-acts { display: inline-flex; align-items: center; gap: 8px; }
.dkp-pv-acts .dkp-gbtn { flex: none; }
.dkp-pv-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 16px; cursor: pointer; }
.dkp-pv-note { margin: 0; padding: 6px 14px; font-size: 12.5px; opacity: .7; background: #161d2c; }
.dkp-pv-stage { flex: 1; display: flex; justify-content: center; background: #0b0f18; overflow: hidden; }
.dkp-pv-frame { width: 100%; height: 100%; border: 0; background: #fff; transition: width .35s cubic-bezier(.22,.61,.36,1); }
.dkp-pv-stage.is-phone { padding: 14px 0; }
.dkp-pv-stage.is-phone .dkp-pv-frame { width: 390px; max-width: 100%; border-radius: 22px; box-shadow: 0 0 0 8px #1f2738; }
@media (max-width: 640px) { .dkp-pv-overlay { padding: 0; } .dkp-pv { height: 100%; border-radius: 0; } .dkp-pv-dev { display: none; } }

/* The questionnaire popup fits a computer screen without scrolling (owner,
   11.2026): tighter spacing, chips and buttons. Phones keep their layout. */
@media (min-width: 761px) {
  #site-ai-generate-overlay .domain-guide-modal { padding: 22px 28px 20px; }
  #site-ai-generate-overlay .domain-guide-modal > h2 { font-size: 22px; }
  #site-ai-generate-overlay .domain-guide-modal > .lead { margin-bottom: 8px; font-size: 14px; }
  #site-ai-generate-overlay .dk-ai-quota { margin: 0 0 8px; font-size: 12.5px; }
  #site-ai-generate-overlay .wizard-progress-bar { margin-bottom: 12px; }
  #site-ai-generate-overlay .wizard-question { font-size: 18px; margin-bottom: 10px; }
  #site-ai-generate-overlay .wizard-chip-grid { gap: 7px; }
  #site-ai-generate-overlay .wizard-chip { padding-top: 7px; padding-bottom: 7px; }
  #site-ai-generate-overlay .wizard-nav-row { margin-top: 14px; }
  #site-ai-generate-overlay input[type="search"], #site-ai-generate-overlay .wizard-search { margin-bottom: 10px; }
}
