


.neon-scope, .neon-scope *{
    box-sizing: border-box;
}
.neon-scope .neon-right{
    background:#fff !important;
    color:#111 !important;
}

.neon-scope .neon-app-shell{
    display:grid;
    grid-template-columns: 1fr 420px;
    min-height: calc(100vh - 120px);
    background:#0b0b12;
}

.neon-scope .neon-left{ position:relative; }
.neon-scope .neon-preview{ position:relative; height: calc(100vh - 120px); overflow:hidden; }
.neon-scope #neonCanvas{ width:100%; height:100%; display:block; }

.neon-scope .neon-pricebox{
    position:absolute; top:16px; right:16px;
    text-align:right; color:#fff;
}
.neon-scope .neon-pricebox .tag{
    display:inline-block; padding:6px 10px; border-radius:999px;
    background:linear-gradient(90deg,#2563eb,#7c3aed);
    font-weight:800; font-size:12px;
}
.neon-scope .neon-pricebox .price{ font-size:30px; font-weight:900; color:#ff3b30; }
.neon-scope .neon-pricebox .strike{ opacity:.7; text-decoration:line-through; margin-left:8px; font-size:16px; }
.neon-scope .neon-pricebox .dims{ margin-top:6px; font-size:12px; opacity:.85; }

.neon-scope .neon-thumbs{
    position:absolute; left:50%; transform:translateX(-50%);
    bottom:14px; display:flex; gap:10px;
    padding:5px 5px;
    border-radius:16px;
    background:rgba(17,24,39,.55);
    backdrop-filter: blur(10px);
}
.neon-scope .neon-thumbs .thumb{
    width:44px; height:32px; border-radius:10px;
    border:2px solid rgba(255,255,255,.18);
    background:rgba(255,255,255,.08);
    color:#fff; font-weight:800;
}
.neon-scope .neon-thumbs .thumb.active{ border-color:#22d3ee; }

.neon-scope .neon-right{
    background:#fff; color:#111;
    border-left:1px solid #e5e7eb;
    position:sticky; top:0;
    height:100vh; overflow:auto;
    padding:14px 14px 120px;
    box-sizing: border-box;
}

.neon-scope .neon-bottom-bar{
    position:fixed; right:0; bottom:0;
    width:420px; padding:10px 14px;
    background:linear-gradient(180deg,#3b0764,#2e1065);
    z-index: 9999;
}
.neon-scope .btn-summary{
    width:100%; height:40px; border-radius:12px;
    border:1px solid rgba(255,255,255,.16);
    background:rgba(255,255,255,.08);
    color:#fff; font-weight:900;
}
.neon-scope .btn-add{
    width:100%; height:46px; margin-top:10px;
    border-radius:12px; border:0;
    background:#06b6d4; font-weight:1000;
}

.neon-scope .drawer{
    position:fixed; right:0; bottom:0; width:420px;
    max-height:70vh;
    transform:translateY(110%);
    transition:transform .22s ease;
    background:#0b1020; color:#fff;
    border-top-left-radius:18px;
    border:1px solid rgba(255,255,255,.12);
    overflow:hidden;
    z-index: 9998;
}
.neon-scope .drawer.open{ transform:translateY(0); }

@media (max-width:1100px){
    .neon-scope .neon-app-shell{ grid-template-columns: 1fr; }
    .neon-scope .neon-preview{ height: 52vh; }
    .neon-scope .neon-right{ position:relative; height:auto; }
    .neon-scope .neon-bottom-bar{ width:100%; left:0; right:0; }
    .neon-scope .drawer{ width:100%; left:0; right:0; }
}

/* ====== Steps.tpl (mock) styles ====== */
.neon-scope .neon-right .right{
    background: transparent !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
.neon-scope .neon-right .right-inner{
    padding: 0 !important;
}

/* 上传条 */
.neon-scope .neon-right .uploadbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:10px 12px;
    border-radius:12px;
    background:#f3f4f6;
    margin-bottom: 12px;
}
.neon-scope .neon-right .uploadbar .btn{
    height:34px;
    padding:0 14px;
    border-radius:999px;
    border:0;
    background:#6366f1;
    color:#fff;
    font-weight:900;
    cursor:pointer;
}

/* Step 区块 */
.neon-scope .neon-right .step{
    border-top:1px solid #e5e7eb;
    padding:14px 0;
}
.neon-scope .neon-right .step:first-child{
    border-top:0;
    padding-top:0;
}

.neon-scope .neon-right .stephead{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:900;
    font-size:16px;
    margin-bottom:10px;
}
.neon-scope .neon-right .stepbadge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:20px;
    padding:0 10px;
    border-radius:999px;
    background:#111827;
    color:#fff;
    font-size:12px;
    font-weight:900;
}

/* 标签、提示 */
.neon-scope .neon-right .fieldlabel{
    font-size:13px;
    font-weight:400;
    margin:4px 0 8px;
    text-align: center;
}
.neon-scope .neon-right .fontstyle{
    font-size:13px;
    font-weight:400;
    margin:10px 0 6px;
    text-align:center;
}
.neon-scope .neon-right .hint{
    font-size:12px;
    color:#6b7280;
    margin:8px 0 10px;
    line-height:1.35;
}
.neon-scope .neon-right .hint a{ color:#4f46e5; font-weight:900; text-decoration:none; }

/* 输入控件 */
.neon-scope .neon-right .textbox,
.neon-scope .neon-right .select,
.neon-scope .neon-right textarea{
    width:100%;
    box-sizing:border-box;
    height:38px;
    border-radius:10px;
    border:1px solid #e5e7eb;
    padding:0 10px;
    background:#fff;
    font-weight:700;
}
.neon-scope .neon-right textarea{ height:auto; }

/* Row */
.neon-scope .neon-right .row{
    display:flex;
    align-items:center;
    gap:10px;
}

/* color chip */
.neon-scope .neon-right .colorchip{
    width:28px; height:28px;
    border-radius:999px;
    border:2px solid rgba(0,0,0,.08);
    cursor:pointer;
    background:#ffd500;
}

/* align buttons */
.neon-scope .neon-right .alignbtns{
    display:flex;
    border:1px solid #e5e7eb;
    border-radius:12px;
    justify-content: center;   /* ⬅️ 水平居中 */
    align-items: center;
    overflow:hidden;
}
.neon-scope .neon-right .alignbtn{
    width:36px; height:28px;
    border:0;
    background:#fff;
    font-weight:900;
    cursor:pointer;
}
.neon-scope .neon-right .alignbtn.active{
    background:#eef2ff;
}

/* grid cards */
.neon-scope .neon-right .grid2{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}
.neon-scope .neon-right .card{
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:10px;
    background:#fff;
    cursor:pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.neon-scope .neon-right .card:hover{
    border-color: rgba(124,58,237,.45);
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    transform: translateY(-1px);
}
.neon-scope .neon-right .card.active{
    border-color:#7c3aed;
    box-shadow:0 0 0 2px rgba(124,58,237,.16);
}
.neon-scope .neon-right .card .name{ font-weight:900; margin-top:6px; }
.neon-scope .neon-right .card .sub{ color:#6b7280; font-size:12px; margin-top:4px; }
.neon-scope .neon-right .card .price{ margin-top:8px; font-weight:900; color:#ef4444; }
.neon-scope .neon-right .free{ color:#16a34a; }

/* 手机端 */
@media (max-width:1100px){
    .neon-scope .neon-right .row{ flex-wrap:wrap; }
    .neon-scope .neon-right .row.fontrow{ flex-wrap:nowrap; }
}

/* =========================================================
   ✅ 选中/聚焦样式（按你原来好看的风格：左侧细条 + 轻边框）
   ========================================================= */
.neon-scope .neon-right .field{
    position:relative;
    border:1px solid transparent;
    border-radius:12px;
    padding:6px;
    background:transparent;
    transition: border-color .15s ease, box-shadow .15s ease;
}

/* 左侧细条（默认透明） */
.neon-scope .neon-right .field::before{
    content:"";
    position:absolute;
    left:0;
    top:10px;
    bottom:10px;
    width:3px;
    border-radius:3px;
    background:transparent;
    transition: background .15s ease;
}

/* focus 高亮：不铺底色，不大光圈 */
.neon-scope .neon-right .field.is-focus{
    border-color: rgba(99,102,241,.55);
    box-shadow: 0 6px 18px rgba(17,24,39,.08);
}
.neon-scope .neon-right .field.is-focus::before{
    background:#6366f1;
}

/* input 边框轻微强调即可 */
.neon-scope .neon-right .field.is-focus .textbox,
.neon-scope .neon-right .field.is-focus .select{
    border-color: rgba(99,102,241,.55);
}

/* =========================================================
   ✅ Font Panel / Color Panel / Backboard / Summary ...（保留你的原版）
   ========================================================= */

/* Font button */
.neon-scope .fontbtn{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

/* modal overlay */
.neon-scope .font-panel{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:none;
    z-index:10050;
    align-items:center;
    justify-content:center;
    padding:14px;
}
.neon-scope .font-panel.open{ display:flex; }

/* card */
.neon-scope .font-panel-card{
    width:min(760px, calc(100vw - 24px));
    max-height:min(560px, calc(100vh - 24px));
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    display:flex;
    flex-direction:column;
}

/* header */
.neon-scope .font-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 14px;
    border-bottom:1px solid #e5e7eb;
}
.neon-scope .font-panel-x{
    width:34px;
    height:34px;
    border-radius:10px;
    border:1px solid #e5e7eb;
    background:#fff;
    cursor:pointer;
    font-weight:900;
}

/* grid */
.neon-scope .font-grid{
    padding:12px 14px;
    overflow:auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}
@media (max-width:560px){
    .neon-scope .font-grid{ grid-template-columns:1fr; }
}

/* chip */
.neon-scope .font-chip{
    border:1px solid #e5e7eb;
    border-radius:14px;
    background:#fff;
    padding:10px 12px;
    text-align:left;
    cursor:pointer;
}
.neon-scope .font-chip.active{
    border-color:#6366f1;
    box-shadow:0 0 0 3px rgba(99,102,241,.18);
}
.neon-scope .font-chip .preview{
    font-size:26px;
    line-height:1.1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.neon-scope .font-chip .label{
    margin-top:6px;
    font-size:12px;
    opacity:.65;
    font-weight:800;
}

/* Color Panel */
.neon-scope .color-panel{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:none;
    z-index:10060;
    align-items:center;
    justify-content:center;
    padding:14px;
}
.neon-scope .color-panel.open{ display:flex; }

.neon-scope .color-panel-card{
    width:min(560px, calc(100vw - 24px));
    max-height:min(520px, calc(100vh - 24px));
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    display:flex;
    flex-direction:column;
}
.neon-scope .color-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 14px;
    border-bottom:1px solid #e5e7eb;
}
.neon-scope .color-panel-x{
    width:34px;
    height:34px;
    border-radius:10px;
    border:1px solid #e5e7eb;
    background:#fff;
    cursor:pointer;
    font-weight:900;
}
.neon-scope .color-grid{
    padding:14px;
    overflow:auto;
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:12px;
}
@media (max-width:560px){
    .neon-scope .color-grid{ grid-template-columns:repeat(5, 1fr); }
}
@media (max-width:420px){
    .neon-scope .color-grid{ grid-template-columns:repeat(4, 1fr); }
}
.neon-scope .color-chip{
    width:52px;
    height:52px;
    border-radius:999px;
    border:1px solid rgba(0,0,0,.12);
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    position:relative;
}
.neon-scope .color-chip .dot{
    width:26px;
    height:26px;
    border-radius:999px;
    background:var(--c);
    box-shadow:
            0 0 6px var(--c),
            0 0 14px var(--c),
            0 0 28px color-mix(in srgb, var(--c) 70%, transparent);
}
.neon-scope .color-chip.active{
    border-color:#6366f1;
    box-shadow:0 0 0 3px rgba(99,102,241,.18);
}
.neon-scope .color-chip.active .dot{
    outline:2px solid rgba(255,255,255,.85);
    outline-offset:2px;
}

/* Backboard Step */
.neon-scope .bb-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:14px;
}
.neon-scope .bb-card{
    background:#fff;
    border:1px solid rgba(0,0,0,.12);
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    transition:.15s;
    position:relative;
}
.neon-scope .bb-card:hover{
    transform: translateY(-1px);
    box-shadow:0 10px 24px rgba(0,0,0,.10);
}
.neon-scope .bb-card.active{
    outline:2px solid #7c3aed;
    border-color: transparent;
}
.neon-scope .bb-thumb{
    position:relative;
    width:100%;
    aspect-ratio: 4/3;
    background:#f3f4f6;
    overflow:hidden;
}
.neon-scope .bb-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.neon-scope .bb-badge{
    position:absolute;
    top:8px; left:8px;
    padding:3px 8px;
    font-size:11px;
    font-weight:900;
    border-radius:3px;
    background:#ffb703;
    color:#111;
    line-height:1;
}
.neon-scope .bb-badge.new{ background:#ff3b30; color:#fff; }
.neon-scope .bb-badge.hot{ background:#ffb703; color:#111; }
.neon-scope .bb-zoom{
    position:absolute;
    top:8px; right:8px;
    width:22px; height:22px;
    border-radius:999px;
    background:#7c3aed;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:13px;
    box-shadow:0 6px 14px rgba(0,0,0,.25);
}
.neon-scope .bb-body{
    padding:10px 10px 0px;
    text-align:center;
}
.neon-scope .bb-title{
    font-weight:800;
    font-size:13px;
    margin:2px 0 6px;
}
.neon-scope .bb-price{
    font-weight:900;
    font-size:12px;
    color:#ef4444;
    margin-bottom:6px;
}
.neon-scope .bb-desc{
    font-size:11px;
    color:#6b7280;
    line-height:1.25;
}

/* Modal */
.neon-scope .bb-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
    padding:20px;
}
.neon-scope .bb-modal.open{ display:flex; }
.neon-scope .bb-modal-card{
    width:min(860px, 96vw);
    background:#111;
    border-radius:14px;
    overflow:hidden;
    position:relative;
    box-shadow:0 18px 60px rgba(0,0,0,.5);
}
.neon-scope .bb-modal-close{
    position:absolute;
    top:10px; right:10px;
    width:34px; height:34px;
    border-radius:999px;
    border:0;
    cursor:pointer;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-weight:900;
}
.neon-scope .bb-modal-img{
    width:100%;
    height:auto;
    display:block;
    background:#000;
}
.neon-scope .bb-modal-cap{
    padding:10px 12px;
    color:#e5e7eb;
    font-size:13px;
    background:#0b0b12;
}

/* Summary Drawer */

.sum-fab{
    position: static;      /* 或 relative */
    width: 100%;
    margin-top: 12px;

    height: 44px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(90deg,#0ea5e9,#a855f7);
    cursor: pointer;
}


/* overlay */
.sum-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    z-index: 9998;
}

.sum-drawer{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(420px, 92vw);
    background: #fff;
    transform: translateX(110%);
    transition: transform .24s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -16px 0 40px rgba(0,0,0,.22);
}

.sum-drawer.open{ transform: translateX(0); }
.sum-overlay.open{ opacity: 1; pointer-events: auto; }

.sum-head{
    padding: 18px 18px 10px;
    display:flex;
    align-items:center;
    justify-content: space-between;
}
.sum-title{
    font-size: 20px;
    font-weight: 900;
}
.sum-x{
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.sum-body{
    padding: 8px 18px 16px;
    overflow: auto;
    flex: 1;
}

/* ✅ 你要求：不要 edit 列（两列） */
#sumGrid{
    display:grid !important;
    grid-template-columns: 160px 1fr !important;
    gap: 10px 16px !important;
    align-items:center !important;
}
#sumGrid .sum-k{
    font-size:13px;
    color:#6b7280;
    line-height:1.2;
}
#sumGrid .sum-v{
    font-size:13px;
    color:#111;
    line-height:1.2;
    text-align:right;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
#sumGrid.more-open .sum-v{ white-space:normal; }

/* Totals */
#sumTotals{
    display:grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 10px 16px !important;
    align-items:center !important;
}
#sumTotals .t-k{ color:#6b7280; font-size:13px; }
#sumTotals .t-v{ color:#111; font-size:13px; text-align:right; }
#sumTotals .sum-was{
    margin-left:8px;
    color:#9ca3af;
    text-decoration:line-through;
    font-size:12px;
}

.sum-more{
    margin: 12px auto 8px;
    display:flex;
    gap: 6px;
    align-items:center;
    justify-content:center;
    width: 100%;
    border: 0;
    background: transparent;
    color:#2563eb;
    cursor: pointer;
    font-weight: 800;
}
.sum-more .chev{ transition: transform .18s ease; }
.sum-more.open .chev{ transform: rotate(180deg); }

.sum-divider{
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
}

.sum-currency{
    margin-top: 12px;
    display:flex;
    align-items:center;
    gap: 10px;
    justify-content:center;
    font-size: 13px;
    color:#111;
}
.sum-currency select{
    height: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 8px;
}

.sum-grand{
    margin-top: 10px;
    display:flex;
    align-items: baseline;
    justify-content:center;
    gap: 10px;
}
.sum-grand-price{
    color:#dc2626;
    font-weight: 900;
    font-size: 18px;
}
.sum-grand-note{
    margin-left: 6px;
    font-size: 12px;
    color:#111;
}

.sum-footer{
    padding: 12px 18px 16px;
    border-top: 1px solid #e5e7eb;
}
.sum-addcart{
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color:#fff;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(90deg,#0ea5e9,#a855f7);
}

/* ===== Neon Customizer: force full width on module page only ===== */
body#module-neoncustomizer-customize #wrapper .container,
body#module-neoncustomizer-customize #wrapper .container-fluid{
    max-width: 100% !important;
    width: 100% !important;
}
body#module-neoncustomizer-customize #content-wrapper{
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
}
body#module-neoncustomizer-customize #left-column,
body#module-neoncustomizer-customize #right-column{
    display: none !important;
}
body#module-neoncustomizer-customize #wrapper .row{
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ===== Hide scrollbar but keep scrolling ===== */
.neon-scope .neon-right .right-inner {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.neon-scope .neon-right .right-inner::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* ===== Neon Preview Header (WHITE BACKGROUND) ===== */
.neon-scope .neon-preview-header{
    position: relative;
    padding: 26px 20px 14px;
    text-align: center;
    background: #ffffff;
    color: #111;
    border-bottom: 1px solid #eee;
}
.neon-scope .neon-preview-header .neon-title{
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin: 0 0 10px;
    color: #111;
}
.neon-scope .neon-preview-header .neon-sub{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}
.neon-scope .neon-preview-header .neon-links{
    font-size: 13px;
    color: #666;
}
.neon-scope .neon-preview-header .neon-links a{
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s ease;
}
.neon-scope .neon-preview-header .neon-links a:hover{
    color: #111;
    text-decoration: underline;
}
.neon-scope .neon-preview-header .neon-links span{
    margin: 0 6px;
    color: #bbb;
}

/* ===== Font Style 行优化（你原来的那段） ===== */
.neon-scope .field .row{
    display: flex;
    align-items: center;
    gap: 8px;
}
.neon-scope .field .row .fieldlabel,
.neon-scope .field .row label,
.neon-scope .field .row .minilabel{
    white-space: nowrap;
    flex: 0 0 auto;
}
.neon-scope .field .row .fontbtn{
    flex: 0 0 160px;
    min-width: 160px;
}
.neon-scope .field .row .colorchip{
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
}
/* ===== FORCE focus highlight (put at END of neon.css) ===== */

/* ===== field-group focus highlight (label+field together) ===== */
.neon-scope .neon-right .field-group{
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 10px 10px 6px;
    margin: 10px 0;
    transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.neon-scope .neon-right .field-group.is-focus{
    border-color:#6366f1;
    background: rgba(99,102,241,.06);
    box-shadow:0 0 0 3px rgba(99,102,241,.20);
}

/* label 也变明显一点 */
.neon-scope .neon-right .field-group.is-focus .fieldlabel{
    font-weight:700;
    color:#111;
}

/* 原来的 .field 里面的 padding/边框可以变简单一点（避免双重边框） */
.neon-scope .neon-right .field{
    border:0;
    padding:0;
    background:transparent;
}
/* ✅ Mobile drag: prevent page scroll while dragging on canvas */
.neon-scope #neonCanvas{
    touch-action: none;
    -ms-touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* 可选：让整个左侧预览区也不触发浏览器默认手势（更稳） */
.neon-scope .neon-left,
.neon-scope .neon-preview{
    overscroll-behavior: contain;
}
/* ===== Line blocks: default purple box + focus dims others ===== */

/* 1) 每个输入组默认就有“紫色框” */
.neon-scope .neon-right .field-group{
    border: 2px solid rgba(99,102,241,.65);   /* 紫色边框（默认显示） */
    border-radius: 14px;
    padding: 10px 10px 8px;
    margin: 12px 0;
    background: #fff;
    transition: opacity .15s ease, filter .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* 让内部 .field 不要再画第二层框（避免双框） */
.neon-scope .neon-right .field-group .field{
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* 2) 当前获得焦点的那组：更亮、更突出 */
.neon-scope .neon-right .field-group.is-focus{
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99,102,241,.18);
}

/* 3) 当右侧容器处于“有焦点组”的状态时：其它组变灰/变淡 */
.neon-scope .neon-right.has-focus .field-group{
    opacity: .45;
    filter: grayscale(1);
}

/* 4) 但当前焦点组不变灰 */
.neon-scope .neon-right.has-focus .field-group.is-focus{
    opacity: 1;
    filter: none;
}

/* 可选：label 也更醒目一点 */
.neon-scope .neon-right .field-group .fieldlabel{
    margin: 0 0 8px;
}
.neon-scope .neon-right .field-group.is-focus .fieldlabel{
    font-weight: 800;
}
/* 尺寸文字：半透明圆角框胶囊 */
.neon-scope #dimsTxt{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 12px;

    background: rgba(255,255,255,0.25);     /* 半透明底 */
    border: 1px solid rgba(255,255,255,0.35);

    color: rgba(255,255,255,0.95);
    font-weight: 800;
    font-size: 13px;
    line-height: 1;

    /* 让它更“浮”一点 */
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    /* 防止换行 */
    white-space: nowrap;
}
/* 字体卡片需要相对定位，badge 才能绝对定位 */
.neon-scope .font-chip{
    position: relative;
    overflow: hidden;
}

/* 右上角加价角标 */
.neon-scope .font-chip .font-badge{
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;

    color: rgba(255,255,255,0.95);
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
/* Font panel: allow scrolling */

/* ===== Color chips show name under dot ===== */
.neon-scope #colorGrid .color-chip{
    width: 78px;          /* 给文字留空间 */
    height: auto;         /* 不要固定 52px */
    padding: 10px 8px 8px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.neon-scope #colorGrid .color-chip .dot{
    width: 26px;
    height: 26px;
}

.neon-scope #colorGrid .color-chip .cname{
    font-size: 12px;
    font-weight: 800;
    color: #6b7280;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

/* active 状态文字更明显 */
.neon-scope #colorGrid .color-chip.active .cname{
    color:#111;
}
/* ============================
   ✅ Font Panel 修复：不挤、可滚动
   （按你当前真实 class：font-panel / font-panel-card / font-panel-head / font-grid）
   ============================ */

/* 遮罩层：确保居中并允许内部滚动 */
.neon-scope .font-panel{
    align-items: center;
    justify-content: center;
}

/* 卡片：用 flex-column，把头部固定，列表区滚动 */
.neon-scope .font-panel-card{
    display: flex !important;
    flex-direction: column !important;
    max-height: min(88vh, 760px) !important;  /* 比你原来 560px 更合理 */
    overflow: hidden !important;              /* 保持圆角 */
}

/* 头部固定不滚动 */
.neon-scope .font-panel-head{
    flex: 0 0 auto !important;
}

/* ✅ 关键：列表区成为滚动容器 */
.neon-scope .font-grid{
    flex: 1 1 auto !important;
    min-height: 0 !important;                 /* ✅ 这个必须有，否则会被挤压不滚 */
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* 手机端单列也照样滚动 */
@media (max-width:560px){
    .neon-scope .font-panel-card{
        max-height: 90vh !important;
    }
    .neon-scope .font-grid{
        grid-template-columns: 1fr !important;
    }
}
/* =========================
   ✅ FIX: Font panel 不挤 + 可滚动
   覆盖 neon.js 注入的 #fontPanel/#fontGrid 规则
   ========================= */

/* 让 panel-card 变成 flex 容器：头部固定，内容区滚动 */
#fontPanel .panel-card,
#colorPanel .panel-card{
    display: flex !important;
    flex-direction: column !important;
    height: calc(100vh - 40px) !important;     /* 用 height 而不是 max-height */
    max-height: calc(100vh - 40px) !important;
    overflow: hidden !important;
}

/* ✅ 关键：grid 占满剩余高度并滚动 */
#fontGrid,
#colorGrid{
    flex: 1 1 auto !important;
    min-height: 0 !important;                 /* ✅ 必须有，否则会被挤扁不滚 */
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;

    /* 给内容一点内边距，避免贴边 */
    padding: 12px 14px !important;
}

/* 防止每个 font-chip 被“压扁成一条线” */
#fontGrid .font-chip{
    padding: 10px 12px !important;
    min-height: 62px !important;
}

