/* kuvakuoret-model-previews-v1.css */
/* Large catalogue previews; geometry and product image choice come from Azure. */
#device-dialog .model-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: contain;
  mix-blend-mode: normal;
  background: #f2f4f7;
  border-radius: 12px;
}
@media (max-width: 600px) {
  #device-dialog .model-card img { height: 180px; }
}

/* kuvakuoret-modern-editor-v19.css */
/* Version 15: Desktop controls fit short and scaled viewports.
   Classic rules only style the opt-in switch and hide modern-only helpers.
   The scoped :is(#editor-shell) intentionally beats legacy shared :is() rules
   whose strongest alternative contains two IDs, including the rainbow buttons. */
#editor-shell .kk-modern-experience-toggle{position:absolute;left:12px;bottom:12px;z-index:25;border:1px solid #73767c;border-radius:7px;padding:8px 11px;background:#242629;color:#f4f4f5;font:500 12px/1.2 system-ui;box-shadow:none}
#editor-shell .kk-modern-library[hidden],#editor-shell .kk-modern-history[hidden],#editor-shell .kk-modern-library-return[hidden]{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-history button[hidden]{display:none!important}
#editor-shell:not([data-editor-experience=modern]) :is(.kk-modern-library,.kk-modern-library-return,.kk-modern-history){display:none!important}
@media(max-width:1024px){#editor-shell:not([data-editor-experience=modern]) .kk-modern-experience-toggle{position:fixed;bottom:76px;left:8px;right:auto;z-index:120}}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell){--kk-modern-bg:#17181b;--kk-modern-panel:#202125;--kk-modern-soft:#292b30;--kk-modern-hover:#33353b;--kk-modern-line:#383a40;--kk-modern-text:#f2f3f5;--kk-modern-muted:#a4a7af;--kk-modern-accent:#b9abfb;--kk-modern-accent-ink:#211839;--paper:var(--kk-modern-bg);--ink:var(--kk-modern-text);--muted:var(--kk-modern-muted);--line:var(--kk-modern-line);--panel:var(--kk-modern-panel);--soft:var(--kk-modern-soft);--theme-panel:var(--kk-modern-panel);--theme-card:var(--kk-modern-soft);--theme-hover:var(--kk-modern-hover);--theme-input:var(--kk-modern-bg);--mobile-panel:var(--kk-modern-panel);--mobile-border:var(--kk-modern-line);--desktop-panel-header:var(--kk-modern-panel);--desktop-panel-body:var(--kk-modern-panel);--desktop-panel-border:var(--kk-modern-line);--desktop-accent:var(--kk-modern-accent);background:var(--kk-modern-bg)!important;color:var(--kk-modern-text);font-family:Inter,Arial,sans-serif}
html[data-editor-experience=modern][data-editor-theme=light] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell){--kk-modern-bg:#f1f2f4;--kk-modern-panel:#fff;--kk-modern-soft:#f0f0f4;--kk-modern-hover:#e7e6ed;--kk-modern-line:#dddfe5;--kk-modern-text:#24262d;--kk-modern-muted:#686d78;--kk-modern-accent:#7355ba;--kk-modern-accent-ink:#fff}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.header,.tools,.editing-tools,.editor-browser-columns,.editor-detail-pane,.inspector,.mobile-sheet-head,.mobile2-dock,.mobile2-base,.mobile2-image-actions){background:var(--kk-modern-panel)!important;color:var(--kk-modern-text)!important;border-color:var(--kk-modern-line)!important;box-shadow:none!important;background-image:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.workspace,.stage-wrap){background:var(--kk-modern-bg)!important;background-image:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.stage-wrap,.workspace)::before,html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.stage-wrap,.workspace)::after{background:none!important;background-image:none!important;box-shadow:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.brand-message,.stage-label,.workspace-bottom,.tools-footer,.stage-caption){display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .header:not([hidden]){height:54px!important;min-height:54px!important;max-height:54px!important;padding:6px 18px!important;gap:16px!important;flex-wrap:nowrap!important;border-bottom:1px solid var(--kk-modern-line)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .header .brand{width:166px!important;max-width:166px!important;flex:0 0 166px!important;min-width:0!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .header .brand img{display:block!important;max-width:100%!important;height:auto!important;max-height:36px!important;object-fit:contain!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .header-actions{gap:12px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(button,.tab,.editor-menu-row,.stack-row,.step-choice,.kk-onboarding-actions button){border-color:var(--kk-modern-line)!important;border-width:1px!important;background-image:none!important;box-shadow:none!important;animation:none!important;text-shadow:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(button,.editor-menu-row,.step-choice){border-radius:7px;color:var(--kk-modern-text)!important;background-color:transparent}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(button,.editor-menu-row):hover:not(:disabled){background:var(--kk-modern-hover)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.primary,#review,.personal-upload,.kk-modern-library-use,.kk-onboarding-actions button:first-child){background:var(--kk-modern-accent)!important;color:var(--kk-modern-accent-ink)!important;border-color:transparent!important;font-weight:600}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #review{min-height:36px!important;height:36px!important;padding:7px 16px!important;font-size:12px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(button:focus-visible,summary:focus-visible,a:focus-visible,input:focus-visible){outline:2px solid var(--kk-modern-accent)!important;outline-offset:2px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(textarea,select,input[type=search],input[type=text],input[type=number]){background:var(--kk-modern-bg)!important;color:var(--kk-modern-text)!important;border:1px solid var(--kk-modern-line)!important;border-radius:7px!important;box-shadow:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) input[type=range]{accent-color:var(--kk-modern-accent)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.tab.active,.editor-menu-row.selected,.stack-row.selected,[aria-pressed=true],[aria-selected=true]){background:var(--kk-modern-soft)!important;border-color:var(--kk-modern-accent)!important;color:var(--kk-modern-text)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .stack-row{background:var(--kk-modern-panel)!important;border-radius:7px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-neon-inset,.kk-neon-edge,.kk-neon-path,.kk-neon-ribbon){background:transparent!important;box-shadow:none!important;filter:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-neon-inset,.kk-neon-edge,.kk-neon-path,.kk-neon-ribbon)::before,html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-neon-inset,.kk-neon-edge,.kk-neon-path,.kk-neon-ribbon)::after{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-experience-toggle{background:var(--kk-modern-panel)!important;color:var(--kk-modern-muted)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-history{position:absolute;top:10px;left:12px;z-index:12;display:flex;gap:3px;padding:3px;background:var(--kk-modern-panel);border:1px solid var(--kk-modern-line);border-radius:9px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-history button{display:flex!important;align-items:center;justify-content:center;gap:6px;width:auto!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:5px 7px!important;margin:0!important;border:0!important;border-radius:5px!important;color:var(--kk-modern-text)!important;background:transparent!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-history button svg{width:18px!important;height:18px!important;stroke:currentColor!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-history button span,html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-history button::after{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-onboarding-start{background:transparent!important;box-shadow:none!important;padding:0!important;border:0!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-onboarding-start>h2,html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-onboarding-start>p{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-onboarding-actions{gap:10px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-onboarding-actions button{min-height:46px!important;border-radius:9px!important;font-size:13px!important;background:var(--kk-modern-panel)!important;color:var(--kk-modern-text)!important;padding:10px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-onboarding-actions button[data-start=images]{background:var(--kk-modern-accent)!important;color:var(--kk-modern-accent-ink)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-onboarding-actions button svg{width:18px!important;height:18px!important}
/* Library: real assets, with a large persistent case beside them. */
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library{background:var(--kk-modern-panel);color:var(--kk-modern-text);min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border-right:1px solid var(--kk-modern-line);padding:24px 22px 0;z-index:20}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-header h2{font-size:23px;letter-spacing:-.5px;margin:0;font-weight:650}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-close{border:0!important;min-width:36px;min-height:36px;padding:6px;font-size:14px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-search-label{display:block;margin:0 0 14px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-search-label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-search{width:100%;min-height:44px;padding:11px 14px;font-size:14px;outline:none}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-modern-library-tabs,.kk-modern-library-kinds){display:flex;gap:6px;overflow-x:auto;flex-shrink:0;padding:0 0 12px;scrollbar-width:thin}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-modern-library-tabs,.kk-modern-library-kinds) button{white-space:nowrap;border:0!important;border-radius:7px;padding:9px 12px;font-size:12px;min-height:36px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-modern-library-tabs,.kk-modern-library-kinds) button[aria-pressed=true]{background:var(--kk-modern-soft)!important;color:var(--kk-modern-accent)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-crumbs{display:flex;flex-wrap:wrap;gap:4px;align-items:center;min-height:24px;margin-bottom:12px;color:var(--kk-modern-muted);font-size:12px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-crumbs button{padding:3px;border:0!important;font-size:12px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 5px 22px 0;scrollbar-width:thin}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:22px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category{position:relative;min-width:0;display:flex;flex-direction:column;gap:6px;padding:0!important;border:0!important;background:transparent!important;text-align:left;font-size:12px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category img{width:100%;aspect-ratio:1.25;object-fit:cover;border-radius:8px;background:var(--kk-modern-soft);display:block}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-label{display:flex;justify-content:space-between;gap:5px;padding:0 1px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-label small{color:var(--kk-modern-muted)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-more{min-height:40px;width:100%;margin:0 0 20px;font-size:12px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-results-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-count{font-size:13px;font-weight:600;margin:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-reset{border:0!important;font-size:12px;padding:5px;color:var(--kk-modern-muted)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px 10px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-card{position:relative;min-width:0;margin:0;padding:0;border:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-preview{display:block;width:100%;padding:0!important;border:0!important;border-radius:8px;background:transparent!important;text-align:left;overflow:hidden}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-preview img{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:var(--kk-modern-soft);border-radius:8px;border:2px solid transparent}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-preview[aria-pressed=true] img{border-color:var(--kk-modern-accent)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-card-title{display:block;font-size:11px;font-weight:450;margin:7px 2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-favorite{position:absolute;top:5px;right:5px;border:0!important;background:#202125d9!important;color:#fff!important;display:grid;place-items:center;border-radius:50%!important;width:29px;height:29px;padding:3px;font-size:18px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-favorite[aria-pressed=true]{background:var(--kk-modern-accent)!important;color:var(--kk-modern-accent-ink)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-status{font-size:13px;color:var(--kk-modern-muted);line-height:1.5;margin:12px 0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:22px 0 0;font-size:12px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-pagination button{min-height:38px;font-size:12px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-selection{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-top:1px solid var(--kk-modern-line);flex-shrink:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-selected-title{font-size:12px;color:var(--kk-modern-muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-use{min-height:40px;padding:9px 18px;white-space:nowrap;font-size:13px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-return{position:absolute;top:12px;left:12px;z-index:23;min-height:40px;padding:8px 12px;background:var(--kk-modern-panel)!important;font-size:12px;box-shadow:0 2px 10px #0002!important}
@media(min-width:1025px){
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell)>main.column-editor{position:relative!important;display:grid!important;grid-template-columns:280px minmax(300px,1fr) 280px!important;grid-template-rows:minmax(0,1fr)!important;height:calc(100dvh - var(--kk-modern-header-height,54px))!important;min-height:0!important;overflow:hidden!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell)>main.column-editor>.tools{grid-column:1!important;grid-row:1!important;grid-template-columns:60px minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;padding-bottom:46px!important;min-height:0}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell)>main.column-editor>.workspace{grid-column:2!important;grid-row:1!important;position:relative!important;height:100%!important;min-height:0!important;overflow:hidden!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell)>main.column-editor>.inspector{grid-column:3!important;grid-row:1!important;padding:20px 18px!important;min-height:0;overflow-y:auto}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .desktop-pro-toolbar{display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .workspace>.stage-wrap{height:100%!important;min-height:0!important;flex:1!important;padding:0!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #stage{position:absolute!important;inset:8px 0!important;width:100%!important;height:calc(100% - 16px)!important;min-height:0!important;max-height:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .tools>.tabs{gap:3px!important;padding:12px 4px!important;background:var(--kk-modern-panel)!important;border-right:0!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .tools>.tabs .tab{min-height:63px!important;padding:8px 2px!important;gap:6px!important;border:0!important;border-radius:8px!important;font-weight:450!important;box-shadow:none!important;color:var(--kk-modern-muted)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .tools>.tabs .tab.active{background:var(--kk-modern-soft)!important;color:var(--kk-modern-accent)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .tools>.tabs .tab>svg{width:21px!important;height:21px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .tools>.tabs .tab span{font-size:10px!important;line-height:14px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .tools>#device-setup{padding:12px 14px!important;background:var(--kk-modern-panel)!important;border-bottom:1px solid var(--kk-modern-line)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #device-setup .brand-step{border:0!important;background:transparent!important;padding:0!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #device-setup h2{font-size:11px!important;font-weight:450!important;color:var(--kk-modern-muted)!important;margin-bottom:6px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #selected-phone{font-size:12px!important;line-height:1.5!important;margin:0 0 8px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #choose-brand{background:var(--kk-modern-soft)!important;min-height:32px!important;padding:6px 10px!important;border:0!important;font-size:11px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .editor-browser-columns{display:block!important;overflow-y:auto!important;overflow-x:hidden!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .editing-tools{width:100%!important;min-width:0!important;flex:none!important;padding:20px 12px!important;border:0!important;overflow:visible!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .editor-detail-columns{width:100%!important;min-width:0!important;display:block;flex:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .editor-detail-pane{width:100%!important;min-width:0!important;padding:14px 12px!important;border:0!important;border-top:1px solid var(--kk-modern-line)!important;overflow:visible!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .panel>h2{font-size:17px!important;font-weight:600!important;letter-spacing:-.3px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .panel>p{font-size:12px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .personal-image-actions{margin:14px 0!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .personal-image-actions button{min-height:38px!important;font-size:12px!important;gap:7px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .personal-image-actions svg{width:17px!important;height:17px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #panel-text{max-height:none!important;overflow:visible!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #panel-text .kk-text-tab-content{max-height:calc(100dvh - 350px)!important;overflow-y:auto!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-text-tabs button{font-size:11px!important;padding:4px!important;font-weight:500!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .selected-type{font-size:13px!important;font-weight:600!important;color:var(--kk-modern-text)!important;margin-bottom:16px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-tool-group{border-top:1px solid var(--kk-modern-line);margin:14px 0 0;padding:0}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-modern-tool-group,.kk-modern-layers)>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:12px;font-size:12px;font-weight:550;padding:11px 0}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-modern-tool-group,.kk-modern-layers)>summary::-webkit-details-marker{display:none}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-modern-tool-group,.kk-modern-layers)>summary::after{content:'⌄';font-size:17px;color:var(--kk-modern-muted)}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-modern-tool-group,.kk-modern-layers)[open]>summary::after{transform:rotate(180deg)}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-tool-group .kk-modern-group-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-bottom:10px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-tool-group .editor-action-tile{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;min-width:0!important;min-height:37px!important;height:auto!important;padding:8px 6px!important;margin:0!important;border:0!important;background:var(--kk-modern-soft)!important;color:var(--kk-modern-text)!important;font-size:11px!important;border-radius:6px!important;box-shadow:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-tool-group .editor-action-tile>svg{width:16px!important;height:16px!important;stroke:currentColor!important;flex:none}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-tool-group .editor-action-tile>span{font-size:11px!important;line-height:15px!important;white-space:normal!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-tool-group .alignment-controls{grid-column:1/-1;position:static!important;transform:none!important;width:100%!important;margin:0!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .desktop-pro-menu{gap:0!important;margin-top:14px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .desktop-pro-menu>details{border:0!important;border-top:1px solid var(--kk-modern-line)!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .desktop-pro-menu summary{padding:12px 0!important;min-height:44px!important;font-size:12px!important;font-weight:550!important;background:transparent!important;color:var(--kk-modern-text)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .desktop-pro-menu summary>svg:first-child{display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .desktop-pro-body{padding:8px 0 16px!important;border:0!important;background:transparent!important;color:var(--kk-modern-text)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .desktop-pro-body :is(label,output,.range-reset){color:var(--kk-modern-text)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-layers{border-top:1px solid var(--kk-modern-line);margin-top:24px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-layers .layers-heading{display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .local-note{padding-top:14px!important;font-size:10px!important;margin-top:auto!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell).kk-modern-library-open>main.column-editor{grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell).kk-modern-library-open>main>.kk-modern-library{grid-column:1;grid-row:1}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell).kk-modern-library-open>main>:is(.tools,.inspector){display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell).kk-modern-library-open .kk-modern-history{display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell).kk-modern-library-open .kk-modern-experience-toggle{left:auto;right:12px;bottom:12px}
}

@media(min-width:1500px){html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(min-width:1025px) and (max-width:1199px){html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell)>main.column-editor{grid-template-columns:250px minmax(260px,1fr) 250px!important}html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1024px){
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell){--kk-mobile-dock-row:54px;--kk-mobile-dock-row-height:54px;--kk-modern-sheet-offset:var(--kk-modern-header-height,48px)}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .header:not([hidden]){height:48px!important;min-height:48px!important;max-height:48px!important;flex-basis:48px!important;padding:5px 10px!important;gap:8px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .header .brand{width:130px!important;max-width:130px!important;flex-basis:130px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .header .brand img{max-height:30px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .header #review{height:35px!important;min-height:35px!important;font-size:10px!important;padding:5px 9px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .header :is(.cart-link,#save-status){display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) main{position:relative!important;height:calc(100dvh - var(--kk-modern-header-height,48px))!important;min-height:0!important;overflow:hidden!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) main .workspace{display:block!important;position:relative!important;grid-template:none!important;min-height:0!important;height:100%!important;width:100%!important;overflow:hidden!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) main .workspace>.stage-wrap{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;flex:1!important;padding:0!important;overflow:hidden!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #stage{position:absolute!important;inset:4px 0!important;max-height:none!important;min-height:0!important;height:calc(100% - 8px)!important;width:100%!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .workspace>.canvas-toolbar,html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .stage-wrap>.canvas-toolbar{position:absolute!important;top:56px!important;left:8px!important;right:auto!important;bottom:auto!important;width:38px!important;height:auto!important;min-height:0!important;max-height:none!important;display:block!important;z-index:11!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .canvas-toolbar .history{display:flex!important;flex-direction:column!important;gap:4px!important;width:38px!important;height:auto!important;background:transparent!important;border:0!important;grid-template:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .canvas-toolbar .history .editor-action-tile{height:36px!important;min-height:36px!important;min-width:36px!important;padding:5px!important;border-radius:7px!important;background:var(--kk-modern-panel)!important;color:var(--kk-modern-muted)!important;border:0!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .canvas-toolbar .history .editor-action-tile svg{width:18px!important;height:18px!important;color:inherit!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .canvas-toolbar .history .editor-action-tile span,html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .canvas-toolbar .history .editor-action-tile::after{display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell):not(:has(.mobile2-image-actions:not([hidden]))) .canvas-toolbar .history{display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-history{top:8px;left:8px;padding:2px;border:0}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-experience-toggle{top:10px;right:10px;bottom:auto;left:auto;font-size:10px;padding:8px;min-height:32px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.mobile2-dock,.mobile-nav){background:var(--kk-modern-panel)!important;border-top:1px solid var(--kk-modern-line)!important;box-shadow:none!important;padding-bottom:env(safe-area-inset-bottom)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.mobile2-base,.mobile2-image-actions,.mobile-nav){min-height:54px!important;height:54px!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:0!important;padding:2px 3px!important;overflow-x:auto!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .mobile2-image-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.mobile2-base,.mobile2-image-actions,.mobile-nav) button{display:flex;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:48px!important;height:48px!important;max-height:none!important;gap:4px!important;padding:3px 1px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--kk-modern-muted)!important;box-shadow:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.mobile2-base,.mobile2-image-actions,.mobile-nav) button svg{width:19px!important;height:19px!important;color:inherit!important;filter:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.mobile2-base,.mobile2-image-actions,.mobile-nav) button span{font-size:9px!important;line-height:11px!important;font-weight:500!important;color:inherit!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.mobile2-base,.mobile-nav) button[aria-pressed=true]{background:var(--kk-modern-soft)!important;color:var(--kk-modern-accent)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.mobile2-base,.mobile-nav) :is([data-panel-key=layouts],[data-mobile-tab=layouts]){display:flex!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .workspace>.mobile2-zoom{position:absolute!important;right:6px!important;bottom:12px!important;left:auto!important;top:auto!important;width:42px!important;height:auto!important;min-height:0!important;max-height:calc(100% - 60px)!important;grid-template-columns:1fr!important;grid-auto-rows:43px!important;grid-template-rows:none!important;padding:3px!important;border:1px solid var(--kk-modern-line)!important;border-radius:9px!important;background:var(--kk-modern-panel)!important;overflow-y:auto!important;z-index:10!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .mobile2-zoom button{height:43px!important;min-height:43px!important;max-height:43px!important;background:transparent!important;color:var(--kk-modern-muted)!important;border:0!important;border-radius:5px!important;padding:4px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .mobile2-zoom button svg{color:inherit!important;filter:none!important;width:18px!important;height:18px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .mobile2-zoom button span{font-size:8px!important;color:inherit!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-close-v38,.kk-free-warp-v38){color:var(--kk-modern-muted)!important;background:transparent!important;border:0!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library{position:absolute;inset:0;z-index:110;padding:16px 12px 0;border:0}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-header{margin-bottom:12px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-header h2{font-size:21px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-close{min-width:44px;min-height:40px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-search-label{margin-bottom:10px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-modern-library-tabs,.kk-modern-library-kinds){gap:3px;padding-bottom:10px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-modern-library-tabs,.kk-modern-library-kinds) button{font-size:11px;padding:8px 9px;min-height:36px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px;margin-bottom:18px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-card-title{font-size:10px;margin-top:5px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-favorite{width:31px;height:31px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-label{font-size:11px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-selection{display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell).kk-modern-library-open .kk-modern-experience-toggle{z-index:112;top:auto;bottom:10px;right:10px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell).kk-modern-library-open .kk-modern-history{display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell):has(.kk-modern-library-return:not([hidden])) .kk-modern-history{top:60px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .mobile-sheet-head{background:var(--kk-modern-panel)!important;border-color:var(--kk-modern-line)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .mobile-sheet-head button{border:0!important;background:var(--kk-modern-soft)!important;color:var(--kk-modern-text)!important;border-radius:7px!important;font-size:13px!important}
}
@media(prefers-reduced-motion:reduce){html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) *{animation:none!important;scroll-behavior:auto!important}}

/* Final neutral surface overrides also cover late-injected legacy showroom UI. */
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-studio-scene,.case3d-showroom,.case3d-standing-sign,.case3d-logo-front,.case3d-logo-edge){display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(button,input,select,textarea,summary,.selected-type,h2,h3,.kk-modern-library-card-title){font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-weight:450!important;letter-spacing:normal!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(p,label,.muted,.kk-modern-library-category-label){font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-weight:400!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(h2,.selected-type,.kk-modern-library-count){font-weight:600!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button span{font-weight:inherit!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-onboarding-start,.kk-case-browse) button{background:var(--kk-modern-panel)!important;color:var(--kk-modern-text)!important;-webkit-text-fill-color:currentColor!important;border:1px solid var(--kk-modern-line)!important;box-shadow:none!important;animation:none!important;filter:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-onboarding-start .kk-onboarding-actions button[data-start]{background:var(--kk-modern-panel)!important;color:var(--kk-modern-text)!important;-webkit-text-fill-color:currentColor!important;border:1px solid var(--kk-modern-line)!important;border-radius:9px!important;box-shadow:none!important;animation:none!important;filter:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-onboarding-start .kk-onboarding-actions button[data-start=images]{background:var(--kk-modern-accent)!important;color:var(--kk-modern-accent-ink)!important;border-color:transparent!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-onboarding-start,.kk-case-browse,.mobile2-base,.mobile2-image-actions,.mobile2-zoom) button::before,html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-onboarding-start,.kk-case-browse,.mobile2-base,.mobile2-image-actions,.mobile2-zoom) button::after{display:none!important;background:none!important;box-shadow:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell).kk-modern-library-open .kk-onboarding-start{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-label{flex-direction:column;gap:2px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-label small{font-size:10px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .case3d-mode-toggle{background:var(--kk-modern-panel)!important;border:1px solid var(--kk-modern-line)!important;border-radius:8px!important;padding:3px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .case3d-mode-toggle button{min-height:32px!important;font-size:11px!important;padding:5px 8px!important;color:var(--kk-modern-muted)!important;-webkit-text-fill-color:currentColor!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .case3d-mode-toggle button[aria-pressed=true]{color:var(--kk-modern-text)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-history button::before{display:none!important;content:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.desktop-pro-menu summary,.desktop-pro-menu summary span,.desktop-pro-number input,.desktop-pro-number span,.desktop-pro-body label,.desktop-pro-body output){color:var(--kk-modern-text)!important;-webkit-text-fill-color:currentColor!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.desktop-pro-menu summary>.desktop-pro-chevron,.desktop-pro-note){color:var(--kk-modern-muted)!important;-webkit-text-fill-color:currentColor!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(#choose-brand,#review){-webkit-text-fill-color:currentColor!important}
@media(max-width:1024px){
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-experience-toggle{top:auto;right:auto;bottom:calc(64px + env(safe-area-inset-bottom));left:8px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell).kk-modern-library-open .kk-modern-experience-toggle{bottom:10px;left:auto;right:10px}
}
@media(min-width:1025px){
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .tools>.tabs .kp-nav{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-height:63px!important;padding:8px 2px!important;gap:6px!important;border:0!important;border-radius:8px!important;background:transparent!important;font-weight:450!important;box-shadow:none!important;color:var(--kk-modern-muted)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .tools>.tabs .kp-nav svg{width:21px!important;height:21px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .tools>.tabs .kp-nav span{font-size:10px!important;line-height:14px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .inspector :is(label,.range-label,summary,.desktop-pro-number,input[type=number],.kk-modern-tool-group .editor-action-tile span){font-size:13px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell).kk-modern-library-open :is(.kk-browse-controls,.kk-browse-status){display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-case-browse :is(.kk-browse-prev,.kk-browse-next){width:36px!important;height:44px!important;min-height:44px!important;font-size:25px!important;border-radius:8px!important;padding:4px!important;background:var(--kk-modern-panel)!important;color:var(--kk-modern-muted)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-case-browse .kk-browse-prev{left:10px!important;transform:translateY(-50%)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-case-browse .kk-browse-next{left:auto!important;right:10px!important;transform:translateY(-50%)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.personal-images-panel .muted,.inspector .muted){font-size:12px!important;line-height:1.6!important}
}

/* Keep original background controls connected for an immediate classic rollback. */
#editor-shell .kk-modern-library-preview-nav[hidden],#editor-shell .kk-modern-background-library[hidden]{display:none!important}
#editor-shell:not([data-editor-experience=modern]) :is(.kk-modern-background-library,.kk-modern-library-preview-nav){display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .local-note{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .background-library-browser>:is(.image-source-heading,.library-search,.library-section-label,.editor-library-status){display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .background-library-browser .image-source-menu>:not(.background-menu-section){display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .background-library-detail:not([data-background-section]){display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .editor-detail-columns[data-owner=background]:not(:has(.background-library-detail[data-background-section])){display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-background-library{display:flex!important;align-items:center;justify-content:space-between;width:100%;min-height:44px;margin:7px 0;padding:10px 12px!important;font-size:14px!important;text-align:left}

/* One header row and compact navigation leave the gallery room to breathe. */
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library{padding-top:18px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-header{gap:14px;margin-bottom:12px;flex:none}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-header h2{font-size:19px;white-space:nowrap}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-search-label{flex:1;min-width:0;margin:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-search{min-height:40px;padding:9px 12px;font-size:13px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-close{flex:none;padding:8px 10px;min-height:40px;font-size:13px;white-space:nowrap}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;margin:0 0 14px;flex:none;min-width:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-history{display:flex;align-items:center;gap:4px;flex:1 1 280px;min-width:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-modern-library-back,.kk-modern-library-forward){border:0!important;flex:none;min-height:34px;padding:6px 8px;font-size:11px;white-space:nowrap}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-crumbs{flex:1;min-width:0;flex-wrap:nowrap;white-space:nowrap;overflow-x:auto;margin:0;padding:0 3px;scrollbar-width:thin}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-crumbs button{flex:none;min-height:34px;font-size:11px;padding:5px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tabs{align-items:center;gap:3px;flex:0 1 auto;min-width:0;padding:0;overflow-x:auto}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tabs button{font-size:12px;padding:7px 9px;min-height:34px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-kinds{display:block;margin:0 0 0 4px;padding:0;overflow:visible;min-width:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-kinds>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-kind-select{width:116px;max-width:100%;min-height:34px;padding:6px;font-size:12px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folder-heading{margin:0 0 8px;font-size:12px;color:var(--kk-modern-muted)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-categories{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:9px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category{flex-direction:row;align-items:center;gap:7px;min-height:48px;padding:7px 8px!important;border:1px solid var(--kk-modern-line)!important;border-radius:7px!important;background:transparent!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category img{flex:none;width:28px;height:28px;aspect-ratio:1;border-radius:4px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folder-icon{flex:none;width:17px;height:17px;color:var(--kk-modern-muted)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-label{display:flex;flex:1;min-width:0;align-items:flex-start;justify-content:center;flex-direction:column;gap:1px;font-size:12px;line-height:1.25;overflow-wrap:anywhere}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-label small{font-size:10px;white-space:nowrap}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folder-arrow{flex:none;font-size:17px;color:var(--kk-modern-muted)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-more{width:auto;min-height:30px;padding:5px 0;margin:0 0 12px;border:0!important;color:var(--kk-modern-muted)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folders{margin-bottom:12px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-preview-nav{position:absolute;top:8px;left:8px;right:8px;z-index:23;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-preview-nav button{position:static!important;pointer-events:auto;min-height:40px;padding:8px 11px;background:var(--kk-modern-panel)!important;color:var(--kk-modern-text)!important;font-size:12px;border:1px solid var(--kk-modern-line)!important;box-shadow:none!important}
@media(min-width:1025px){
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell):not(.kk-modern-library-open)>main.column-editor:has(#panel-text:not([hidden])){grid-template-columns:420px minmax(300px,1fr) 280px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #panel-text :is(label,p,input,select,textarea){font-size:14px!important;line-height:1.5!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #panel-text :is(input[type=text],input[type=number],select,textarea){min-height:38px;padding:9px 10px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #panel-text .kk-text-tabs button{min-height:38px;font-size:12px!important;padding:7px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #panel-text .kk-text-tab-content{max-height:none!important;overflow:visible!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #panel-text .kk-font-list small{font-size:12px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell)>main.column-editor>.inspector{display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:18px 16px 0!important;gap:0!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .inspector>#properties{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 2px 18px 0;scrollbar-width:thin}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .inspector>#area-controls{flex:none;max-height:25%;overflow-y:auto}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-layers{flex:none;min-height:44px;margin: auto -16px 0!important;padding:0 16px;background:var(--kk-modern-panel);border-top:1px solid var(--kk-modern-line)}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-layers>summary{min-height:48px;font-size:14px!important;font-weight:600!important;padding:13px 0}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-layers[data-keep-open=true]>summary{cursor:default}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-layers[data-keep-open=true]>summary::after{content:none}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-layers>.kk-modern-group-body{max-height:min(36dvh,340px);overflow-y:auto;overscroll-behavior:contain;padding:0 0 12px;scrollbar-width:thin}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-layers .layer-help{font-size:11px!important;margin:0 0 8px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-layers #layer-list{max-height:none!important;overflow:visible!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell).kk-modern-library-open>main.column-editor>.inspector{display:none!important}
}
@media(min-width:1200px) and (max-width:1359px){html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell):not(.kk-modern-library-open)>main.column-editor:has(#panel-text:not([hidden])){grid-template-columns:390px minmax(300px,1fr) 280px!important}}
@media(min-width:1025px) and (max-width:1199px){html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell):not(.kk-modern-library-open)>main.column-editor:has(#panel-text:not([hidden])){grid-template-columns:360px minmax(260px,1fr) 250px!important}}
@media(max-width:1024px){
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library{padding-top:10px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-header{gap:6px;margin-bottom:7px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-header h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-search{min-height:40px;font-size:16px;padding:8px 10px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-navigation{display:block;margin-bottom:12px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-history{margin-bottom:4px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-modern-library-back,.kk-modern-library-forward){width:36px;min-height:36px;padding:4px;font-size:0}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-back::before{content:'←';font-size:20px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-forward::before{content:'→';font-size:20px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tabs{width:100%;gap:1px;padding:0}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tabs button{padding:7px 8px;font-size:11px;min-height:36px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-kinds{flex:1;margin-left:auto}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-kind-select{width:100%;min-width:75px;min-height:36px;font-size:11px;padding:5px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category{padding:6px!important;min-height:45px;gap:6px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category img{width:24px;height:24px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-label{font-size:11px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell).kk-modern-library-previewing :is(.kk-modern-history,.mobile2-zoom,.canvas-toolbar,.kk-browse-controls [data-browse=cancel]){display:none!important}
}

/* v3: mobile tools occupy real layout rows; the case stays unobstructed. */
@media(max-width:1024px){
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell)>main[data-mobile-panel=browse]{display:flex!important;flex-direction:column!important;gap:0!important;padding:0!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) main .workspace{display:grid!important;grid-template:38px minmax(0,1fr)/minmax(0,1fr)!important;flex:1 1 auto!important;height:auto!important;min-height:0!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) main .workspace>.stage-wrap{position:relative!important;inset:auto!important;grid-row:2!important;width:100%!important;height:100%!important;min-height:0!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #stage{inset:0!important;height:100%!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.workspace>.canvas-toolbar,.stage-wrap>.canvas-toolbar,#selection .selection-delete,.mobile2-quality,.kk-editor-onboarding){display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-topbar{grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;padding:0 8px;background:var(--kk-modern-bg);overflow:hidden}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-topbar .kk-modern-history{position:static!important;inset:auto!important;flex:none;display:flex;align-items:center;height:36px;padding:0!important;background:transparent!important;box-shadow:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-topbar .kk-modern-history button{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:7px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-topbar .kk-modern-experience-toggle{position:static!important;inset:auto!important;flex:none;font-size:10px!important;min-height:30px!important;padding:4px 8px!important;border:0!important;background:transparent!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-quality{min-width:0;flex:1;display:flex;justify-content:center}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-quality #print-quality-meter{position:static!important;inset:auto!important;transform:none!important;margin:0!important;padding:2px 4px!important;min-height:24px!important;font-size:9px!important;max-width:100%;overflow:hidden;white-space:nowrap;border:0!important;background:transparent!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-shelf{position:relative!important;flex:0 0 auto!important;width:100%;min-width:0;max-height:45dvh;overflow:hidden;background:var(--kk-modern-panel);border-top:1px solid var(--kk-modern-line);padding-bottom:env(safe-area-inset-bottom);z-index:20}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-toolbar{position:relative;display:flex;min-width:0;height:60px;align-items:stretch}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll{display:flex;flex:1;min-width:0;align-items:center;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x;scroll-snap-type:x proximity;scrollbar-width:none;padding:0 36px 0 4px;gap:0;-webkit-overflow-scrolling:touch}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll::-webkit-scrollbar{display:none}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll .mobile2-dock{display:contents!important;padding:0!important;border:0!important;max-height:none!important;min-height:0!important;overflow:visible!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll :is(.mobile2-base,.mobile2-image-actions,.mobile2-zoom,.kk-modern-mobile-secondary,.kk-modern-mobile-secondary .history){position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex:0 0 auto!important;flex-direction:row!important;align-items:center!important;width:auto!important;min-width:0!important;height:60px!important;min-height:60px!important;max-height:none!important;gap:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;background:transparent!important;grid-template:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll :is(.mobile2-base,.mobile2-image-actions,.mobile2-zoom,.kk-modern-mobile-secondary) button{display:flex;position:static!important;flex:0 0 64px!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:64px!important;min-width:64px!important;height:56px!important;min-height:56px!important;max-height:56px!important;gap:5px!important;margin:0!important;padding:5px 3px!important;border:0!important;border-radius:7px!important;box-shadow:none!important;scroll-snap-align:start;background:transparent!important;color:var(--kk-modern-text)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll button svg{width:21px!important;height:21px!important;stroke-width:1.7!important;filter:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll button span{font-size:10px!important;line-height:13px!important;white-space:nowrap!important;color:inherit!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll .mobile2-image-actions .kk-close-v38{position:absolute!important;right:0!important;bottom:0!important;z-index:2!important;width:40px!important;min-width:40px!important;flex-basis:40px!important;height:60px!important;max-height:60px!important;background:var(--kk-modern-panel)!important;border-left:1px solid var(--kk-modern-line)!important;border-radius:0!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll-next{position:absolute;right:0;top:0;z-index:3;width:30px;min-width:30px;height:60px;padding:0!important;border:0!important;border-radius:0!important;background:var(--kk-modern-panel)!important;color:var(--kk-modern-muted)!important;font-size:24px!important;box-shadow:-8px 0 12px var(--kk-modern-panel)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-shelf[data-context=image] .kk-modern-mobile-scroll{padding-right:70px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-shelf[data-context=image] .kk-modern-mobile-scroll-next{right:40px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-shelf[data-context=base] :is(.mobile2-zoom,.kk-modern-mobile-secondary){display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll :is(.mobile2-plus,.mobile2-minus,.mobile2-delete,.kk-free-warp-v38,[data-action=free-warp]){display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll .case3d-mode-toggle{position:static!important;inset:auto!important;transform:none!important;flex:none;height:40px;margin:0 8px!important;align-self:center}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-settings{max-height:26dvh;overflow-y:auto;overscroll-behavior:contain;border-bottom:1px solid var(--kk-modern-line);padding:6px 10px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-settings .mobile2-opacity{position:static!important;display:flex;align-items:center;gap:10px;min-height:38px;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-settings .mobile2-opacity input{flex:1;min-width:0}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-settings .mobile2-free-panel{position:static!important;inset:auto!important;width:100%!important;margin:0!important;transform:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-settings .mobile2-hint{margin:0!important;padding:4px!important;font-size:12px;line-height:1.4}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-topbar .kk-modern-library-preview-nav{position:static!important;inset:auto!important;flex:1;min-width:0;display:flex;justify-content:space-between;gap:6px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-topbar .kk-modern-library-preview-nav button{min-height:34px!important;height:34px!important;padding:5px 8px!important;font-size:12px!important;border:0!important;background:transparent!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-preview{display:flex;align-items:center;gap:7px;min-height:60px;padding:4px 8px}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-preview :is(.kk-browse-prev,.kk-browse-next,.kk-browse-status,.kk-browse-controls){position:static!important;inset:auto!important;transform:none!important;margin:0!important;box-shadow:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-preview :is(.kk-browse-prev,.kk-browse-next){display:flex!important;align-items:center;justify-content:center;width:40px!important;min-width:40px!important;height:44px!important;min-height:44px!important;padding:8px!important;border:0!important;background:transparent!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-preview .kk-browse-status{order:2;flex:1;min-width:0;text-align:center;font-size:11px!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-preview .kk-browse-next{order:3}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-preview .kk-browse-controls{order:4;display:flex!important;flex:none;width:auto!important;padding:0!important;border:0!important;background:transparent!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-preview [data-browse=select]{min-height:42px!important;padding:8px 14px!important;background:var(--kk-modern-accent)!important;color:var(--kk-modern-accent-ink)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) main[data-mobile-panel=layers] .workspace{position:absolute!important;inset:0 auto 0 0!important;width:var(--kk-layer-preview,44%)!important;height:100%!important;grid-template-rows:minmax(0,1fr)!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) main[data-mobile-panel=layers] .workspace>.stage-wrap{grid-row:1!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) main[data-mobile-panel=layers] .kk-modern-mobile-topbar{display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-modern-mobile-topbar,.kk-modern-mobile-shelf) [hidden]{display:none!important}
 html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-modern-mobile-topbar,.kk-modern-mobile-shelf)[hidden]{display:none!important}
}

@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-onboarding-start,.kk-onboarding-actions){display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll .mobile2-zoom{order:1}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-secondary{order:2}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-secondary :is(.mobile-phone,.mobile-context){display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll .case3d-mode-toggle{order:3}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-dismiss{position:relative;flex:0 0 40px;width:40px;border-left:1px solid var(--kk-modern-line);background:var(--kk-modern-panel)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-dismiss .kk-close-v38{position:static!important;display:flex!important;align-items:center;justify-content:center;width:40px!important;min-width:40px!important;height:60px!important;min-height:60px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll-prev{position:absolute;left:0;top:0;z-index:3;width:24px;min-width:24px;height:60px;padding:0!important;border:0!important;border-radius:0!important;background:var(--kk-modern-panel)!important;color:var(--kk-modern-muted)!important;font-size:24px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-toolbar[data-can-scroll-left=false] .kk-modern-mobile-scroll-prev{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-toolbar[data-can-scroll-left=true] .kk-modern-mobile-scroll{scroll-padding-left:24px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-toolbar[data-can-scroll-right=false] .kk-modern-mobile-scroll-next{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-shelf[data-context=image] .kk-modern-mobile-scroll{padding-right:36px}
}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-preview .kk-browse-status{width:auto!important;height:auto!important;clip-path:none!important;clip:auto!important;overflow:hidden!important;white-space:nowrap!important}
}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll{scroll-snap-type:none!important;scroll-padding-left:4px!important}
}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-preview :is(button,.kk-browse-controls){pointer-events:auto!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-topbar[data-context=preview] :is(.kk-modern-mobile-quality,.kk-modern-experience-toggle){display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-topbar .kk-modern-library-preview-nav button{white-space:nowrap!important}
}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll :is(.mobile2-base,.mobile2-image-actions,.mobile2-zoom,.kk-modern-mobile-secondary,.kk-modern-mobile-secondary .history)[hidden]{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll :is(.mobile2-base,.mobile2-image-actions,.mobile2-zoom,.kk-modern-mobile-secondary) :is([hidden],.mobile2-plus,.mobile2-minus,.mobile2-delete,.mobile2-close,.kk-free-warp-v38,[data-action=free-warp],.mobile-phone,.mobile-context){display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-shelf[data-context=base] :is(.mobile2-zoom,.kk-modern-mobile-secondary){display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell)>main:is([data-mobile-colours=open],[data-mobile-filters=open],[data-remove-colour=open]){display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) min(36dvh,280px)!important;gap:0!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) main:is([data-mobile-colours=open],[data-mobile-filters=open],[data-remove-colour=open]) .workspace{grid-column:1!important;grid-row:1!important;height:100%!important}
}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) main .workspace{grid-template-rows:38px minmax(0,1fr) auto!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) #toast{position:static!important;inset:auto!important;transform:none!important;grid-row:3!important;grid-column:1!important;width:100%!important;max-width:none!important;max-height:66px!important;overflow-y:auto!important;margin:0!important;padding:7px 12px!important;font-size:12px!important;line-height:1.35!important;background:var(--kk-modern-panel)!important;color:var(--kk-modern-text)!important;border-radius:0!important;box-shadow:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) main[data-mobile-panel=layers] .workspace{grid-template-rows:minmax(0,1fr) auto!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) main[data-mobile-panel=layers] #toast{grid-row:2!important}
}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll{position:relative;z-index:0;isolation:isolate}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-dismiss{z-index:4}
}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-secondary :is(#delete,#reset-image):not([hidden]){display:flex!important}
}

/* v4: recognizable folder silhouettes with contents peeking out, like Explorer. */
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-categories{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(116px,1fr))!important;gap:8px!important;margin-bottom:10px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-category{--folder-width:88px;--folder-height:64px;--folder-top:8px;position:relative!important;isolation:isolate;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;min-width:0!important;min-height:128px!important;padding:82px 6px 8px!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;text-align:center!important;box-shadow:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-category::before{content:'';position:absolute;z-index:0;top:var(--folder-top);left:50%;transform:translateX(-50%);width:var(--folder-width);height:var(--folder-height);background:#efad21;clip-path:polygon(0 8%,4% 0,32% 0,44% 17%,96% 17%,100% 23%,100% 100%,0 100%);border-radius:4px;pointer-events:none}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-category::after{content:'';position:absolute;z-index:2;top:calc(var(--folder-top) + var(--folder-height) * .44);left:50%;transform:translateX(-50%);width:var(--folder-width);height:calc(var(--folder-height) * .61);background:linear-gradient(#ffe48c,#ffd25b);border:1px solid #e2ad38;border-top-color:#ffedb2;border-radius:5px;box-shadow:0 2px 2px #00000018;pointer-events:none}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-category img{position:absolute!important;z-index:1;top:calc(var(--folder-top) + 15px)!important;left:50%!important;transform:translateX(-50%) rotate(-6deg);width:calc(var(--folder-width) * .64)!important;height:calc(var(--folder-height) * .65)!important;aspect-ratio:auto!important;object-fit:cover!important;border:3px solid #fff!important;border-radius:3px!important;background:#fff;box-shadow:0 1px 4px #0003;pointer-events:none}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-category :is(.kk-modern-library-folder-icon,.kk-modern-library-folder-arrow){display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-label{position:relative;z-index:3;display:flex!important;flex:0 0 auto!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;width:100%;min-width:0;gap:3px!important;font-size:13px!important;line-height:1.3!important;overflow-wrap:break-word!important;word-break:normal;text-align:center!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-label small{display:block;font-size:11px!important;line-height:1.3!important;white-space:nowrap!important;color:var(--kk-modern-muted)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-category:hover{background:var(--kk-modern-soft)!important;border-color:var(--kk-modern-line)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-category:focus-visible{outline:2px solid var(--kk-modern-accent)!important;outline-offset:1px!important;background:var(--kk-modern-soft)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folder-heading{margin-bottom:8px!important}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-categories{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px 4px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-category{--folder-width:74px;--folder-height:55px;min-height:114px!important;padding:72px 3px 7px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-label{font-size:12px!important;line-height:1.25!important;gap:3px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-label small{font-size:10px!important}
}


/* Explorer address bar and directory navigation. */

html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library{padding:10px 14px 0!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library [hidden]{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-header{margin:0 0 8px!important;gap:8px!important;min-height:34px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-header h2{font-size:17px!important;letter-spacing:0!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-navigation{display:grid!important;grid-template-columns:auto minmax(100px,1fr) minmax(150px,.6fr);flex-wrap:nowrap!important;gap:8px!important;margin:0!important;padding-bottom:10px;align-items:center}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-history{flex:none!important;gap:2px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-history button{display:grid!important;place-items:center;width:34px!important;min-width:34px!important;height:38px!important;min-height:38px!important;padding:0!important;border:0!important;border-radius:5px!important;font-family:system-ui,sans-serif!important;font-size:24px!important;line-height:1!important;background:transparent!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-history button::before,html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-history button::after{content:none!important;display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-history button:disabled{opacity:.3!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-history button:hover:not(:disabled){background:var(--kk-modern-soft)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-crumbs{flex:1!important;flex-wrap:nowrap!important;min-width:0!important;gap:5px!important;margin:0!important;padding:0 8px!important;height:40px;border:1px solid var(--kk-modern-line);border-radius:6px;background:var(--kk-modern-bg);overflow-x:auto;scrollbar-width:none;white-space:nowrap;overscroll-behavior:contain}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-crumbs button{flex:none;font-size:12px!important;min-height:36px;padding:5px 6px!important;border-radius:4px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-crumbs button[aria-current=page]{font-weight:600!important;color:var(--kk-modern-text)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-search-label{width:100%;margin:0!important;min-width:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-search{height:40px!important;padding:8px 11px!important;font-size:13px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-commands{display:flex;align-items:center;gap:8px;flex:none;min-width:0;padding:6px 0 10px;border-top:1px solid var(--kk-modern-line)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tabs{flex:1!important;min-width:0;align-items:center;overflow-x:auto!important;padding:0!important;margin:0!important;gap:4px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-kinds{margin-left:auto!important;padding:0!important;flex:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-kind-select{max-width:150px;min-height:34px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folder-picker,html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folder-done{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-body{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:0;min-width:0;flex:1;border-top:1px solid var(--kk-modern-line)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-sidebar{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:12px 8px 16px 0;border-right:1px solid var(--kk-modern-line)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree-heading{font-size:12px!important;font-weight:500!important;color:var(--kk-modern-muted)!important;margin:0 0 8px 8px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree ul{list-style:none!important;display:block!important;margin:0!important;padding:0!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree ul ul{padding-left:16px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree li{list-style:none!important;margin:0!important;padding:0!important;min-width:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree-row{display:flex;align-items:center;min-width:0;gap:0;margin:2px 0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-tree-toggle,html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree-spacer{display:grid;place-items:center;flex:none;width:24px!important;min-width:24px!important;min-height:34px!important;height:34px!important;padding:0!important;border:0!important;border-radius:5px!important;background:transparent!important;font-size:20px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-tree-link{display:flex!important;align-items:center;gap:7px;flex:1;min-width:0;min-height:34px!important;text-align:left!important;padding:6px 6px!important;border:0!important;border-radius:5px!important;background:transparent!important;font-size:12px!important;line-height:1.4!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-tree-link[aria-current=page]{background:var(--kk-modern-soft)!important;color:var(--kk-modern-accent)!important;font-weight:600!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-tree-link:hover,html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-tree-toggle:hover{background:var(--kk-modern-soft)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree-icon{display:block;position:relative;flex:none;width:18px;height:13px;border-radius:2px;background:linear-gradient(#ffe38a,#ffd05b);box-shadow:0 0 0 1px #b98424 inset}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree-icon::before{content:'';position:absolute;left:0;top:-3px;width:9px;height:5px;background:#f2b82f;border-radius:2px 2px 0 0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-scroll{padding:14px 0 18px 14px!important;min-width:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-grid{grid-template-columns:repeat(auto-fill,minmax(125px,1fr))!important;gap:16px 10px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-categories{grid-template-columns:repeat(auto-fill,minmax(105px,1fr))!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-selection{padding:10px 0!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library :is(button,input,select):focus-visible{outline:2px solid var(--kk-modern-accent)!important;outline-offset:1px!important}
@media(min-width:1500px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-body{grid-template-columns:210px minmax(0,1fr)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))!important}
}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library{padding:8px 12px 0!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-header{margin:0 0 6px!important;min-height:44px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-header h2{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-header .kk-modern-library-search-label{flex:1}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-search{font-size:16px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-close{min-height:44px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-navigation{grid-template-columns:auto minmax(0,1fr);padding-bottom:6px;gap:4px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-history button{width:36px!important;min-width:36px!important;height:44px!important;min-height:44px!important;font-size:23px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-crumbs{height:44px;padding:0 4px!important;border-color:transparent;background:transparent}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-crumbs button{min-height:44px;font-size:12px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-commands{padding:4px 0 8px!important;gap:6px;border-top:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folder-picker{display:flex!important;align-items:center;justify-content:center;gap:7px;flex:none;min-height:42px!important;padding:8px 11px!important;font-size:12px!important;border:1px solid var(--kk-modern-line)!important;border-radius:7px!important;background:var(--kk-modern-soft)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folder-picker::before{content:''!important;display:block!important;width:16px;height:12px;background:#ffd365!important;clip-path:polygon(0 0,40% 0,52% 22%,100% 22%,100% 100%,0 100%)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tabs{flex:1!important;flex-shrink:1!important;scrollbar-width:none;min-width:0;gap:3px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tabs button{font-size:12px!important;min-height:42px!important;padding:8px 9px!important;flex:none}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-kind-select{min-height:42px!important;max-width:130px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-body{display:flex;flex-direction:column;border-top:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-scroll{padding:6px 0 18px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folders{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px 8px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-results-heading{margin-bottom:10px!important;min-height:26px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-sidebar{flex:1;padding:0 0 16px;border-right:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree-heading{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folder-done{display:block!important;min-height:44px!important;border:0!important;padding:8px!important;margin-bottom:10px;font-size:13px!important;text-align:left!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folder-done::before{content:'←';margin-right:8px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-tree-toggle,html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree-spacer{width:44px!important;min-width:44px!important;min-height:48px!important;height:48px!important;font-size:24px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-tree-link{min-height:48px!important;font-size:14px!important;gap:12px;padding:10px 8px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree-icon{width:24px;height:18px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree-icon::before{width:12px;height:6px;top:-4px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree-name{white-space:normal;overflow-wrap:anywhere}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library[data-folder-picker=true] .kk-modern-library-header h2{display:block!important;flex:1;position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip-path:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library[data-folder-picker=true] .kk-modern-library-search-label{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library[data-folder-picker=true] .kk-modern-library-header h2::after{content:' / Kansiot';font-weight:400;color:var(--kk-modern-muted)}
}


/* v6: clear folder navigation and guidance outside the artwork. */
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree-toggle svg{display:block;width:14px!important;height:14px!important;transform:rotate(0deg);pointer-events:none}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree-toggle[aria-expanded=true] svg{transform:rotate(90deg)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-selection{flex-wrap:wrap!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-selected-title{flex:1;min-width:0;text-align:left!important;border:0!important;background:transparent!important;padding:6px 0!important;font:inherit!important;font-size:12px!important;color:var(--kk-modern-muted)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-selected-title:enabled{color:var(--kk-modern-accent)!important;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-selected-title:disabled{opacity:1!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-browse-status[role=button]{cursor:pointer!important;pointer-events:auto!important;text-decoration:underline;text-underline-offset:3px;border-radius:5px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-browse-status[role=button]:focus-visible{outline:2px solid var(--kk-modern-accent)!important;outline-offset:-2px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-background-notice{display:flex;align-items:center;gap:12px;flex:1 0 100%;min-width:0;padding:10px 0;border-bottom:1px solid var(--kk-modern-line);color:var(--kk-modern-text);font-size:12px;line-height:1.4}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-background-notice p{flex:1;min-width:0;margin:0!important;font:inherit!important;color:inherit!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-background-layers{flex:none;min-height:44px!important;padding:8px 12px!important;background:var(--kk-modern-soft)!important;border:1px solid var(--kk-modern-line)!important;font-size:12px!important;white-space:nowrap}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-background-help{padding:10px 0;border-bottom:1px solid var(--kk-modern-line);font-size:12px;line-height:1.4}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-background-help p{font:inherit!important;color:var(--kk-modern-text)!important;margin:0 0 8px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-background-return{width:100%;min-height:44px!important;font-size:12px!important;background:var(--kk-modern-soft)!important;white-space:normal!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-background-notice[hidden],html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-background-help[hidden]{display:none!important}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library[data-folder-picker=true] .kk-modern-library-navigation{display:grid!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tree-toggle svg{width:16px!important;height:16px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-preview .kk-browse-status[role=button]{display:flex!important;align-items:center;justify-content:center;min-height:44px!important;padding:4px!important;white-space:normal!important;overflow-wrap:anywhere}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-shelf>.kk-modern-background-notice{padding:8px 12px;border-bottom:1px solid var(--kk-modern-line);max-height:128px;overflow:auto}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tabs{justify-content:space-between}
}

/* Image tools follow the visible workflow; history actions stay above the case. */
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll .mobile2-zoom{order:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll .mobile2-image-actions{order:1}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-scroll .kk-enhance-v41{display:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-topbar .kk-modern-history{flex:none}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-topbar .kk-modern-history :is(#reset-image,#delete){display:flex!important;align-items:center;justify-content:center;flex:none;width:34px!important;min-width:34px!important;height:34px!important;padding:7px!important;background:transparent!important;border:0!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-mobile-topbar .kk-modern-history :is(#reset-image,#delete) span{display:none!important}
}

/* Desktop already has a directory tree. Mobile exposes the same child folders
   above its images, in one compact swipeable row. Native hidden state wins for
   leaf folders, searches and saved collections. */
@media(min-width:1025px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folders{display:none!important}
}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folders:not([hidden]){display:block!important;margin:0 0 12px!important;border-bottom:1px solid var(--kk-modern-line)}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-categories{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--kk-modern-line) transparent;padding:2px 2px 8px;margin-bottom:4px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) button.kk-modern-library-category{flex:0 0 100px!important;scroll-snap-align:start}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-label{display:block!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-label small{margin-top:3px}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-category-more{min-height:44px!important;margin:0 0 4px!important}
}

/* v9: Mobile folder home is the starting point, with persistent search and
   navigation. Favorites use a rainbow outline/fill, with a 44px hit target. */
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tabs{justify-content:flex-end!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tabs button.kk-modern-library-favorites{display:grid;place-items:center;flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:8px!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tabs button.kk-modern-library-favorites[aria-pressed=true]{border-color:var(--kk-modern-accent)!important;background:var(--kk-modern-soft)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-library-heart{position:relative;display:block;flex:none;width:24px!important;height:24px!important;overflow:visible;pointer-events:none;filter:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-library-heart-shape{stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library .kk-modern-library-favorite{display:grid!important;place-items:center;top:0;right:0;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;isolation:isolate}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library .kk-modern-library-favorite:is([aria-pressed=true],:hover:not(:disabled)){background:transparent!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-favorite::before{content:'';position:absolute;inset:6px;z-index:-1;border-radius:50%;background:#202125e8;box-shadow:0 0 0 1px #ffffff14;pointer-events:none}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-favorite:hover::before{background:#34353be8}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-favorite:focus-visible{outline-offset:-2px!important}
html[data-editor-experience=modern][data-editor-theme=light] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-favorite::before{background:#fffffff0;box-shadow:0 0 0 1px #15151e18}
html[data-editor-experience=modern][data-editor-theme=light] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-favorite:hover::before{background:#eeeef6f2}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-home-hint{display:none!important}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library .kk-modern-library-header h2,
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library[data-folder-picker=true] .kk-modern-library-header h2{display:block!important;position:absolute!important;flex:none;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap;border:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library[data-folder-picker=true] .kk-modern-library-header h2::after{content:none}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library[data-folder-picker=true] .kk-modern-library-search-label{display:block!important;flex:1;min-width:0}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-commands{justify-content:space-between;min-height:52px;padding:0 0 8px!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folder-picker{min-height:44px!important;background:transparent!important;border-color:transparent!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-folder-picker[aria-pressed=true]{border-color:var(--kk-modern-accent)!important;background:var(--kk-modern-soft)!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library-tabs{flex:0 0 auto!important;width:auto!important;overflow:visible!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-modern-library[data-folder-picker=true] .kk-modern-library-home-hint:not([hidden]){display:block!important;margin:0 8px 10px!important;font-size:12px!important;line-height:1.5!important;color:var(--kk-modern-muted)!important}
}
@media(forced-colors:active){
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) .kk-library-heart-shape{stroke:ButtonText!important;fill:none!important}
html[data-editor-experience=modern] #editor-shell[data-editor-experience=modern][data-modern-shell-mounted=true]:is(#editor-shell) :is(.kk-modern-library-favorites,.kk-modern-library-favorite[aria-pressed=true]) .kk-library-heart-shape{fill:ButtonText!important}
}

/* v10: direct background tools; color editing occupies its own layout row. */
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] :is([data-panel=background],[data-panel-key=background],[data-mobile-tab=background]){display:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] :is(.kk-modern-background-tool[hidden],.kk-modern-background-color[hidden],.kk-modern-background-color [hidden]){display:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-background-color{box-sizing:border-box;min-width:0;padding:8px 12px 10px;background:var(--kk-modern-panel);color:var(--kk-modern-text);border-top:1px solid var(--kk-modern-line);overflow:auto}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-heading{display:flex;align-items:center;justify-content:space-between;height:36px;padding:0!important;margin:0!important;background:transparent!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-heading h2{margin:0!important;font-size:14px!important;line-height:1.3!important;color:inherit!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] button.kk-modern-bg-close{display:grid!important;place-items:center;flex:0 0 44px;min-width:44px!important;min-height:36px!important;height:36px!important;padding:0!important;border:0!important;background:transparent!important;color:#ff2424!important;font-size:26px!important;line-height:1!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-modes{display:flex;align-items:center;gap:6px;min-width:0;margin:0 0 8px}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-modes button{min-height:36px!important;height:36px!important;padding:6px 9px!important;font-size:12px!important;white-space:nowrap;border:1px solid var(--kk-modern-line)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-modes button[aria-pressed=true]{border-color:var(--kk-modern-accent)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-modes button.kk-modern-bg-endpoint{flex:none;width:32px!important;min-width:32px!important;padding:4px!important;background:var(--endpoint-color)!important;box-shadow:inset 0 0 0 4px var(--kk-modern-panel)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-endpoint:first-of-type{margin-left:auto}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-plane{position:relative;height:144px;min-width:0;margin:0 6px 4px;border-radius:5px;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent),var(--paint-hue,#ff0000);touch-action:none;cursor:crosshair}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-plane:focus-visible{outline:2px solid var(--kk-modern-accent);outline-offset:3px}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-marker{position:absolute;width:14px;height:14px;box-sizing:border-box;transform:translate(-50%,-50%);border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #0008;pointer-events:none}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-values{display:flex;align-items:center;gap:10px;min-width:0}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-row{display:flex;align-items:center;gap:8px;min-width:0;min-height:36px;margin:0!important;font-size:12px!important;line-height:1.2!important;color:inherit!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-values .kk-modern-bg-row{flex:1}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-row span{flex:none;font:inherit!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-row input[type=range]{flex:1;width:0!important;min-width:0!important;margin:0!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-angle-row output{flex:none;width:32px;text-align:right;font:inherit!important;color:var(--kk-modern-muted)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-status{margin:4px 0 0!important;font-size:11px!important;line-height:1.35!important;color:var(--kk-modern-muted)!important}
html:not([data-editor-experience=modern]) :is(.kk-modern-background-tool,.kk-modern-background-color){display:none!important}
@media(min-width:1025px){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern][data-modern-background-color=open] .editor-browser-columns>:not(#kk-modern-background-color){display:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-background-color{border-top:0;padding-top:12px}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-modes{flex-wrap:wrap}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .tools>.tabs .kk-modern-background-tool{min-height:62px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .tools>.tabs .kk-modern-background-tool span{font-size:10px!important}
}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern][data-modern-background-color=open]>main{grid-template-rows:minmax(0,1fr) auto!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern][data-modern-background-color=open] .kk-modern-mobile-shelf{display:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-background-color{grid-column:1!important;grid-row:2!important;position:static!important;width:100%!important;max-height:min(44dvh,260px);z-index:auto!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-plane{height:80px}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-bg-heading{height:32px}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] button.kk-modern-bg-close{height:32px!important;min-height:32px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell[data-editor-experience=modern] .kk-modern-mobile-scroll .kk-modern-background-tool{flex:0 0 76px!important;width:76px!important;min-width:76px!important}
}
/* Keep narrow desktop controls legible and the editing canvas unobstructed. */
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell[data-modern-background-color=open] .kk-onboarding-start{display:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-bg-row span{white-space:nowrap!important;width:auto!important;min-width:max-content!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell button.kk-modern-bg-layer-help{width:100%;min-height:32px!important;padding:4px!important;border:0!important;font-size:11px!important;text-align:left;color:var(--kk-modern-muted)!important;background:transparent!important}
@media(min-width:1025px){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-bg-values{flex-wrap:wrap;gap:0}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-bg-values .kk-modern-bg-row{flex:1 0 100%!important}
}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-background-color{max-height:min(47dvh,300px)}
}
@media(min-width:1025px){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-bg-modes{display:grid;grid-template-columns:1fr 1fr}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-bg-endpoint{justify-self:start}
}

/* v11: hue is a visible spectrum; screen eyedropper belongs to desktop. */
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-bg-values{flex-wrap:wrap;gap:0}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-bg-values .kk-modern-bg-row{flex:1 0 100%!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell #kk-modern-bg-hue{appearance:none!important;-webkit-appearance:none!important;display:block;width:100%!important;height:28px!important;min-height:28px!important;background:transparent!important;border:0!important;padding:0!important;cursor:pointer;touch-action:pan-y}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell #kk-modern-bg-hue::-webkit-slider-runnable-track{height:8px!important;border:0!important;border-radius:5px!important;background:linear-gradient(to right,#f00 0%,#ff0 16.667%,#0f0 33.333%,#0ff 50%,#00f 66.667%,#f0f 83.333%,#f00 100%)!important;box-shadow:0 0 0 1px #0002!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell #kk-modern-bg-hue::-webkit-slider-thumb{appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box!important;width:18px!important;height:18px!important;margin-top:-5px!important;border:2px solid #fff!important;border-radius:50%!important;background:var(--paint-hue,#f00)!important;box-shadow:0 0 0 1px #0008!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell #kk-modern-bg-hue::-moz-range-track{height:8px!important;border:0!important;border-radius:5px!important;background:linear-gradient(to right,#f00 0%,#ff0 16.667%,#0f0 33.333%,#0ff 50%,#00f 66.667%,#f0f 83.333%,#f00 100%)!important;box-shadow:0 0 0 1px #0002!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell #kk-modern-bg-hue::-moz-range-progress{height:8px!important;background:transparent!important;border:0!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell #kk-modern-bg-hue::-moz-range-thumb{box-sizing:border-box!important;width:18px!important;height:18px!important;border:2px solid #fff!important;border-radius:50%!important;background:var(--paint-hue,#f00)!important;box-shadow:0 0 0 1px #0008!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell button.kk-modern-bg-eyedropper{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;min-height:40px!important;padding:8px 10px!important;margin:6px 0!important;border:1px solid var(--kk-modern-line)!important;font-size:12px!important;background:var(--kk-modern-soft)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-bg-eyedropper svg{width:18px;height:18px;flex:none}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-bg-eyedropper[aria-busy=true]{cursor:wait}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-bg-eyedropper:disabled{opacity:.55}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-bg-eyedropper[hidden]{display:none!important}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell button.kk-modern-bg-eyedropper{display:none!important}
}
@media(forced-colors:active){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell #kk-modern-bg-hue::-webkit-slider-runnable-track{background:Canvas!important;border:1px solid ButtonText!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell #kk-modern-bg-hue::-webkit-slider-thumb{background:Highlight!important;border-color:ButtonText!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell #kk-modern-bg-hue::-moz-range-track{background:Canvas!important;border:1px solid ButtonText!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell #kk-modern-bg-hue::-moz-range-thumb{background:Highlight!important;border-color:ButtonText!important}
}

/* v12: one continuous gallery, a persistent desktop tool rail and adjustable
   thumbnail density. The four-ID scope also beats shared native slider rows. */
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-size-control{display:none!important}
/* Native lazy-loaded images retain their fixed square geometry. Keeping cards
   in layout preserves exact scroll position when returning from a preview. */
@media(min-width:1025px){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open>main.column-editor{grid-template-columns:60px minmax(0,1.8fr) minmax(360px,1fr)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open>main.column-editor>.tools{display:block!important;grid-column:1!important;grid-row:1!important;width:60px!important;min-width:0!important;max-width:60px!important;height:100%!important;min-height:0!important;padding:0!important;border-right:1px solid var(--kk-modern-line)!important;overflow:hidden!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open>main.column-editor>.tools>:not(.tabs){display:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .tools>.tabs{display:flex!important;position:static!important;flex-direction:column!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;padding:8px 4px!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:thin}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .tools>.tabs>:is(.tab,.kp-nav,.kk-modern-background-tool){flex-shrink:0!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .tools>.tabs>:is(.tab,.kp-nav,.kk-modern-background-tool):not([aria-current=page]){background:transparent!important;color:var(--kk-modern-muted)!important;border-color:transparent!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .tools>.tabs>:is(.tab,.kp-nav,.kk-modern-background-tool)[aria-current=page]{background:var(--kk-modern-soft)!important;color:var(--kk-modern-accent)!important;border-color:transparent!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open>main.column-editor>.kk-modern-library{grid-column:2!important;grid-row:1!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open>main.column-editor>.workspace{grid-column:3!important;grid-row:1!important}
/* The native 2D/3D case fits this central area; arrows use the reserved sides. */
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open #stage{inset:8px 72px!important;width:calc(100% - 144px)!important;height:calc(100% - 16px)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--kk-library-thumb-size,144px)),1fr))!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-size-control{display:flex!important;align-items:center!important;gap:10px!important;flex:0 1 280px!important;min-width:230px!important;max-width:300px!important;width:auto!important;height:40px!important;min-height:40px!important;padding:0!important;margin:0!important;font-size:12px!important;color:var(--kk-modern-muted)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-size-control>span{flex:none!important;min-width:0!important;width:auto!important;white-space:nowrap!important;font-size:12px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-size-control input.kk-modern-library-size[type=range]{display:block!important;flex:1 1 110px!important;width:110px!important;min-width:70px!important;max-width:none!important;height:32px!important;margin:0!important;padding:0!important;accent-color:var(--kk-modern-accent)!important;cursor:pointer}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-size-control output{display:block!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;max-width:42px!important;white-space:nowrap!important;font-size:11px!important;text-align:right!important;color:var(--kk-modern-muted)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-use{display:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open.kk-browsing-case .kk-modern-library-close{visibility:hidden!important;pointer-events:none!important}
/* Same recognizable controls as classic, without animated chrome. */
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse:not([hidden]) .kk-browse-controls{display:flex!important;position:absolute!important;top:auto!important;bottom:14px!important;left:50%!important;transform:translateX(-50%)!important;flex-direction:column-reverse!important;align-items:stretch!important;gap:6px!important;width:174px!important;max-width:calc(100% - 24px)!important;padding:0!important;border:0!important;background:none!important;pointer-events:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse[data-positioned=true] .kk-browse-controls{top:calc(var(--browse-case-bottom) - 14px)!important;bottom:auto!important;left:var(--browse-case-center)!important;transform:translate(-50%,-100%)!important;width:min(174px,calc(var(--browse-case-right) - var(--browse-case-left) - 20px))!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse :is(.kk-browse-prev,.kk-browse-next,.kk-browse-controls button){border:2px solid transparent!important;border-radius:10px!important;background:linear-gradient(#080b12,#080b12) padding-box,conic-gradient(from 45deg,#00e5ff,#0055ff,#8400ff,#ff00d4,#ff7600,#ffed00,#00e5ff) border-box!important;color:#fff!important;-webkit-text-fill-color:#fff!important;animation:none!important;box-shadow:0 2px 8px #0004!important;font-weight:800!important;pointer-events:auto!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse :is(.kk-browse-prev,.kk-browse-next,.kk-browse-controls button):hover:not(:disabled){background:linear-gradient(#202630,#202630) padding-box,conic-gradient(from 45deg,#00e5ff,#0055ff,#8400ff,#ff00d4,#ff7600,#ffed00,#00e5ff) border-box!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse .kk-browse-controls button{display:block!important;min-height:38px!important;width:100%!important;padding:6px 10px!important;font-size:13px!important;line-height:20px!important;white-space:nowrap!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse :is(.kk-browse-prev,.kk-browse-next){display:grid!important;place-items:center!important;position:absolute!important;top:50%!important;width:60px!important;min-width:60px!important;height:68px!important;min-height:68px!important;padding:0!important;font-family:Arial,sans-serif!important;font-size:48px!important;line-height:1!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse .kk-browse-prev{left:6px!important;right:auto!important;transform:translateY(-50%)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse .kk-browse-next{left:auto!important;right:6px!important;transform:translateY(-50%)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse[data-positioned=true] :is(.kk-browse-prev,.kk-browse-next){top:var(--browse-case-middle)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse[data-positioned=true] .kk-browse-prev{left:calc(var(--browse-case-left) - 12px)!important;right:auto!important;transform:translate(-100%,-50%)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse[data-positioned=true] .kk-browse-next{left:calc(var(--browse-case-right) + 12px)!important;right:auto!important;transform:translateY(-50%)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse button:focus-visible{outline:3px solid #fff!important;outline-offset:3px!important}
}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 10px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-card-title{font-size:12px!important}
}
@media(forced-colors:active) and (min-width:1025px){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse :is(.kk-browse-prev,.kk-browse-next,.kk-browse-controls button),
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse :is(.kk-browse-prev,.kk-browse-next,.kk-browse-controls button):is(:hover,:focus-visible):not(:disabled){border-color:ButtonText!important;background:ButtonFace!important;color:ButtonText!important;-webkit-text-fill-color:ButtonText!important;box-shadow:none!important;outline-color:Highlight!important}
}

/* v13: libraries always have an explicit exit. Only the close glyph is red. */
#editor-shell#editor-shell#editor-shell#editor-shell:not([data-editor-experience=modern]) .kk-modern-library-return{display:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-close,
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open.kk-browsing-case .kk-modern-library-close{display:flex!important;visibility:visible!important;pointer-events:auto!important;align-items:center!important;justify-content:center!important;flex:none!important;gap:8px!important;min-height:44px!important;padding:6px 8px!important;color:var(--kk-modern-text)!important;background:transparent!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-close-icon{display:inline-block!important;color:#ff0000!important;-webkit-text-fill-color:#ff0000!important;font:500 25px/1 Arial,sans-serif!important;flex:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-preview-nav{display:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-case-browse .kk-browse-controls .kk-modern-library-return{position:static!important;inset:auto!important;transform:none!important;margin:0!important;z-index:auto!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-case-browse .kk-browse-controls .kk-modern-library-return[hidden]{display:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse:not([hidden]) .kk-browse-controls{flex-direction:column!important}

@media(max-width:1024px){
/* Preview navigation sits on the case at the user's request. The stage keeps
   the full screen width; arrow hit areas never reserve a horizontal gutter. */
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing main .workspace{grid-template-rows:minmax(0,1fr) auto!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing main .workspace>.stage-wrap{grid-row:1!important;width:100%!important;padding:0!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing #stage{inset:0!important;width:100%!important;height:100%!important;padding:0!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing #toast{grid-row:2!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing :is(.kk-modern-mobile-topbar,.kk-modern-mobile-preview){display:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-mobile-shelf[data-context=preview] .kk-modern-mobile-scroll .mobile2-dock{display:contents!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-mobile-shelf[data-context=preview] .kk-modern-mobile-scroll .mobile2-base{display:flex!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-mobile-shelf[data-context=preview] :is(.mobile2-image-actions,.mobile2-zoom,.kk-modern-mobile-secondary,.case3d-mode-toggle,.kk-modern-mobile-dismiss){display:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-mobile-shelf[data-context=preview] .kk-modern-mobile-toolbar{height:60px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing .kk-case-browse:not([hidden]) .kk-browse-controls{display:flex!important;position:absolute!important;top:auto!important;bottom:12px!important;left:50%!important;transform:translateX(-50%)!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;width:174px!important;max-width:calc(100% - 24px)!important;padding:0!important;margin:0!important;border:0!important;background:none!important;pointer-events:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing .kk-case-browse[data-positioned=true] .kk-browse-controls{top:calc(var(--browse-case-bottom) - 12px)!important;bottom:auto!important;left:var(--browse-case-center)!important;transform:translate(-50%,-100%)!important;width:min(174px,calc(var(--browse-case-right) - var(--browse-case-left) - 20px))!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing .kk-case-browse :is(.kk-browse-prev,.kk-browse-next,.kk-browse-controls button){border:2px solid transparent!important;border-radius:10px!important;background:linear-gradient(#080b12,#080b12) padding-box,conic-gradient(from 45deg,#00e5ff,#0055ff,#8400ff,#ff00d4,#ff7600,#ffed00,#00e5ff) border-box!important;color:#fff!important;-webkit-text-fill-color:#fff!important;animation:none!important;box-shadow:0 2px 8px #0004!important;font-weight:800!important;pointer-events:auto!important;touch-action:manipulation!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing .kk-case-browse :is(.kk-browse-prev,.kk-browse-next,.kk-browse-controls button):hover:not(:disabled){background:linear-gradient(#202630,#202630) padding-box,conic-gradient(from 45deg,#00e5ff,#0055ff,#8400ff,#ff00d4,#ff7600,#ffed00,#00e5ff) border-box!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing .kk-case-browse .kk-browse-controls button{display:block!important;position:static!important;inset:auto!important;transform:none!important;width:100%!important;min-height:40px!important;height:40px!important;padding:6px 10px!important;margin:0!important;font-size:13px!important;line-height:20px!important;white-space:nowrap!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing .kk-case-browse :is(.kk-browse-prev,.kk-browse-next){display:grid!important;place-items:center!important;position:absolute!important;top:50%!important;width:48px!important;min-width:48px!important;height:58px!important;min-height:58px!important;padding:0!important;font-family:Arial,sans-serif!important;font-size:42px!important;line-height:1!important;transform:translateY(-50%)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing .kk-case-browse .kk-browse-prev{left:8px!important;right:auto!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing .kk-case-browse .kk-browse-next{left:auto!important;right:8px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing .kk-case-browse[data-positioned=true] :is(.kk-browse-prev,.kk-browse-next){top:var(--browse-case-middle)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing .kk-case-browse[data-positioned=true] .kk-browse-prev{left:max(8px,calc(var(--browse-case-left) + 4px))!important;right:auto!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing .kk-case-browse[data-positioned=true] .kk-browse-next{left:min(calc(100% - 56px),calc(var(--browse-case-right) - 52px))!important;right:auto!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing .kk-case-browse button:focus-visible{outline:3px solid #fff!important;outline-offset:2px!important}
}
@media(forced-colors:active){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-close-icon{forced-color-adjust:none}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing .kk-case-browse :is(.kk-browse-prev,.kk-browse-next,.kk-browse-controls button),
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-previewing .kk-case-browse :is(.kk-browse-prev,.kk-browse-next,.kk-browse-controls button):is(:hover,:focus-visible):not(:disabled){border-color:ButtonText!important;background:ButtonFace!important;color:ButtonText!important;-webkit-text-fill-color:ButtonText!important;box-shadow:none!important;outline-color:Highlight!important}
}

/* v14: restore the requested classic button treatments without changing the
   modern layout, navigation, purchase state or preview controls. */
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell{--kk-classic-button-rainbow:conic-gradient(from 45deg,#00e5ff,#0055ff,#8400ff,#ff00d4,#ff7600,#ffed00,#00e5ff);--kk-classic-tab-fill:#282b30;--kk-classic-control-line:#536170}
html[data-editor-experience=modern][data-editor-theme=light] #editor-shell#editor-shell#editor-shell#editor-shell{--kk-classic-tab-fill:#fff;--kk-classic-control-line:#929ead}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell :is(.personal-image-actions .personal-upload,.kk-onboarding-actions [data-start=own],#empty-selection>.primary){border:0!important;border-radius:4px!important;background:#ed00b6!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:650!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell :is(.personal-image-actions .personal-upload,.kk-onboarding-actions [data-start=own],#empty-selection>.primary):hover:not(:disabled){background:#cf009f!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .personal-image-actions .personal-qr{border:1px solid var(--kk-classic-control-line)!important;border-radius:4px!important;background:transparent!important;color:var(--kk-modern-text)!important;-webkit-text-fill-color:currentColor!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .personal-image-actions .personal-qr:hover:not(:disabled){background:var(--kk-modern-soft)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell :is(#choose-brand,#review,.kk-onboarding-actions [data-start=images],.kk-onboarding-actions [data-start=mix],.kk-onboarding-actions [data-start=text]){border:2px solid transparent!important;border-radius:4px!important;background:linear-gradient(#000,#000) padding-box,var(--kk-classic-button-rainbow) border-box!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:700!important;animation:none!important;text-shadow:none!important;box-shadow:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell :is(#choose-brand,#review,.kk-onboarding-actions [data-start=images],.kk-onboarding-actions [data-start=mix],.kk-onboarding-actions [data-start=text]):hover:not(:disabled):not([aria-disabled=true]):not([data-empty-design=true]){background:linear-gradient(#15151b,#15151b) padding-box,var(--kk-classic-button-rainbow) border-box!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell:not(.kk-modern-library-open) .tools>.tabs>:is(.tab,.kp-nav,.kk-modern-background-tool):is(.active,[aria-pressed=true]),
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .tools>.tabs>:is(.tab,.kp-nav,.kk-modern-background-tool)[aria-current=page],
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .mobile2-base button:is(.active,[aria-pressed=true]){border:2px solid transparent!important;border-radius:4px!important;background:linear-gradient(var(--kk-classic-tab-fill),var(--kk-classic-tab-fill)) padding-box,var(--kk-classic-button-rainbow) border-box!important;color:var(--kk-modern-text)!important;-webkit-text-fill-color:currentColor!important;box-shadow:none!important;animation:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell :is(#choose-brand,#review,.personal-upload,.personal-qr,#empty-selection>.primary,.kk-onboarding-actions [data-start=own],.kk-onboarding-actions [data-start=images],.kk-onboarding-actions [data-start=mix],.kk-onboarding-actions [data-start=text]):focus-visible{outline:2px solid var(--kk-modern-text)!important;outline-offset:3px!important;box-shadow:0 0 0 2px var(--kk-modern-bg)!important}
/* The service injects this existing launcher into the editor header. */
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header .kk-editor-chat-launcher{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;flex:0 0 auto!important;height:40px!important;min-height:40px!important;padding:7px 14px!important;border:1px solid #ffffff50!important;border-radius:999px!important;background:linear-gradient(110deg,#0055ff 0%,#8400ff 32%,#ff00d4 62%,#ff9b00 100%)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:inset 0 0 0 1px #ffffff16!important;animation:none!important;font-size:11px!important;font-weight:700!important;line-height:16px!important;white-space:nowrap!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header .kk-editor-chat-launcher:hover:not(:disabled){background:linear-gradient(110deg,#246dff 0%,#9930ff 32%,#ff30df 62%,#ffaf30 100%)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header .kk-editor-chat-launcher .kk-chat-icon{flex:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;filter:brightness(0) invert(1)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header .kk-editor-chat-launcher .kk-chat-caption{font-size:11px!important;font-weight:700!important;line-height:16px!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header .kk-editor-chat-launcher:focus-visible{outline:2px solid var(--kk-modern-text)!important;outline-offset:2px!important}
@media(max-width:1024px){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header .kk-editor-chat-launcher{width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;flex-basis:38px!important;padding:0!important;gap:0!important;border-radius:50%!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header .kk-editor-chat-launcher .kk-chat-caption{display:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .mobile2-base button{color:var(--kk-modern-text)!important;-webkit-text-fill-color:currentColor!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .mobile2-base button *{color:inherit!important;-webkit-text-fill-color:currentColor!important}
}
@media(max-width:359px){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header .brand{width:110px!important;max-width:110px!important;flex-basis:110px!important}
}
/* Do not override native disabled/data-empty-design opacity or enablement. */
@media(forced-colors:active){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell :is(#choose-brand,#review,.personal-upload,.personal-qr,#empty-selection>.primary,.kk-onboarding-actions [data-start=own],.kk-onboarding-actions [data-start=images],.kk-onboarding-actions [data-start=mix],.kk-onboarding-actions [data-start=text]),
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell :is(#choose-brand,#review,.personal-upload,.personal-qr,#empty-selection>.primary,.kk-onboarding-actions [data-start=own],.kk-onboarding-actions [data-start=images],.kk-onboarding-actions [data-start=mix],.kk-onboarding-actions [data-start=text]):hover:not(:disabled):not([aria-disabled=true]):not([data-empty-design=true]){background:ButtonFace!important;color:ButtonText!important;-webkit-text-fill-color:ButtonText!important;border:2px solid ButtonText!important;box-shadow:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell:not(.kk-modern-library-open) .tools>.tabs>:is(.tab,.kp-nav,.kk-modern-background-tool):is(.active,[aria-pressed=true]),
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .tools>.tabs>:is(.tab,.kp-nav,.kk-modern-background-tool)[aria-current=page],
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .mobile2-base button:is(.active,[aria-pressed=true]){background:Highlight!important;color:HighlightText!important;-webkit-text-fill-color:HighlightText!important;border-color:Highlight!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header .kk-editor-chat-launcher,
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header .kk-editor-chat-launcher:hover:not(:disabled){background:ButtonFace!important;color:ButtonText!important;-webkit-text-fill-color:ButtonText!important;border-color:ButtonText!important;box-shadow:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header .kk-editor-chat-launcher :is(.kk-chat-icon,.kk-chat-caption){color:ButtonText!important;-webkit-text-fill-color:ButtonText!important;filter:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header .kk-editor-chat-launcher .kk-chat-icon{background:ButtonText!important}
}
/* v15: adapt desktop controls to the available CSS viewport, including a
   1080p display at 150% OS scaling. Keep text sizes and native canvas fitting. */
@media(min-width:1025px){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .tools>.tabs{min-height:0!important;height:100%!important;max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain;scrollbar-width:thin}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .tools>.tabs>:is(.tab,.kp-nav,.kk-modern-background-tool){flex-shrink:0!important}
}
@media(min-width:1025px) and (max-height:720px){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .tools>.tabs{gap:2px!important;padding:6px 4px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .tools>.tabs>:is(.tab,.kp-nav,.kk-modern-background-tool){min-height:50px!important;padding:6px 2px!important;gap:4px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .tools>#device-setup{padding:8px 12px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .tools>#device-setup h2{margin-bottom:4px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell #selected-phone{margin-bottom:6px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .editing-tools{padding:12px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell main.column-editor>.inspector{padding:12px!important}
/* A single sidebar scroller keeps all text settings reachable. */
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell #panel-text :is(.kk-tabbed-text,.kk-text-tab-content){max-height:none!important;overflow:visible!important;flex:0 0 auto!important}
}

/* Empty-case actions follow the rendered phone, including browser/OS scaling.
   Only the measured compact state changes; normal desktop and mobile retain
   their existing typography and layout. Never scale the artwork or the page. */
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-onboarding-start.kk-onboarding-fit {
  overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin;
}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-onboarding-fit .kk-onboarding-actions {gap:6px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-onboarding-fit .kk-onboarding-actions button {
  min-width:0!important;min-height:36px!important;padding:5px 4px!important;gap:5px!important;font-size:12px!important;line-height:1.25!important;
}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-onboarding-fit .kk-onboarding-actions button svg {width:16px!important;height:16px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-onboarding-fit .kk-onboarding-actions button span {min-width:0;overflow-wrap:anywhere}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-onboarding-fit .kk-onboarding-actions button:focus-visible {outline-offset:-4px!important}

/* v196: direct desktop actions beside the inspector. The shared root density
   scales this panel exactly like the rest of the editor. */
#editor-shell .kk-modern-desktop-actions[hidden]{display:none!important}
@media(min-width:1025px){
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell:not(.kk-modern-library-open)>main>.workspace{
  display:grid!important;grid-template-columns:minmax(0,1fr) 144px!important;grid-template-rows:minmax(0,1fr)!important;gap:0!important;
 }
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell:not(.kk-modern-library-open) .workspace>.stage-wrap{
  grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;
 }
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-desktop-actions:not([hidden]){
  grid-column:2;grid-row:1;align-self:start;min-width:0;max-height:calc(100% - 24px);margin:12px 8px 12px 0;padding:10px 7px;
  overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding:8px;border:1px solid var(--kk-modern-line);border-radius:10px;
  background:var(--kk-modern-panel);color:var(--kk-modern-text);z-index:13;
 }
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-desktop-actions h2{
  margin:0 3px 8px!important;font-size:12px!important;line-height:18px!important;font-weight:600!important;
 }
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-desktop-action-group{
  display:grid;grid-template-columns:minmax(0,1fr);gap:4px;
 }
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-desktop-action-group+.kk-modern-desktop-action-group{
  margin-top:7px;padding-top:7px;border-top:1px solid var(--kk-modern-line);
 }
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-desktop-actions .editor-action-tile{
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;
  width:100%!important;min-width:0!important;min-height:36px!important;height:auto!important;padding:7px 6px!important;margin:0!important;
  border:1px solid transparent!important;border-radius:6px!important;background:var(--kk-modern-soft)!important;color:var(--kk-modern-text)!important;box-shadow:none!important;
 }
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-desktop-actions .editor-action-tile>svg{
  width:16px!important;height:16px!important;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;
 }
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-desktop-actions .editor-action-tile>span{
  font-size:11px!important;line-height:15px!important;white-space:normal!important;text-align:left;
 }
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-desktop-actions .editor-action-tile:is([aria-pressed=true],[aria-expanded=true],:hover:not(:disabled)){
  border-color:var(--kk-modern-accent)!important;color:var(--kk-modern-accent)!important;
 }
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-desktop-actions .editor-action-tile:focus-visible{
  outline:2px solid var(--kk-modern-accent)!important;outline-offset:1px;
 }
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell #properties>.alignment-controls{
  position:static!important;transform:none!important;width:100%!important;margin:12px 0!important;
 }
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-history #reset-image{margin-left:5px!important;border-left:1px solid var(--kk-modern-line)!important;border-radius:0!important}
}
@media(max-width:1024px){#editor-shell .kk-modern-desktop-actions{display:none!important}}

/* Keep only navigation, the case and the colour-removal panel in the desktop grid. */
@media (min-width:1025px) {
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell>main.column-editor[data-remove-colour=open] {
    grid-template-columns:60px minmax(0,1fr) min(304px,32vw)!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell>main.column-editor[data-remove-colour=open]>.tools {
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell>main.column-editor[data-remove-colour=open]>.workspace {
    grid-template-columns:minmax(0,1fr)!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell>main.column-editor[data-remove-colour=open] :is(.inspector,.kk-modern-desktop-actions,.tools>:not(.tabs)) {
    display:none!important;
  }
}

/* DPI belongs to the inspector, leaving the preview height for the phone. */
@property --kk-panel-orbit {syntax:"<angle>";initial-value:45deg;inherits:false}
@keyframes kk-panel-orbit {to{--kk-panel-orbit:405deg}}
@media(min-width:1025px){
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell>main.column-editor>.inspector{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;overscroll-behavior:contain}
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell .inspector>#properties{flex:none!important;overflow:visible!important;padding-bottom:4px!important}
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-layers{margin:12px -16px 0!important}
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-layers>.kk-modern-group-body{max-height:none!important;overflow:visible!important}
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-inspector-quality{display:flex;justify-content:flex-end;flex:none;z-index:14;background:var(--kk-modern-panel)}
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell .inspector>.kk-modern-inspector-quality{position:sticky;top:-18px;margin-top:-10px;padding:8px 0 10px}
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell .workspace>.kk-modern-inspector-quality{position:absolute;top:8px;right:12px;border-radius:7px}
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-inspector-quality #print-quality-meter{position:static!important;inset:auto!important;transform:none!important;margin:0!important;max-width:100%;min-height:28px!important;padding:4px 7px!important;font-size:11px!important;border-radius:6px!important;gap:5px}
 /* The SVG now fits the actual preview bounds. Keep only safe handle margins. */
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell #stage{inset:8px 12px!important;width:calc(100% - 24px)!important;height:calc(100% - 16px)!important;overflow:visible!important}
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-desktop-actions:not([hidden]){border:2px solid transparent!important;background:linear-gradient(var(--kk-modern-panel),var(--kk-modern-panel)) padding-box,conic-gradient(from var(--kk-panel-orbit),#00e5ff,#0055ff,#8400ff,#ff00d4,#ff7600,#ffed00,#00e5ff) border-box!important;animation:kk-panel-orbit 6s linear infinite!important}
}
@media(prefers-reduced-motion:reduce){html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-desktop-actions:not([hidden]){animation:none!important}}

/* kuvakuoret-mobile-text-studio-v3.css */
/* Text-only mobile workspace; the native case stays mounted for rendering. */
.kk-tw-head,.kk-tw-preview,.kk-tw-colour,.kk-tw-outline,.kk-tw-sizes{display:none}
@media(max-width:1024px){
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell.kk-tw-open{
  --tw-bg:#20232b;--tw-line:#3c414e;--tw-text:#fff;--tw-muted:#a8b1c3;--tw-accent:#ec00c6;
  --tw-nav:calc(60px + env(safe-area-inset-bottom));--tw-head:44px;--tw-preview:clamp(128px,34%,300px);
  &>main{display:block!important;position:relative!important;height:calc(var(--mobile-height,100dvh) - var(--kk-modern-header-height,48px))!important;min-height:0!important;background:#15171d!important}
  & main>.workspace{visibility:hidden!important;pointer-events:none!important}
  & :is(.mobile-sheet-head,.inspector,.mobile-phone){display:none!important}
  & .kk-tw-head{display:flex!important;position:absolute;inset:0 0 auto;height:var(--tw-head);align-items:center;gap:4px;padding:0 10px;box-sizing:border-box;background:#20232b;color:var(--tw-text);z-index:50}
  & .kk-tw-head strong{flex:1;text-align:center;font-size:14px}
  & .kk-tw-head button{border:0!important;min-height:38px!important;height:38px!important;min-width:32px!important;padding:0 7px!important;border-radius:7px!important;font-size:12px!important;background:transparent!important;color:var(--tw-muted)!important}
  & .kk-tw-head .kk-tw-history{font-size:22px!important;padding:0!important;width:32px!important}
  & .kk-tw-head .kk-tw-done{background:var(--tw-accent)!important;color:#fff!important;font-weight:700!important;padding:0 15px!important}
  & .kk-tw-head button:disabled{opacity:.35}
  & .kk-tw-preview{display:block!important;position:absolute;inset:var(--tw-head) 0 auto;height:var(--tw-preview);box-sizing:border-box;padding:16px 18px 40px;background:#15171d;overflow:hidden}
  & .kk-tw-preview[data-backdrop=light]{background:#f2f2f5}
  & .kk-tw-preview svg{display:block!important;position:static!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important}
  & .kk-tw-backdrop{position:absolute!important;bottom:5px!important;right:12px!important;min-height:30px!important;height:30px!important;border:1px solid #555967!important;border-radius:6px!important;background:#20232b!important;color:#fff!important;padding:0 10px!important;font-size:11px!important}
  & .editing-tools{display:block!important;position:absolute!important;inset:calc(var(--tw-head) + var(--tw-preview)) 0 var(--tw-nav)!important;width:100%!important;height:auto!important;max-height:none!important;margin:0!important;padding:0 14px 16px!important;box-sizing:border-box!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin;background:var(--tw-bg)!important;border:0!important;border-top:1px solid var(--tw-line)!important;border-radius:0!important;z-index:40!important}
  & #panel-text{display:block!important;padding:0!important;margin:0!important;overflow:visible!important;max-height:none!important;color:var(--tw-text)!important}
  & .mobile-text-modes{position:sticky!important;top:0!important;display:flex!important;gap:0!important;height:44px!important;padding:0!important;margin:0 0 14px!important;background:var(--tw-bg)!important;border:0!important;border-bottom:1px solid var(--tw-line)!important;z-index:5}
  & .mobile-text-modes button{flex:1!important;min-width:0!important;min-height:36px!important;height:36px!important;margin:4px 2px!important;padding:0 3px!important;background:transparent!important;border:2px solid transparent!important;border-radius:6px!important;font-size:12px!important;font-weight:600!important;color:var(--tw-muted)!important;box-sizing:border-box!important}
  & .mobile-text-modes button[aria-pressed=true]{border-color:var(--tw-accent)!important;color:#fff!important}
  & .text-style-editor{display:flex!important;flex-direction:column!important;gap:0!important;margin:0!important;padding:0!important}
  & .text-style-editor>*{display:none!important}
  & :is(.text-edit-status,.kk-inline-picker,.kk-color-trigger,#add-text,.tip){display:none!important}
  & #new-text{display:none!important}
  &[data-text-workspace-tool=content] #new-text{display:block!important;box-sizing:border-box!important;width:100%!important;min-height:100px!important;height:100px!important;padding:14px!important;margin:0 0 12px!important;background:#15171d!important;border:1px solid var(--tw-line)!important;border-radius:10px!important;color:#fff!important;font-size:16px!important;line-height:1.4!important;resize:vertical}
  &[data-text-workspace-tool=content] #compose-new{display:block!important;min-height:44px!important;margin:0!important;background:transparent!important;border:1px solid var(--tw-line)!important;border-radius:8px!important;color:#fff!important;font-size:14px!important}
  &[data-text-workspace-tool=font] .kk-font-list{display:flex!important;flex-direction:column!important;gap:6px!important;max-height:none!important;overflow:visible!important}
  & .kk-font-list button{display:flex!important;align-items:center!important;justify-content:space-between!important;min-width:0!important;width:100%!important;min-height:56px!important;gap:12px!important;padding:10px 12px!important;border:1px solid var(--tw-line)!important;border-radius:8px!important;background:#272b35!important;color:#fff!important}
  & .kk-font-list button[aria-pressed=true]{border:2px solid var(--tw-accent)!important}
  & .kk-font-list button>span{min-width:0!important;font-size:25px!important;line-height:1.3!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  & .kk-font-list button>small{flex-shrink:0;font-size:11px!important;color:var(--tw-muted)!important}
  &[data-text-workspace-tool=color] .kk-tw-colour,&[data-text-workspace-tool=size] .kk-tw-sizes,&[data-text-workspace-tool=more] .kk-tw-outline{display:flex!important;flex-direction:column!important;gap:12px!important}
  & .kk-tw-segments{display:flex;justify-content:center;gap:clamp(20px,8vw,40px);padding:0;border:0;background:transparent}
  & .kk-tw-segments button{flex:0 1 auto;min-width:100px!important;min-height:38px!important;padding:6px 12px!important;border:2px solid transparent!important;border-radius:6px!important;background:transparent!important;font-size:13px!important;color:var(--tw-muted)!important;box-sizing:border-box!important}
  & .kk-tw-segments button[aria-pressed=true]{border-color:var(--tw-accent)!important;color:#fff!important;font-weight:700!important}
  & .kk-tw-gradient{display:flex;flex-direction:column;gap:16px;margin-top:20px}
  & .kk-tw-colour:not([data-mode=gradient]) .kk-tw-gradient{display:none!important}
  & .kk-tw-stops{display:flex;align-items:center;justify-content:center;gap:clamp(24px,11vw,48px)}
  & .kk-tw-stops button{display:flex!important;flex:0 1 auto;align-items:center;gap:10px;position:relative;min-width:0!important;min-height:52px!important;border:0!important;border-radius:6px!important;padding:2px 0!important;background:transparent!important;color:#fff!important;font-size:13px!important;font-weight:600!important;box-shadow:none!important;white-space:nowrap}
  & .kk-tw-stop-swatch{display:block;flex:0 0 auto;width:clamp(48px,13vw,56px);height:clamp(48px,13vw,56px);box-sizing:border-box;border:2px solid #fff;border-radius:50%;background:var(--stop-color);box-shadow:0 0 14px color-mix(in srgb,var(--stop-color) 28%,transparent)}
  & .kk-tw-stops [aria-pressed=true] .kk-tw-stop-swatch{outline:2px solid var(--tw-accent);outline-offset:3px}
  & .kk-tw-stop-hint{margin:0!important;text-align:center;font-size:12px!important;line-height:1.4!important;color:var(--tw-muted)!important}
  & .kk-tw-gradient-overview{display:flex;flex-direction:column;gap:12px;margin-top:4px}
  & .kk-tw-swap{display:flex!important;align-items:center;justify-content:center;gap:12px;min-height:44px!important;padding:6px 12px!important;border:1px solid var(--tw-muted)!important;border-radius:8px!important;background:transparent!important;color:#fff!important;font-size:13px!important}
  & .kk-tw-swap-icon{font-size:26px;line-height:1}
  & .kk-tw-colour-editor{display:flex;flex-direction:column;gap:12px}
  & .kk-tw-colour-heading{margin:0!important;font-size:13px!important;line-height:1.4!important;color:var(--tw-text)!important}
  & .kk-tw-colour-back{min-height:44px!important;padding:6px 12px!important;border:1px solid var(--tw-line)!important;border-radius:8px!important;background:transparent!important;color:#fff!important;font-size:13px!important}
  & .kk-tw-colour:not([data-mode=gradient]) :is(.kk-tw-colour-heading,.kk-tw-colour-back){display:none!important}
  & .kk-tw-colour[data-mode=gradient][data-editing-stop=false] .kk-tw-colour-editor{display:none!important}
  & .kk-tw-colour[data-mode=gradient][data-editing-stop=true] :is(.kk-tw-gradient-overview,.kk-tw-stop-hint,.kk-tw-material-button,.kk-tw-materials){display:none!important}
  & .kk-tw-range{display:grid!important;grid-template-columns:64px minmax(0,1fr) 47px!important;align-items:center!important;gap:10px!important;min-height:44px!important;width:100%!important;margin:0!important;padding:0!important;color:#fff!important}
  & .kk-tw-range label{font-size:12px!important;font-weight:500!important;color:#fff!important;line-height:1.3!important;margin:0!important;padding:0!important;white-space:nowrap}
  & .kk-tw-range input[type=range]{display:block!important;min-width:0!important;width:100%!important;margin:0!important;height:32px!important;min-height:32px!important;accent-color:var(--tw-accent)!important;background:transparent!important;touch-action:pan-y;cursor:pointer}
  & .kk-tw-range button{min-width:0!important;width:47px!important;min-height:44px!important;height:44px!important;padding:0!important;border:0!important;background:transparent!important;color:var(--tw-muted)!important;font-size:11px!important;border-radius:5px!important}
  & .kk-tw-picker{display:flex;flex-direction:column;gap:6px}
  & .kk-tw-shade{position:relative;height:clamp(100px,16dvh,160px);width:100%;border-radius:8px;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent);touch-action:none;cursor:crosshair;overflow:hidden;outline-offset:3px}
  & .kk-tw-colour[data-mode=gradient] .kk-tw-shade{height:clamp(80px,10dvh,120px)}
  & .kk-tw-shade>i{position:absolute;width:12px;height:12px;box-sizing:border-box;border:2px solid white;border-radius:2px;box-shadow:0 0 0 1px #0009;transform:translate(-50%,-50%);pointer-events:none}
  & .kk-tw-range input.kk-tw-hue[type=range]{appearance:none!important;-webkit-appearance:none!important;background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00) center/100% 12px no-repeat!important;border:0!important;border-radius:0!important}
  & .kk-tw-range input.kk-tw-hue[type=range]::-webkit-slider-runnable-track{height:12px!important;background:transparent!important;border:0!important;border-radius:3px!important}
  & .kk-tw-range input.kk-tw-hue[type=range]::-webkit-slider-thumb{appearance:none!important;-webkit-appearance:none!important;width:16px!important;height:22px!important;margin-top:-5px!important;border:2px solid white!important;border-radius:4px!important;background:transparent!important;box-shadow:0 0 2px black!important}
  & .kk-tw-range input.kk-tw-hue[type=range]::-moz-range-track{height:12px!important;background:transparent!important;border:0!important}
  & .kk-tw-range input.kk-tw-hue[type=range]::-moz-range-progress{background:transparent!important}
  & .kk-tw-range input.kk-tw-hue[type=range]::-moz-range-thumb{width:12px!important;height:18px!important;border:2px solid white!important;border-radius:4px!important;background:transparent!important;box-shadow:0 0 2px black!important}
  & .kk-tw-label{font-size:12px;color:var(--tw-muted)}
  & .kk-tw-material-button{min-height:40px!important;text-align:left!important;padding:0 5px!important;border:0!important;border-top:1px solid var(--tw-line)!important;border-radius:0!important;background:transparent!important;color:var(--tw-accent)!important;font-size:13px!important}
  & .kk-tw-materials{display:block!important}
  & .kk-modern-mobile-shelf{display:block!important;position:absolute!important;inset:auto 0 0!important;width:100%!important;height:var(--tw-nav)!important;min-height:0!important;border-top:1px solid var(--tw-line)!important;background:var(--tw-bg)!important;z-index:46!important;box-sizing:border-box;padding:0 0 env(safe-area-inset-bottom)!important}
  & .kk-modern-mobile-toolbar{height:60px!important;min-height:60px!important;padding:0!important;display:block!important}
  & .kk-modern-mobile-scroll{height:60px!important;min-height:60px!important;padding:0!important;width:100%!important;display:block!important;overflow-x:auto!important}
  & .mobile2-base{display:flex!important;height:60px!important;min-height:60px!important;padding:0 6px!important;gap:1px!important;background:var(--tw-bg)!important;border:0!important;overflow:visible!important}
  & .mobile2-base button{display:flex!important;flex:0 0 58px!important;min-width:58px!important;width:58px!important;min-height:58px!important;height:58px!important;gap:5px!important;border:0!important;background:transparent!important;color:var(--tw-muted)!important;border-radius:8px!important;box-shadow:none!important}
  & .mobile2-base button .kk-neon-inset{background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important}
  & .mobile2-base button span{font-size:9px!important}
  & .mobile2-base button svg{width:19px!important;height:19px!important}
  & .mobile2-base button::before,& .mobile2-base button::after{display:none!important}
  & .mobile2-base button[data-panel-key=background]{display:none!important}
  & .kk-modern-mobile-shelf :is(.mobile2-image-actions,.mobile2-zoom,.kk-modern-mobile-secondary,.kk-modern-mobile-dismiss,.kk-modern-mobile-settings,.kk-modern-mobile-preview,.kk-modern-mobile-scroll-prev,.kk-modern-mobile-scroll-next,.case3d-mode-toggle){display:none!important}
  & .mobile2-base [data-panel-key=text]{color:var(--tw-accent)!important;background:#2c2234!important}
  & .mobile2-base [data-panel-key=text] :is(svg,span){color:var(--tw-accent)!important}
  & button:focus-visible,& input:focus-visible,& .kk-tw-shade:focus-visible{outline:2px solid #fff!important;outline-offset:2px!important}
  &>main.mobile-keyboard{--tw-nav:0px;--tw-preview:clamp(80px,27%,150px)}
  &>main.mobile-keyboard .kk-modern-mobile-shelf{display:none!important}
  &>main.mobile-keyboard #new-text{height:64px!important;min-height:64px!important}
 }
}

/* kuvakuoret-library-performance-v1.css */
/* Keep every result in the scroll surface; lay out offscreen card contents only
   when needed. "auto" remembers measured heights when returning from preview. */
html[data-editor-experience=modern] #kk-modern-library .kk-modern-library-card {
  container-type: inline-size;
}
html[data-editor-experience=modern] #kk-modern-library .kk-modern-library-card-body {
  position: relative;
  content-visibility: auto;
  /* Square thumbnail + one 11px/1.4 title line and its 7px top margin.
     Match the actual card width, including after the size slider changes it. */
  contain-intrinsic-block-size: auto calc(100cqw + 22.4px);
  overflow-clip-margin: 4px;
}

/* kuvakuoret-editor-controls-v3.css */
/* The remove-image action keeps its own visual cue. */
html body #editor-shell:is(#editor-shell) .own-image-remove {
  color:#ff0000!important;
  -webkit-text-fill-color:#ff0000!important;
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  text-shadow:none!important;
  filter:none!important;
}

/* Draw the same mark inside the existing button hit areas. These scoped
   selectors also cover dialogs mounted directly on body. */
html body :is(#editor-shell,#storefront,#kk-mix-overlay,.kk-color-dialog,.crisp-dialog,dialog) button:is(
  #close-device-dialog,#close-upload,#close-review,#kk-mix-close,
  .mobile-done,.mobile2-close,.kk-close-v38,.editor-pane-close,
  .kk-rc-close,.kk-mc-close,.kk-mf-close,.kk-color-close,.kk-modern-bg-close,
  .crisp-dismiss,.crisp-info-close,.kp-back,.kk-modern-library-close,
  .kk-case-close,.kk-case-lightbox-close,.kk-image-guide-close,
  .close[data-close],.close[data-delivery-close]
) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-align: center;
}

html body :is(#editor-shell,#storefront,#kk-mix-overlay,.kk-color-dialog,.crisp-dialog,dialog) button:is(
  #close-device-dialog,#close-upload,#close-review,#kk-mix-close,
  .mobile-done,.mobile2-close,.kk-close-v38,.editor-pane-close,
  .kk-rc-close,.kk-mc-close,.kk-mf-close,.kk-color-close,.kk-modern-bg-close,
  .crisp-dismiss,.crisp-info-close,.kp-back,.kk-modern-library-close,
  .kk-case-close,.kk-case-lightbox-close,.kk-image-guide-close,
  .close[data-close],.close[data-delivery-close]
)::after {
  content: "";
  display: inline-block;
  box-sizing: border-box;
  flex: none;
  width: var(--kk-close-circle, 36px);
  height: var(--kk-close-circle, 36px);
  vertical-align: middle;
  border: 1px solid #949494;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 44%, #e00000 44% 56%, transparent 56%) center / 14px 14px no-repeat,
    linear-gradient(-45deg, transparent 44%, #e00000 44% 56%, transparent 56%) center / 14px 14px no-repeat,
    #fff;
  forced-color-adjust: none;
}

html body :is(#editor-shell,#storefront,#kk-mix-overlay,.kk-color-dialog,.crisp-dialog,dialog) button:is(
  #close-device-dialog,#close-upload,#close-review,#kk-mix-close,
  .mobile-done,.mobile2-close,.kk-close-v38,.editor-pane-close,
  .kk-rc-close,.kk-mc-close,.kk-mf-close,.kk-color-close,.kk-modern-bg-close,
  .crisp-dismiss,.crisp-info-close,.kp-back,.kk-case-lightbox-close,
  .close[data-close],.close[data-delivery-close]
) {
  font-size: 0 !important;
  line-height: 1 !important;
  padding: 0 !important;
}

html body :is(#editor-shell,#storefront,.kk-color-dialog,.crisp-dialog,dialog) button:is(
  .mobile-done,.mobile2-close,.kk-close-v38,.editor-pane-close,.kk-rc-close,
  .kk-mc-close,.kk-mf-close,.kk-case-close,.kk-image-guide-close,
  .kk-case-lightbox-close,.kk-color-close
) > svg,
html body #storefront .kk-image-guide-close > span[aria-hidden=true],
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-close-icon {
  display: none !important;
}

html body #editor-shell :is(.editor-pane-close,.mobile-done),
html body #crisp-studio-dialog[data-studio=material] :is(.crisp-dismiss,.crisp-info-close) {
  --kk-close-circle: 44px;
}

html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell button.kk-modern-bg-close {
  --kk-close-circle: 30px;
  font-size: 0 !important;
}

/* The AI label shares the close button's hit area. Its mobile header keeps
   the original columns so the title and preview keep their space. */
.crisp-close-label { display: none; }
@media (min-width: 701px) {
  html body #crisp-studio-dialog[data-studio=material] .crisp-studio-header {
    grid-template-columns: 134px minmax(0,1fr) 46px 84px;
  }
  html body #crisp-studio-dialog[data-studio=material] .crisp-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
  }
  .crisp-close-label {
    display: inline;
    color: #182232;
    font: 650 13px/1.2 system-ui, sans-serif;
  }
}

/* The opacity control already uses the browser's native range. Reuse that
   control everywhere, so filling, keyboard input, programmatic values and
   disabled states stay native rather than needing a second JavaScript model.
   Existing widths and touch-target heights are deliberately preserved. */
html {--kk-editor-control-accent:#b9abfb}
html[data-editor-theme=light] {--kk-editor-control-accent:#7355ba}
html body :is(#editor-shell,.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) input[type=range]:not(.crisp-wipe) {
  -webkit-appearance:auto!important;
  appearance:auto!important;
  accent-color:var(--kk-modern-accent,var(--kk-editor-control-accent))!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  box-shadow:none!important;
  cursor:pointer;
}

/* Revert the legacy hue/Crisp custom thumbs and tracks to the user-agent
   styles. Separate rules keep unsupported engine-specific selectors isolated.
   The transparent, full-size comparison wipe is intentionally excluded. */
html body :is(#editor-shell,.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) input[type=range]:not(.crisp-wipe)::-webkit-slider-runnable-track {
  all:revert!important;
}
html body :is(#editor-shell,.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) input[type=range]:not(.crisp-wipe)::-webkit-slider-thumb {
  all:revert!important;
}
html body :is(#editor-shell,.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) input[type=range]:not(.crisp-wipe)::-moz-range-track {
  all:revert!important;
}
html body :is(#editor-shell,.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) input[type=range]:not(.crisp-wipe)::-moz-range-progress {
  all:revert!important;
}
html body :is(#editor-shell,.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) input[type=range]:not(.crisp-wipe)::-moz-range-thumb {
  all:revert!important;
}

/* The adapter keeps the real inputs and their listeners. A row is always:
   caption | flexible native range | current value | optional reset.
   Headers may use display:contents so existing descendant queries continue to
   work. Explicit hidden attributes remain authoritative, including text modes.
   The repeated shell specificity also wins over legacy mobile colour rules
   that otherwise hide all outputs/numbers and split every control in two. */
html body :is(#editor-shell:is(#editor-shell):is(#editor-shell),.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) .kk-slider-row:not([hidden]) {
  display:grid!important;
  grid-template-columns:minmax(0,min(80px,30%)) minmax(50px,1fr) 42px!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  column-gap:6px!important;
  row-gap:0!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:44px!important;
  height:auto!important;
  margin:0!important;
  padding:4px 0!important;
  font-size:12px!important;
  line-height:1.3!important;
}
html body :is(#editor-shell:is(#editor-shell):is(#editor-shell),.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) .kk-slider-row:is(.kk-slider-has-reset,:has(.kk-slider-reset)):not([hidden]) {
  grid-template-columns:minmax(0,min(80px,30%)) minmax(50px,1fr) 42px 24px!important;
}
html body :is(#editor-shell:is(#editor-shell):is(#editor-shell),.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) .kk-slider-row :is(.kk-slider-header,.kk-slider-label:has(.kk-slider-caption)):not([hidden]) {
  display:contents!important;
}
html body :is(#editor-shell:is(#editor-shell):is(#editor-shell),.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) .kk-slider-row :is(.kk-slider-caption,.kk-slider-label:not(:has(.kk-slider-caption))):not([hidden]) {
  display:block!important;
  grid-column:1!important;
  grid-row:1!important;
  min-width:0!important;
  max-width:80px!important;
  margin:0!important;
  padding:0!important;
  font:inherit!important;
  font-weight:500!important;
  line-height:1.3!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  color:inherit!important;
}
html body :is(#editor-shell:is(#editor-shell):is(#editor-shell),.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) .kk-slider-row input.kk-slider-input[type=range]:not(.crisp-wipe):not([hidden]) {
  display:block!important;
  grid-column:2!important;
  grid-row:1!important;
  align-self:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  margin:0!important;
  padding:0!important;
}
html body :is(#editor-shell:is(#editor-shell):is(#editor-shell),.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) .kk-slider-row .kk-slider-value:not([hidden]) {
  display:flex!important;
  grid-column:3!important;
  grid-row:1!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:2px!important;
  width:42px!important;
  min-width:0!important;
  max-width:42px!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  font:inherit!important;
  font-size:11px!important;
  font-weight:400!important;
  font-variant-numeric:tabular-nums;
  line-height:1.3!important;
  white-space:nowrap!important;
  text-align:right!important;
  color:var(--kk-modern-muted,var(--muted,inherit))!important;
}
html body :is(#editor-shell:is(#editor-shell):is(#editor-shell),.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) .kk-slider-row .kk-slider-value :is(input[type=number],output):not([hidden]) {
  display:block!important;
  flex:1 1 0!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:32px!important;
  min-height:32px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:3px!important;
  background:transparent!important;
  box-shadow:none!important;
  font:inherit!important;
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
  text-align:right!important;
  appearance:textfield;
  -moz-appearance:textfield;
}
html body :is(#editor-shell:is(#editor-shell):is(#editor-shell),.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) .kk-slider-row .kk-slider-value input[type=number]::-webkit-inner-spin-button,
html body :is(#editor-shell:is(#editor-shell):is(#editor-shell),.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) .kk-slider-row .kk-slider-value input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance:none;
  margin:0;
}
html body :is(#editor-shell:is(#editor-shell):is(#editor-shell),.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) .kk-slider-row .kk-slider-reset:not([hidden]) {
  display:grid!important;
  grid-column:4!important;
  grid-row:1!important;
  place-items:center!important;
  box-sizing:border-box!important;
  width:24px!important;
  min-width:24px!important;
  max-width:24px!important;
  height:32px!important;
  min-height:32px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html body :is(#editor-shell:is(#editor-shell):is(#editor-shell),.kk-color-dialog,.crisp-dialog,.kk-pattern-dialog) :is(.kk-slider-row,.kk-slider-header,.kk-slider-label,.kk-slider-caption,.kk-slider-input,.kk-slider-value,.kk-slider-reset)[hidden] {
  display:none!important;
}

/* kuvakuoret-responsive-v1.css */
/* Compact desktop layout uses available CSS pixels, including browser zoom.
   Keep the regular desktop and existing mobile layouts unchanged. No zoom,
   transform scaling, DPR detection or changes to design/image coordinates. */
@media screen and (min-width:1025px) and (max-height:760px) {
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell {
    --kk-modern-header-height:46px;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header:not([hidden]) {
    height:46px!important;min-height:46px!important;max-height:46px!important;padding:4px 12px!important;gap:12px!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header .brand {
    width:148px!important;max-width:148px!important;flex-basis:148px!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .header .kk-editor-chat-launcher {
    height:34px!important;min-height:34px!important;padding:4px 12px!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .tools>.tabs {
    gap:2px!important;padding:4px!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .tools>.tabs>:is(.tab,.kp-nav,.kk-modern-background-tool) {
    min-height:46px!important;padding:4px 2px!important;gap:3px!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .tools>#device-setup {padding:6px 12px!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .editing-tools {padding:10px 12px!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .panel>h2 {margin-bottom:10px!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .personal-image-actions {margin:10px 0!important;gap:6px!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .selected-type {margin-bottom:8px!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell :is(.kk-modern-tool-group,.desktop-pro-menu) {margin-top:8px!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell :is(.kk-modern-tool-group,.desktop-pro-menu>details)>summary {
    min-height:36px!important;padding:7px 0!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .desktop-pro-body {padding:6px 0 10px!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-layers>summary {min-height:38px!important;padding:8px 0!important}

  /* Reserve space for fixed-pixel selection handles and the quality meter.
     SVG overflow is allowed only into this reserved, clipped workspace. */
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell #stage {
    inset:36px 24px 48px!important;width:calc(100% - 48px)!important;height:calc(100% - 84px)!important;overflow:visible!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open #stage {
    inset:32px 60px 48px!important;width:calc(100% - 120px)!important;height:calc(100% - 80px)!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-modern-library-open .kk-case-browse :is(.kk-browse-prev,.kk-browse-next) {
    width:44px!important;min-width:44px!important;height:52px!important;min-height:52px!important;font-size:38px!important;
  }

  /* Title, image-size control, favourites and close share one row. */
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library:not([hidden]) {
    display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:36px 40px minmax(0,1fr) auto;column-gap:8px;row-gap:6px;padding:8px 12px 0!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-header {display:contents!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-header h2 {grid-column:1;grid-row:1;align-self:center;justify-self:start;margin:0!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-close {grid-column:2;grid-row:1;min-height:34px!important;height:34px!important;padding:4px!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-commands {
    grid-column:1;grid-row:1;justify-self:end;align-self:center;width:min(330px,calc(100% - 130px));min-width:0!important;min-height:34px!important;height:34px!important;margin:0!important;padding:0!important;border:0!important;gap:8px!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-size-control {
    flex:1 1 auto!important;min-width:0!important;height:34px!important;min-height:34px!important;gap:6px!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-size-control input.kk-modern-library-size[type=range] {width:70px!important;min-width:40px!important;flex-basis:70px!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-tabs {flex:none!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-tabs button {min-height:34px!important;height:34px!important;padding:4px!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-navigation {
    grid-column:1/-1;grid-row:2;grid-template-columns:96px minmax(0,1fr) minmax(160px,.7fr)!important;gap:6px!important;margin:0!important;padding:0 0 4px!important;min-height:0!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-navigation :is(button,input,.kk-modern-library-crumbs) {min-height:34px!important;height:34px!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-body {
    grid-column:1/-1;grid-row:3;min-height:0!important;grid-template-columns:clamp(140px,13vw,180px) minmax(0,1fr)!important;
  }
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-sidebar {padding:8px 6px 8px 0!important;scrollbar-width:thin}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-scroll {padding:8px 0 12px 10px!important;scrollbar-width:thin}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-results-heading {margin-bottom:8px!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-grid {gap:12px 8px!important}
  html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell .kk-modern-library-selection {
    grid-column:1/-1;grid-row:4;min-width:0!important;min-height:32px!important;padding:6px 0!important;gap:8px!important;
  }

  /* Shared store dialogs remain bounded and keep their close button visible. */
  html body :is(#device-dialog,#upload-dialog,#review-dialog,.kk-color-dialog,.crisp-dialog,.kp-workspace,.kk-qr-dialog,.kk-case-dialog,#kk-delivery-dialog,.kk-image-guide-dialog) {
    max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 24px)!important;min-height:0!important;overscroll-behavior:contain;
  }
  html body :is(#device-dialog,#upload-dialog,#review-dialog) {padding:16px!important;overflow:auto!important;scrollbar-width:thin}
  html body .device-dialog-header h2 {margin:6px 0 12px!important}
  html body .device-browser-tabs {margin-bottom:10px!important}
  html body .device-grid {gap:10px!important}
  html body .device-card {min-height:100px!important;gap:8px!important;padding:12px 10px!important}
  html body .model-card img {height:110px!important}
  html body #device-results {margin:8px 0!important}
  html body .upload-dropzone {padding:18px!important;gap:8px!important}
  html body :is(.crisp-dialog,.kp-workspace,.kk-color-dialog) {scrollbar-width:thin}

  /* Public pages retain natural document scrolling, with less empty chrome. */
  html #storefront .home-header {height:64px!important;padding-block:8px!important;min-height:0!important}
  html #storefront .home-header .home-logo img {max-height:46px!important;width:auto!important}
  html #storefront .home-main {padding-top:12px!important}
  html #storefront .home-hero {padding:8px 0 16px!important;align-items:center!important;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)!important;column-gap:24px!important}
  html #storefront .hero-copy {padding-block:0!important}
  html #storefront .home-kicker {margin:0 0 10px!important;font-size:12px!important}
  html #storefront .home-hero h1 {font-size:clamp(34px,6.4dvh,48px)!important;line-height:1.08!important;margin:0 0 12px!important}
  html #storefront .hero-description {font-size:16px!important;line-height:1.4!important;margin:0 0 14px!important}
  html #storefront .home-offer {margin:0 0 14px!important}
  html #storefront .home-benefits {font-size:16px!important;line-height:1.35!important;gap:6px!important;margin:0 0 12px!important}
  html #storefront .home-cta {min-height:44px!important;padding:10px 20px!important;font-size:16px!important;line-height:1.3!important}
  html #storefront .home-cta-note {margin:4px 0 0!important;font-size:12px!important;line-height:1.4!important}
  html #storefront #home-case3d {height:min(440px,calc(100dvh - 120px))!important;min-height:0!important}
  html #storefront .home-main>.home-photo-tips {padding-block:28px!important}
  html body[data-kk-cart-page] .kkc-bar {min-height:64px;padding-block:10px}
  html body[data-kk-cart-page] .kkc-stage {padding-block:18px}
  html body[data-kk-cart-page] .kkc-main {padding:20px 24px;min-height:0}
  html body[data-kk-cart-page] .kkc-return {margin-bottom:16px}
  html body[data-kk-cart-page] .kkc-intro {margin-bottom:18px}
  html body[data-kk-cart-page] .kkc-summary {top:12px;padding:18px}
  html body[data-kk-cart-page] .kkc-summary h2 {margin-bottom:14px}
  html body[data-kk-cart-page] .kkc-footer {padding-block:14px}
  html body[data-kk-policy-page] .kkp-bar {min-height:64px;padding-block:10px}
  html body[data-kk-policy-page] .kkp-main {padding-block:20px}
  html body[data-kk-policy-page] .kkp-document {padding:24px 28px}
  html body[data-kk-gift-page] header {padding-block:12px}
  html body[data-kk-gift-page] main {margin-block:24px}
  html body[data-kk-gift-page] .gift-art {max-height:calc(100dvh - 150px);object-fit:contain}
  html body.kk-contact-ready .kk-contact-bar {min-height:64px;padding-block:8px}
  html body.kk-contact-ready #MainContent.kk-contact-main {padding-block:16px}
  html body.kk-contact-ready .kk-contact-card {padding:20px 28px 24px}
  html body.kk-contact-ready .kk-contact-back {margin-bottom:16px}
  html body.kk-contact-ready .kk-contact-card h1 {font-size:36px}
  html body.kk-contact-ready .kk-contact-intro {font-size:18px;margin-bottom:20px}
  html body.kk-contact-ready .kk-contact-layout {gap:24px}
  html body.kk-contact-ready .kk-contact-form input:not([type=hidden]) {margin-bottom:12px}
  html body.kk-contact-ready .kk-contact-help {padding:20px}
  html body.kk-contact-ready .kk-contact-chat {width:44px;height:44px;margin-bottom:16px}
}

/* kuvakuoret-mobile-preview-controls-v4.css */
/* Mobile-only navigation. The desktop controls retain their native placement. */
.kk-mobile-preview-controls{display:none}
.mobile2-outline-halo{display:none}
@media(max-width:1024px){
  #editor-shell:not([data-case3d-mode=view]) .mobile2-image-selection .mobile2-outline{
    stroke:#7355aa;
    stroke-width:2;
    stroke-dasharray:none;
    stroke-linejoin:round;
  }
  #editor-shell .mobile2-image-selection .mobile2-outline-halo{
    display:inline;
    stroke:#fff;
    stroke-width:4;
  }
  #editor-shell[data-case3d-mode=view] .mobile2-image-selection{visibility:hidden}
}
@media(max-width:1024px){
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell#editor-shell{
  & :is([data-panel-key=layouts],[data-mobile-tab=layouts],[data-panel=layouts],.kp-nav,[data-start=patterns],.kk-pattern-edit){display:none!important}
  /* The native start controller still owns content checks, placement and actions.
     Only restore it in the empty editing view; sheets, libraries and 3D stay clear. */
  & .kk-onboarding-start{display:none!important}
  &:not(.kk-modern-library-open):not(.kk-modern-library-previewing):not(.kk-browsing-case):not([data-case3d-mode=view]):not([data-modern-background-color=open]) main[data-mobile-panel=browse] .kk-onboarding-start:not([hidden]){display:block!important}
  & .kk-onboarding-start .kk-onboarding-actions{display:grid!important}
  /* Firefox's CAD bounds can extend past the visible case. Keep every preview
     action inside the stage, above the mobile navigation. */
  &.kk-modern-library-previewing .kk-case-browse[data-positioned=true] .kk-browse-controls{top:min(calc(var(--browse-case-bottom) - 12px),calc(100% - 12px))!important}
  &[data-mobile-preview-controls=true]{
   & .case3d-mode-toggle{display:none!important}
   &:not(.kk-modern-library-open):not(.kk-modern-library-previewing) main>.workspace{grid-template-rows:38px minmax(0,1fr)!important}
   /* Preview owns the full stage; its hidden toolbar must not create a second grid column. */
   &:not(.kk-modern-library-previewing) .kk-modern-mobile-topbar:not([hidden]){display:flex!important;flex-wrap:nowrap!important;gap:4px!important;align-items:center!important;height:38px!important;min-height:38px!important;padding:2px 6px!important;box-sizing:border-box!important;overflow:hidden!important}
   & .kk-modern-mobile-topbar .kk-modern-history{flex:0 0 auto!important;gap:0!important;height:34px!important}
   & .kk-modern-mobile-topbar .kk-modern-history button{width:32px!important;min-width:32px!important;height:34px!important;min-height:34px!important;padding:6px!important}
   & .kk-modern-mobile-quality{flex:1 1 0!important;justify-content:flex-end!important;overflow:hidden!important}
   & .kk-mobile-preview-controls:not([hidden]){display:flex!important;order:-1!important;flex:0 0 132px!important;align-items:stretch!important;min-width:0!important;height:34px!important;margin:0!important}
   & .kk-mobile-preview-controls button{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;height:34px!important;min-height:34px!important;min-width:0!important;margin:0!important;padding:0 6px!important;box-sizing:border-box!important;border:1px solid var(--kk-modern-line,#41434b)!important;border-radius:9px!important;background:var(--kk-modern-panel,#202124)!important;color:var(--kk-modern-text,#fff)!important;-webkit-text-fill-color:currentColor!important;font:650 12px/1.2 system-ui,sans-serif!important;white-space:nowrap!important;cursor:pointer;touch-action:manipulation}
   & .kk-mobile-preview-controls button[hidden]{display:none!important}
   & .kk-mobile-preview-controls button:focus-visible{outline:2px solid #21dbea!important;outline-offset:3px!important}
   & .kk-mobile-preview-controls button:active{filter:brightness(1.2)}
   & .kk-mobile-preview-controls svg{display:block!important;width:16px!important;height:16px!important;flex:none!important}
   & .kk-mobile-preview-controls .kk-mobile-preview-mode{flex:1!important;border:1px solid var(--kk-modern-line,#41434b)!important;background:var(--kk-modern-panel,#202124)!important;color:var(--kk-modern-text,#fff)!important;box-shadow:none!important;font-weight:600!important}
   & .kk-mobile-preview-controls .kk-mobile-preview-mode[data-action=edit]{border:2px solid transparent!important;color:#fff!important;background:linear-gradient(110deg,#b8008d,#7129e8 55%,#164fe1) padding-box,linear-gradient(110deg,#ff70d4,#b085ff,#48efff) border-box!important;box-shadow:0 1px 8px #b8008d40!important;font-weight:800!important}
  }
 }
}

/* kuvakuoret-mobile-header-v2.css */
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell#editor-shell #review .purchase-primary-line{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:0!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell#editor-shell #review .purchase-details{display:contents!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell#editor-shell #review .purchase-model{display:none!important}
/* Equal side columns anchor chat to the viewport centre, regardless of price. */
@media(max-width:1024px){
 html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell#editor-shell{
  & .header:not([hidden]){position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr)!important;gap:8px!important;padding:3px 10px!important}
  & .header .brand{grid-column:1!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important}
  & .header .brand img{width:100%!important;max-height:32px!important;object-position:left center!important}
  & .header .kk-editor-chat-launcher{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important;margin:0!important}
  & .header .header-actions{box-sizing:border-box!important;padding:0!important;gap:0!important;max-width:100%!important;grid-column:3!important;display:flex!important;width:100%!important;min-width:0!important;margin:0!important;justify-content:flex-end!important}
  & .header .purchase-controls{box-sizing:border-box!important;flex:1 1 0!important;width:100%!important;min-width:0!important;max-width:100%!important}
  & .header #review{box-sizing:border-box!important;width:100%!important;max-width:100%!important;flex:1 1 0!important;min-width:0!important;height:38px!important;min-height:38px!important;padding:2px 0!important;font-size:11px!important;white-space:nowrap!important;display:flex!important;justify-content:center!important}
  & .header #review .purchase-primary-line{display:flex!important;flex-direction:column;max-width:100%;gap:1px!important}
  & .header #review .purchase-caption{font-size:11px!important;line-height:13px}
  & .header #review .purchase-details{display:flex!important;align-items:center;justify-content:center;max-width:100%;gap:2px}
  & .header #review .purchase-details > [aria-hidden=true],
  & .header #review .purchase-details:has(.purchase-button-price[hidden]):has(.purchase-model[hidden]){display:none!important}
  & .header #review .purchase-button-price:not([hidden]){flex:none;font-size:10px;line-height:12px}
  & .header #review .purchase-model:not([hidden]){display:block!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:500;line-height:12px}
  &[data-mobile-preview-controls=true]{
   &:not(.kk-modern-library-open):not(.kk-modern-library-previewing) main>.workspace{grid-template-rows:44px minmax(0,1fr)!important}
   &:not(.kk-modern-library-previewing) .kk-modern-mobile-topbar:not([hidden]){position:relative!important;height:44px!important;min-height:44px!important;padding:2px 6px!important;gap:0!important}
   & .kk-modern-mobile-topbar .kk-modern-history{order:2!important;margin-left:auto!important;height:40px!important;gap:0!important}
   & .kk-modern-mobile-topbar .kk-modern-history button{width:clamp(33px,9vw,40px)!important;min-width:clamp(33px,9vw,40px)!important;height:40px!important;min-height:40px!important;padding:6px!important}
   & .kk-modern-mobile-topbar .kk-modern-history button svg{width:22px!important;height:22px!important}
   & .kk-modern-mobile-topbar .kk-modern-history .kk-modern-theme{position:absolute!important;left:50%!important;top:2px!important;transform:translateX(-50%)!important;width:32px!important;min-width:32px!important;font-size:20px!important}
   & .kk-mobile-preview-controls:not([hidden]){flex:0 1 124px!important;max-width:calc(50% - 24px)!important;height:40px!important}
   & .kk-mobile-preview-controls button{height:40px!important;min-height:40px!important;border-radius:4px!important;font-size:12px!important;gap:4px!important;padding:0 4px!important}
   & .kk-mobile-preview-controls svg{width:18px!important;height:18px!important}
   & .kk-mobile-preview-mode[data-action=edit]{font-size:11px!important}
  }
 }
}

/* kuvakuoret-text-effects-v1.css */
#editor-shell #kk-text-tab-fill .kk-effects{padding:0 0 16px;min-width:0}
#editor-shell #kk-text-tab-fill .kk-effects h3{margin:4px 0 5px;font-size:15px;line-height:1.35}
#editor-shell #kk-text-tab-fill .kk-effects-hint{margin:0 0 12px;color:var(--muted,#aeb2c2);font-size:12px;line-height:1.45}
#editor-shell #kk-text-tab-fill .kk-effects-reset{min-height:36px;padding:6px 12px;background:transparent;border:1px solid var(--border,#444955);border-radius:9px;color:inherit;font:inherit;font-size:12px;cursor:pointer}
#editor-shell #kk-text-tab-fill .kk-effects-reset[aria-pressed=true]{border-color:#ed00bb}
#editor-shell #kk-text-tab-fill .kk-effects-status{min-height:18px;margin:9px 0;font-size:12px;color:var(--muted,#b9becb)}
#editor-shell #kk-text-tab-fill .kk-effects-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#editor-shell #kk-text-tab-fill .kk-effects-grid button{position:relative;display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:0 0 9px;overflow:hidden;border:2px solid #343744;border-radius:14px;background:linear-gradient(145deg,#252632,#11131c);color:#f6f6fb;cursor:pointer;font:inherit;touch-action:manipulation;transition:border-color .12s,background-color .12s}
#editor-shell #kk-text-tab-fill .kk-effects-grid button:hover{border-color:#ac87d8}
#editor-shell #kk-text-tab-fill .kk-effects-grid button[aria-pressed=true]{border-color:#f000c4;box-shadow:0 0 0 1px #f000c426;background:#2a2031}
#editor-shell #kk-text-tab-fill .kk-effects-grid button[aria-pressed=true]::after{content:'✓';position:absolute;right:6px;top:6px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#ed00bb;color:white;font-size:14px}
#editor-shell #kk-text-tab-fill .kk-effects-grid button:focus-visible,#editor-shell #kk-text-tab-fill .kk-effects-reset:focus-visible{outline:2px solid #c3a4ff;outline-offset:3px}
#editor-shell #kk-text-tab-fill .kk-effects-grid img{display:block;width:100%;height:auto;aspect-ratio:1.6;object-fit:contain;pointer-events:none}
#editor-shell #kk-text-tab-fill .kk-effects-grid span{font-size:12px;line-height:1.25;text-align:center;padding:0 3px}
/* The shared mobile theme has important rules for all pressed panel buttons. */
#editor-shell:is(#editor-shell) #kk-text-tab-fill .kk-effects-grid>button{border:2px solid #343744!important;border-radius:14px!important;background:linear-gradient(145deg,#252632,#11131c)!important;padding:0 0 9px!important}
#editor-shell:is(#editor-shell) #kk-text-tab-fill .kk-effects-grid>button[aria-pressed=true]{border-color:#f000c4!important;background:#2a2031!important}
@media(max-width:1024px){
 #editor-shell .kk-tw-colour[data-effect-open=true]>:not(.kk-tw-materials):not(.kk-tw-material-button){display:none!important}
 #editor-shell .kk-tw-colour[data-effect-open=true]{display:flex;flex-direction:column}
 #editor-shell .kk-tw-colour[data-effect-open=true]>.kk-tw-material-button{order:-1;align-self:flex-start;margin:0 0 12px;padding:8px 0;border:0;background:transparent;color:#f271d2;text-align:left;min-height:40px}
 #editor-shell .kk-tw-materials{padding-top:0}
 #editor-shell #kk-text-tab-fill .kk-effects-grid{gap:12px}
 #editor-shell #kk-text-tab-fill .kk-effects-grid span{font-size:13px}
 #editor-shell #kk-text-tab-fill .kk-effects-status{min-height:20px}
 #editor-shell #kk-text-tab-fill .kk-effects-reset,#editor-shell .kk-tw-colour[data-effect-open=true]>.kk-tw-material-button{min-height:44px}
}

/* kuvakuoret-font-library-v1.css */
/* Static specimens: browsing never needs a FontFace, in either text workspace. */
html #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell#editor-shell{
 --kk-font-ink:#f4f1eb;--kk-font-muted:#adb2be;--kk-font-line:#343943;--kk-font-hover:#292e38;--kk-font-image-filter:invert(1);--kk-font-accent:#b52a96;
 & .kk-font-list[data-font-library]{gap:2px!important;padding:0!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
 & .kk-font-list[data-font-library] button[data-font]{display:grid!important;grid-template-columns:minmax(0,1fr) 24px!important;grid-template-rows:auto auto!important;align-items:center!important;justify-content:normal!important;gap:2px 12px!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:76px!important;height:auto!important;margin:0!important;padding:8px 12px!important;border:1px solid transparent!important;border-bottom-color:var(--kk-font-line)!important;border-radius:10px!important;background:transparent!important;color:var(--kk-font-ink)!important;box-shadow:none!important;text-align:left!important;cursor:pointer!important}
 & .kk-font-list[data-font-library] button[data-font]::after{display:none!important}
 & .kk-font-list[data-font-library] button[data-font]:hover:not([aria-pressed=true]){background:var(--kk-font-hover)!important}
 & .kk-font-list[data-font-library] button[data-font]:focus-visible{outline:2px solid #e574d4!important;outline-offset:-3px!important}
 & .kk-font-list[data-font-library] .kk-font-specimen{display:flex!important;grid-column:1!important;grid-row:1!important;align-items:center!important;width:100%!important;min-width:0!important;min-height:38px!important;height:auto!important;padding:0!important;overflow:visible!important;white-space:normal!important;font:inherit!important}
 & .kk-font-list[data-font-library] .kk-font-preview{display:block!important;max-width:360px!important;width:100%!important;height:auto!important;max-height:64px!important;margin:0!important;object-fit:contain!important;object-position:left center!important;filter:var(--kk-font-image-filter)!important;border:0!important;border-radius:0!important}
 & .kk-font-list[data-font-library] .kk-font-name{display:block!important;grid-column:1!important;grid-row:2!important;min-width:0!important;padding:0!important;margin:1px 0 0!important;color:var(--kk-font-muted)!important;opacity:1!important;font:400 11px/1.4 Arial,sans-serif!important;letter-spacing:.015em!important;overflow-wrap:anywhere!important;white-space:normal!important}
 & .kk-font-list[data-font-library] .kk-font-selected{display:grid!important;grid-column:2!important;grid-row:1 / span 2!important;place-items:center!important;justify-self:center!important;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;padding:0!important;border-radius:50%!important;background:var(--kk-font-accent)!important;color:#fff!important;font:700 14px/1 Arial,sans-serif!important;visibility:hidden;overflow:visible!important;white-space:normal!important}
 & .kk-font-list[data-font-library] button[data-font][aria-pressed=true]{background:#f5f1e9!important;color:#191c22!important;border-color:var(--kk-font-accent)!important;box-shadow:inset 0 0 0 1px var(--kk-font-accent)!important}
 & .kk-font-list[data-font-library] [aria-pressed=true] .kk-font-preview{filter:none!important}
 & .kk-font-list[data-font-library] [aria-pressed=true] .kk-font-name{color:#626773!important}
 & .kk-font-list[data-font-library] [aria-pressed=true] .kk-font-selected{visibility:visible}
 & .kk-font-list[data-font-library] [aria-busy=true]{opacity:.65!important;cursor:progress!important}
 & .kk-font-list[data-font-library] .kk-font-preview-failed .kk-font-specimen{display:none!important}
 & .kk-font-list[data-font-library] .kk-font-preview-failed .kk-font-name{font-size:17px!important;grid-row:1 / span 2!important;color:inherit!important}
 & .text-edit-status[data-font-error]{display:block!important;padding:10px 0!important;font:400 13px/1.4 Arial,sans-serif!important;color:var(--kk-font-ink)!important}
}
html[data-editor-theme=light] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell#editor-shell{--kk-font-ink:#222630;--kk-font-muted:#656c78;--kk-font-line:#d9dce3;--kk-font-hover:#eceef3;--kk-font-image-filter:none}
@media(min-width:1025px){
 html #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell#editor-shell .kk-font-list[data-font-library]{display:flex!important;flex-direction:column!important}
 html #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell#editor-shell .kk-font-dropdown:not([open]) .kk-font-list[data-font-library]{display:none!important}
 html #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell#editor-shell .kk-font-dropdown[open] .kk-font-list[data-font-library]{max-height:min(480px,55vh)!important;padding:4px!important;overflow-y:auto!important;overscroll-behavior:contain;border-color:var(--kk-font-line)!important}
}
@media(max-width:1024px){
 /* The existing mobile text studio deliberately uses a dark canvas in both themes. */
 html[data-editor-theme=light] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell#editor-shell.kk-tw-open{--kk-font-ink:#f4f1eb;--kk-font-muted:#adb2be;--kk-font-line:#343943;--kk-font-hover:#292e38;--kk-font-image-filter:invert(1)}
 html #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell#editor-shell main[data-text-tool=font] .kk-font-list[data-font-library]{display:flex!important;flex-direction:column!important;max-height:none!important;overflow:visible!important}
}

/* kuvakuoret-mobile-tool-ink-v1.css */
/* Classic tiles set white ink on their own dark inset. The modern toolbar
   makes that inset transparent, so use the ink of the themed button. */
@media (max-width: 1024px) {
  html[data-editor-experience=modern] #editor-shell[data-modern-shell-mounted=true] .kk-modern-mobile-scroll button .kk-neon-inset,
  html[data-editor-experience=modern] #editor-shell[data-modern-shell-mounted=true] .kk-modern-mobile-scroll button .kk-neon-inset :is(svg, span) {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
  }
}

/* kuvakuoret-case-browse-mix-v1.css */
/* Mix / selaa kuvia started from the empty-case buttons uses the same themed
   arrows and buttons as browsing from the image library. Desktop places the
   arrows just outside the case edge, mobile on the case edge. */
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-browsing-case:not(.kk-modern-library-open):not(.kk-modern-library-previewing) .kk-case-browse :is(.kk-browse-prev,.kk-browse-next,.kk-browse-controls button){border:2px solid transparent!important;border-radius:10px!important;background:linear-gradient(#080b12,#080b12) padding-box,conic-gradient(from 45deg,#00e5ff,#0055ff,#8400ff,#ff00d4,#ff7600,#ffed00,#00e5ff) border-box!important;color:#fff!important;-webkit-text-fill-color:#fff!important;animation:none!important;box-shadow:0 2px 8px #0004!important;font-weight:800!important;pointer-events:auto!important;touch-action:manipulation!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-browsing-case:not(.kk-modern-library-open):not(.kk-modern-library-previewing) .kk-case-browse :is(.kk-browse-prev,.kk-browse-next,.kk-browse-controls button):hover:not(:disabled){background:linear-gradient(#202630,#202630) padding-box,conic-gradient(from 45deg,#00e5ff,#0055ff,#8400ff,#ff00d4,#ff7600,#ffed00,#00e5ff) border-box!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-browsing-case:not(.kk-modern-library-open):not(.kk-modern-library-previewing) .kk-case-browse:not([hidden]) .kk-browse-controls{display:flex!important;position:absolute!important;top:auto!important;bottom:12px!important;left:50%!important;transform:translateX(-50%)!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;width:174px!important;max-width:calc(100% - 24px)!important;padding:0!important;margin:0!important;border:0!important;background:none!important;pointer-events:none!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-browsing-case:not(.kk-modern-library-open):not(.kk-modern-library-previewing) .kk-case-browse .kk-browse-controls button:not([hidden]){display:block!important;position:static!important;inset:auto!important;transform:none!important;width:100%!important;min-height:40px!important;height:40px!important;padding:6px 10px!important;margin:0!important;font-size:13px!important;line-height:20px!important;white-space:nowrap!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-browsing-case:not(.kk-modern-library-open):not(.kk-modern-library-previewing) .kk-case-browse :is(.kk-browse-prev,.kk-browse-next){display:grid!important;place-items:center!important;position:absolute!important;top:50%!important;width:48px!important;min-width:48px!important;height:58px!important;min-height:58px!important;font-family:Arial,sans-serif!important;font-size:42px!important;line-height:1!important;transform:translateY(-50%)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-browsing-case:not(.kk-modern-library-open):not(.kk-modern-library-previewing) .kk-case-browse .kk-browse-prev{left:8px!important;right:auto!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-browsing-case:not(.kk-modern-library-open):not(.kk-modern-library-previewing) .kk-case-browse .kk-browse-next{left:auto!important;right:8px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-browsing-case:not(.kk-modern-library-open):not(.kk-modern-library-previewing) .kk-case-browse .kk-browse-controls button[hidden]{display:none!important}
@media(min-width:1025px){
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-browsing-case:not(.kk-modern-library-open):not(.kk-modern-library-previewing) .kk-case-browse :is(.kk-browse-prev,.kk-browse-next){width:60px!important;min-width:60px!important;height:68px!important;min-height:68px!important;font-size:48px!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-browsing-case:not(.kk-modern-library-open):not(.kk-modern-library-previewing) .kk-case-browse[data-positioned=true] :is(.kk-browse-prev,.kk-browse-next){top:var(--browse-case-middle)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-browsing-case:not(.kk-modern-library-open):not(.kk-modern-library-previewing) .kk-case-browse[data-positioned=true] .kk-browse-prev{left:calc(var(--browse-case-left) - 12px)!important;transform:translate(-100%,-50%)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-browsing-case:not(.kk-modern-library-open):not(.kk-modern-library-previewing) .kk-case-browse[data-positioned=true] .kk-browse-next{left:calc(var(--browse-case-right) + 12px)!important}
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell.kk-browsing-case:not(.kk-modern-library-open):not(.kk-modern-library-previewing) .kk-case-browse[data-positioned=true] .kk-browse-controls{top:calc(var(--browse-case-bottom) - 12px)!important;bottom:auto!important;left:var(--browse-case-center)!important;transform:translate(-50%,-100%)!important;width:min(174px,calc(var(--browse-case-right) - var(--browse-case-left) - 20px))!important}
}
/* The arrow glyph sits about 1/6 em below the middle of its line box. Lift it
   so it is centred in the button, in every browsing mode. */
html[data-editor-experience=modern] #editor-shell#editor-shell#editor-shell#editor-shell#editor-shell .kk-case-browse :is(.kk-browse-prev,.kk-browse-next){padding:0 0 .34em!important}

/* kuvakuoret-recraft-tools-v1.css */
/* The image studio uses the storefront's light surfaces on every device. */
#editor-shell .recraft-direct-tools:not([hidden]) {
  display: grid;
  gap: 6px;
}
#editor-shell .recraft-direct-tools button {
  min-height: 36px;
  text-align: left;
}
body > dialog.recraft-launch-page {
  box-sizing: border-box;
  width: min(100% - 24px, 440px);
  max-height: calc(100dvh - 24px);
  padding: 18px;
  color-scheme: only light;
  color: #182232;
  background: #fff;
  border: 1px solid #d5dfe8;
  border-radius: 16px;
  font: 600 15px/1.4 system-ui;
}
.recraft-launch-page::backdrop { background: #17243675; }
.recraft-launch-page h2 { margin: 0 0 14px; }
.recraft-launch-page button {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-block: 8px;
  padding: 8px 14px;
  color: #182232;
  background: #eef4f8;
  border: 1px solid #d5dfe8;
  border-radius: 8px;
  font: inherit;
  text-align: left;
}
body #crisp-studio-dialog.crisp-dialog[data-studio=material] {
  --crisp-surface: #f5f8fb;
  --crisp-ink: #182232;
  --crisp-muted: #495b6c;
  color-scheme: only light;
  color: #182232;
  background: #f5f8fb;
  border-color: #d5dfe8;
}
#crisp-studio-dialog[data-studio=material] :is(.crisp-studio-header,.crisp-actions) {
  color: #182232;
  background: #fff;
  border-color: #d5dfe8;
}
#crisp-studio-dialog[data-studio=material] .crisp-studio-header {
  display: grid;
  grid-template-columns: 96px minmax(0,1fr) 46px 46px;
  gap: 4px;
  align-items: center;
}
#crisp-studio-dialog[data-studio=material] .crisp-studio-title {
  justify-content: center;
  margin-inline-end: 0;
  min-width: 0;
  text-align: center;
}
#crisp-studio-dialog[data-studio=material] .crisp-studio-header h2 {
  color: #182232;
  line-height: 1.15;
  white-space: normal;
}
#crisp-studio-dialog[data-studio=material] .crisp-tool-toggle {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  gap: 7px;
  border: 0;
  border-radius: 8px !important;
}
#crisp-studio-dialog[data-studio=material] .crisp-tool-toggle:is(:hover,:not(:hover),[aria-expanded=true]) {
  color: #182232;
  background: transparent;
  box-shadow: none;
}
#crisp-studio-dialog[data-studio=material] .crisp-menu-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #322600;
  background: #ffdb27;
}
#crisp-studio-dialog[data-studio=material] .crisp-menu-icon svg { width: 18px; height: 18px; }
#crisp-studio-dialog[data-studio=material] .crisp-tool-toggle:is(:hover,[aria-expanded=true]) .crisp-menu-icon {
  background: #ffcf00;
}
#crisp-studio-dialog.crisp-dialog[data-studio=material] .crisp-dismiss {
  background: #fff5f6 !important;
  color: #a72e45 !important;
}
#crisp-studio-dialog[data-studio=material] :is(.crisp-tool-menu,.crisp-info-panel) {
  background: #fff;
  color: #182232;
}
#crisp-studio-dialog[data-studio=material] .crisp-tool-option[aria-checked=true]:is(:hover,:not(:hover)) {
  background: #dbf3fc;
  border-color: #95ccdf;
  color: #094963;
}
#crisp-studio-dialog[data-studio=material] .crisp-actions .crisp-primary:is(:hover,:not(:hover)) {
  color: #182232;
  background: linear-gradient(#fff,#fff) padding-box,
    conic-gradient(#00bdd9,#0055ff,#8400ff,#ee00bb,#f76e00,#efbe00,#00bdd9) border-box;
  border: 2px solid transparent;
  border-radius: 9px;
  box-shadow: none;
}
#crisp-studio-dialog[data-studio=material] :is(.crisp-crop-canvas,.crisp-compare-canvas) {
  border-color: #d5dfe8;
  background: repeating-conic-gradient(#e6edf3 0% 25%,#f7fafc 0% 50%) 50% / 16px 16px;
}
#crisp-studio-dialog[data-studio=material] .crisp-picker.has-view-zoom:not([hidden]) {
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
}
#crisp-studio-dialog[data-studio=material] .recraft-view-zoom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding-top: 4px;
  font-size: 12px;
}
#crisp-studio-dialog[data-studio=material] .recraft-view-zoom > span {
  margin-inline-end: 4px;
}
#crisp-studio-dialog[data-studio=material] .recraft-view-zoom button {
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #d5dfe8;
  border-radius: 10px;
  background: #fff;
  color: #182232;
  font-size: 12px;
}
#crisp-studio-dialog[data-studio=material] :is(.crisp-view-tools,.crisp-zoom-tools) button[aria-pressed=false]:hover:not(:disabled) {
  background: #fffcff;
  border-color: #d5dfe8;
  color: var(--crisp-ink);
}
#crisp-studio-dialog[data-studio=material] .crisp-crop-canvas {
  touch-action: none;
}
#crisp-studio-dialog[data-studio=material] .crisp-crop-canvas.is-view-panning :is(svg,[data-handle]) {
  cursor: grab !important;
}
#crisp-studio-dialog[data-studio=material] .recraft-tool-controls {
  display: grid;
  gap: 8px;
  margin-block: 8px;
}
#crisp-studio-dialog[data-studio=material] .recraft-tool-controls label {
  display: grid;
  gap: 5px;
}
#crisp-studio-dialog[data-studio=material] .recraft-tool-controls select {
  min-height: 40px;
  background: #fff;
  color: #182232;
  border: 1px solid #aebfce;
  border-radius: 6px;
  font: inherit;
}
.recraft-extend-preview {
  position: relative;
  width: min(68px, 100%);
  max-height: 130px;
  overflow: hidden;
  border: 2px solid #425a6c;
  border-radius: 10px;
  background: repeating-linear-gradient(135deg,#dcecf5 0 4px,#f5f8fb 4px 8px);
}
.recraft-extend-preview span { position: absolute; overflow: hidden; }
.recraft-extend-preview span img { position: absolute; max-width: none; }
.recraft-extend-preview::after {
  content: "";
  position: absolute;
  top: 6%;
  left: 8%;
  width: 35%;
  height: 14%;
  border: 1px solid #425a6c;
  border-radius: 4px;
  background: #fff;
}
#crisp-studio-dialog[data-studio=material] .crisp-crop-image.is-marking { cursor: crosshair !important; }
.crisp-after-layer.recraft-alpha {
  background: repeating-conic-gradient(#e3ebf2 0% 25%,#fff 0% 50%) 50% / 16px 16px;
}
@media (max-width: 700px) {
  #crisp-studio-dialog[data-studio=material] .crisp-studio-header {
    grid-template-columns: 88px minmax(0,1fr) 42px 42px;
  }
  #crisp-studio-dialog[data-studio=material] .crisp-studio-header h2 { font-size: 16px; }
  #crisp-studio-dialog[data-studio=material] .crisp-studio-sidebar {
    max-height: 38dvh;
    overflow: auto;
  }
  #crisp-studio-dialog[data-studio=material][data-ai-tool=erase][data-phase=crop] .crisp-picker {
    padding-inline: 4px;
  }
  #crisp-studio-dialog[data-studio=material][data-ai-tool=erase][data-phase=crop] .crisp-crop-canvas {
    border-radius: 14px;
  }
  #crisp-studio-dialog[data-studio=material][data-ai-tool=erase][data-phase=crop] .crisp-studio-sidebar {
    padding-block: 0 4px;
  }
  #crisp-studio-dialog[data-studio=material] .recraft-erase-controls {
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    margin-block: 0;
  }
  #crisp-studio-dialog[data-studio=material] .recraft-erase-controls label {
    grid-template-columns: 82px minmax(0,1fr);
    gap: 10px;
    align-items: center;
    min-height: 44px;
    font-size: 12px;
  }
  #crisp-studio-dialog[data-studio=material] .recraft-erase-controls input {
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
  }
  #crisp-studio-dialog[data-studio=material] .recraft-erase-controls button {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* kuvakuoret-editor-notices-v1.css */
/* Shared announcement surfaces for the editor and its dialogs. */
html #editor-shell#editor-shell#editor-shell #toast {
  position: fixed !important;
  inset: auto 12px 16px !important;
  z-index: 200 !important;
  transform: none !important;
  width: min(420px, calc(100% - 24px)) !important;
  max-width: none !important;
  max-height: calc(100dvh - 105px) !important;
  overflow: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 4px !important;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  html #editor-shell#editor-shell#editor-shell #toast {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.kk-notice-card,
body .kk-notice-status:not([hidden]):has(> .kk-notice-icon),
body #editor-shell#editor-shell .kk-notice-status:not([hidden]):has(> .kk-notice-icon) {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 8px 10px;
  padding: 12px !important;
  border: 1px solid #5c5c5c !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #141414 !important;
  font: 500 14px/1.4 Arial, sans-serif !important;
  overflow-wrap: anywhere;
}

.kk-notice-card strong { display: block; font-size: 16px; line-height: 1.25; color: #141414 !important; }
.kk-notice-card p { margin: 0; color: #353535 !important; }
.kk-notice-card strong + p { margin-top: 4px; }
.kk-notice-copy p:only-child { color: #141414 !important; font-weight: 700; }

body .kk-notice-icon,
body > dialog.crisp-error .crisp-error-icon,
body:has(> dialog#crisp-studio-dialog) > dialog.crisp-error .crisp-error-icon,
body dialog.kk-upload-dialog:is([data-state=error], [data-state=rejected], .kk-notice-challenge) .kk-upload-symbol {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #202020;
  color: #fff;
  font: 800 21px/1 Arial, sans-serif;
}

body .kk-notice-icon:is([data-kind=error], [data-kind=warning]),
body > dialog.crisp-error .crisp-error-icon,
body:has(> dialog#crisp-studio-dialog) > dialog.crisp-error .crisp-error-icon,
body dialog.kk-upload-dialog:is([data-state=error], [data-state=rejected], .kk-notice-challenge) .kk-upload-symbol {
  background: #e00000 !important;
  color: #fff !important;
}

body .kk-notice-icon[data-kind=success] { background: #007339; }
body .kk-notice-icon[hidden] { display: none; }

.kk-notice-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.kk-notice-card button { min-height: 36px; padding: 7px 11px; font: 700 13px/1.3 Arial, sans-serif; }
@media (pointer: coarse) { .kk-notice-card button { min-height: 44px; } }

/* Use a fixed palette inside the white surfaces. The editor shell applies
   separate theme rules to ordinary buttons, including foreground text fill. */
html body :is(
  #editor-shell#editor-shell #toast .kk-notice-card, .kk-notice-card,
  .kk-notice-status:has(> .kk-notice-icon), dialog.kk-notice-dialog, dialog.crisp-error,
  dialog.kk-upload-dialog:is([data-state=error], [data-state=rejected], .kk-notice-challenge)
) button {
  background: var(--kk-notice-button-bg, #f3f5f7) !important;
  border: 1px solid var(--kk-notice-button-border, #66717d) !important;
  border-radius: 4px !important;
  color: var(--kk-notice-button-ink, #141414) !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  color-scheme: light;
}

html body :is(.kk-notice-card, .kk-notice-status, dialog.kk-notice-dialog, dialog.crisp-error,
  dialog.kk-upload-dialog:is([data-state=error], [data-state=rejected], .kk-notice-challenge)
) button:is(.kk-notice-primary, .crisp-primary, .kk-upload-primary) {
  --kk-notice-button-bg: #d30083;
  --kk-notice-button-border: #d30083;
  --kk-notice-button-ink: #fff;
  --kk-notice-button-hover: #ad006b;
}

html body :is(#editor-shell#editor-shell #toast .kk-notice-card, .kk-notice-card,
  .kk-notice-status:has(> .kk-notice-icon), dialog.kk-notice-dialog, dialog.crisp-error,
  dialog.kk-upload-dialog:is([data-state=error], [data-state=rejected], .kk-notice-challenge)
) button:hover:not(:disabled) {
  background: var(--kk-notice-button-hover, #e4e9ef) !important;
}

html body :is(#editor-shell#editor-shell #toast .kk-notice-card, .kk-notice-card,
  .kk-notice-status:has(> .kk-notice-icon), dialog.kk-notice-dialog, dialog.crisp-error,
  dialog.kk-upload-dialog:is([data-state=error], [data-state=rejected], .kk-notice-challenge)
) button:focus-visible {
  outline: 2px solid #400caa !important;
  outline-offset: 3px;
}

html body :is(.kk-notice-card, .kk-notice-status:has(> .kk-notice-icon), dialog.kk-notice-dialog, dialog.crisp-error,
  dialog.kk-upload-dialog:is([data-state=error], [data-state=rejected], .kk-notice-challenge)
) button:disabled {
  --kk-notice-button-bg: #e4e7ec;
  --kk-notice-button-ink: #515b66;
  --kk-notice-button-border: #8b96a3;
  opacity: 1;
}

body :is(.kk-notice-copy, .kk-notice-status:has(> .kk-notice-icon) > span:not(.kk-notice-icon),
  dialog.kk-notice-dialog :is(h2,p), dialog.crisp-error :is(h2,.crisp-error-message),
  dialog.kk-upload-dialog:is([data-state=error], [data-state=rejected], .kk-notice-challenge) :is(h2,.kk-upload-status,.kk-upload-support,summary)
) {
  color: #141414 !important;
  -webkit-text-fill-color: currentColor !important;
}

html body :is(#editor-shell#editor-shell #toast .kk-notice-card, .kk-notice-card,
  .kk-notice-status:has(> .kk-notice-icon), dialog.kk-notice-dialog, dialog.crisp-error,
  dialog.kk-upload-dialog:is([data-state=error], [data-state=rejected], .kk-notice-challenge)
) a {
  color: #402078 !important;
  -webkit-text-fill-color: currentColor !important;
  text-decoration: underline;
}

body dialog.kk-notice-dialog,
body > dialog.crisp-error,
body:has(> dialog#crisp-studio-dialog) > dialog.crisp-error,
body dialog.kk-upload-dialog:is([data-state=error], [data-state=rejected], .kk-notice-challenge) {
  border: 1px solid #5c5c5c !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #141414 !important;
  color-scheme: light;
}

body dialog.kk-notice-dialog h2,
body > dialog.crisp-error h2,
body dialog.kk-upload-dialog:is([data-state=error], [data-state=rejected], .kk-notice-challenge) h2 {
  color: #141414 !important;
}

body > dialog.crisp-error .crisp-error-message,
body dialog.kk-upload-dialog:is([data-state=error], [data-state=rejected], .kk-notice-challenge) :is(.kk-upload-status, details, .kk-upload-support) {
  background: #fff !important;
  border-color: #c6c6c6 !important;
  border-radius: 4px !important;
  color: #353535 !important;
}

.kk-notice-dialog > .kk-notice-icon { margin-bottom: 8px; }

#kuvakuoret-editor-load-status {
  position: fixed;
  inset: auto 12px 24px;
  z-index: 10000;
  width: min(420px, calc(100% - 24px));
  margin: 0 auto;
  box-shadow: 0 5px 15px #0005;
}

#kuvakuoret-editor-load-status[hidden] { display: none !important; }
#kuvakuoret-editor-load-status button { grid-column: 2; justify-self: start; border-radius: 4px; }
#kuvakuoret-editor-load-status::before {
  content: 'i' / '';
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #202020;
  font: 800 21px/1 Arial, sans-serif;
}
#kuvakuoret-editor-load-status[data-kind=error]::before { content: '!' / ''; background: #e00000; }
