.rcp-online-coloring {
    --studio-bg: #edf2f4;
    --studio-panel: #ffffff;
    --studio-line: #d8e1e6;
    --studio-ink: #12333d;
    --studio-muted: #667980;
    --studio-primary: #147f92;
    --studio-primary-soft: #e5f3f4;
    --studio-coral: #ef6b66;
    --studio-yellow: #f2c94c;
    font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.rcp-online-coloring *,
.rcp-online-coloring *::before,
.rcp-online-coloring *::after {
    box-sizing: border-box;
}

.rcp-online-coloring [hidden] {
    display: none !important;
}

.rcp-online-studio {
    min-height: min(780px, calc(100vh - 32px));
    overflow: hidden;
    border: 1px solid var(--studio-line);
    border-radius: 8px;
    background: var(--studio-bg);
    box-shadow: 0 18px 52px rgba(30, 58, 68, 0.08);
}

.rcp-online-studio__toolbar {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: auto minmax(200px, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 64px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--studio-line);
    background: var(--studio-panel);
}

.rcp-studio-center {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

.rcp-studio-zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid var(--studio-line);
    border-radius: 999px;
    background: #f7fafb;
}

.rcp-studio-zoom__btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--studio-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(18, 51, 61, 0.1);
}

.rcp-studio-zoom__btn:hover:not(:disabled) {
    background: var(--studio-primary-soft);
    color: var(--studio-primary);
}

.rcp-studio-zoom__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.rcp-studio-zoom__fit .rcp-studio-icon {
    width: 16px;
    height: 16px;
}

.rcp-studio-zoom__value {
    min-width: 52px;
    color: var(--studio-ink);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.rcp-studio-back,
.rcp-studio-tool,
.rcp-effects-toggle,
.rcp-erase-area,
.rcp-complete-card button,
.rcp-complete-card a {
    font: inherit;
}

.rcp-studio-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 11px 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--studio-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.rcp-studio-back:hover {
    background: #f0f5f6;
    color: var(--studio-ink);
}

.rcp-studio-progress {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) 40px;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.rcp-studio-progress__track {
    height: 7px;
    overflow: hidden;
    border-radius: 4px;
    background: #e7edef;
}

.rcp-studio-progress__track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--studio-primary);
    transition: width 0.25s ease;
}

.rcp-studio-progress strong {
    color: var(--studio-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.rcp-studio-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.rcp-studio-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #50646c;
    cursor: pointer;
}

.rcp-studio-tool:hover:not(:disabled),
.rcp-studio-tool.is-active {
    background: var(--studio-primary-soft);
    color: var(--studio-primary);
}

.rcp-studio-tool:disabled,
.rcp-erase-area:disabled,
.rcp-magic-fill button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.rcp-studio-icon {
    display: block;
    flex-shrink: 0;
    width: 19px;
    height: 19px;
}

.rcp-online-studio__workspace {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.rcp-online-coloring__stage-wrap {
    --rcp-zoom: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: min(620px, calc(100vh - 178px));
    max-height: min(76vh, 820px);
    overflow: auto;
    padding: 28px;
    background-color: var(--studio-bg);
    background-image:
        linear-gradient(#dfe7ea 1px, transparent 1px),
        linear-gradient(90deg, #dfe7ea 1px, transparent 1px);
    background-size: 24px 24px;
    scrollbar-color: #b7c7cd transparent;
}

.rcp-online-coloring__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    margin: 0 auto;
    zoom: var(--rcp-zoom);
    transition: zoom 0.18s ease;
}

.rcp-online-coloring__stage-wrap.is-panning {
    cursor: grabbing;
    user-select: none;
}

.rcp-online-coloring__paper {
    padding: 8px;
    border: 1px solid #ccd8dc;
    background: #fff;
    box-shadow: 0 18px 48px rgba(31, 62, 72, 0.14);
}

#rcp-coloring-canvas {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(70vh, 740px);
    height: auto;
    cursor: crosshair;
    touch-action: manipulation;
    vertical-align: top;
}

#rcp-coloring-canvas.is-picker {
    cursor: copy;
}

#rcp-coloring-canvas.is-eraser {
    cursor: cell;
}

.rcp-online-coloring:not(.is-active) #rcp-coloring-canvas {
    opacity: 0.38;
    pointer-events: none;
}

