.story-design-studio{padding:42px 0 54px;border-top:1px solid #d7ddcc;scroll-margin-top:30px;color:#34392e}
.story-design-studio[hidden]{display:none}.story-design-studio *{box-sizing:border-box}.story-design-studio h2{font-size:27px;line-height:1.5;letter-spacing:-.04em;margin:10px 0 12px;font-weight:500}.story-design-studio h3{font-size:21px;line-height:1.5;letter-spacing:-.035em;margin:8px 0 12px;font-weight:500}.studio-kicker{font-size:10px;letter-spacing:.13em;color:#68725d}.studio-intro{font-size:14px;line-height:1.9;color:#737a6c;max-width:690px;margin-bottom:25px}.studio-candidates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.studio-candidate{border:1px solid #d8ddcf;background:#fffdf7;text-align:left;border-radius:14px;overflow:hidden;padding:0 0 18px;color:inherit;min-width:0;cursor:pointer}.studio-candidate:hover,.studio-candidate[aria-pressed=true]{border-color:#60724e;box-shadow:0 0 0 2px #60724e33}.studio-candidate svg{display:block;width:100%;height:auto}.studio-candidate-number,.studio-candidate strong,.studio-candidate-select{display:block;margin:14px 18px 0}.studio-candidate-number{font-size:10px;letter-spacing:.07em;color:#7b8371}.studio-candidate strong{font-size:16px;font-weight:500;margin-top:7px}.studio-candidate-select{font-size:12px;color:#5d6d50}.studio-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.85fr);gap:35px;padding:36px 0 25px;align-items:start}.studio-editor-preview{position:sticky;top:24px;border-radius:16px;overflow:hidden}.studio-editor-preview svg{display:block;width:100%;height:auto}.studio-editor-controls{min-width:0}.studio-help{font-size:12px;line-height:1.9;color:#747d6b;margin:12px 0}.studio-literal{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;background:#eeeee4;padding:12px 14px;margin:16px 0;border-radius:8px}.studio-control{border:0;padding:0;margin:20px 0;min-width:0}.studio-control legend{font-size:13px;font-weight:500;margin-bottom:10px}.studio-color-choices{display:flex;gap:7px;flex-wrap:wrap}.studio-color{display:inline-flex;align-items:center;gap:6px;border:1px solid #d7ddce;background:#fffdf7;color:#57644a;font-size:12px;line-height:1.5;min-height:42px;padding:9px 10px;border-radius:7px;cursor:pointer}.studio-color[aria-pressed=true]{border-color:#586a46;box-shadow:inset 0 0 0 1px #586a46;background:#f0f3e8}.studio-swatch{width:15px;height:15px;border-radius:50%;border:1px solid #0002;display:inline-block;flex:none}.studio-range{display:grid;grid-template-columns:1fr auto;gap:9px;margin:18px 0}.studio-range label,.studio-range output{font-size:12px;color:#5f6955}.studio-range input{grid-column:1/-1;width:100%;accent-color:#64734e;min-height:28px;cursor:pointer;margin:0}.studio-actions{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0 8px}.studio-primary,.studio-secondary{display:inline-flex;justify-content:center;align-items:center;text-align:center;min-height:44px;padding:12px 16px;border-radius:7px;border:1px solid #687357;font-size:13px;line-height:1.6;text-decoration:none;cursor:pointer;font-family:inherit}.studio-primary{background:#58664a;color:#fffdf6}.studio-secondary{background:#fffdf7;color:#58664a}.studio-primary:disabled{background:#d7dccf;color:#8b9381;border-color:#d7dccf;cursor:not-allowed}.story-design-studio button:focus-visible,.story-design-studio a:focus-visible,.story-design-studio input:focus-visible{outline:3px solid #8ca47b;outline-offset:3px}.studio-notice{background:#f4ebd7;color:#7a6541;border-radius:7px;padding:12px;font-size:12px;line-height:1.8}.studio-footnote{padding:18px 0;border-top:1px solid #dde0d5;color:#818878;font-size:11px;line-height:1.9;margin-top:20px}.studio-confirmed{border:1px solid #cbd6bf;background:#eef2e7;border-radius:10px;padding:20px;margin-top:18px}.studio-confirmed strong{font-size:15px;font-weight:500}.studio-confirmed p{font-size:13px;line-height:1.8;margin:9px 0 14px}.studio-payment{margin:30px 0 0;border-top:1px solid #d7ddcc;padding-top:32px;scroll-margin-top:24px}.studio-payment-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:35px;align-items:start}.studio-payment-preview svg{display:block;width:100%;height:auto;border-radius:12px}.studio-details{display:grid;grid-template-columns:85px minmax(0,1fr);gap:11px;margin:10px 0 24px;font-size:13px;line-height:1.7}.studio-details dt{color:#7b8373}.studio-details dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.studio-price-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.7}.studio-price-table caption{text-align:left;font-size:13px;padding:10px 0;border-bottom:1px solid #d2d9c7}.studio-price-table th,.studio-price-table td{padding:13px 0;border-bottom:1px solid #e0e4d8;text-align:left;font-weight:400}.studio-price-table td{text-align:right;color:#737d65}.studio-price-table .studio-total th,.studio-price-table .studio-total td{font-weight:500;color:#404f32}.studio-unsupported{background:#f1f1e7;border:1px solid #d7ddcd;border-radius:12px;padding:25px;margin:24px 0}.studio-unsupported p{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}.studio-unsupported button,.studio-unsupported a{margin:8px 8px 0 0}
@media(max-width:700px){.story-design-studio{padding-top:30px}.story-design-studio h2{font-size:23px}.studio-intro{font-size:13px}.studio-candidates{gap:9px}.studio-candidate-number,.studio-candidate strong,.studio-candidate-select{margin-left:9px;margin-right:9px}.studio-candidate strong{font-size:12px;line-height:1.6;min-height:38px}.studio-candidate-select{font-size:10px;line-height:1.6}.studio-candidate-number{font-size:9px}.studio-candidate{padding-bottom:13px;border-radius:9px}.studio-editor,.studio-payment-grid{grid-template-columns:1fr;gap:22px}.studio-editor-preview{position:static;max-width:480px;width:100%;margin:auto}.studio-editor-controls h3{font-size:20px}.studio-payment-preview{max-width:380px;width:100%;margin:auto}.studio-actions>*{flex:1}.studio-details{grid-template-columns:75px minmax(0,1fr)}.studio-unsupported{padding:18px}.studio-unsupported p{font-size:13px}.studio-primary,.studio-secondary{font-size:12px}}
.studio-font-control{margin:20px 0}.studio-font-control>label{display:block;font-size:13px;font-weight:500;margin-bottom:10px}.studio-font-control select{display:block;width:100%;min-height:44px;padding:10px 12px;border:1px solid #d7ddce;border-radius:7px;background:#fffdf7;color:#58664a;font-family:inherit;font-size:14px;line-height:1.6}.studio-font-control .studio-help{margin-top:7px}
@media(max-width:700px){.studio-font-control select{font-size:16px;min-height:48px}}

/* The active preview lives in one messenger bubble, with optional direct controls. */
.story-design-studio[data-embedded="true"]{padding:0;border:0;margin:0;scroll-margin-top:8px}
.story-design-studio[data-embedded="true"] .studio-kicker{font-size:9px}
.story-design-studio[data-embedded="true"] h2{font-size:19px;line-height:1.5;margin:6px 0 9px}
.story-design-studio[data-embedded="true"] h3{font-size:17px;line-height:1.5}
.story-design-studio[data-embedded="true"] .studio-intro{font-size:13px;line-height:1.75;margin:0 0 16px}
.story-design-studio[data-embedded="true"] .studio-candidates{gap:10px}
.story-design-studio[data-embedded="true"] .studio-candidate strong{font-size:13px;line-height:1.5;min-height:0}
.story-design-studio[data-embedded="true"] .studio-candidate-number,
.story-design-studio[data-embedded="true"] .studio-candidate strong,
.story-design-studio[data-embedded="true"] .studio-candidate-select{margin-left:11px;margin-right:11px}
.story-design-studio[data-embedded="true"] .studio-editor{grid-template-columns:minmax(0,1fr);gap:15px;padding:18px 0 8px}
.story-design-studio[data-embedded="true"] .studio-editor-preview{position:static;max-width:390px;width:100%;margin:auto}
.story-design-studio[data-embedded="true"] .studio-payment-grid{grid-template-columns:minmax(0,1fr);gap:18px}
.story-design-studio[data-embedded="true"] .studio-payment-preview{max-width:340px;margin:auto;width:100%}
.story-design-studio[data-embedded="true"] .studio-unsupported{padding:16px;margin:12px 0}
.story-design-studio[data-embedded="true"] .studio-unsupported p{font-size:13px;line-height:1.8}
.studio-fine-tune,.studio-other-candidates{border:1px solid #d6ddce;border-radius:10px;margin:14px 0;background:#fbfcf8;min-width:0}
.studio-fine-tune>summary,.studio-other-candidates>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;min-height:48px;padding:12px 14px;font-size:14px;font-weight:500;color:#4e6043}
.studio-fine-tune>summary::-webkit-details-marker,.studio-other-candidates>summary::-webkit-details-marker{display:none}
.studio-fine-tune>summary::after,.studio-other-candidates>summary::after{content:'＋';font-size:19px;flex:none}
.studio-fine-tune[open]>summary::after,.studio-other-candidates[open]>summary::after{content:'−'}
.studio-fine-tune[open],.studio-other-candidates[open]{padding:0 14px 14px}
.studio-fine-tune[open]>summary,.studio-other-candidates[open]>summary{margin:0 -14px 12px;border-bottom:1px solid #e1e5da}
.studio-quick-controls,.studio-history-controls{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:12px 0}
.studio-quick-controls button,.studio-history-controls button{min-height:44px;min-width:44px;padding:9px 12px;border:1px solid #cdd7c3;border-radius:7px;background:#fff;color:#526246;font-size:13px;line-height:1.5}
.studio-quick-controls button:hover,.studio-history-controls button:hover{background:#eef3e7}
.studio-history-controls button:disabled{opacity:.4;cursor:default}
.studio-drag-hint{font-size:11px;line-height:1.7;color:#76806b;margin:8px 0 0;text-align:center}
.studio-editor-preview svg text[data-drag-name]{cursor:grab;touch-action:none;user-select:none}
.studio-editor-preview svg text[data-drag-name]:active{cursor:grabbing}
.studio-candidate-hint{font-size:12px;line-height:1.7;color:#737d6a;margin:10px 0 14px}
.story-design-studio[data-embedded="true"] .studio-editor:has(.studio-fine-tune[open]){grid-template-columns:minmax(0,.9fr) minmax(260px,1fr);gap:16px}
.story-design-studio[data-embedded="true"] .studio-editor:has(.studio-fine-tune[open]) .studio-editor-preview{position:sticky;top:0;max-width:none;margin:0;align-self:start;background:#edf0e7;border:1px solid #d7ddce}
.story-design-studio[data-embedded="true"] .studio-editor:has(.studio-fine-tune[open]) .studio-editor-preview svg{width:100%;height:auto}
.studio-unapplied-list{list-style:none;padding:0;margin:12px 0;border:1px solid #e0c8a4;border-radius:9px;background:#fff6e8}
.studio-unapplied-list li{padding:12px 14px;font-size:13px;line-height:1.75;overflow-wrap:anywhere}
.studio-unapplied-list li+li{border-top:1px solid #ead9bf}
.studio-unapplied-remove{display:block;min-height:44px;margin-top:8px;padding:8px 11px;background:#fffdf7;border:1px solid #c9ad84;border-radius:7px;font-size:12px;color:#715b3b}
@media(max-width:760px){
 .story-design-studio[data-embedded="true"] .studio-candidates{display:flex;overflow-x:auto;gap:10px;scroll-snap-type:x proximity;scroll-padding:3px;padding:3px 3px 10px;overscroll-behavior-x:contain}
 .story-design-studio[data-embedded="true"] .studio-candidate{flex:0 0 154px;scroll-snap-align:start}
 .story-design-studio[data-embedded="true"] .studio-candidate strong{font-size:13px;line-height:1.6;min-height:0}
 .story-design-studio[data-embedded="true"] .studio-candidate-select{font-size:11px}
 .studio-fine-tune[open],.studio-other-candidates[open]{padding-left:10px;padding-right:10px}
 .studio-fine-tune[open]>summary,.studio-other-candidates[open]>summary{margin-left:-10px;margin-right:-10px}
 .studio-quick-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .studio-quick-controls button{width:100%;padding:9px 5px;word-break:keep-all}
 .studio-history-controls button{flex:1;padding:9px 8px;font-size:12px}
 .story-design-studio[data-embedded="true"] .studio-actions>*{flex:1 1 100%}
 .story-design-studio[data-embedded="true"] .studio-help{font-size:12px}
 .story-design-studio[data-embedded="true"] .studio-editor:has(.studio-fine-tune[open]){grid-template-columns:minmax(0,1fr);gap:10px}
 .story-design-studio[data-embedded="true"] .studio-editor:has(.studio-fine-tune[open]) .studio-editor-preview{position:static}
 .story-design-studio[data-embedded="true"] .studio-editor:has(.studio-fine-tune[open]) .studio-editor-preview svg{height:180px;width:100%;object-fit:contain}
 .story-design-studio[data-embedded="true"] .studio-editor:has(.studio-fine-tune[open]) .studio-editor-controls{max-height:250px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:0 3px 8px}
 .story-design-studio[data-embedded="true"]:has(.studio-fine-tune[open])>.studio-footnote{display:none}
}

.studio-swatch[data-material="clear"]{background:conic-gradient(#e1e5e3 25%,#fff 0 50%,#e1e5e3 0 75%,#fff 0) 0 0/8px 8px;box-shadow:inset 0 0 0 1px #82918d88}