/* 让预览字不会被行高压扁 */
#fontGrid .font-chip .preview{
    font-size: 26px !important;
    line-height: 1.1 !important;
}
/* ===================================================
   ✅ FIX: 实际字体列表容器是 #fontGrid（不是 .font-grid）
   让它变成两列网格 + 可滚动
   =================================================== */

/* 遮罩层居中（如果你 #fontPanel 是 overlay） */
#fontPanel.open{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:14px !important;
}

/* 卡片：flex 列布局，头部固定，列表滚动 */
#fontPanel .panel-card,
.neon-scope .font-panel-card{
    display:flex !important;
    flex-direction:column !important;
    width:min(760px, calc(100vw - 24px)) !important;
    height:min(88vh, 760px) !important;
    max-height:min(88vh, 760px) !important;
    overflow:hidden !important;
}

/* ✅ 关键：#fontGrid 才是字体列表容器 */
#fontGrid{
    flex:1 1 auto !important;
    min-height:0 !important;                 /* ✅ 必须有，不然会挤不出滚动 */
    overflow:auto !important;
    -webkit-overflow-scrolling:touch;

    display:grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap:10px !important;

    padding:12px 14px !important;
}

/* 让每个按钮不要被默认样式影响 */
#fontGrid .font-chip{
    width:100% !important;
    display:block !important;
}