.rcp-online-coloring.is-active #rcp-coloring-canvas {
    opacity: 1;
    pointer-events: auto;
}

.rcp-online-coloring.has-saved-progress #rcp-coloring-canvas,
.rcp-online-coloring.has-saved-progress .rcp-color-dock,
.rcp-online-coloring.has-saved-progress .rcp-studio-actions,
.rcp-online-coloring.has-saved-progress .rcp-canvas-nav {
    pointer-events: none;
}

.rcp-color-dock {
    position: relative;
    z-index: 4;
    border-top: 1px solid var(--studio-line);
    background: var(--studio-panel);
}

.rcp-color-dock__main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 82px;
    padding: 12px 14px;
}

.rcp-custom-color-button {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--rcp-current, #ef6b66);
    box-shadow: 0 0 0 1px #bdcbd0, 0 4px 12px rgba(31, 62, 72, 0.14);
    color: #fff;
    cursor: pointer;
}

.rcp-custom-color-button__plus {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(18, 51, 61, 0.58);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.rcp-palette-picker {
    position: relative;
    flex: 0 0 auto;
}

.rcp-palette-picker select {
    min-height: 42px;
    max-width: 110px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--studio-line);
    border-radius: 6px;
    background: #fff;
    color: var(--studio-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.rcp-dock__colors,
.rcp-dock__recent,
.rcp-dock__gradients,
.rcp-dock__patterns {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: thin;
}

.rcp-dock__colors {
    flex: 1 1 auto;
}

.rcp-dock__recent {
    flex: 0 1 auto;
    padding-left: 12px;
    border-left: 1px solid var(--studio-line);
}

.rcp-palette-swatch {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #bdcbd0;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rcp-palette-swatch:hover {
    transform: translateY(-3px);
}

.rcp-palette-swatch.is-active {
    box-shadow: 0 0 0 3px var(--studio-primary);
    transform: translateY(-3px);
}

.rcp-palette-swatch--recent {
    width: 30px;
    height: 30px;
    border-width: 2px;
}

.rcp-effects-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--studio-line);
    border-radius: 6px;
    background: #fff;
    color: var(--studio-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.rcp-effects-toggle:hover,
.rcp-effects-toggle.is-active {
    border-color: #9bc6cc;
    background: var(--studio-primary-soft);
    color: var(--studio-primary);
}

.rcp-effects-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
    padding: 16px;
    border-top: 1px solid var(--studio-line);
    background: #f8fafb;
}

.rcp-effects-section {
    min-width: 0;
}

.rcp-effects-section:first-child,
.rcp-effects-section:nth-child(2) {
    grid-column: 1 / -1;
}

.rcp-effects-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.rcp-effects-section__heading strong {
    color: var(--studio-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.rcp-effects-section__heading--icon .rcp-studio-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--studio-primary);
}

.rcp-effects-section__heading--icon {
    justify-content: flex-start;
}

.rcp-effects-section__heading--icon strong {
    flex: 1;
}

.rcp-effects-section__heading--icon .rcp-effect-create {
    margin-left: auto;
}

.rcp-texture-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.rcp-texture-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 4px 12px 4px 8px;
    border: 1px solid var(--studio-line);
    border-radius: 999px;
    background: #fff;
    color: var(--studio-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.rcp-texture-cat:hover {
    border-color: #9bc6cc;
    color: var(--studio-primary);
}

.rcp-texture-cat.is-active {
    border-color: var(--studio-primary);
    background: var(--studio-primary-soft);
    color: var(--studio-primary);
}

.rcp-texture-cat .rcp-studio-icon {
    width: 18px;
    height: 18px;
}

.rcp-texture-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.rcp-texture-subcats[hidden] {
    display: none !important;
}

.rcp-texture-subcat {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--studio-line);
    border-radius: 6px;
    background: #fff;
    color: var(--studio-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.rcp-texture-subcat.is-active {
    border-color: var(--studio-primary);
    background: var(--studio-primary-soft);
    color: var(--studio-primary);
}

.rcp-pattern-scale {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--studio-ink);
}

.rcp-pattern-scale[hidden] {
    display: none !important;
}

.rcp-pattern-scale__label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.rcp-pattern-scale input[type="range"] {
    flex: 1 1 auto;
    min-width: 80px;
    max-width: 200px;
    accent-color: var(--studio-primary);
}

.rcp-pattern-scale__value {
    flex: 0 0 3.2em;
    text-align: right;
    color: var(--studio-muted);
    font-variant-numeric: tabular-nums;
}

.rcp-effects-section--textures .rcp-dock__patterns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 8px;
    align-content: start;
    max-height: 240px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--studio-line);
    border-radius: 8px;
    background: #fafcfd;
}

