
html.ccd-designer-active,
body.ccd-standalone-designer,
body.ccd-standalone-designer.ccd-designer-active {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #07121c !important;
}

body.ccd-standalone-designer > *:not(.ccd-studio-shell):not(script):not(style) {
    display: none !important;
}

.ccd-studio-shell,
.ccd-studio-shell * {
    box-sizing: border-box;
}

.ccd-studio-shell {
    --ccd-navy: #0b1724;
    --ccd-navy-2: #132638;
    --ccd-panel: #172b3d;
    --ccd-panel-2: #20384d;
    --ccd-line: #365065;
    --ccd-blue: #459be6;
    --ccd-blue-dark: #2364b0;
    --ccd-gold: #d9ad45;
    --ccd-text: #f5f8fb;
    --ccd-muted: #aebfce;
    --ccd-danger: #bc4250;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    margin: 0;
    color: var(--ccd-text);
    font-family: "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif;
}

body.ccd-standalone-designer .ccd-studio-shell {
    position: fixed !important;
    z-index: 2147483000 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 0;
    margin: 0 !important;
}

.ccd-embedded-designer {
    position: relative;
    width: 100%;
    min-height: 760px;
}

.ccd-loading {
    display: flex;
    width: 100%;
    height: 100dvh;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--ccd-line);
    border-radius: 16px;
    background: var(--ccd-navy);
}

.ccd-spinner {
    width: 25px;
    height: 25px;
    border: 3px solid rgba(255, 255, 255, .2);
    border-top-color: var(--ccd-blue);
    border-radius: 50%;
    animation: ccd-spin .8s linear infinite;
}

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

.ccd-app {
    position: relative;
    display: flex;
    width: 100%;
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #eef2f5;
    box-shadow: 0 22px 65px rgba(0, 0, 0, .28);
}

.ccd-embedded-designer .ccd-app {
    height: auto;
    min-height: 760px;
    overflow: visible;
}

.ccd-embedded-designer .ccd-workspace {
    min-height: 680px;
}