/* 手机端：一列 */
@media (max-width:560px){
    #fontGrid{ grid-template-columns:1fr !important; }
}
/* ✅ dimsTxt: always top-center inside the editor preview */
.neon-scope .neon-preview{ position: relative; } /* 你已有，留着也行 */

.neon-scope #dimsTxt{
    position: absolute !important;
    top: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    z-index: 50 !important;         /* 高于 canvas */
    pointer-events: none !important;/* 不挡拖动 */
}
/* ✅ font add-on badge on font list */
#fontGrid .font-chip,
.neon-scope .font-grid .font-chip{
    position: relative;
    overflow: hidden;
}

#fontGrid .font-chip .font-badge,
.neon-scope .font-grid .font-chip .font-badge{
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;

    color: rgba(255,255,255,0.95);
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.grid2 .optcard { position: relative; }
.grid2 .zoombtn{
    position:absolute; right:10px; top:10px;
    width:34px; height:34px; border-radius:999px;
    border:1px solid rgba(0,0,0,.12);
    background:#fff;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
}
.grid2 .zoombtn:hover{ transform: translateY(-1px); }

.neon-scope .neon-thumbs .thumb{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.neon-scope .neon-right .grid2 > .card{
    margin-bottom: 0 !important;
}


.shape-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.shape-card{border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:#fff;cursor:pointer}
.shape-card.active{outline:2px solid #2563eb}
.shape-card img{width:100%;height:90px;object-fit:cover;display:block}
.shape-meta{padding:8px 10px;font-size:12px}
.shape-price{font-weight:800}
#neonCanvas { touch-action: none; }
.neon-preview{ position:relative; }
#neonCanvas{ display:block; }



#warnBanner.warn-banner{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    bottom: calc(var(--bgthumbs-h, 64px) + 10px);

    max-width: min(760px, calc(100% - 24px));
    padding: 10px 14px;
    border-radius: 999px;

    background: rgba(220,38,38,0.92);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    text-align:center;

    z-index: 999;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

@media (max-width: 640px) {
    #warnBanner.warn-banner{
        left: 8px;
        right: 8px;
        transform: none;

        max-width: none;          /* ✅ 不再限制宽度 */
        width: auto;

        border-radius: 12px;      /* ✅ 不用超大圆角 */
        padding: 8px 10px;

        font-size: 12px;
        line-height: 1.25;

        text-align: center;
    }
}
.neon-scope #line2PriceNote,
.neon-scope #line3PriceNote{
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;           /* 红色（Tailwind red-600） */
}
/* ===== Summary overlay/drawer must be above theme header ===== */
#sumOverlay{
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147482000 !important;
    background: rgba(0,0,0,.55);
    opacity: 0;
    pointer-events: none;
}
#sumOverlay.open{
    opacity: 1;
    pointer-events: auto; /* ✅ 允许点击遮罩关闭 */
}