.rcp-texture-loading {
    margin: 0;
    padding: 12px 8px;
    color: var(--studio-muted);
    font-size: 12px;
    font-weight: 600;
}

.rcp-texture-empty {
    margin: 8px 0 0;
    color: var(--studio-muted);
    font-size: 12px;
    line-height: 1.45;
}

.rcp-texture-swatch--photo::after {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--studio-primary);
    box-shadow: 0 0 0 1px #fff;
}

.rcp-texture-swatch--photo {
    position: relative;
}

.rcp-effect-create {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #a9cbd0;
    border-radius: 5px;
    background: var(--studio-primary-soft);
    color: var(--studio-primary);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.rcp-effect-create:hover {
    border-color: var(--studio-primary);
    background: var(--studio-primary);
    color: #fff;
}

.rcp-gradient-swatch,
.rcp-texture-swatch {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    padding: 3px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 7px;
    box-shadow: 0 0 0 1px #c3d0d5;
    cursor: pointer;
}

.rcp-gradient-swatch.is-custom {
    position: relative;
}

.rcp-gradient-swatch.is-custom::after {
    content: "+";
    position: absolute;
    right: 3px;
    bottom: 3px;
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(18, 51, 61, 0.74);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.rcp-gradient-swatch:hover,
.rcp-gradient-swatch.is-active,
.rcp-texture-swatch:hover,
.rcp-texture-swatch.is-active {
    box-shadow: 0 0 0 3px var(--studio-primary);
}

.rcp-texture-swatch__preview {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

.rcp-erase-area {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--studio-line);
    border-radius: 6px;
    background: #fff;
    color: var(--studio-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.rcp-erase-area:hover:not(:disabled),
.rcp-erase-area.is-active {
    border-color: #e3a8a5;
    background: #fff1f0;
    color: #a54d49;
}

.rcp-magic-fill {
    display: flex;
    gap: 7px;
}

.rcp-magic-fill button {
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid #c7d8dd;
    border-radius: 6px;
    background: #fff;
    color: var(--studio-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.rcp-magic-fill button:hover:not(:disabled) {
    border-color: #a9cbd0;
    background: var(--studio-primary-soft);
    color: var(--studio-primary);
}

.rcp-online-coloring.is-magic-working .rcp-online-coloring__stage-wrap {
    cursor: wait;
}

.rcp-canvas-nav {
    position: absolute;
    top: 50%;
    z-index: 7;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(18, 51, 61, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(31, 62, 72, 0.14);
    color: var(--studio-ink);
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.rcp-canvas-nav:hover {
    background: #fff;
    color: var(--studio-primary);
}

.rcp-canvas-nav--previous {
    left: 12px;
}

.rcp-canvas-nav--next {
    right: 12px;
}

.rcp-complete-card,
.rcp-resume-card {
    position: sticky;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 8;
    width: min(420px, calc(100% - 40px));
    margin: -190px auto 20px;
    padding: 20px 46px 20px 20px;
    border: 1px solid #bfd8d8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(31, 62, 72, 0.2);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.rcp-complete-card.is-visible,
.rcp-resume-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.rcp-resume-card {
    z-index: 9;
    margin-top: -220px;
    margin-bottom: 30px;
}

.rcp-resume-card__mark {
    display: grid;
    float: left;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-right: 12px;
    border-radius: 50%;
    background: var(--studio-primary-soft);
    color: var(--studio-primary);
}

.rcp-complete-card__mark {
    display: grid;
    float: left;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-right: 12px;
    border-radius: 50%;
    background: #fff4c7;
    color: #bf8a00;
}

.rcp-complete-card strong,
.rcp-complete-card span,
.rcp-resume-card strong,
.rcp-resume-card span {
    display: block;
}

.rcp-complete-card strong {
    color: var(--studio-ink);
    font-size: 17px;
}

.rcp-resume-card strong {
    color: var(--studio-ink);
    font-size: 17px;
}

.rcp-complete-card span,
.rcp-resume-card span {
    margin-top: 3px;
    color: var(--studio-muted);
    font-size: 12px;
    line-height: 1.4;
}

.rcp-complete-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    margin-left: 50px;
}

.rcp-resume-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    margin-left: 50px;
}

.rcp-complete-card__actions button,
.rcp-complete-card__actions a,
.rcp-resume-card__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--studio-primary);
    border-radius: 6px;
    background: var(--studio-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.rcp-complete-card__actions a,
.rcp-resume-card__actions button + button {
    border-color: var(--studio-line);
    background: #fff;
    color: var(--studio-ink);
}

.rcp-autosave-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    border-top: 1px solid var(--studio-line);
    background: #f0faf5;
    color: #277650;
    font-size: 12px;
    font-weight: 700;
}

.rcp-autosave-status .rcp-studio-icon {
    width: 16px;
    height: 16px;
}

.rcp-autosave-status.is-saving {
    background: #f8fafb;
    color: var(--studio-muted);
}

.rcp-autosave-status.is-error {
    background: #fff4f3;
    color: #a54d49;
}

.rcp-color-dialog {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.16s ease;
}

.rcp-color-dialog.is-visible {
    opacity: 1;
}

.rcp-color-dialog__overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(18, 51, 61, 0.34);
    cursor: pointer;
}

.rcp-color-dialog__panel {
    position: relative;
    width: min(340px, calc(100% - 24px));
    padding: 20px;
    border: 1px solid var(--studio-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(18, 51, 61, 0.28);
}

.rcp-color-dialog__panel > strong {
    display: block;
    margin-bottom: 14px;
    color: var(--studio-ink);
    font-size: 18px;
}

.rcp-color-dialog .rcp-custom-color {
    display: block;
    width: 100%;
    height: 150px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.rcp-color-dialog label {
    display: block;
    margin-top: 14px;
}

.rcp-color-dialog label span {
    display: block;
    margin-bottom: 5px;
    color: var(--studio-muted);
    font-size: 11px;
    font-weight: 700;
}

.rcp-color-dialog label input {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid var(--studio-line);
    border-radius: 6px;
    color: var(--studio-ink);
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
}

.rcp-color-dialog__rgb {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.rcp-color-dialog__rgb label {
    min-width: 0;
}

.rcp-color-dialog__rgb input {
    min-width: 0;
}

.rcp-color-dialog__recent {
    display: flex;
    gap: 8px;
    min-height: 34px;
    margin-top: 14px;
}

.rcp-color-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.rcp-color-dialog__actions button {
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid var(--studio-line);
    border-radius: 6px;
    background: #fff;
    color: var(--studio-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.rcp-color-dialog__actions button:last-child {
    border-color: var(--studio-primary);
    background: var(--studio-primary);
    color: #fff;
}

.rcp-gradient-dialog__preview {
    width: 100%;
    height: 116px;
    margin-bottom: 14px;
    border: 1px solid var(--studio-line);
    border-radius: 7px;
    background: linear-gradient(135deg, #ff6b6b, #ffd43b);
}

.rcp-gradient-dialog__colors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rcp-gradient-dialog__colors label {
    margin-top: 0;
}

.rcp-gradient-dialog__colors input[type="color"] {
    width: 100%;
    height: 54px;
    padding: 3px;
    border: 1px solid var(--studio-line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.rcp-color-dialog select {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid var(--studio-line);
    border-radius: 6px;
    background: #fff;
    color: var(--studio-ink);
    font: inherit;
}

.rcp-complete-card__close {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--studio-muted);
    font-size: 22px;
    cursor: pointer;
}

.rcp-online-coloring.is-loading .rcp-online-coloring__stage-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(237, 242, 244, 0.78);
    pointer-events: none;
}

.rcp-online-coloring.is-loading .rcp-online-coloring__stage-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 11;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 3px solid rgba(20, 127, 146, 0.2);
    border-top-color: var(--studio-primary);
    border-radius: 50%;
    animation: rcp-studio-spin 0.75s linear infinite;
}

@keyframes rcp-studio-spin {
    to {
        transform: rotate(360deg);
    }
}

.rcp-online-coloring:fullscreen,
.rcp-online-coloring.is-fullscreen {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    background: var(--studio-bg);
}

.rcp-online-coloring:fullscreen .rcp-online-studio,
.rcp-online-coloring.is-fullscreen .rcp-online-studio {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
}

.rcp-online-coloring:fullscreen .rcp-online-studio__workspace,
.rcp-online-coloring.is-fullscreen .rcp-online-studio__workspace {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.rcp-online-coloring:fullscreen .rcp-online-coloring__stage-wrap,
.rcp-online-coloring.is-fullscreen .rcp-online-coloring__stage-wrap {
    flex: 1;
    min-height: 0;
    max-height: none;
}

.rcp-online-coloring:fullscreen .rcp-studio-zoom,
.rcp-online-coloring.is-fullscreen .rcp-studio-zoom {
    padding: 6px 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(18, 51, 61, 0.08);
}

.rcp-online-coloring:fullscreen .rcp-studio-zoom__btn,
.rcp-online-coloring.is-fullscreen .rcp-studio-zoom__btn {
    width: 40px;
    height: 40px;
}

@media (max-width: 1050px) {
    .rcp-online-studio__toolbar {
        grid-template-columns: auto minmax(100px, 1fr) auto;
        gap: 10px;
    }

    .rcp-studio-actions {
        max-width: 310px;
        overflow-x: auto;
    }

    .rcp-dock__recent {
        display: none;
    }

    .rcp-effects-panel {
        grid-template-columns: 1fr auto;
    }

    .rcp-erase-area {
        justify-self: end;
    }
}

@media (max-width: 720px) {
    .rcp-online-studio {
        min-height: calc(100vh - 12px);
        border-radius: 0;
    }

    .rcp-online-studio__toolbar {
        grid-template-columns: auto 1fr;
        min-height: 56px;
        padding: 6px;
    }

    .rcp-studio-back {
        width: 38px;
        padding: 0;
        justify-content: center;
    }

    .rcp-studio-back span,
    .rcp-studio-progress {
        display: none;
    }

    .rcp-studio-actions {
        max-width: none;
        justify-content: flex-end;
    }

    .rcp-studio-tool {
        width: 36px;
        height: 36px;
    }

    .rcp-online-coloring__stage-wrap {
        min-height: calc(100vh - 132px);
        max-height: calc(100vh - 132px);
        padding: 14px;
        background-size: 18px 18px;
    }

    #rcp-coloring-canvas {
        max-height: calc(100vh - 170px);
    }

    .rcp-color-dock__main {
        gap: 7px;
        min-height: 76px;
        padding: 9px 8px;
    }

    .rcp-custom-color-button {
        width: 42px;
        height: 42px;
    }

    .rcp-palette-swatch {
        width: 38px;
        height: 38px;
    }

    .rcp-palette-picker select {
        width: 42px;
        max-width: 42px;
        padding: 0;
        color: transparent;
    }

    .rcp-palette-picker::after {
        content: "";
        position: absolute;
        top: 13px;
        left: 13px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: conic-gradient(#ef6b66, #f2c94c, #74bf8e, #65b6d6, #9b82e6, #ef6b66);
        pointer-events: none;
    }

    .rcp-effects-toggle {
        width: 42px;
        min-height: 42px;
        padding: 0;
    }

    .rcp-effects-toggle span {
        display: none;
    }

    .rcp-effects-panel {
        display: block;
        max-height: 320px;
        overflow-y: auto;
        padding: 10px;
    }

    .rcp-effects-section + .rcp-effects-section,
    .rcp-erase-area {
        margin-top: 12px;
    }

    .rcp-complete-card {
        width: calc(100% - 20px);
        margin-bottom: 10px;
        padding: 16px 40px 16px 16px;
    }

    .rcp-complete-card__actions {
        margin-left: 0;
    }

    .rcp-resume-card {
        width: calc(100% - 20px);
        margin-bottom: 10px;
        padding: 16px;
    }

    .rcp-resume-card__actions {
        margin-left: 0;
    }

    .rcp-canvas-nav {
        width: 36px;
        height: 36px;
    }
}
