.ccm-layer{position:fixed;inset:0;z-index:1650;display:flex;align-items:center;justify-content:center;padding:22px;background:#13372e66;overflow:auto}.ccm-layer *{box-sizing:border-box}.ccm-dialog{width:min(1120px,100%);max-height:calc(100dvh - 44px);display:flex;flex-direction:column;background:#fff;border-radius:17px;box-shadow:0 20px 90px #15382a40;color:#244b3b;overflow:hidden;font:16px/1.5 system-ui,"Microsoft YaHei",sans-serif}.ccm-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 25px 15px}.ccm-dialog h2{font-size:25px;margin:0}.ccm-dialog header p{font-size:14px;color:#748979;margin:4px 0 0}.ccm-dialog button{font:inherit;font-weight:600;cursor:pointer;background:#fff;color:#325a44;border:1px solid #c9dbce;border-radius:7px;min-height:40px;padding:8px 13px}.ccm-dialog button.primary{color:white;background:#147960;border-color:#147960}.ccm-dialog button:disabled,.ccm-dialog input:disabled{opacity:.55;cursor:default}.ccm-dialog input,.ccm-dialog textarea{font:inherit;color:#254d3c;background:#fff;border:1px solid #c9d9cf;border-radius:7px;min-height:42px;padding:8px 11px;min-width:0}.ccm-dialog input:focus,.ccm-dialog textarea:focus{outline:3px solid #d4eadd;border-color:#408f6c}.ccm-dialog input[type=checkbox]{min-height:19px;width:19px;height:19px;accent-color:#16815c;padding:0;margin:0}.ccm-toolbar{display:flex;gap:10px;padding:0 25px 17px}.ccm-toolbar>input{flex:1}.ccm-workspace{display:grid;grid-template-columns:minmax(0,1fr) 370px;border-top:1px solid #e0e9e2;overflow:auto;min-height:0}.ccm-library{padding:17px 25px;min-width:0}.ccm-list-heading{display:flex;justify-content:space-between;padding:0 0 12px;color:#68816e;font-size:13px;border-bottom:1px solid #d9e4dc}.ccm-list-heading strong{font-size:16px;color:#3c6049}.ccm-recipe{padding:16px 0;border-bottom:1px solid #e4ece6}.ccm-recipe strong{font-size:21px;font-weight:700;display:block;overflow-wrap:anywhere}.ccm-recipe small{display:block;font-size:12px;color:#809282;margin-top:3px}.ccm-row-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:10px}.ccm-row-actions label{margin-right:auto;display:flex;align-items:center;gap:7px;font-size:14px}.ccm-row-actions button{min-height:32px;padding:4px 10px;font-size:14px}.ccm-row-actions .ccm-delete{border-color:transparent;color:#967463}.ccm-editor{padding:18px 20px;background:#f4f8f4;border-left:1px solid #dfe8df;min-width:0}.ccm-editor h3{font-size:20px;margin:0 0 13px}.ccm-fibers{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}.ccm-fibers button{font-size:16px;padding:7px 10px;min-height:39px}.ccm-fibers button[aria-pressed=true]{background:#dfefe3;border-color:#389568;color:#0d6541}.ccm-part{display:grid;grid-template-columns:1fr 90px 29px;gap:7px;margin-bottom:9px}.ccm-part>input{width:100%}.ccm-part>label{position:relative}.ccm-part>label input{width:100%;padding-right:26px}.ccm-part>label span{position:absolute;right:9px;top:50%;transform:translateY(-50%);color:#798f7d}.ccm-part>button{border:0;background:transparent;padding:0;font-size:22px;color:#8a9c8d}.ccm-dialog .ccm-text-button{border:0;background:transparent;padding:2px;min-height:32px;font-size:14px}.ccm-text-mode{display:flex;align-items:center;gap:7px;font-size:14px;color:#6c8372;margin:12px 0}.ccm-editor textarea{width:100%;resize:vertical;line-height:1.7}.ccm-result{padding:12px;background:#e5f1e8;border-radius:8px;color:#195d3d;font-size:21px;font-weight:700;margin-top:14px;overflow-wrap:anywhere}.ccm-total{font-size:14px;color:#488365;margin-top:6px}.ccm-total.bad{color:#a36440}.ccm-common{display:flex;align-items:center;gap:8px;font-size:14px;margin:17px 0}.ccm-editor-actions{display:flex;gap:9px}.ccm-editor-actions button{flex:1}.ccm-preview{margin-top:20px;border-top:1px solid #d9e5da;padding-top:15px;text-align:center}.ccm-preview>span{display:block;font-size:13px;color:#7c917e;margin-bottom:13px}.ccm-preview img{max-width:100%;width:auto;max-height:310px;box-shadow:0 3px 12px #173b2120;background:#fff}.ccm-preview p{color:#8b9c8c;font-size:14px;margin:22px 0}.ccm-dialog footer{border-top:1px solid #dfe8df;padding:12px 25px;display:flex;gap:20px;justify-content:space-between;align-items:center;color:#72917a;font-size:13px}.ccm-dialog footer [role=status]{color:#28734d}.ccm-empty{padding:25px 0;font-size:15px;color:#7b9180}.ccm-layer [hidden]{display:none!important}
.ccm-layer~.cfm-layer{z-index:1750}
@media(max-width:800px){.ccm-layer{padding:10px}.ccm-dialog{max-height:calc(100dvh - 20px)}.ccm-dialog header{padding:16px}.ccm-toolbar{padding:0 16px 14px;flex-wrap:wrap}.ccm-toolbar>input{flex-basis:100%}.ccm-workspace{grid-template-columns:1fr}.ccm-library{padding:15px 16px;max-height:320px;overflow:auto}.ccm-editor{padding:17px 16px;border-top:1px solid #dce7dc;border-left:0}.ccm-dialog footer{padding:10px 16px;display:block}.ccm-dialog footer>span{display:block}.ccm-preview img{max-height:270px}.ccm-row-actions button{min-height:38px}.ccm-preview{display:none}}

/* Keep the changing label beside the composition editor, above the fold. */
.ccm-workspace{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.ccm-library{padding-left:22px;padding-right:20px}
.ccm-editor{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:18px;align-items:start;padding:18px 19px}
.ccm-editor-fields{min-width:0}
.ccm-editor .ccm-preview{display:block;position:sticky;top:16px;align-self:start;margin:0;padding:0 0 0 14px;border-top:0;border-left:1px solid #d9e5da;min-width:0}
.ccm-preview>span{font-size:12px;margin:0 0 12px;white-space:normal}
.ccm-preview img{display:block;width:130px;max-width:100%;height:auto;max-height:none;margin:auto}
.ccm-preview p{font-size:13px;line-height:1.65;margin:40px 0}
@media(max-width:950px){.ccm-workspace{grid-template-columns:minmax(0,1fr)}.ccm-library{max-height:260px;overflow:auto}.ccm-editor{border-top:1px solid #dce7dc;border-left:0;grid-template-columns:minmax(0,1fr) 145px}}
@media(max-width:600px){.ccm-editor{display:block}.ccm-editor .ccm-preview{position:static;border-left:0;border-top:1px solid #d9e5da;padding:15px 0 0;margin-top:18px}.ccm-preview img{width:125px}.ccm-library{max-height:230px}.ccm-recipe strong{font-size:19px}}