#sumDrawer{
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    height: 100vh !important;
    width: min(520px, 94vw) !important;
    z-index: 2147482001 !important; /* ✅ 比 overlay 高 */
    pointer-events: auto !important; /* ✅ drawer 内可点击 */
}
#sumDrawer.open{ transform: translateX(0) !important; }

/* ✅ 如果主题 header 仍然盖住：打开 summary 时禁用 header 的点击并降低层级 */
html.sum-open header,
html.sum-open .header,
html.sum-open #header,
html.sum-open .sticky,
html.sum-open .nav,
html.sum-open .topbar{
    z-index: 0 !important;
    pointer-events: none !important;
}
@media (max-width: 768px){
    .neon-scope input,
    .neon-scope textarea,
    .neon-scope select{
        font-size:16px !important;
    }
    .neon-scope{
        -webkit-text-size-adjust: 100%;
    }
}
.neon-preview{ position: relative; }

.neon-loading{
    position:absolute; inset:0;
    display:none;
    align-items:center; justify-content:center;
    z-index:9999;
    background: rgba(0,0,0,.25);
    backdrop-filter: blur(2px);
}

.neon-loading.show{ display:flex; }

.neon-loading-inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    padding:14px 16px;
    border-radius:14px;
    background: rgba(10,10,18,.75);
    border: 1px solid rgba(255,255,255,.12);
    color:#fff;
    font-size:14px;
}

