/* Remove background: the site's workspace layout, a light stage with zoom, the controls in tidy blocks on the side */
.rb-stage { padding: 0; background: #ecebe9; cursor: crosshair; overflow: hidden; touch-action: none; min-height: 240px; justify-self: center; max-width: 100%; }
.rb-stage.is-move { cursor: grab; }
.rb-stage.is-panning { cursor: grabbing; }
.rb-stage canvas { display: block; width: 100%; height: 100%; max-height: none; }

/* floating bits on the stage: zoom, original, progress, hint */
.rb-float { position: absolute; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 2px 10px rgba(14, 8, 7, 0.14), 0 0 0 1px rgba(14, 8, 7, 0.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rb-float-zoom { left: 12px; }
.rb-icon, .rb-zoom-val { display: inline-flex; align-items: center; justify-content: center; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 600 12.5px/1 var(--sans); cursor: pointer; transition: background var(--t-fast) var(--ease); }
.rb-icon { width: 30px; padding: 0; }
.rb-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rb-zoom-val { min-width: 54px; padding: 0 6px; font-variant-numeric: tabular-nums; }
.rb-icon:hover, .rb-zoom-val:hover { background: rgba(14, 8, 7, 0.08); }
.rb-float-right { right: 12px; }
.rb-editor.is-cut .rb-float-right { display: inline-flex; }
.rb-pill { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 600 12.5px/1 var(--sans); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.rb-pill:hover { background: rgba(14, 8, 7, 0.08); }
.rb-original.is-on, .rb-original:active { background: var(--ink); color: #fff; }
.rb-progress { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; gap: 7px; min-width: 240px; padding: 11px 14px; border-radius: 12px; background: rgba(14, 8, 7, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font: 500 13px/1.3 var(--sans); pointer-events: none; box-shadow: 0 10px 30px rgba(14, 8, 7, 0.25); }
.rb-bar-track { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.rb-bar-track i { display: block; height: 100%; width: 0; background: #fff; transition: width var(--t) var(--ease); }
.rb-hint-float { position: absolute; left: 12px; bottom: 12px; z-index: 2; margin: 0; max-width: 70%; padding: 6px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.85); color: var(--muted); font: 400 12px/1.4 var(--sans); pointer-events: none; transition: opacity var(--t-slow) var(--ease); }
.rb-stage.is-busy .rb-hint-float, .rb-hint-float:empty { opacity: 0; }

/* the side panel, in blocks */
.rb-panel { display: grid; gap: 14px; align-content: start; }
.rb-block { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.rb-block h3 { margin: 0; font: 600 12px/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rb-hint { margin: 0; font: 400 12.5px/1.45 var(--sans); color: var(--muted); }
.rb-seg { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.rb-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.rb-seg svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rb-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-swatch { position: relative; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.rb-swatch span { position: absolute; inset: 3px; border-radius: 50%; background: var(--sw, #fff); box-shadow: 0 0 0 1px rgba(14, 8, 7, 0.14) inset; }
.rb-swatch-none span { background-color: #e9e9e9; background-image: linear-gradient(45deg, #cfcfcf 25%, transparent 25%), linear-gradient(-45deg, #cfcfcf 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #cfcfcf 75%), linear-gradient(-45deg, transparent 75%, #cfcfcf 75%); background-size: 8px 8px; background-position: 0 0, 0 4px, 4px -4px, -4px 0; }
.rb-swatch-pick span { background: conic-gradient(#f43f5e, #f59e0b, #84cc16, #06b6d4, #6366f1, #f43f5e); }
.rb-swatch-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.rb-swatch.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.rb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rb-chips { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.rb-chips .chip-btn { text-align: center; }
.rb-panel .btn { width: 100%; }
.rb-editor:not(.is-cut) .rb-after { display: none; }
.rb-editor.is-cut .rb-go-block { display: none; }
/* a button armed to drop brush work: red until a second press or five seconds */
.rb-pill.is-armed, .rb-pill.is-armed:hover, .btn.is-armed { background: #e5484d; color: #fff; border-color: #e5484d; }
/* the draft from last time, above the drop zone */
.rb-resume { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.rb-resume b { display: block; font: 600 14px/1.3 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-resume span { font: 400 12.5px/1.4 var(--sans); color: var(--muted); }
.rb-resume-actions { display: flex; gap: 8px; }
.rb-resume-actions .btn { width: auto; }
.rb-engine { display: grid; grid-template-columns: 1fr 1fr; }
.rb-link { padding: 0; border: 0; background: none; font: 600 12.5px/1 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* the Pro card: live in the app, a blurred preview behind a sign-in card on the site */
.rb-pro-block { position: relative; overflow: hidden; }
.rb-pro-inner { display: grid; gap: 8px; }
.rb-pro-lede { margin: 0; font: 500 13.5px/1.4 var(--sans); }
.rb-pro-list { margin: 0; padding-left: 18px; font: 400 12.5px/1.5 var(--sans); color: var(--muted); }
.rb-pro-list li + li { margin-top: 4px; }
.rb-pro-block.is-locked .rb-pro-inner { filter: blur(5px); opacity: 0.55; pointer-events: none; user-select: none; -webkit-user-select: none; }
.rb-pro-block.is-locked { min-height: 200px; }
.rb-lock { display: none; }
.rb-pro-block.is-locked .rb-lock { position: absolute; inset: 0; display: grid; gap: 8px; align-content: center; padding: 14px; text-align: center; background: rgba(255, 255, 255, 0.6); }
.rb-lock b { font: 600 14.5px/1.25 var(--sans); }
.rb-lock p { margin: 0; font: 400 12.5px/1.45 var(--sans); color: var(--muted); }
.rb-lock .btn { width: 100%; text-align: center; }
.rb-lock .rb-link { justify-self: center; }
.tool-toolbar .chip-btn[disabled] { opacity: 0.4; cursor: default; }
.tool-toolbar .chip-btn[disabled]:hover { background: #fff; color: var(--ink); border-color: var(--line); }
#rb-credits:empty, #rb-stats:empty, #rb-saved:empty { display: none; }
.tool-note:empty { display: none; }

@media (max-width: 860px) {
  /* phone: the stage first, full width, shaped like the photo but never taller than most of the screen, the controls stacked below */
  .rb-editor { gap: 12px; }
  .rb-stage { justify-self: stretch; width: 100% !important; border-radius: 14px; }
  .rb-stage canvas { max-height: none; }
  .rb-hint-float { max-width: 80%; font-size: 11.5px; }
  .rb-float-zoom { left: 8px; top: 8px; }
  .rb-float-right { right: 8px; top: 8px; }
  .rb-panel { gap: 10px; }
  .rb-resume { grid-template-columns: 1fr; }
  .rb-block { padding: 12px; border-radius: 12px; }
  .rb-seg button { padding-left: 6px; padding-right: 6px; }
}
