/* Opt-in overrides: untouched accounts keep the existing layout. */
.cz-tools { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.cz-tools > input, .cz-tools > select { flex:1; min-width:120px; }
.cz-section { margin-top:24px; border-top:1px solid var(--border); padding-top:16px; }
.cz-section > summary { cursor:pointer; font-size:16px; font-weight:600; color:var(--text-bright); padding:8px 0; }
.cz-row { display:grid; grid-template-columns:minmax(120px,1fr) minmax(140px,280px); align-items:center; gap:12px; margin:14px 0; }
.cz-row input:not([type=checkbox]), .cz-row select { width:100%; min-width:0; }
.cz-row input[type=color] { height:38px; padding:3px; }
.cz-range { display:flex; align-items:center; gap:10px; }
.cz-range output { min-width:34px; font-variant-numeric:tabular-nums; text-align:right; }
.cz-preview { padding:16px; background:var(--bg); border:1px solid var(--border-strong); border-radius:var(--radius); margin:16px 0; }
.cz-preview p { margin:8px 0 0; font-weight:var(--cz-weight,400); line-height:var(--cz-line,1.6); }
.cz-preview strong { color:var(--text-bright); }
.cz-preview small { color:var(--muted); margin-left:12px; }
.cz-status { color:var(--muted); min-height:1.5em; }
.cz-warning { color:var(--warn); }
.cz-share { width:100%; min-height:90px; resize:vertical; }
body[data-cz-avatar] #mainContent .msg .avatar { width:var(--cz-avatar); height:var(--cz-avatar); flex-shrink:0; }
body[data-cz-shape=circle] .avatar { border-radius:50%; }
body[data-cz-shape=square] .avatar { border-radius:8px; }
body[data-cz-spacing] #mainContent .msg:not(.grouped) { padding-top:var(--cz-spacing); padding-bottom:var(--cz-spacing); }
body[data-cz-weight] #mainContent .msg .text { font-weight:var(--cz-weight); }
body[data-cz-line] #mainContent .msg .text { line-height:var(--cz-line); }
body[data-cz-density=bubbles] #mainContent .msg:not(.system) > .body, body[data-cz-density=bubbles] .cz-preview p { background:var(--bg-2); border-radius:var(--radius); padding:10px 12px; }
body[data-cz-links=false] #messages .link-preview, body[data-cz-reactions=false] #messages .reactions-bar { display:none; }
body[data-cz-motion=off] *, body[data-cz-motion=off] *::before, body[data-cz-motion=off] *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
body:not([data-cz-wallpaper=none]) #mainContent { isolation:isolate; }
body:not([data-cz-wallpaper=none]) #mainContent::before { content:''; position:absolute; inset:0; pointer-events:none; z-index:-1; background-position:center; background-size:cover; opacity:calc(1 - var(--cz-dim)); filter:blur(var(--cz-blur)); }
body[data-cz-wallpaper=dots] #mainContent::before { background-image:radial-gradient(var(--text) 1px,transparent 1px); background-size:18px 18px; }
body[data-cz-wallpaper=grid] #mainContent::before { background-image:linear-gradient(var(--muted) 1px,transparent 1px),linear-gradient(90deg,var(--muted) 1px,transparent 1px); background-size:28px 28px; }
body[data-cz-wallpaper=image] #mainContent::before { background-image:var(--cz-image); }
@media(min-width:801px) { body[data-cz-sidebar] { --side-w:var(--cz-sidebar); } body[data-cz-rail] { --rail-w:var(--cz-rail); } }
@media(max-width:800px) { .cz-row { grid-template-columns:1fr; gap:6px; } .cz-row select,.cz-row input:not([type=range]):not([type=checkbox]),.cz-tools button { min-height:44px; } }
@media(prefers-reduced-motion:reduce) { .cz-preview { animation:none; transition:none; } }
.cz-settings > input[type=search] { width:100%; }
body.text-small .cz-preview .text { font-size:13px; }
body.text-large .cz-preview .text { font-size:17px; }
body[data-cz-density=compact] .cz-preview { padding:10px; }
.cz-row:has(input[type=checkbox]) { grid-template-columns:1fr auto; }
.cz-row input[type=checkbox] { width:20px; height:20px; margin:0 4px; }
.cz-preview.msg { display:block; }
