/* Approved white-type diffusion sample, 2026-10-21. One material across all cards. */
.mf-style-color-blue,.cw-diffusion-blue,dialog.mf-style-detail-dialog:has(.mf-style-color-blue),dialog.cw-diffusion-dialog:has(.cw-diffusion-blue){--style-control-core:#14245b;--style-control-deep:#1c306c;--style-core:#384e9c;--style-deep:#5568b2;--style-mid:#7683c7;--style-glow:#9c9fdb;--style-soft:#c2bfe8;--style-edge:#eeddf4;--style-rim:#faebf4b8;--style-field-x:47%;--style-field-y:51%;--style-field-w:83%;--style-field-h:61%;}
.mf-style-color-rose,.cw-diffusion-rose,dialog.mf-style-detail-dialog:has(.mf-style-color-rose),dialog.cw-diffusion-dialog:has(.cw-diffusion-rose){--style-control-core:#571e46;--style-control-deep:#782c60;--style-core:#963d77;--style-deep:#ad5c91;--style-mid:#c37caa;--style-glow:#d49bc1;--style-soft:#e8bfd8;--style-edge:#f9e3ef;--style-rim:#ffeef6b8;--style-field-x:55%;--style-field-y:49%;--style-field-w:78%;--style-field-h:60%;}
.mf-style-color-violet,.cw-diffusion-violet,dialog.mf-style-detail-dialog:has(.mf-style-color-violet),dialog.cw-diffusion-dialog:has(.cw-diffusion-violet){--style-control-core:#39205e;--style-control-deep:#532e83;--style-core:#7150a1;--style-deep:#7e5cae;--style-mid:#936ebf;--style-glow:#a884da;--style-soft:#cdb5ec;--style-edge:#ece0f7;--style-rim:#f7edffb8;--style-field-x:46%;--style-field-y:53%;--style-field-w:85%;--style-field-h:59%;}
.mf-style-color-mint,.cw-diffusion-mint,dialog.mf-style-detail-dialog:has(.mf-style-color-mint),dialog.cw-diffusion-dialog:has(.cw-diffusion-mint){--style-control-core:#143f3c;--style-control-deep:#205e55;--style-core:#32796a;--style-deep:#368371;--style-mid:#43957e;--style-glow:#78b69b;--style-soft:#b6d8c0;--style-edge:#e7f0df;--style-rim:#f4f9e9b8;--style-field-x:53%;--style-field-y:48%;--style-field-w:84%;--style-field-h:65%;}
.mf-style-color-peach,.cw-diffusion-peach,dialog.mf-style-detail-dialog:has(.mf-style-color-peach),dialog.cw-diffusion-dialog:has(.cw-diffusion-peach){--style-control-core:#70352e;--style-control-deep:#984b38;--style-core:#ad5d43;--style-deep:#ba6c4d;--style-mid:#c87d57;--style-glow:#e4a27e;--style-soft:#f1cbb2;--style-edge:#f8e9db;--style-rim:#fff3e8b8;--style-field-x:45%;--style-field-y:52%;--style-field-w:83%;--style-field-h:63%;}
.mf-style-color-cyan,.cw-diffusion-cyan,dialog.mf-style-detail-dialog:has(.mf-style-color-cyan),dialog.cw-diffusion-dialog:has(.cw-diffusion-cyan){--style-control-core:#153e58;--style-control-deep:#235d78;--style-core:#32728e;--style-deep:#3c829c;--style-mid:#5096ad;--style-glow:#7eb7c9;--style-soft:#b7d9df;--style-edge:#e7f1ef;--style-rim:#f0faf8b8;--style-field-x:54%;--style-field-y:50%;--style-field-w:79%;--style-field-h:60%;}
.mf-style-color-amber,.cw-diffusion-amber,dialog.mf-style-detail-dialog:has(.mf-style-color-amber),dialog.cw-diffusion-dialog:has(.cw-diffusion-amber){--style-core:#95702c;--style-deep:#a7803c;--style-mid:#bc9854;--style-glow:#d7bb82;--style-soft:#ecdbb5;--style-edge:#f7f0df;--style-control-core:oklch(.34 .08 84);--style-control-deep:oklch(.42 .09 84);--style-rim:#ffffffa8;--style-field-x:51%;--style-field-y:50%;--style-field-w:82%;--style-field-h:62%;}
.mf-style-color-coral,.cw-diffusion-coral,dialog.mf-style-detail-dialog:has(.mf-style-color-coral),dialog.cw-diffusion-dialog:has(.cw-diffusion-coral){--style-core:#b45e58;--style-deep:#c47369;--style-mid:#d88f83;--style-glow:#e8b3a4;--style-soft:#f2d5c7;--style-edge:#faebe3;--style-control-core:oklch(.34 .08 32);--style-control-deep:oklch(.42 .09 32);--style-rim:#ffffffa8;--style-field-x:51%;--style-field-y:50%;--style-field-w:82%;--style-field-h:62%;}
.mf-style-color-lime,.cw-diffusion-lime,dialog.mf-style-detail-dialog:has(.mf-style-color-lime),dialog.cw-diffusion-dialog:has(.cw-diffusion-lime){--style-core:#617c38;--style-deep:#748e47;--style-mid:#92a866;--style-glow:#b6c589;--style-soft:#d8e1ba;--style-edge:#eff3df;--style-control-core:oklch(.34 .08 130);--style-control-deep:oklch(.42 .09 130);--style-rim:#ffffffa8;--style-field-x:51%;--style-field-y:50%;--style-field-w:82%;--style-field-h:62%;}
.mf-style-color-lavender,.cw-diffusion-lavender,dialog.mf-style-detail-dialog:has(.mf-style-color-lavender),dialog.cw-diffusion-dialog:has(.cw-diffusion-lavender){--style-core:#795b9b;--style-deep:#8a6eac;--style-mid:#a38bc1;--style-glow:#bca8d5;--style-soft:#dccce9;--style-edge:#f2e9f8;--style-control-core:oklch(.34 .08 300);--style-control-deep:oklch(.42 .09 300);--style-rim:#ffffffa8;--style-field-x:51%;--style-field-y:50%;--style-field-w:82%;--style-field-h:62%;}

.mf-style-colored,.cw-diffusion-card,.cw-diffusion-art,.ss-card-colors>button,dialog.mf-style-detail-dialog,dialog.cw-diffusion-dialog{--style-ink:255 255 255;--style-muted:255 255 255 / .88;--style-base:var(--style-edge,#eeddf4);--style-filter:none;--style-transform:none;--style-image:radial-gradient(ellipse var(--style-field-w,82%) var(--style-field-h,61%) at var(--style-field-x,49%) var(--style-field-y,51%) in oklab,var(--style-core,#384e9c) 0%,var(--style-deep,#5568b2) 23%,var(--style-mid,#7683c7) 43%,var(--style-glow,#9c9fdb) 65%,var(--style-soft,#c2bfe8) 86%,var(--style-edge,#eeddf4) 110%);}
.mf-style-colored{position:relative;isolation:isolate;background:var(--style-base);color:rgb(var(--style-ink));}
.mf-style-art,.cw-diffusion-field{position:absolute;inset:0;border-radius:inherit;z-index:-2;background-color:var(--style-base);background-image:var(--style-image);background-size:100% 100%;background-repeat:no-repeat;filter:none;transform:none;opacity:1;pointer-events:none;box-shadow:inset 0 0 18px 1px color-mix(in srgb,var(--style-rim,#ffffffa8) 55%,transparent);}
.mf-style-colored::before{content:none;}
.ss-card-appearance{padding:16px;margin:16px 0;background:#fff;border-radius:20px;}
.ss-card-appearance-heading>h2{font-size:16px!important;line-height:24px!important;font-weight:600!important;margin:0 0 4px!important;}
.ss-card-appearance>p{font-size:12px!important;line-height:20px!important;color:#737780!important;margin:0 0 12px!important;}
.ss-card-colors{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px;}
.ss-card-colors>button{position:relative;min-height:44px!important;min-width:44px!important;width:44px!important;height:44px!important;padding:4px!important;border:0!important;background:transparent!important;border-radius:50%!important;display:grid;place-items:center;}
.ss-card-colors>button>span{display:block;width:32px;height:32px;border-radius:50%;background-color:var(--style-base);background-image:var(--style-image);background-size:100% 100%;filter:var(--style-filter,none);transform:var(--style-transform,none);}
.ss-card-colors>button[aria-pressed=true]{box-shadow:inset 0 0 0 2px #202324!important;}
.ss-card-choice-check{position:absolute;width:18px!important;height:18px!important;fill:none;stroke:rgb(var(--style-ink));stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
.ss-card-colors>button:disabled{opacity:.45;}
.ss-card-colors>button:focus-visible{outline:2px solid #202324!important;outline-offset:2px;}
.ss-card-preview{height:196px;border-radius:20px;overflow:hidden;padding:24px 16px;display:flex;align-items:flex-start;}
.ss-card-preview>div{max-width:100%;}
.ss-card-preview strong{display:block;color:rgb(var(--style-ink))!important;font-size:18px!important;line-height:26px!important;font-weight:600!important;overflow-wrap:anywhere;}
.ss-card-preview p{color:rgb(var(--style-muted))!important;font-size:13px!important;line-height:21px!important;margin:12px 0 0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.ss-card-color-name{display:block;font-size:11px;line-height:18px;color:#61666b;margin:8px 0 0;}

@media(max-width:360px){
.ss-card-appearance{display:flex;flex-direction:column;}
.ss-card-appearance-heading{order:0;}
.ss-card-appearance>p{order:1;}
.ss-card-preview{order:2;flex:none;}
.ss-card-color-name{order:3;}
.ss-card-colors{order:4;display:grid;grid-template-columns:repeat(4,44px);justify-content:space-between;gap:4px;margin:12px 0 0;}
}

.ss-card-appearance-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px;}
.ss-card-random{position:relative;display:inline-flex!important;align-items:center;justify-content:center;min-height:36px!important;padding:7px 12px!important;border:1px solid #e4e6eb!important;border-radius:999px!important;background:#f7f7fa!important;color:#353942!important;font-size:12px!important;line-height:20px!important;white-space:nowrap;}
.ss-card-random::after{content:"";position:absolute;inset:-4px 0;border-radius:inherit;}
.ss-card-random:disabled{opacity:.45;cursor:default;}
.ss-card-random:focus-visible{outline:2px solid #202324!important;outline-offset:2px;}
.ss-card-preview strong{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

/* Appearance belongs to the final confirmation step, separate from rule editing. */
.ss-finalizing .ss-header{padding-bottom:12px;}
.ss-finalizing .ss-header h1{outline:none;}
.ss-finalizing .ss-thread{padding-bottom:12px;}
.ss-finalizing .ss-card-appearance{margin:0;padding-top:8px;}
.ss-final-actions{flex:none;padding:12px 16px max(16px,env(safe-area-inset-bottom));background:var(--v2-canvas,#f5f5f5);border-top:1px solid #eee;}
.ss-final-actions>p{margin:0 0 10px;color:#737780;font-size:12px;line-height:20px;text-align:center;}
.style-studio .ss-final-actions .ss-primary{display:block;width:100%;min-height:44px;border-radius:999px;background:#202324;color:#fff;font-size:14px;line-height:22px;font-weight:500;}

.ss-final-actions>div{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;}
.style-studio .ss-final-actions [data-ss="finish-back"]{min-height:44px;border-radius:999px;background:#f2f2f4;color:#353942;font-size:14px;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app #appView.ui-view .ss-finalizing .ss-header>div>h1{display:block!important;}
