.certLayoutStage{position:relative;width:100%;max-width:980px;aspect-ratio:2000/1414;border:1px solid rgba(13,91,86,.14);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(17,24,39,.08)}
    .certLayoutStage.certGridOn{background-image:linear-gradient(rgba(13,91,86,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(13,91,86,.06) 1px,transparent 1px);background-size:20px 20px}
    .certLayoutBg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;user-select:none;pointer-events:none}
    .certLayoutItem{position:absolute;box-sizing:border-box;cursor:move;user-select:none}
    .certLayoutItem.is-selected{outline:2px solid rgba(13,91,86,.92);outline-offset:1px;background:rgba(13,91,86,.045)}
    .certLayoutItem:hover{outline:1px dashed rgba(13,91,86,.48)}
    .certLayoutItem[data-type="text"]{display:flex;overflow:hidden;padding:0 2px;white-space:pre-wrap;word-break:break-word}
    .certLayoutItem[data-type="image"]{display:flex;align-items:center;justify-content:center;background:rgba(13,91,86,.05)}
    .certLayoutItem[data-type="image"] img{width:100%;height:100%;object-fit:contain;pointer-events:none}
    .certLayoutPlaceholder{font-size:12px;color:#6b7280;text-align:center;padding:6px}
    .certResizeHandle{position:absolute;width:12px;height:12px;border-radius:50%;background:#0D5B56;border:2px solid #fff;box-shadow:0 0 0 1px rgba(13,91,86,.25);z-index:6}
    .certResizeHandle[data-resize-handle="nw"]{left:-7px;top:-7px;cursor:nwse-resize}.certResizeHandle[data-resize-handle="n"]{left:50%;top:-7px;transform:translateX(-50%);cursor:ns-resize}.certResizeHandle[data-resize-handle="ne"]{right:-7px;top:-7px;cursor:nesw-resize}.certResizeHandle[data-resize-handle="e"]{right:-7px;top:50%;transform:translateY(-50%);cursor:ew-resize}.certResizeHandle[data-resize-handle="se"]{right:-7px;bottom:-7px;cursor:nwse-resize}.certResizeHandle[data-resize-handle="s"]{left:50%;bottom:-7px;transform:translateX(-50%);cursor:ns-resize}.certResizeHandle[data-resize-handle="sw"]{left:-7px;bottom:-7px;cursor:nesw-resize}.certResizeHandle[data-resize-handle="w"]{left:-7px;top:50%;transform:translateY(-50%);cursor:ew-resize}
    .certElementChipRow{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.certElementGroup{border:1px solid rgba(13,91,86,.12);border-radius:16px;padding:10px;margin-bottom:10px;background:#fff}.certElementGroupTitle{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#6b7280;font-weight:800;margin:0 0 8px}
    .certElementChip{border:1px solid rgba(13,91,86,.14);background:#fff;border-radius:999px;padding:7px 10px;font-size:12px;cursor:pointer}.certElementChip.active{background:#0D5B56;color:#fff;border-color:#0D5B56}.certLayerItem{display:inline-flex;align-items:center;gap:4px}.certLayerItem.is-hidden{opacity:.58}.certElementChip.is-hidden{text-decoration:line-through}.certVisibilityBtn{width:28px;height:28px;border:1px solid rgba(13,91,86,.14);border-radius:50%;background:#fff;cursor:pointer;font-size:13px;display:inline-flex;align-items:center;justify-content:center}.certVisibilityBtn.is-hidden{background:#f1f5f9;color:#64748b}.certVisibilitySwitch{display:flex;align-items:center;gap:10px;margin:10px 0 14px;padding:10px 12px;border:1px solid rgba(13,91,86,.14);border-radius:12px;background:#f8fafc;font-weight:700;color:#334155}
    .certControlsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.certMiniHint{font-size:12px;color:#6b7280;margin-top:8px}
    .certDesignModal{position:fixed;inset:0;z-index:9999;display:none;background:rgba(15,23,42,.58);backdrop-filter:blur(10px);padding:18px}.certDesignModal.open{display:flex}.certDesignShell{background:#f8fafc;border-radius:24px;box-shadow:0 28px 90px rgba(15,23,42,.35);width:100%;height:100%;min-height:620px;display:grid;grid-template-rows:auto 1fr;overflow:hidden;border:1px solid rgba(255,255,255,.45)}
    .certDesignTopbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#fff;border-bottom:1px solid rgba(13,91,86,.12)}.certDesignTitle{font-weight:900;color:#0f172a}.certDesignToolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.certToolBtn{border:1px solid rgba(13,91,86,.14);background:#fff;border-radius:12px;padding:8px 10px;font-size:12px;font-weight:700;cursor:pointer}.certToolBtn.active{background:#0D5B56;color:#fff;border-color:#0D5B56}.certZoomReadout{min-width:58px;text-align:center;font-size:12px;font-weight:800;color:#334155}
    .certDesignBody{display:grid;grid-template-columns:270px 1fr 330px;min-height:0}.certDesignSidebar,.certDesignProps{background:#fff;border-right:1px solid rgba(13,91,86,.1);padding:14px;overflow:auto}.certDesignProps{border-right:0;border-left:1px solid rgba(13,91,86,.1)}.certPanelTitle{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;font-weight:900;margin:0 0 10px}
    .certCanvasWrap{position:relative;overflow:auto;padding:42px;background:radial-gradient(circle at top left,rgba(13,91,86,.08),transparent 34%),#eaf0f8}.certCanvasInner{min-width:max-content;min-height:max-content;margin:auto}.certModalStage{max-width:none!important;aspect-ratio:auto!important;border-radius:16px}.certRulerTop,.certRulerLeft{position:absolute;background:rgba(255,255,255,.84);color:#64748b;font-size:10px;pointer-events:none;z-index:2}.certRulerTop{left:42px;right:0;top:0;height:24px;border-bottom:1px solid rgba(13,91,86,.1)}.certRulerLeft{top:42px;bottom:0;left:0;width:24px;border-right:1px solid rgba(13,91,86,.1)}
    .certModalHint{position:absolute;left:42px;bottom:12px;background:rgba(15,23,42,.72);color:#fff;border-radius:999px;padding:7px 10px;font-size:12px}.certPropertyBlock{border:1px solid rgba(13,91,86,.12);border-radius:16px;padding:12px;background:#fff;margin-bottom:12px}.certInlinePreviewActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
    @media (max-width: 1100px){.certDesignBody{grid-template-columns:220px 1fr}.certDesignProps{grid-column:1/-1;border-left:0;border-top:1px solid rgba(13,91,86,.1);max-height:260px}.certDesignShell{min-height:720px}}
    @media (max-width: 900px){.certControlsGrid{grid-template-columns:1fr}.certDesignBody{grid-template-columns:1fr}.certDesignSidebar{display:none}.certCanvasWrap{padding:34px}.certDesignModal{padding:8px}}
