/* Scoped: keeps the constructor independent from card/image styling. */
.sc-editor{max-width:640px;margin:0 auto;padding-bottom:24px}
.sc-editor .h1{margin-bottom:8px}
.sc-intro,.sc-note{color:var(--muted,#60717f);line-height:1.45}
.sc-intro{margin:0 0 20px;font-size:15px}
.sc-preview{width:100%;overflow:hidden;border-radius:22px;background:#edf3f8;border:1px solid #d4e2ed;min-height:180px;position:relative}
.sc-preview img{display:block;width:100%;height:auto}
.sc-preview img[hidden]{display:none}
.sc-placeholder{min-height:210px;display:grid;place-items:center;padding:24px;color:#60717f;font-size:15px}
.sc-placeholder[hidden]{display:none}
.sc-preview[aria-busy="true"] img{opacity:.58;transition:opacity .15s}
.sc-status{font-size:13px;color:var(--muted,#60717f);margin:9px 0 18px;min-height:20px;line-height:1.4}
.sc-style,.sc-fields{border:0;margin:0 0 22px;padding:0;min-width:0}
.sc-style legend,.sc-fields legend{font-size:17px;font-weight:650;margin:0 0 12px;padding:0}
.sc-style-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sc-style-choice{display:grid;grid-template-columns:1fr auto;gap:5px 8px;padding:16px 14px;border-radius:17px;border:2px solid transparent;cursor:pointer;min-width:0}
.sc-style-choice input{grid-column:2;grid-row:1;width:19px;height:19px;margin:0;accent-color:#2f6fb0}
.sc-style-choice span{grid-column:1;grid-row:1;font-size:16px;font-weight:650}
.sc-style-choice small{grid-column:1/-1;font-size:12px;line-height:1.4;opacity:.78}
.sc-author{background:#eaf2fa;color:#243845}
.sc-graphite{background:#23272c;color:#f5f5f3}
.sc-style-choice:has(input:checked){border-color:#2f6fb0;box-shadow:0 0 0 2px #fff inset}
.sc-style-choice:focus-within{outline:2px solid #2f6fb0;outline-offset:3px}
.sc-fields{border:1px solid #d5e1eb;border-radius:18px;padding:0 14px}
.sc-fields legend{padding:0 5px}
.sc-option{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;cursor:pointer;border-bottom:1px solid #dce5ed;min-height:64px}
.sc-option:last-child{border-bottom:0}
.sc-option strong{display:block;font-size:15px;font-weight:600;line-height:1.4}
.sc-option small{display:block;font-size:12px;line-height:1.4;margin-top:3px;color:var(--muted,#60717f)}
.sc-option input{width:23px;height:23px;flex:0 0 23px;accent-color:#2f6fb0;cursor:pointer}
.sc-note{font-size:13px;margin:12px 0}
.sc-link,.sc-home-edit{background:none;border:0;color:var(--accent,#2f6fb0);font:inherit;cursor:pointer;padding:10px 0;text-align:left;min-height:44px}
.sc-link[hidden]{display:none}
.sc-actions{display:grid;gap:10px;margin-top:22px}
.sc-actions .btn{min-height:50px;white-space:normal}
.sc-save-status{font-size:14px;line-height:1.5;margin-top:12px;color:var(--muted,#60717f)}
.sc-home-send{margin-top:12px;display:flex;justify-content:center;align-items:center;gap:9px;white-space:normal}
.sc-home-edit{display:block;margin:0 auto;text-align:center;font-size:14px}
@media(max-width:360px){.sc-style-grid{gap:8px}.sc-style-choice{padding:13px 10px}.sc-style-choice span{font-size:15px}}

.sc-select-label{display:block;font-weight:600;margin:18px 0 8px}
.sc-editor select{width:100%;min-height:48px;font:inherit;color:var(--ink);margin-bottom:8px}
.ct-tour{max-width:600px;margin:0 auto;padding-bottom:24px}
.ct-tour .obar{display:flex;gap:12px;align-items:center;margin-bottom:18px}
.ct-tour .oprog{flex:1}
.ct-intro{color:var(--mut);font-size:16px;line-height:1.55;margin:0 0 20px}
.ct-card{display:block;width:100%;height:auto;border-radius:18px;margin:0 0 24px}
.ct-example{padding:22px;border:1px solid var(--edge);background:var(--soft);border-radius:18px;font-size:18px;line-height:1.55;margin:20px 0}
.ct-tour .hint{font-size:15px;line-height:1.55;margin:16px 0 26px}
.ct-tour .btn{min-height:48px;white-space:normal;margin-top:10px}

.ct-tour [hidden]{display:none}
