.rhbr-app{--blue:#245fe5;--ink:#15243b;--muted:#68778e;max-width:1240px;margin:22px auto;padding:20px;background:#f5f7fb;border:1px solid #e5eaf2;border-radius:18px;color:var(--ink);font:14px/1.45 Inter,system-ui,sans-serif;box-sizing:border-box;box-shadow:0 12px 34px rgba(21,36,59,.06)}
.rhbr-app *{box-sizing:border-box}.rhbr-app header{display:flex;justify-content:space-between;align-items:center;gap:12px}.rhbr-app header h2{font-size:24px;line-height:1.2;margin:5px 0}.rhbr-app header p{margin:0;color:var(--muted)}.rhbr-app header small{font-size:10px;letter-spacing:1.2px;color:#8290a4;margin-left:7px}.rhbr-btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;background:linear-gradient(135deg,#326ff0,#174bc8);color:#fff!important;border:1px solid #174bc8;border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer;box-shadow:0 4px 10px rgba(36,95,229,.18);transition:transform .15s,box-shadow .15s}.rhbr-btn:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(36,95,229,.24)}.rhbr-app input[type=file]{display:none}.rhbr-note{font-size:12px;color:#718096;margin:12px 0}.rhbr-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 13px;padding:8px;background:#eaf0fa;border:1px solid #e0e8f5;border-radius:11px}.rhbr-toolbar span{padding:6px 11px;border-radius:8px;background:#fff;color:#43536d;font-size:11px;font-weight:650}.rhbr-grid{display:grid;grid-template-columns:310px minmax(0,1fr);gap:14px}.rhbr-grid aside section,.rhbr-grid main{background:#fff;border:1px solid #e4e9f1;border-radius:13px;padding:13px;margin-bottom:11px;min-width:0;box-shadow:0 2px 7px rgba(25,45,75,.025)}.rhbr-grid h3{font-size:14px;margin:0 0 10px;display:flex;justify-content:space-between;font-weight:750}.rhbr-grid h3 small{font-weight:600;color:#738198}.rhbr-thumbs{display:flex;gap:7px;flex-wrap:wrap;min-height:56px}.rhbr-empty,.rhbr-grid section small{font-size:11px;color:#8793a5}.rhbr-thumb{position:relative;width:56px;height:56px;border:2px solid transparent;border-radius:8px;overflow:hidden;padding:0;cursor:pointer;background:#eef2f7}.rhbr-thumb.active{border-color:var(--blue)}.rhbr-thumb img{width:100%;height:100%;object-fit:cover}.rhbr-thumb span{position:absolute;right:2px;top:2px;width:17px;height:17px;border-radius:50%;background:#17243a;color:#fff;font-size:12px;line-height:17px}.rhbr-dropzone{display:block!important;text-align:center;border:1px dashed #b9c8dd;border-radius:9px;padding:10px 8px;margin-top:10px!important;background:#f9fbff;color:#63738d!important;cursor:pointer;font-size:11px!important}.rhbr-dropzone b{color:var(--blue)}.rhbr-dropzone.dragover{background:#edf4ff;border-color:var(--blue)}.rhbr-grid nav{display:flex;background:#f0f3f8;border-radius:8px;padding:3px;gap:3px}.rhbr-grid nav button{flex:1;border:0;background:transparent;border-radius:6px;padding:8px 3px;font-size:12px;font-weight:650;cursor:pointer;color:#66758c}.rhbr-grid nav button.active{background:#fff;color:#245bd6;box-shadow:0 1px 5px #dbe3ef}.rhbr-swatches{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;margin:10px 0}.rhbr-swatches button{height:22px;min-width:0;border:1px solid #d5dce7;border-radius:5px;background:var(--c);cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.025);transition:transform .12s,border-color .12s}.rhbr-swatches button:hover{transform:scale(1.08);border-color:#526783}.rhbr-grid label{display:flex;flex-direction:column;gap:5px;margin-top:9px;font-size:11px;color:#65738a}.rhbr-grid input:not([type=checkbox]):not([type=range]),.rhbr-grid select{width:100%;min-width:0;padding:8px;border:1px solid #dce3ed;border-radius:7px;background:#fff;color:#24344e;box-shadow:0 1px 2px rgba(15,23,42,.03)}.rhbr-grid input[type=color]{height:32px;padding:2px}.rhbr-grid input[type=range]{width:100%;accent-color:var(--blue)}.rhbr-grid .rhbr-check{display:flex;flex-direction:row;align-items:center;gap:7px}.rhbr-file{display:block!important;border:1px dashed #b9c6d8;border-radius:8px;padding:11px;text-align:center;color:#2864dc!important;cursor:pointer}.rhbr-two{display:grid;grid-template-columns:1fr 1fr;gap:7px}.rhbr-stage{min-height:390px;display:grid;place-items:center;padding:12px;border-radius:11px;background-color:#fff;background-image:linear-gradient(45deg,#e8edf3 25%,transparent 25%),linear-gradient(-45deg,#e8edf3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8edf3 75%),linear-gradient(-45deg,transparent 75%,#e8edf3 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.rhbr-placeholder{display:flex;flex-direction:column;gap:7px;text-align:center;color:#68768a}.rhbr-canvas{display:none;max-width:100%;max-height:490px;width:auto;height:auto;touch-action:none;cursor:grab}.rhbr-canvas:active{cursor:grabbing}.rhbr-progress{height:7px;background:#edf1f6;border-radius:10px;margin-top:12px;overflow:hidden}.rhbr-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#4d8aff,#245fe5);border-radius:10px;transition:width .2s}.rhbr-status{font-size:12px;color:#6c7a8f;min-height:27px;padding:7px 0}.rhbr-actions,.rhbr-export{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rhbr-outline{border:1px solid #d6deea;background:linear-gradient(#fff,#f8faff);color:#33445e;border-radius:9px;padding:10px 13px;font-weight:650;cursor:pointer;box-shadow:0 2px 4px rgba(20,35,60,.04)}.rhbr-outline:hover{border-color:#9eb6e8;color:#245bd6}.rhbr-app button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.rhbr-export{border-top:1px solid #e7ebf1;margin-top:14px;padding-top:13px}.rhbr-export select{padding:9px;border:1px solid #dce3ed;border-radius:8px;min-width:190px}.rhbr-export label{font-size:11px;color:#64748b;display:flex;align-items:center;gap:8px}.rhbr-quality{width:140px;height:7px;appearance:none;-webkit-appearance:none;background:linear-gradient(90deg,#245fe5,#75a4ff);border-radius:20px;outline:none;cursor:pointer}.rhbr-quality::-webkit-slider-thumb{appearance:none;width:17px;height:17px;border-radius:50%;background:#fff;border:3px solid #245fe5;box-shadow:0 1px 5px #aab8cc}.rhbr-quality::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:#fff;border:3px solid #245fe5;box-shadow:0 1px 5px #aab8cc}.rhbr-privacy,.rhbr-mobile-tip{display:block;color:#8994a5;font-size:10px;margin-top:12px}.rhbr-mobile-tip{display:none}
@media(max-width:760px){.rhbr-app{margin:10px 0;padding:11px;border-radius:12px}.rhbr-app header{align-items:flex-start}.rhbr-app header h2{font-size:19px}.rhbr-app header p{font-size:12px}.rhbr-btn{font-size:12px;padding:9px 10px}.rhbr-grid{grid-template-columns:1fr}.rhbr-grid main{grid-row:1}.rhbr-stage{min-height:250px}.rhbr-canvas{max-height:330px}.rhbr-grid aside{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rhbr-grid aside section{margin:0;padding:10px}.rhbr-grid aside section:first-child{grid-column:1/-1}.rhbr-export>*{flex:1}.rhbr-export b{flex-basis:100%}.rhbr-export label{min-width:100px}.rhbr-toolbar{gap:5px}.rhbr-toolbar span{font-size:10px;padding:5px 8px}.rhbr-mobile-tip{display:block;text-align:center}}
@media(max-width:420px){.rhbr-app header{flex-direction:column}.rhbr-app header .rhbr-btn{width:100%}.rhbr-grid aside{grid-template-columns:1fr}.rhbr-grid aside section:first-child{grid-column:auto}.rhbr-export{gap:6px}.rhbr-export select{min-width:100px}.rhbr-swatches{grid-template-columns:repeat(8,minmax(0,1fr))}}

/* v1.2 premium compact studio layout */
.rhbr-app{max-width:1380px;padding:16px;margin:12px auto;border-radius:20px}
.rhbr-app header{display:grid;grid-template-columns:minmax(240px,1fr) minmax(330px,1.25fr) auto;align-items:center;gap:18px;min-height:112px}
.rhbr-brand{min-width:0}
.rhbr-app header h2{font-size:25px;letter-spacing:-.45px;margin:7px 0 4px}
.rhbr-app header p{font-size:13px}
.rhbr-textdock{align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:10px 13px;border:1px solid #dbe5f5;border-radius:13px;background:linear-gradient(145deg,#fff,#f4f7fd);box-shadow:0 5px 18px rgba(31,64,112,.06);min-width:0}
.rhbr-dock-title{font-size:10px;font-weight:800;letter-spacing:1px;color:#315caa;display:flex;align-items:center;justify-content:space-between}
.rhbr-dock-title small{font-size:10px;font-weight:500;letter-spacing:0;color:#8794a8}
.rhbr-textdock>input{width:100%;min-width:0;border:1px solid #d7e0ed;border-radius:8px;padding:8px 10px;font:13px system-ui;color:#1c2d47;background:#fff}
.rhbr-dock-controls{display:flex;align-items:center;gap:10px}
.rhbr-dock-controls label{display:flex;align-items:center;gap:5px;margin:0;font-size:10px;color:#64748b;white-space:nowrap}
.rhbr-dock-controls input[type=color]{width:30px;height:25px;padding:2px;border:1px solid #d5deeb;border-radius:6px;background:#fff}
.rhbr-dock-controls input[type=number]{width:58px;padding:5px;border:1px solid #d5deeb;border-radius:6px;font-size:11px}
.rhbr-dock-controls .rhbr-dock-bold{gap:4px}
.rhbr-dock-controls input[type=checkbox]{accent-color:#245fe5}
.rhbr-dock-controls .rhbr-link{margin-left:auto;padding:5px 9px;border-radius:7px;background:#edf3ff;color:#245bd6;font-size:10px;font-weight:700}
.rhbr-addbtn{white-space:nowrap;min-width:128px}
.rhbr-note{margin:7px 0 9px;font-size:11px}
.rhbr-toolbar{margin:0 0 10px;padding:6px;gap:5px}
.rhbr-toolbar span{padding:5px 10px;font-size:10px;border:1px solid #e7edf6;box-shadow:0 1px 2px rgba(30,50,80,.04)}
.rhbr-grid{grid-template-columns:minmax(275px,315px) minmax(0,1fr);gap:11px}
.rhbr-grid aside section,.rhbr-grid main{padding:10px;margin-bottom:8px;border-radius:12px}
.rhbr-grid h3{font-size:13px;margin-bottom:7px}
.rhbr-thumbs{min-height:44px}
.rhbr-thumb{width:48px;height:48px}
.rhbr-dropzone{padding:7px;margin-top:7px!important}
.rhbr-grid nav button{padding:6px 3px;font-size:11px}
.rhbr-grid label{margin-top:6px;gap:3px;font-size:10px}
.rhbr-grid input:not([type=checkbox]):not([type=range]),.rhbr-grid select{padding:6px;font-size:12px}
.rhbr-grid input[type=color]{height:28px}
.rhbr-swatches{grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;margin:9px 0}
.rhbr-swatches button{height:20px;border-radius:5px}
.rhbr-palette{margin-top:8px;border:1px solid #e0e7f1;border-radius:9px;background:#fbfcff;overflow:hidden}
.rhbr-palette summary{display:flex;align-items:center;gap:8px;padding:8px 10px;cursor:pointer;list-style:none;font-size:11px;font-weight:700;color:#34445d}
.rhbr-palette summary::-webkit-details-marker{display:none}
.rhbr-palette summary:after{content:"▾";margin-left:auto;color:#74839a;font-size:14px}
.rhbr-palette[open] summary:after{content:"▴"}
.rhbr-palette summary small{margin-left:auto;color:#8997aa;font-size:10px;font-weight:500}
.rhbr-palette[open] summary small{margin-left:0}
.rhbr-current-swatch{width:18px;height:18px;flex:none;border:1px solid #cbd5e1;border-radius:5px;background:#fff}
.rhbr-palette .rhbr-swatches{padding:0 9px 9px;margin:0;grid-template-columns:repeat(10,minmax(0,1fr))}
.rhbr-palette .rhbr-swatches button{height:19px;border-radius:5px}
.rhbr-stage{min-height:340px;padding:9px}
.rhbr-canvas{max-height:410px}
.rhbr-progress{margin-top:8px;height:5px}
.rhbr-status{min-height:22px;padding:4px 0;font-size:11px}
.rhbr-actions{gap:7px}
.rhbr-actions .rhbr-btn,.rhbr-outline{padding:8px 12px;font-size:12px;border-radius:8px}
.rhbr-export{margin-top:9px;padding-top:9px;gap:7px}
.rhbr-export select{padding:7px;min-width:160px;font-size:12px}
.rhbr-export label{gap:6px}
.rhbr-quality{width:115px}
.rhbr-privacy{margin-top:7px}
@media(min-width:761px){.rhbr-grid aside{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:8px}.rhbr-grid aside section{margin:0;min-width:0}.rhbr-grid aside section:first-child{grid-column:1/-1}.rhbr-grid aside section:nth-child(2){grid-column:1/-1}.rhbr-grid aside section:nth-child(3){grid-column:1/-1}.rhbr-grid main{margin:0}}
@media(max-width:1000px) and (min-width:761px){.rhbr-app header{grid-template-columns:1fr auto}.rhbr-textdock{grid-column:1/-1;grid-row:2}.rhbr-grid{grid-template-columns:260px minmax(0,1fr)}.rhbr-stage{min-height:300px}}
@media(max-width:760px){.rhbr-app{padding:11px;margin:8px 0}.rhbr-app header{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:start}.rhbr-brand{grid-column:1/-1}.rhbr-textdock{grid-column:1/-1;grid-row:2}.rhbr-addbtn{grid-column:1/-1;width:100%}.rhbr-dock-title small{display:none}.rhbr-dock-controls{flex-wrap:wrap}.rhbr-grid{grid-template-columns:1fr}.rhbr-grid main{grid-row:1}.rhbr-stage{min-height:250px}.rhbr-canvas{max-height:320px}.rhbr-grid aside{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rhbr-grid aside section{margin:0}.rhbr-grid aside section:first-child,.rhbr-grid aside section:nth-child(2),.rhbr-grid aside section:nth-child(3){grid-column:1/-1}.rhbr-toolbar{margin-bottom:8px}.rhbr-export>*{flex:1}.rhbr-export b{flex-basis:100%}}
@media(max-width:430px){.rhbr-dock-controls{gap:6px}.rhbr-dock-controls label{font-size:9px}.rhbr-dock-controls input[type=number]{width:48px}.rhbr-grid aside{grid-template-columns:1fr}.rhbr-grid aside section{grid-column:1/-1!important}.rhbr-palette .rhbr-swatches{grid-template-columns:repeat(8,minmax(0,1fr))}.rhbr-export{gap:6px}}

/* v1.3 multi-text layers and matching colour controls */
.rhbr-text-entry{display:flex;gap:7px;align-items:center;min-width:0}
.rhbr-text-entry .rhbr-text{flex:1;min-width:0}
.rhbr-text-entry .rhbr-addtext{padding:8px 11px;font-size:11px;white-space:nowrap}
.rhbr-textlayers{display:flex;gap:5px;flex-wrap:wrap;max-height:48px;overflow:auto}
.rhbr-layer-chip{border:1px solid #d8e2f1;background:#f6f8fc;color:#40516c;border-radius:7px;padding:5px 8px;font-size:10px;font-weight:650;cursor:pointer;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rhbr-layer-chip.active{background:#eaf1ff;border-color:#6c94ed;color:#194fb9;box-shadow:0 0 0 1px rgba(36,95,229,.08)}
.rhbr-no-layers{font-size:10px;color:#8996a9}
.rhbr-custom-bg input[type=color],.rhbr-dock-controls input[type=color]{width:32px;height:27px;padding:2px;border:1px solid #d4deeb;border-radius:7px;background:#fff;cursor:pointer}
.rhbr-custom-bg{display:flex!important;align-items:center;justify-content:space-between;gap:10px}
.rhbr-custom-bg input[type=color]{width:40px;height:30px}
@media(max-width:760px){.rhbr-text-entry{flex-wrap:wrap}.rhbr-text-entry .rhbr-addtext{flex:0 0 auto}.rhbr-textlayers{max-height:62px}}