.neon-spinner{
    width:42px; height:42px;
    border-radius:50%;
    border: 4px solid rgba(255,255,255,.25);
    border-top-color: rgba(255,255,255,.95);
    animation: neonSpin 0.9s linear infinite;
}

@keyframes neonSpin{ to { transform: rotate(360deg); } }

/* === 1:1 Upload Tip Bar === */
.upload-tipbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;

    padding:10px 12px;
    border-radius:14px;

    background:#eef1f4;                 /* 灰色底 */
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);

    /* 让按钮始终在右侧，不会被挤掉 */
    width:100%;
}

.upload-tipbar-text{
    flex:1;
    font-size:12.5px;
    line-height:1.25;
    color:#3b4351;
}

.upload-tipbar-text b{
    font-weight:800;
}

.upload-tipbar-btn{
    flex:0 0 auto;
    height:32px;
    padding:0 16px;

    border:0;
    border-radius:999px;

    font-size:12.5px;
    font-weight:800;
    color:#fff;
    cursor:pointer;

    background: linear-gradient(90deg,#6b7cff,#6c5ce7);  /* 紫蓝渐变 */
    box-shadow: 0 6px 14px rgba(108,92,231,.28);

    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.upload-tipbar-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(108,92,231,.34);
}

.upload-tipbar-btn:active{
    transform: translateY(0);
    box-shadow: 0 5px 12px rgba(108,92,231,.28);
}

.upload-tipbar-divider{
    margin:8px 0 10px;
    border-bottom:1px dashed rgba(0,0,0,.22);  /* 底部虚线分割线 */
}



/* ===== Quote Modal Overlay ===== */
.quote-modal{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.65);
    z-index: 2147483646;
}

.quote-modal.open{
    display: flex;
}

/* ===== Modal Card ===== */
.quote-card{
    position: relative;
    z-index: 1;

    background: #ffffff;
    border-radius: 14px;

    width: min(960px, 94vw);
    max-height: 90vh;

    display: flex;
    flex-direction: column;

    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

/* Header */
.quote-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 800;
}

/* Body */
.quote-body{
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 12px;
    padding: 12px;
    overflow: hidden;
}

/* Left / Right panes */
.quote-left,
.quote-right{
    background: #f9fafb;
    border-radius: 10px;
    padding: 10px;
}

/* Close button */
.quote-x{
    border: 0;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