.ccd-topbar {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(230px, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 76px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #09141f, #152a3d);
    border-bottom: 1px solid var(--ccd-line);
}

.ccd-brand-block {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.ccd-return-dashboard {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    flex: 0 0 auto;
    border: 1px solid rgba(217, 173, 69, .78);
    border-radius: 9px;
    background: rgba(217, 173, 69, .1);
    color: #ffe7a4 !important;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-decoration: none !important;
    white-space: nowrap;
}

.ccd-return-dashboard:hover,
.ccd-return-dashboard:focus {
    background: var(--ccd-gold);
    color: #0b1724 !important;
}

.ccd-fullscreen-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    flex: 0 0 auto;
    border: 1px solid #6fc1ff;
    border-radius: 9px;
    background: linear-gradient(135deg, #459be6, #2364b0);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    white-space: nowrap;
    box-shadow: 0 0 0 3px rgba(69, 155, 230, .12);
}

.ccd-fullscreen-button:hover,
.ccd-fullscreen-button:focus {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.ccd-fullscreen-button[hidden],
.ccd-fullscreen-prompt[hidden] {
    display: none !important;
}

.ccd-fullscreen-prompt {
    position: absolute;
    z-index: 60;
    top: 86px;
    left: 50%;
    display: flex;
    width: min(620px, calc(100% - 32px));
    min-height: 66px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 14px;
    transform: translateX(-50%);
    border: 1px solid rgba(217, 173, 69, .8);
    border-radius: 12px;
    background: rgba(9, 20, 31, .96);
    color: #fff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .34);
    backdrop-filter: blur(10px);
}

.ccd-fullscreen-prompt strong {
    color: #ffe7a4;
    font-size: 11px;
    letter-spacing: .08em;
}

.ccd-fullscreen-prompt span {
    color: #c8d5df;
    font-size: 11px;
}

.ccd-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ccd-brand-mark {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    flex: 0 0 45px;
    border: 2px solid var(--ccd-gold);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #fff4a9, #d5a837 45%, #7e5b16 100%);
    color: #0b1724;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 900;
}

.ccd-brand strong,
.ccd-brand small {
    display: block;
}

.ccd-brand strong {
    color: #fff;
    font-size: 17px;
    letter-spacing: .06em;
}

.ccd-brand small {
    margin-top: 2px;
    color: var(--ccd-muted);
    font-size: 11px;
}

.ccd-title-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.ccd-title-field span {
    color: var(--ccd-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ccd-title-field input {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #3f596f;
    border-radius: 9px;
    outline: 0;
    background: #0d1c29;
    color: #fff;
    font: inherit;
    font-weight: 700;
}

.ccd-title-field input:focus {
    border-color: var(--ccd-blue);
    box-shadow: 0 0 0 2px rgba(69, 155, 230, .23);
}

.ccd-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.ccd-button,
.ccd-icon-button,
.ccd-tool-button,
.ccd-side-switch button,
.ccd-mobile-tools button,
.ccd-template-card,
.ccd-symbol-grid button,
.ccd-layer-row,
.ccd-template-categories button {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.ccd-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border-radius: 9px;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .025em;
    line-height: 1.2;
    transition: transform .15s ease, filter .15s ease, border-color .15s ease;
}

.ccd-button:hover,
.ccd-button:focus {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.ccd-button-primary {
    background: var(--ccd-blue-dark);
    color: #fff !important;
}

.ccd-button-secondary {
    border: 1px solid #526a7d;
    background: #243b4d;
    color: #fff !important;
}

.ccd-button-gold {
    background: linear-gradient(135deg, #f0d06f, #b98018);
    color: #12202d !important;
}

.ccd-button-danger {
    background: var(--ccd-danger);
    color: #fff !important;
}

.ccd-full {
    width: 100%;
    margin-top: 9px;
}

.ccd-icon-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 42px;
    border: 1px solid #4d6477;
    border-radius: 9px;
    background: #1b3042;
    color: #fff;
}

.ccd-icon-button:disabled,
.ccd-button:disabled {
    cursor: not-allowed;
    opacity: .45;
    transform: none;
}

.ccd-workspace {
    display: grid;
    grid-template-columns: 92px minmax(280px, 355px) minmax(480px, 1fr) minmax(310px, 390px);
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: #e9eef2;
}

.ccd-toolrail {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow-y: auto;
    gap: 3px;
    padding: 10px 7px;
    background: #101d29;
    border-right: 1px solid var(--ccd-line);
}

.ccd-tool-button {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 8px 4px;
    border-radius: 10px;
    background: transparent;
    color: #c7d3dd;
    transition: background .15s ease, color .15s ease;
}

.ccd-tool-button:hover,
.ccd-tool-button.is-active {
    background: #243a4d;
    color: #fff;
}

.ccd-tool-button.is-active {
    box-shadow: inset 3px 0 0 var(--ccd-blue);
}

.ccd-tool-button .dashicons {
    width: 26px;
    height: 26px;
    font-size: 26px;
}

.ccd-tool-button small {
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
}

.ccd-left-panel,
.ccd-right-panel {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    background: var(--ccd-navy-2);
}

.ccd-left-panel {
    border-right: 1px solid var(--ccd-line);
}

.ccd-right-panel {
    padding: 13px;
    border-left: 1px solid var(--ccd-line);
}

.ccd-panel-head,
.ccd-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ccd-panel-head {
    position: sticky;
    z-index: 5;
    top: 0;
    min-height: 58px;
    padding: 12px 15px;
    background: rgba(19, 38, 56, .96);
    border-bottom: 1px solid var(--ccd-line);
    backdrop-filter: blur(12px);
}

.ccd-panel-head h2,
.ccd-card-head h2 {
    margin: 0;
    color: #fff;
    font-family: inherit;
}

.ccd-panel-head h2 {
    font-size: 18px;
}

.ccd-panel-close {
    display: none;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 50%;
    background: #2a4256;
    color: #fff;
    font-size: 25px;
    line-height: 1;
}

.ccd-panel-body {
    padding: 13px;
}

.ccd-template-categories {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 5px;
    overflow-x: auto;
}

.ccd-template-categories button {
    min-height: 34px;
    padding: 6px 10px;
    flex: 0 0 auto;
    border: 1px solid #496177;
    border-radius: 999px;
    background: #20364a;
    color: #d6e2ec;
    font-size: 10px;
    font-weight: 700;
}

.ccd-template-categories button.is-active {
    border-color: var(--ccd-blue);
    background: var(--ccd-blue-dark);
    color: #fff;
}

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

.ccd-template-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #40596e;
    border-radius: 12px;
    background: #1a2d3f;
    color: #fff;
    text-align: center;
}

.ccd-template-card:hover,
.ccd-template-card.is-current {
    border-color: var(--ccd-blue);
    box-shadow: 0 0 0 2px rgba(69, 155, 230, .16);
}

.ccd-template-preview {
    display: grid;
    width: 90px;
    height: 90px;
    margin-bottom: 8px;
    place-items: center;
    border: 5px double rgba(0, 0, 0, .45);
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .28), 0 5px 13px rgba(0, 0, 0, .35);
}

.ccd-template-preview b {
    color: rgba(15, 20, 25, .84);
    font-family: Georgia, serif;
    font-size: 35px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.ccd-finish-antique-silver { background: linear-gradient(135deg, #737e86, #f3f7f9 35%, #949ea5 65%, #d9e0e4); }
.ccd-finish-antique-gold { background: linear-gradient(135deg, #7d5d20, #f4da7d 35%, #aa7d29 65%, #ead073); }
.ccd-finish-antique-bronze { background: linear-gradient(135deg, #4b2e1b, #ca9564 38%, #6e4529 67%, #b77c4d); }
.ccd-finish-bright-gold { background: linear-gradient(135deg, #9a7106, #fff093 38%, #d5aa16 67%, #f0ce50); }
.ccd-finish-black-nickel { background: linear-gradient(135deg, #020304, #737d84 38%, #151719 67%, #41494f); }
.ccd-finish-dual-plated { background: linear-gradient(135deg, #9b7316, #f1d774 35%, #aeb7bd 55%, #f7fafb 70%, #bf8f21); }

.ccd-template-card strong {
    width: 100%;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccd-template-card small {
    width: 100%;
    margin-top: 3px;
    overflow: hidden;
    color: var(--ccd-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccd-panel-section,
.ccd-panel-callout,
.ccd-panel-note,
.ccd-upload-drop {
    border: 1px solid #3f586d;
    border-radius: 12px;
    background: #1a2e40;
}

.ccd-panel-section,
.ccd-panel-callout,
.ccd-panel-note {
    padding: 14px;
}

.ccd-panel-note {
    margin-top: 12px;
    color: #c5d2dc;
    font-size: 12px;
    line-height: 1.55;
}

.ccd-panel-callout {
    text-align: center;
}

.ccd-panel-callout .dashicons {
    width: 48px;
    height: 48px;
    color: var(--ccd-blue);
    font-size: 48px;
}

.ccd-panel-callout h3 {
    margin: 8px 0;
    color: #fff;
}

.ccd-panel-callout p,
.ccd-panel-intro {
    color: var(--ccd-muted);
    font-size: 13px;
    line-height: 1.55;
}

.ccd-symbol-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ccd-symbol-grid button {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border: 1px solid #40596e;
    border-radius: 10px;
    background: #1b3042;
    color: #fff;
}

.ccd-symbol-grid button:hover {
    border-color: var(--ccd-blue);
    background: #25445d;
}

.ccd-symbol-grid b {
    font-size: 31px;
    line-height: 1;
}

.ccd-symbol-grid span {
    color: var(--ccd-muted);
    font-size: 9px;
    text-align: center;
}

.ccd-layer-actions,
.ccd-property-actions,
.ccd-saved-actions {
    display: flex;
    gap: 8px;
}

.ccd-layer-actions {
    margin-bottom: 10px;
}

.ccd-layer-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ccd-layer-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px;
    border: 1px solid #40596e;
    border-radius: 9px;
    background: #1a2d3f;
    color: #fff;
    text-align: left;
}

.ccd-layer-row.is-selected,
.ccd-layer-row:hover {
    border-color: var(--ccd-blue);
    background: #25445d;
}

.ccd-layer-row strong,
.ccd-layer-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccd-layer-row strong { font-size: 12px; }
.ccd-layer-row small { margin-top: 2px; color: var(--ccd-muted); font-size: 9px; text-transform: uppercase; }

.ccd-upload-drop {
    padding: 23px 14px;
    text-align: center;
}

.ccd-upload-drop > .dashicons {
    width: 52px;
    height: 52px;
    color: var(--ccd-blue);
    font-size: 52px;
}

.ccd-upload-drop h3 {
    margin: 7px 0 4px;
    color: #fff;
    font-size: 18px;
}

.ccd-upload-drop p {
    margin: 0 0 13px;
    color: var(--ccd-muted);
    font-size: 11px;
}

.ccd-upload-drop input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ccd-uploaded-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.ccd-uploaded-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 8px;
    border: 1px solid #40596e;
    border-radius: 9px;
    background: #1a2d3f;
}

.ccd-uploaded-item img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 6px;
    background: #edf1f4;
}

.ccd-uploaded-item > .dashicons {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    font-size: 34px;
}

.ccd-uploaded-item strong,
.ccd-uploaded-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccd-uploaded-item strong { font-size: 11px; }
.ccd-uploaded-item small { margin-top: 3px; color: var(--ccd-muted); font-size: 9px; }

.ccd-stage-area {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 18px 20px 24px;
    overflow: hidden;
    background:
        linear-gradient(45deg, #e3e8ec 25%, transparent 25%, transparent 75%, #e3e8ec 75%),
        linear-gradient(45deg, #e3e8ec 25%, transparent 25%, transparent 75%, #e3e8ec 75%),
        #f4f7f9;
    background-position: 0 0, 12px 12px;
    background-size: 24px 24px;
}

.ccd-side-switch {
    display: inline-flex;
    gap: 5px;
    margin: 0 auto 13px;
    padding: 4px;
    border: 1px solid #c4ced6;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 6px 16px rgba(17, 33, 48, .09);
}

.ccd-side-switch button {
    min-width: 110px;
    min-height: 39px;
    padding: 7px 14px;
    border-radius: 999px;
    background: transparent;
    color: #345064;
    font-size: 12px;
    font-weight: 800;
}

.ccd-side-switch button.is-active {
    background: var(--ccd-blue-dark);
    color: #fff;
}

.ccd-canvas-wrap {
    width: min(100%, 760px, calc(100dvh - 170px));
    margin: auto;
    padding: 12px 12px 7px;
    border: 1px solid #bac6cf;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 20px 55px rgba(20, 40, 58, .18);
}

.ccd-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
    touch-action: none;
    cursor: move;
}

.ccd-canvas-hint {
    padding: 4px 8px 8px;
    color: #647687;
    font-size: 10px;
    text-align: center;
}

.ccd-mobile-tools {
    display: none;
}

.ccd-card {
    margin-bottom: 12px;
    padding: 13px;
    border: 1px solid #40596e;
    border-radius: 12px;
    background: #172b3d;
}

.ccd-card-head {
    margin-bottom: 12px;
}

.ccd-card-head h2 {
    font-size: 15px;
}

.ccd-card-head span {
    color: var(--ccd-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
}

.ccd-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.ccd-field > span,
.ccd-range-field b,
.ccd-check-field legend {
    color: #dbe5ed;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .025em;
}

.ccd-field input,
.ccd-field textarea,
.ccd-field select,
.ccd-property-grid input,
.ccd-property-grid select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #4d667b;
    border-radius: 8px;
    outline: 0;
    background: #0f202e;
    color: #fff;
    font: inherit;
    font-size: 12px;
}

.ccd-field textarea {
    resize: vertical;
}

.ccd-field input:focus,
.ccd-field textarea:focus,
.ccd-field select:focus,
.ccd-property-grid input:focus,
.ccd-property-grid select:focus {
    border-color: var(--ccd-blue);
    box-shadow: 0 0 0 2px rgba(69, 155, 230, .18);
}

.ccd-property-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.ccd-range-field {
    display: block;
    margin: 10px 0 13px;
}

.ccd-range-field > span {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.ccd-range-field output {
    color: var(--ccd-blue);
    font-size: 10px;
    font-weight: 700;
}

.ccd-range-field input {
    width: 100%;
    accent-color: var(--ccd-blue);
}

.ccd-property-actions {
    margin-top: 12px;
}

.ccd-property-actions .ccd-button {
    flex: 1;
}

.ccd-image-summary {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--ccd-muted);
    font-size: 11px;
}

.ccd-image-summary img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 7px;
    background: #edf1f4;
}

.ccd-addon-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ccd-addon-fields .ccd-field {
    margin: 0;
}

.ccd-check-field {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px;
    border: 1px solid #40596e;
    border-radius: 9px;
}

.ccd-check-field legend {
    padding: 0 6px;
}

.ccd-check-field label {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 6px 0;
    color: #d3dee7;
    font-size: 10px;
    line-height: 1.35;
}

.ccd-check-field input {
    margin-top: 2px;
    accent-color: var(--ccd-blue);
}

.ccd-empty {
    margin: 0;
    color: var(--ccd-muted);
    font-size: 11px;
    line-height: 1.55;
}

.ccd-saved-section {
    display: none !important;
    padding: 27px 24px 31px;
    background: #0d1a26;
    border-top: 1px solid var(--ccd-line);
}

.ccd-saved-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 17px;
}

.ccd-eyebrow {
    color: var(--ccd-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.ccd-saved-head h2 {
    margin: 4px 0 0;
    color: #fff;
    font-family: inherit;
    font-size: 25px;
}

.ccd-saved-head p {
    max-width: 580px;
    margin: 0;
    color: var(--ccd-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

.ccd-saved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 13px;
}

.ccd-saved-card {
    overflow: hidden;
    border: 1px solid #355065;
    border-radius: 12px;
    background: #172b3d;
}

.ccd-saved-preview {
    display: grid;
    aspect-ratio: 16 / 11;
    place-items: center;
    background: #eef2f5;
}

.ccd-saved-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ccd-saved-preview > .dashicons {
    width: 58px;
    height: 58px;
    color: #758796;
    font-size: 58px;
}

.ccd-saved-body {
    padding: 12px;
}

.ccd-saved-body h3 {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccd-saved-body small {
    display: block;
    margin: 4px 0 11px;
    color: var(--ccd-muted);
    font-size: 9px;
}

.ccd-saved-actions .ccd-button {
    min-height: 36px;
    flex: 1;
    padding: 7px 10px;
}

.ccd-saved-actions .ccd-icon-button {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    color: #ffabb4;
}

.ccd-saved-empty {
    grid-column: 1 / -1;
    padding: 35px 20px;
    border: 1px dashed #3b5366;
    border-radius: 12px;
    color: var(--ccd-muted);
    text-align: center;
}

.ccd-saved-empty .dashicons {
    width: 48px;
    height: 48px;
    color: var(--ccd-blue);
    font-size: 48px;
}

.ccd-saved-empty h3 {
    margin: 7px 0 4px;
    color: #fff;
}

.ccd-saved-empty p { margin: 0; font-size: 11px; }

.ccd-status {
    position: fixed;
    z-index: 999999;
    right: 24px;
    bottom: 24px;
    display: flex;
    max-width: min(470px, calc(100vw - 36px));
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 11px;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .3);
    transition: opacity .2s ease, transform .2s ease;
}

.ccd-status.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ccd-status-success { border-color: #2e9c5d; background: #123924; }
.ccd-status-error { border-color: #ca5664; background: #461c22; }
.ccd-status-busy { border-color: var(--ccd-blue); background: #14334b; }
.ccd-status-info { border-color: #71859a; background: #24384a; }

.ccd-status a {
    margin-left: auto;
    color: #fff !important;
    font-weight: 900;
    text-decoration: underline;
}

.ccd-app.is-busy::after {
    position: absolute;
    z-index: 9998;
    inset: 0;
    content: "";
    background: rgba(7, 18, 28, .22);
    cursor: wait;
}

.ccd-product-design-banner {
    border-left-color: #2364b0 !important;
}


.ccd-template-card {
    position: relative;
}

.ccd-template-badge {
    position: absolute;
    z-index: 2;
    top: 7px;
    right: 7px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #d9ad45;
    color: #101b25;
    font-size: 7px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .06em;
}

.ccd-design-rack-head {
    margin-bottom: 13px;
    padding: 14px;
    border: 1px solid #456079;
    border-radius: 13px;
    background:
        linear-gradient(135deg, rgba(69, 155, 230, .12), transparent 48%),
        #152b3d;
}

.ccd-design-rack-head h3 {
    margin: 4px 0 6px;
    color: #fff;
    font-size: 21px;
}

.ccd-design-rack-head p {
    margin: 0 0 10px;
    color: var(--ccd-muted);
    font-size: 11px;
    line-height: 1.5;
}

.ccd-design-rack-head > strong {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #233f55;
    color: #fff;
    font-size: 8px;
    letter-spacing: .08em;
}

.ccd-design-rack-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 13px;
}

.ccd-rack-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 10px;
    border: 1px solid #3d586d;
    border-radius: 13px;
    background: #172b3d;
}

.ccd-rack-coin {
    position: relative;
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    overflow: hidden;
    border: 5px double #9b7a2e;
    border-radius: 50%;
    background: radial-gradient(circle, #f9fbfc, #cbd3d9);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.7), 0 8px 18px rgba(0,0,0,.3);
}

.ccd-rack-coin img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .2s ease;
}

.ccd-rack-coin:hover img { transform: scale(1.08); }

.ccd-rack-coin > .dashicons {
    width: 48px;
    height: 48px;
    color: #6d7e8d;
    font-size: 48px;
}

.ccd-rack-coin > span:not(.dashicons) {
    position: absolute;
    right: 13px;
    bottom: 8px;
    left: 13px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(11, 23, 36, .82);
    color: #fff;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .08em;
    text-align: center;
}

.ccd-rack-card-body {
    min-width: 0;
}

.ccd-rack-card-body em {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--ccd-gold);
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .08em;
}

.ccd-rack-card-body h3 {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccd-rack-card-body small {
    display: block;
    margin: 4px 0 9px;
    color: var(--ccd-muted);
    font-size: 8px;
}

.ccd-rack-actions {
    display: flex;
    gap: 7px;
}

.ccd-rack-actions .ccd-button {
    min-height: 34px;
    flex: 1;
    padding: 6px 8px;
    font-size: 8px;
}

.ccd-rack-actions .ccd-icon-button {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    color: #ffabb4;
}

@media (max-width: 1450px) {
    .ccd-workspace {
        grid-template-columns: 80px minmax(250px, 310px) minmax(430px, 1fr) minmax(290px, 340px);
    }

    .ccd-topbar {
        grid-template-columns: 230px minmax(220px, 1fr) auto;
    }

    .ccd-top-actions .ccd-button {
        padding-inline: 11px;
        font-size: 10px;
    }

    .ccd-addon-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .ccd-topbar {
        grid-template-columns: minmax(180px, 230px) 1fr;
    }

    .ccd-top-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .ccd-workspace {
        grid-template-columns: 74px minmax(240px, 295px) minmax(430px, 1fr);
    }

    .ccd-right-panel {
        grid-column: 2 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        overflow: visible;
        border-top: 1px solid var(--ccd-line);
        border-left: 0;
    }

    .ccd-card {
        margin: 0;
    }
}

@media (max-width: 850px) {
    .ccd-studio-shell {
        width: calc(100vw - 12px);
        margin-top: 8px;
    }

    .ccd-app {
        border-radius: 12px;
    }

    .ccd-topbar {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        padding: 13px;
    }

    .ccd-brand-block {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.ccd-return-dashboard {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    flex: 0 0 auto;
    border: 1px solid rgba(217, 173, 69, .78);
    border-radius: 9px;
    background: rgba(217, 173, 69, .1);
    color: #ffe7a4 !important;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-decoration: none !important;
    white-space: nowrap;
}

.ccd-return-dashboard:hover,
.ccd-return-dashboard:focus {
    background: var(--ccd-gold);
    color: #0b1724 !important;
}

.ccd-brand {
        justify-content: center;
    }

    .ccd-top-actions {
        display: grid;
        grid-template-columns: 42px 42px repeat(3, minmax(0, 1fr));
    }

    .ccd-top-actions .ccd-button {
        min-width: 0;
        padding: 8px 6px;
        font-size: 9px;
    }

    .ccd-workspace {
        display: block;
        min-height: 0;
    }

    .ccd-toolrail {
        display: none;
    }

    .ccd-left-panel {
        position: fixed;
        z-index: 999997;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(390px, 92vw);
        transform: translateX(-105%);
        border-right: 1px solid var(--ccd-line);
        box-shadow: 15px 0 40px rgba(0, 0, 0, .42);
        transition: transform .2s ease;
    }

    .ccd-left-panel.is-mobile-open {
        transform: translateX(0);
    }

    .ccd-panel-close {
        display: block;
    }

    .ccd-stage-area {
        min-height: 590px;
        padding: 14px 8px 70px;
    }

    .ccd-canvas-wrap {
        width: min(100%, 650px);
        padding: 6px 6px 4px;
    }

    .ccd-mobile-tools {
        position: absolute;
        right: 8px;
        bottom: 10px;
        left: 8px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
        padding: 6px;
        border: 1px solid #c2ccd4;
        border-radius: 11px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 8px 23px rgba(0, 0, 0, .15);
    }

    .ccd-mobile-tools button {
        min-height: 39px;
        padding: 6px 4px;
        border-radius: 7px;
        background: #1a3144;
        color: #fff;
        font-size: 9px;
        font-weight: 800;
    }

    .ccd-right-panel {
        display: block;
        padding: 10px;
    }

    .ccd-card {
        margin-bottom: 10px;
    }

    .ccd-addon-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ccd-saved-section {
        padding: 22px 12px;
    }

    .ccd-saved-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .ccd-saved-head p {
        text-align: left;
    }

    .ccd-status {
        right: 10px;
        bottom: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 850px) {
    .ccd-fullscreen-prompt {
        top: 8px;
        width: calc(100% - 16px);
        align-items: stretch;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .ccd-fullscreen-prompt .ccd-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .ccd-brand-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .ccd-top-actions {
        grid-template-columns: 38px 38px repeat(2, minmax(0, 1fr));
    }

    .ccd-top-actions [data-ccd-new] {
        display: none;
    }

    .ccd-icon-button {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .ccd-side-switch button {
        min-width: 90px;
    }

    .ccd-stage-area {
        min-height: 475px;
    }

    .ccd-addon-fields,
    .ccd-property-grid {
        grid-template-columns: 1fr;
    }

    .ccd-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ccd-saved-grid {
        grid-template-columns: 1fr;
    }
}


@media (min-width: 851px) and (max-width: 1180px) {
    .ccd-topbar {
        grid-template-columns: minmax(235px, 275px) minmax(180px, 1fr) auto;
    }

    .ccd-top-actions {
        grid-column: auto;
        justify-content: flex-end;
    }

    .ccd-workspace {
        grid-template-columns: 68px minmax(210px, 255px) minmax(360px, 1fr) minmax(250px, 300px);
    }

    .ccd-right-panel {
        grid-column: auto;
        display: block;
        overflow: auto;
        border-top: 0;
        border-left: 1px solid var(--ccd-line);
    }

    .ccd-card { margin-bottom: 10px; }
}

@media (max-width: 850px) {
    .ccd-app {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .ccd-studio-shell {
        width: 100vw !important;
        height: 100dvh !important;
        margin: 0 !important;
    }

    .ccd-topbar {
        border-radius: 0;
    }

    .ccd-brand-block {
        align-items: stretch;
        flex-direction: column;
    }

    .ccd-return-dashboard {
        justify-content: center;
    }

    .ccd-mobile-tools {
        grid-template-columns: repeat(5, 1fr);
    }

    .ccd-canvas-wrap {
        width: min(100%, 650px);
    }
}

@media (max-width: 520px) {
    .ccd-top-actions {
        grid-template-columns: 38px 38px repeat(2, minmax(0, 1fr));
    }

    .ccd-rack-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .ccd-rack-coin {
        width: 88px;
        height: 88px;
    }

    .ccd-mobile-tools button {
        font-size: 8px;
    }
}

/* v1.2.0: edge previews, curved text, controllable rings, and request queue. */
.ccd-template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ccd-finish-shiny-gold,
.ccd-finish-matte-gold { background: linear-gradient(135deg, #8f690c, #fff2a1 36%, #c79a13 68%, #f5d865); }
.ccd-finish-shiny-silver,
.ccd-finish-imitation-rhodium { background: linear-gradient(135deg, #727d85, #fff 36%, #aab4bb 68%, #eaf0f3); }
.ccd-finish-antique-copper { background: linear-gradient(135deg, #4d281b, #cf8b65 38%, #713f2b 67%, #b96e4d); }
.ccd-finish-shiny-copper { background: linear-gradient(135deg, #7d3e25, #ffc19d 38%, #b9623f 67%, #e68e69); }

.ccd-text-preset-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ccd-text-preset-grid .ccd-button {
    min-height: 42px;
    padding: 9px 8px;
    font-size: 10px;
}

.ccd-ring-intro,
.ccd-request-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #40596e;
    border-radius: 12px;
    background: #172b3d;
}

.ccd-ring-intro .dashicons,
.ccd-request-head .dashicons {
    width: 32px;
    height: 32px;
    color: #f0bb46;
    font-size: 32px;
}

.ccd-ring-intro h3,
.ccd-request-head h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 15px;
}

.ccd-ring-intro p,
.ccd-request-head p {
    margin: 0;
    color: #b9c8d4;
    font-size: 11px;
    line-height: 1.5;
}

.ccd-ring-list,
.ccd-request-list {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.ccd-ring-row,
.ccd-request-row {
    padding: 12px;
    border: 1px solid #40596e;
    border-radius: 11px;
    background: #142738;
}

.ccd-ring-row header,
.ccd-request-row header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.ccd-ring-row header strong,
.ccd-request-row header strong {
    color: #fff;
    font-size: 12px;
}

.ccd-request-row .ccd-field:last-child {
    margin-bottom: 0;
}

.ccd-request-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.ccd-honeypot {
    position: fixed !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.ccd-check-toggle {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #40596e;
    border-radius: 8px;
    color: #d5e0e9;
    font-size: 11px;
}

.ccd-check-toggle input {
    accent-color: var(--ccd-blue);
}

.ccd-visual-field {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    padding: 9px;
    border: 1px solid #40596e;
    border-radius: 10px;
}

.ccd-visual-field legend {
    padding: 0 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.ccd-visual-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    max-height: 330px;
    overflow-y: auto;
    padding-right: 2px;
}

.ccd-visual-option {
    position: relative;
    display: grid;
    min-width: 0;
    gap: 5px;
    padding: 6px;
    border: 1px solid #466078;
    border-radius: 9px;
    background: #102334;
    color: #dce7ef;
    text-align: center;
}

.ccd-visual-option:hover,
.ccd-visual-option.is-selected {
    border-color: #65b6fa;
    box-shadow: 0 0 0 2px rgba(69, 155, 230, .16);
}

.ccd-visual-option img,
.ccd-option-placeholder {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    place-items: center;
    object-fit: cover;
    border-radius: 50%;
    background: #e9eef2;
}

.ccd-option-placeholder {
    color: #566674;
    font-size: 30px;
}

.ccd-visual-option span:last-of-type {
    overflow: hidden;
    font-size: 9px;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.ccd-visual-option em {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 4px;
    border-radius: 4px;
    background: #2364b0;
    color: #fff;
    font-size: 7px;
    font-style: normal;
    font-weight: 800;
}

.ccd-property-grid > .ccd-range-field {
    margin: 0;
}

@media (max-width: 1180px) {
    .ccd-visual-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ccd-request-actions,
    .ccd-text-preset-grid {
        grid-template-columns: 1fr;
    }
}


/* v1.2.2 focused metal and edge selectors */
.ccd-focused-visual {
    display: grid;
    gap: 10px;
}

.ccd-selected-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ccd-selected-option-head small {
    display: block;
    margin-bottom: 3px;
    color: #83a2b9;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
}

.ccd-selected-option-head strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.ccd-selected-source {
    padding: 4px 7px;
    border-radius: 999px;
    background: #2364b0;
    color: #fff;
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
}

.ccd-focused-preview {
    position: relative;
    display: block;
    width: 100%;
    height: 154px;
    overflow: hidden;
    padding: 0;
    border: 1px solid #5c7a92;
    border-radius: 12px;
    background: #edf2f5;
    cursor: zoom-in;
}

.ccd-focused-preview:hover {
    border-color: #7cc5ff;
    box-shadow: 0 0 0 3px rgba(69,155,230,.18);
}

.ccd-focused-image {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.ccd-focused-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.ccd-focused-preview.is-edge .ccd-focused-image img {
    width: 122%;
    height: 122%;
    object-position: center top;
    transform: translateY(-3%);
}

.ccd-focused-preview.is-finish .ccd-focused-image img {
    width: 118%;
    height: 118%;
    object-position: center 12%;
    transform: translateY(-2%);
}

.ccd-preview-zoom {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    background: rgba(6,18,28,.82);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-align: center;
}

.ccd-focused-preview.is-placeholder {
    display: grid;
    place-items: center;
    cursor: default;
}

.ccd-focused-preview.is-placeholder .ccd-option-placeholder {
    width: 82px;
    height: 82px;
}

.ccd-change-option {
    margin: 0;
}

.ccd-focused-help {
    margin: 0;
    color: #9fb0bd;
    font-size: 9px;
    line-height: 1.45;
}

.ccd-example-modal[hidden] {
    display: none !important;
}

.ccd-example-modal {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.ccd-example-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 8, 14, .88);
    cursor: zoom-out;
}

.ccd-example-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(760px, 94vw);
    max-height: 92vh;
    gap: 9px;
    overflow: auto;
    padding: 22px;
    border: 1px solid #55738a;
    border-radius: 18px;
    background: #102130;
    box-shadow: 0 28px 90px rgba(0,0,0,.7);
}

.ccd-example-dialog small {
    color: #72b9ef;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}

.ccd-example-dialog h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 3vw, 34px);
}

.ccd-example-dialog p {
    margin: 0;
    color: #aebdca;
    font-size: 11px;
}

.ccd-example-close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #70899d;
    border-radius: 50%;
    background: #07141e;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.ccd-example-image {
    display: grid;
    min-height: 300px;
    max-height: 70vh;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.ccd-example-image img {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

body.ccd-example-open {
    overflow: hidden !important;
}

@media (max-width: 720px) {
    .ccd-focused-preview { height: 132px; }
    .ccd-example-modal { padding: 10px; }
    .ccd-example-dialog { padding: 16px; }
    .ccd-example-image { min-height: 220px; }
}
