*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202536;background:#eef0f4}body{display:flex;flex-direction:column}button,select,input{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #7974ff;outline-offset:3px}button{border:0;background:none;color:inherit}button:hover{background:#f1f2f7}
/* Viewer chrome stays neutral while the theme inside the frame changes. */
.toolbar{background:#fff;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 24px;border-bottom:1px solid #e2e4eb;position:relative;z-index:2;flex-shrink:0}
.brand-group,.toolbar-tools{display:flex;align-items:center;gap:20px;min-width:0}
.brand-group{flex-shrink:0}
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-decoration:none;color:#41475a;white-space:nowrap}
.brand img{display:block;width:180px;height:auto}
.brand-caption{font-size:14px;font-weight:600;line-height:1.2}
.area-switch{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:12px 16px;border:1px solid #e0e2eb;border-radius:10px;background:#fafbfc;font-size:13px;font-weight:650;white-space:nowrap}
.area-switch[data-area="dashboard"] svg{transform:rotate(180deg);order:-1}
.toolbar-tools{gap:12px}
.devices,.appearance{display:flex;align-items:center;gap:4px;background:#f8f9fc;border:1px solid #e2e4eb;border-radius:12px;padding:4px;flex-shrink:0}
.devices button,.appearance button{display:grid;place-items:center;width:40px;height:44px;padding:0;border:1px solid #e2e4eb;border-radius:8px;color:#606b7f}
.devices button[aria-pressed="true"],.appearance button[aria-pressed="true"]{background:#6157ed;color:#fff;border-color:#6157ed;box-shadow:0 2px 4px #34305714}
.toolbar-icon{display:block;width:24px;height:24px;flex-shrink:0;pointer-events:none}
.choices{display:flex;align-items:stretch;gap:10px;min-width:0}
.choice{border:1px solid #dce1eb;border-radius:10px;text-align:left;padding:9px 38px 9px 12px;width:170px;min-width:0;position:relative;background:#fff}
.choice small{display:block;color:#7a8395;font-size:12px;line-height:16px;margin-bottom:3px}
.choice>span{display:block;font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chevron{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:block;width:24px;height:24px;color:#727e92;pointer-events:none}
.language-choice{width:142px;padding-right:0}
.language-choice small{position:relative;z-index:1;pointer-events:none}
#language{appearance:none;border:0;background:transparent;color:inherit;position:absolute;inset:0;width:100%;height:100%;min-width:0;font-size:14px;line-height:20px;font-weight:600;padding:28px 36px 9px 12px;cursor:pointer;text-overflow:ellipsis}
.language-choice:focus-within{outline:3px solid #7974ff;outline-offset:3px}
#language:focus-visible{outline:none}
#language:disabled{cursor:default;color:#7a8395}
.primary{display:inline-flex;align-items:center;justify-content:center;min-height:54px;background:#6157ed;color:#fff;border-radius:10px;font-size:15px;font-weight:650;padding:15px 24px;text-decoration:none;white-space:nowrap}
.primary:hover{background:#5046db}
.pagebar{height:43px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 25px;background:#fafbfc;border-bottom:1px solid #e2e4eb;font-size:12px;color:#747b8d;gap:10px}.pagebar>div{display:flex;align-items:center;gap:12px}.demo-badge{font-size:9px;letter-spacing:1px;color:#5b55c9;background:#ecebfc;padding:4px 6px;border-radius:4px;font-weight:700}.page-actions button{font-size:12px;border-left:1px solid #e2e4eb;padding:4px 10px}.page-actions select{border:0;color:#41475a;background:transparent;font-size:12px;max-width:220px}#stage{flex:1;min-height:0;display:flex;justify-content:center;overflow:auto;padding:0;transition:padding .2s}#frame-wrap{position:relative;background:white;width:100%;height:100%;flex-shrink:0;transition:width .24s}#preview{display:block;width:100%;height:100%;border:0;background:#fff}#stage[data-device="tablet"],#stage[data-device="mobile"]{padding:22px 10px}#stage[data-device="tablet"] #frame-wrap{width:min(768px,100%);border-radius:14px;overflow:hidden;box-shadow:0 8px 40px #2432481a}#stage[data-device="mobile"] #frame-wrap{width:min(390px,100%);border-radius:22px;overflow:hidden;box-shadow:0 8px 40px #2432481a}#loading{position:absolute;inset:0;background:#fff;display:flex;align-items:center;justify-content:center;gap:12px;font-size:14px;color:#81869a}#loading[hidden]{display:none}.spinner{height:18px;width:18px;border:2px solid #e3e1fd;border-top-color:#5750e7;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}dialog{border:1px solid #e8e9ef;border-radius:22px;padding:34px;width:min(1460px,calc(100% - 56px));max-height:calc(100dvh - 56px);box-shadow:0 25px 100px #18203533;background:#f8f9fc;color:#202536}dialog::backdrop{background:#1e233568;backdrop-filter:blur(6px)}.dialog-head{display:flex;justify-content:space-between;gap:25px;align-items:flex-start}.eyebrow{color:#6963de!important;font-size:10px!important;letter-spacing:1.6px;font-weight:700;margin:0 0 12px!important}h1,h2{font-size:32px;letter-spacing:-1.2px;margin:0 0 10px;font-weight:650}.dialog-head p{font-size:14px;color:#808697;margin:0}.close{display:grid;place-items:center;padding:0;line-height:1;border:1px solid #e0e2eb;border-radius:50%;width:36px;height:36px;font-size:23px;flex-shrink:0;background:#fff;color:#6e7484}.gallery-tools{display:flex;justify-content:flex-end;align-items:center;margin:28px 0 20px;color:#858b9a;font-size:12px}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.theme-card{border:1px solid #e4e6ee;border-radius:14px;background:#fff;padding:9px;text-align:left;overflow:hidden;transition:box-shadow .15s,border-color .15s}.theme-card:hover{background:#fff;border-color:#9b96ef;box-shadow:0 7px 25px #2f35520e}.theme-card[aria-pressed="true"]{border:2px solid #7770e8;padding:8px}.theme-image{height:auto;aspect-ratio:1.8;overflow:hidden;border-radius:8px;display:block;background:#edeef4;position:relative}.theme-image img{width:100%;height:100%;object-fit:cover;object-position:top;display:block}.theme-card .card-title{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:17px 9px 11px;font-size:15px;font-weight:650}.theme-card small{font-size:10px;color:#878c9c;display:block;padding:0 9px 8px}.theme-card .card-action{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:76px;min-height:34px;padding:8px 12px;border-radius:8px;background:#5750e7;color:#fff;font-size:12px;font-weight:650}.theme-card:hover .card-action{background:#4640c9}.theme-card[aria-pressed="true"] .card-action{background:#efedff;color:#5750e7}.theme-card .card-title>span:first-child{min-width:0;overflow-wrap:anywhere}#palettes{max-width:700px}.mode-tabs{display:flex;padding:4px;gap:4px;background:#eaecf2;border-radius:9px;width:fit-content;margin:26px 0 20px}.mode-tabs button{padding:9px 25px;border-radius:7px;font-size:12px}.mode-tabs button[aria-pressed="true"]{background:#fff;box-shadow:0 1px 4px #26314a10}#palette-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.palette-card{background:#fff;border:1px solid #e2e4ed;border-radius:10px;padding:9px;text-align:left;font-size:11px}.palette-card[aria-pressed="true"]{outline:2px solid #7974ec;outline-offset:1px}.swatches{display:flex;height:35px;border-radius:5px;overflow:hidden;margin-bottom:9px}.swatches i{flex:1}.palette-card span:last-child{display:block;padding:0 2px 3px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#242a3b;color:white;border-radius:12px;box-shadow:0 5px 30px #20283e33;z-index:10;max-width:90%;font-size:13px}@media(max-width:1699px){.toolbar{flex-wrap:wrap;padding:14px 20px;gap:16px}.brand-group{width:100%}.toolbar-tools{width:100%}.choices{flex:1}.choice{width:auto;flex:1}}
@media(max-width:900px){.toolbar{padding:12px;gap:12px}.brand img{width:150px}.brand-caption{font-size:12px}.brand-group{gap:12px}.area-switch{padding:10px 12px;font-size:12px;gap:8px}.toolbar-tools{display:grid;grid-template-columns:1fr auto auto;gap:10px}.choices{grid-column:1/-1;grid-row:1;gap:8px}.choice{width:0;padding-left:10px;padding-right:30px}.choice small{font-size:10px}.choice>span,#language{font-size:12px}.chevron{right:6px;width:20px;height:20px}.language-choice{padding-right:0}#language{padding:28px 26px 9px 10px}.devices{justify-self:start}.devices button,.appearance button{width:36px;height:36px}.primary{min-height:46px;padding:12px 22px;font-size:14px}.pagebar{padding:0 12px}.page-actions{gap:4px!important}.page-actions select{max-width:180px}.page-actions button{padding:4px 6px;font-size:11px}}
@media(max-width:760px){dialog{padding:20px;width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:15px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}h1,h2{font-size:26px}.dialog-head p{font-size:12px}.theme-card .card-title{padding:12px 3px 8px;font-size:12px}.theme-card small{padding:0 3px 5px;font-size:9px}.theme-card .card-title{flex-wrap:wrap}.theme-card .card-action{min-width:70px;min-height:32px;font-size:11px;padding:7px 10px}#palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.gallery{grid-template-columns:1fr}.theme-image{aspect-ratio:1.9}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.close svg{display:block;width:24px;height:24px;pointer-events:none}
@media(max-width:380px){.brand img{width:132px}.area-switch{padding:10px 8px;font-size:11px}.area-switch .toolbar-icon{width:20px;height:20px}.primary{padding:12px 18px}}
/* The admin owns the catalogue and palette controls in embedded previews. */
body.embedded { overflow:hidden; }
.embedded > .toolbar, .embedded > .pagebar { display:none; }
.embedded #stage { flex:1; min-height:0; padding:0; margin:0; height:100%; overflow:hidden; }
.embedded #frame-wrap { width:100%; max-width:none; height:100%; margin:0; border:0; border-radius:0; box-shadow:none; }
.embedded #preview { display:block; width:100%; height:100%; border:0; }

/* Claret review navigation belongs to the viewer, outside the published theme. */
#preview-pages[hidden],#pages-toggle[hidden],#pages-shade[hidden]{display:none!important}
.preview-pages{min-height:0;overflow-y:auto;scroll-padding-top:76px;background:#fff;border-right:1px solid #e2e4eb;padding:20px 12px}
.preview-pages__heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:8px 10px 12px;background:#fff}
.preview-pages__heading h2{font-size:16px;letter-spacing:0;margin:0}
#pages-close{display:none;font-size:26px;width:40px;height:40px;border-radius:8px}
.preview-pages__group{margin-bottom:20px}
.preview-pages__group h3{font-size:11px;font-weight:650;letter-spacing:.6px;text-transform:uppercase;color:#747b8d;margin:0;padding:10px}
.preview-page-link{display:block;min-width:0;padding:10px 12px;border-radius:8px;color:#41475a;font-size:13px;line-height:1.4;text-decoration:none;overflow-wrap:anywhere}
.preview-page-link:hover{background:#f1f2f7}
.preview-page-link[aria-current=page]{background:#efedff;color:#5148d3;font-weight:650}
.claret-page-list{display:grid;grid-template-columns:232px minmax(0,1fr);grid-template-rows:auto 43px minmax(0,1fr)}
.claret-page-list>.toolbar{grid-column:1/-1;grid-row:1}
.claret-page-list>.pagebar{grid-column:1/-1;grid-row:2}
.claret-page-list>.preview-pages{grid-column:1;grid-row:3}
.claret-page-list>#stage{grid-column:2;grid-row:3;min-width:0}
.claret-page-list .page-actions :is(label[for=page],#page){display:none}
.pages-toggle{display:none;border:1px solid #e0e2eb!important;border-radius:7px;min-height:32px;padding:4px 12px!important}
.preview-pages-shade{position:fixed;inset:0;z-index:5;background:#1e233568;cursor:default}
@media(max-width:900px){
 .claret-page-list{display:flex}
 .claret-page-list>.preview-pages{display:none;position:fixed;inset:0 auto 0 0;width:min(300px,calc(100% - 32px));z-index:6;box-shadow:10px 0 40px #18203522}
 .claret-page-list.pages-open>.preview-pages{display:block}
 .claret-page-list .pages-toggle{display:inline-flex;align-items:center}
 #pages-close{display:block}
}

/* The interface language is independent of the theme content language. */
.interface-language{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:11px;color:#747b8d}
.interface-language select{appearance:none;max-width:160px;min-height:32px;border:1px solid #dce1eb;border-radius:8px;padding:4px 32px 4px 6px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23202536' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px;color:#202536;font-size:12px}
.brand-group{flex-wrap:wrap}
@media(max-width:900px){.interface-language{flex-direction:row;align-items:center;justify-content:space-between;flex-basis:100%}.area-switch{white-space:normal;min-width:0;flex:1}.brand-group{flex-shrink:1}.pagebar{height:auto;min-height:43px;flex-wrap:wrap;padding-top:6px;padding-bottom:6px}.page-actions{min-width:0;flex-wrap:wrap}.page-actions select{max-width:145px}.choice small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.claret-page-list{grid-template-rows:auto auto minmax(0,1fr)}}
@media(max-width:420px){.toolbar-tools{grid-template-columns:minmax(0,1fr) auto auto}.devices button,.appearance button{width:30px;height:34px}.primary{min-height:44px;padding:10px 12px;font-size:12px}.choices{width:100%}}
