@charset "utf-8";

.se-hidden {
    display: none !important;
}

.se-svg.cur-grab {
    cursor: grab;
}

.se-svg.cur-grabbing {
    cursor: grabbing;
}

.se-svg.cur-default {
    cursor: default;
}

.se-svg.cur-text {
    cursor: text;
}

.se-svg.cur-crosshair {
    cursor: crosshair;
}

.se-handle.cur-move {
    cursor: move;
}

.se-handle.cur-ns-resize {
    cursor: ns-resize;
}

.se-handle.cur-ew-resize {
    cursor: ew-resize;
}

.se-handle.cur-nwse-resize {
    cursor: nwse-resize;
}

.se-handle.cur-nesw-resize {
    cursor: nesw-resize;
}

html {
    overflow: hidden;
    touch-action: manipulation;
}

body {
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.se-app {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    line-height: 1.5;
}

.se-top {
    flex: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.1rem;
    padding: 0 0.5rem;
    background: #ffffff;
    border-bottom: 0.05rem solid #e3e8f1;
}

.night .se-top {
    background: #1c1e20;
    border-bottom-color: #343a40;
}

.se-brand {
    flex: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.se-logo {
    flex: none;
    width: 0.6rem;
    height: 0.6rem;
    border: 0.15rem solid #15baaa;
    border-radius: 100%;
}

.se-title {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.01rem;
    color: #1e293b;
    white-space: nowrap;
}

.night .se-title {
    color: #e8eaed;
}

.se-topgrp {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.15rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    justify-content: space-between;
}

.se-topgrp > div {
    flex: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.15rem;
    white-space: nowrap;
}

.se-topgrp::-webkit-scrollbar {
    height: 0.2rem;
}

.se-topgrp::-webkit-scrollbar-track {
    background: transparent;
}

.se-topgrp::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.night .se-topgrp {
    scrollbar-color: #454d57 transparent;
}

.night .se-topgrp::-webkit-scrollbar-thumb {
    background: #454d57;
}

.se-tb {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.3rem;
    border: 0.05rem solid transparent;
    border-radius: 3px;
    background: transparent;
    color: #475569;
    font-size: 0.65rem;
    cursor: pointer;
}

.se-tb:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.night .se-tb {
    color: #b8c0cc;
}

.night .se-tb:hover {
    background: #2b3138;
    color: #ffffff;
}

.se-tb i {
    font-size: 0.8rem;
}

.se-tb-txt {
    font-size: 0.6rem;
}

.se-tsep {
    flex: none;
    width: 0.05rem;
    height: 0.9rem;
    margin: 0 0.2rem;
    background: #dbe2ec;
}

.night .se-tsep {
    background: #3a424c;
}

.se-main {
    position: relative;
    flex: 1;
    display: flex;
    min-height: 0;
}

.se-tools {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    width: 2.4rem;
    padding: 0.4rem 0;
    background: #ffffff;
    border-right: 0.05rem solid #e3e8f1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.se-tools::-webkit-scrollbar {
    display: none;
}

.night .se-tools {
    background: #1c1e20;
    border-right-color: #343a40;
}

.se-tool {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border: 0.05rem solid transparent;
    border-radius: 3px;
    background: transparent;
    color: #475569;
    font-size: 0.7rem;
    cursor: pointer;
}

.se-tool:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.night .se-tool {
    color: #b8c0cc;
}

.night .se-tool:hover {
    background: #2b3138;
    color: #ffffff;
}

.se-tool.on {
    background: #e6f7f5;
    color: #15baaa;
    border-color: #15baaa;
}

.night .se-tool.on {
    background: #163b39;
    color: #5ee0cd;
    border-color: #2f7d73;
}

.se-tool i {
    font-size: 0.6rem;
}

.se-vsep {
    flex: none;
    width: 1.2rem;
    height: 0.05rem;
    margin: 0.15rem 0;
    background: #dbe2ec;
}

.night .se-vsep {
    background: #3a424c;
}

.se-stage {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    background: #e9edf3;
}

.night .se-stage {
    background: #12151a;
}

.se-ruler-corner {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    width: 0.8rem;
    height: 0.8rem;
}

.se-ruler-h {
    position: absolute;
    top: 0;
    left: 0.8rem;
    right: 0;
    z-index: 4;
    width: calc(100% - 0.8rem);
    height: 0.8rem;
    font-size: 0.45rem;
}

.se-ruler-v {
    position: absolute;
    top: 0.8rem;
    left: 0;
    bottom: 0;
    z-index: 4;
    width: 0.8rem;
    height: calc(100% - 0.8rem);
    font-size: 0.45rem;
}

.se-canvas-wrap {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.se-svg {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    /* 触屏长按弹自定义菜单，屏蔽 iOS / Android 的系统文本选择菜单 */
    -webkit-touch-callout: none;
}

.se-page-shadow {
    pointer-events: none;
    fill: #000000;
    opacity: 0.13;
    transform: translate(6px, 6px);
}

.night .se-page-shadow {
    opacity: 0.4;
}

.se-canvas-bg {
    pointer-events: all;
}

.wireframe .se-node > * {
    fill: none !important;
    stroke: #15baaa !important;
    stroke-width: 1 !important;
    pointer-events: all;
}

.se-no-ruler-hint {
    display: none;
}

.se-zoombar {
    position: absolute;
    left: 1.5rem;
    bottom: 0.55rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.15rem;
    border: 0.05rem solid #dbe2ec;
    border-radius: 0.3rem;
    background: #ffffff;
    box-shadow: 0 0.1rem 0.4rem rgba(15, 23, 42, 0.1);
}

.night .se-zoombar {
    border-color: #343a40;
    background: #1c1e20;
}

.se-zbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #475569;
    /* font-size: 0.7rem; */
    cursor: pointer;
}

.se-zbtn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.night .se-zbtn {
    color: #b8c0cc;
}

.night .se-zbtn:hover {
    background: #2b3138;
    color: #ffffff;
}

.se-zpct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1rem;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #334155;
    font-size: 0.5rem;
    cursor: pointer;
}

.se-zpct:hover {
    background: #e6f7f5;
    color: #0f766e;
}

.night .se-zpct {
    color: #d7dde6;
}

.night .se-zpct:hover {
    background: #163b39;
    color: #7fe3d4;
}

.se-zsep {
    flex: none;
    width: 0.05rem;
    height: 0.8rem;
    margin: 0 0.15rem;
    background: #dbe2ec;
}

.night .se-zsep {
    background: #3a424c;
}

.se-zbtn i {
    font-size: 0.5rem;
}

.se-zbtn.on {
    background: #e6f7f5;
    color: #15baaa;
}

/* 撤销 / 重做到头：变淡并屏蔽点击，避免“点了才发现没得退” */
.se-zbtn.se-off {
    opacity: 0.32;
    pointer-events: none;
}

.night .se-zbtn.on {
    background: #163b39;
    color: #5ee0cd;
}

.se-nodebar {
        position: absolute;
        top: 1.15rem;
        left: 50%;
        z-index: 6;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        max-width: calc(100% - 3rem);
        padding: 0.3rem 0.3rem;
        border: 0.05rem solid #dbe2ec;
        border-radius: 3px;
        background: #ffffff;
        box-shadow: 0 0.1rem 0.4rem rgba(15, 23, 42, 0.12);
        white-space: nowrap;
        transform: translateX(-50%);
}

.night .se-nodebar {
    border-color: #343a40;
    background: #1c1e20;
}

.se-nodebar-btn {
    flex: none;
    padding: 0.2rem 0.3rem;
    border: 0;
    border-radius: 3px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.5rem;
    cursor: pointer;
}

.se-nodebar-btn:hover {
    background: #e6f7f5;
    color: #0f766e;
}

.night .se-nodebar-btn {
    background: #2b3138;
    color: #d7dde6;
}

.night .se-nodebar-btn:hover {
    background: #163b39;
    color: #7fe3d4;
}

.se-file-panel {
    padding: 0.5rem 0.6rem;
    background: #ffffff;
}

.night .se-file-panel {
    background: #1c1e20;
}

.se-file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    height: 2.4rem;
    padding: 0 0.5rem;
    border: 1px solid #eee;
    border-radius: 3px;
    background: transparent;
    margin-bottom: 0.25rem;
    color: #334155;
    text-align: left;
    cursor: pointer;
}

.night .se-file-item {
    color: #d7dee8;
    border: 1px solid #444;
}

.se-file-ico {
    flex: none;
    width: 1.4rem;
    text-align: center;
    font-size: 0.8rem;
    color: #15baaa;
}

.se-file-txt {
    flex: 1;
    min-width: 0;
}

.se-file-name {
    display: block;
    font-size: 0.6rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.se-file-desc {
    display: block;
    font-size: 0.5rem;
    color: #94a3b8;
}

.night .se-file-desc {
    color: #7d8794;
}

.se-file-key {
    flex: none;
    font-size: 0.5rem;
    color: #94a3b8;
}

.night .se-file-key {
    color: #6b7684;
}

.se-shape {
    cursor: inherit;
}

.se-selbox {
    pointer-events: none;
}

.se-sel-rect {
    fill: none;
    stroke: #15baaa;
    stroke-width: 1;
    stroke-dasharray: 4 3;
    vector-effect: non-scaling-stroke;
}

.se-handle {
    fill: #ffffff;
    stroke: #15baaa;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    pointer-events: all;
}

.night .se-handle {
    fill: #1c1e20;
}

.se-rot-line {
    stroke: #15baaa;
    stroke-width: 1;
    stroke-dasharray: 3 2;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.night .se-rot-line {
    stroke: #5ee0cd;
}

.se-rot-handle {
    fill: #ffffff;
    stroke: #15baaa;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    pointer-events: all;
}

.night .se-rot-handle {
    fill: #1c1e20;
    stroke: #5ee0cd;
}

.se-rot-handle.cur-rotate {
    cursor: grab;
}

.se-side {
    flex: none;
    display: flex;
    flex-direction: column;
    width: 15rem;
    background: #ffffff;
    border-left: 0.05rem solid #e3e8f1;
    overflow: hidden;
}

.night .se-side {
    background: #1c1e20;
    border-left-color: #343a40;
}

.se-side-hd {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 1.7rem;
    padding: 0 0.55rem;
    border-bottom: 0.05rem solid #e9eef6;
    background: #ffffff;
}

.night .se-side-hd {
    border-bottom-color: #2f343a;
    background: #1c1e20;
}

.se-side-hd-t {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.03rem;
    color: #8492a8;
}

.night .se-side-hd-t {
    color: #9ba1a6;
}

.se-side-hd-sub {
    font-size: 0.5rem;
    color: #a3b0c4;
}

.night .se-side-hd-sub {
    color: #828b95;
}

.se-side-hd-btn {
    height: 1.15rem;
    padding: 0 0.4rem;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #15baaa;
    font-size: 0.525rem;
    cursor: pointer;
}

.se-side-hd-btn:hover {
    background: #eef9f7;
}

.night .se-side-hd-btn {
    color: #5ee0cd;
}

.night .se-side-hd-btn:hover {
    background: #25302f;
}

.se-side-bd {
    flex: 1;
    min-height: 0;
    padding: 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.se-side-bd::-webkit-scrollbar {
    width: 0.2rem;
}

.se-side-bd::-webkit-scrollbar-thumb {
    border-radius: 0.3rem;
    background: #d8dfea;
}

.night .se-side-bd::-webkit-scrollbar-thumb {
    background: #3d4249;
}

.se-sec {
    margin-bottom: 0.5rem;
    border: 0.05rem solid #e7ecf5;
    border-radius: 3px;
    background: #fbfcfe;
}

.night .se-sec {
    border-color: #33383e;
    background: #202327;
}

.se-sec-t {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    height: 1.65rem;
    padding: 0 0.5rem;
    border: 0;
    border-bottom: 1px solid #e9eef6;
    background: #f4f7fc;
    color: #4a5872;
    font-size: 0.6rem;
    text-align: left;
    user-select: none;
}

.night .se-sec-t {
    border-bottom-color: #33383e;
    background: #272c31;
    color: #d6dae0;
}

.se-sec-txt {
    flex: none;
}

.se-sec-sum {
    margin-left: auto;
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.5rem;
    font-weight: 400;
    color: #a3b0c4;
    font-variant-numeric: tabular-nums;
}

.night .se-sec-sum {
    color: #8b949f;
}

.se-sec-bd {
    padding: 0.55rem 0.5rem 0.6rem;
}

.se-field {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.7rem;
    margin-bottom: 0.4rem;
}

.se-lab {
    flex: 0 0 2.5rem;
    min-width: 0;
    font-size: 0.575rem;
    line-height: 1.3;
    color: #5a6781;
    white-space: nowrap;
}

.night .se-lab {
    color: #a9b0b8;
}

.se-state {
    display: block;
    margin-top: 0.05rem;
    font-size: 0.48rem;
    font-weight: 400;
    letter-spacing: 0;
    color: #a3b0c4;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
}

.night .se-state {
    color: #828b95;
}

.se-field.se-color-row {
    gap: 0.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.se-color-rowdiv{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.se-field.se-color-row > .se-color-val {
    flex: 0 0 3.4rem;
    min-width: 0;
    display: inline;
    margin-top: 0;
    text-align: right;
    white-space: nowrap;
    font-size: 0.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #7d8aa1;
}

.night .se-field.se-color-row > .se-color-val {
    color: #a9b0b8;
}

.se-field.se-color-row > .se-pick {
    justify-content: flex-start;
}

.se-color-row .layui-colorpicker {
    width: 1.3rem;
    height: 1.3rem;
    padding: 0;
    line-height: 1rem;
}

.se-field-col {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin-bottom: 0.35rem;
}

.se-field-col > .se-lab {
    flex: none;
}

.se-field-col > .se-state {
    display: inline;
    margin-top: 0;
    margin-left: 0.2rem;
}

.se-slider-row {
    gap: 0.3rem;
    min-height: 1.55rem;
    margin-bottom: 0.25rem;
}

.se-slider-row > .se-lab {
    flex: 0 0 2.5rem;
    white-space: nowrap;
}

.se-slider-row > .se-slider {
    flex: 1;
    min-width: 0;
    padding: 0.2rem 0.35rem 0.15rem;
}

.se-field.se-slider-row > .se-slider-val {
    flex: 0 0 2rem;
    min-width: 0;
    display: inline;
    margin-top: 0;
    margin-left: 0;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.night .se-field.se-slider-row > .se-slider-val {
    color: #a9b0b8;
}

.se-slider {
    box-sizing: border-box;
    width: 100%;
    padding: 0.5rem 0.6rem 0.3rem;
}

.se-align {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.2rem;
    width: 100%;
    margin-top: 0.5rem;
}

.se-align-btn {
    height: 1.4rem;
    border: 0.05rem solid #e3e8f1;
    border-radius: 3px;
    background: #ffffff;
    color: #5a6781;
    font-size: 0.7rem;
    line-height: 1.2;
    cursor: pointer;
}

.se-align-btn:hover {
    border-color: #15baaa;
    background: #eef9f7;
    color: #0f766e;
}

.night .se-align-btn {
    border-color: #3d4249;
    background: #202224;
    color: #b4babf;
}

.night .se-align-btn:hover {
    border-color: #2f7d73;
    background: #25302f;
    color: #5ee0cd;
}

.se-field  .se-clear-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 2.2rem;
    height: 1.3rem;
    margin-left: 0.25rem;
    padding: 0 0.35rem;
    border: 0.05rem solid #e3e8f1;
    border-radius: 3px;
    background: #ffffff;
    color: #8492a8;
    font-size: 0.525rem;
    cursor: pointer;
}

.se-field > .se-clear-btn:hover {
    border-color: #f0a04b;
    background: #fff7ec;
    color: #b26a12;
}

.night .se-clear-btn {
    border-color: #3d4249;
    background: #202224;
    color: #9ba1a6;
}

.night .se-clear-btn:hover {
    border-color: #a77b3c;
    background: #3a3123;
    color: #f0c07a;
}

.se-seg-btn.on {
    background: #e6f7f5;
    color: #0f766e;
    font-weight: 700;
}

.night .se-seg-btn.on {
    background: #163b39;
    color: #7fe3d4;
}

.se-tstyle .se-seg-btn {
    font-size: 0.65rem;
}

.se-pick {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 1.5rem;
}

.se-row2 {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
}

.se-row2 > .se-field {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin-bottom: 0;
}

.se-row2 .se-lab {
    flex: none;
}

.se-row2 .se-state {
    display: inline;
    margin-top: 0;
    margin-left: 0.2rem;
}

.se-row2 > .se-field > :not(.se-lab) {
    flex: none;
    width: 100%;
}

.se-seg {
    display: flex;
    width: 100%;
    margin-top: 0.05rem;
    border: 0.05rem solid #e3e8f1;
    border-radius: 0.35rem;
    background: #ffffff;
    overflow: hidden;
}

.night .se-seg {
    border-color: #3d4249;
    background: #202224;
}

.se-seg-btn {
    flex: 1;
    min-width: 0;
    height: 1.45rem;
    padding: 0 0.2rem;
    border: 0;
    border-right: 0.05rem solid #e3e8f1;
    background: #ffffff;
    color: #5a6781;
    font-size: 0.55rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.se-seg-btn:last-child {
    border-right: 0;
}

.se-seg-btn:hover {
    background: #eef9f7;
    color: #0f766e;
}

.night .se-seg-btn {
    border-right-color: #3d4249;
    background: #202224;
    color: #b4babf;
}

.night .se-seg-btn:hover {
    background: #25302f;
    color: #5ee0cd;
}

.se-layer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.se-layer-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    height: 1.55rem;
    padding: 0 0.4rem;
    border: 0.05rem solid #e7ecf5;
    border-radius: 3px;
    background: #ffffff;
    font-size: 0.575rem;
    color: #4a5872;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color 0.14s ease, background-color 0.14s ease;
}

.se-layer-item:hover {
    border-color: #15baaa;
    background: #f4fbfa;
}

.night .se-layer-item {
    border-color: #33383e;
    background: #25292e;
    color: #c3cbd6;
}

.night .se-layer-item:hover {
    border-color: #2f7d73;
    background: #2a3035;
}

.se-layer-item.on {
    border-color: #15baaa;
    background: #e6f7f5;
    color: #0f766e;
}

.night .se-layer-item.on {
    border-color: #2f7d73;
    background: #163b39;
    color: #7fe3d4;
}

.se-layer-ico {
    flex: none;
    width: 0.85rem;
    text-align: center;
    font-size: 0.6rem;
    color: #15baaa;
}

.night .se-layer-ico {
    color: #5ee0cd;
}

.se-layer-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.se-layer-idx {
    flex: none;
    padding: 0 0.25rem;
    border-radius: 3px;
    background: #f0f4fa;
    font-size: 0.5rem;
    color: #8492a8;
    font-variant-numeric: tabular-nums;
}

.night .se-layer-idx {
    background: #30363c;
    color: #9ba1a6;
}

/* 隐藏的图层节点仍留在 DOM 里（撤销 / 导出都要用），只是不参与渲染与命中 */
.se-node-hidden {
    display: none;
}

/* 图层行右侧的锁 / 眼睛按钮：默认半透明，悬停或已开启时才完全显形 */
.se-layer-act {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #93a2b8;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.14s ease, color 0.14s ease, background-color 0.14s ease;
}

.se-layer-item:hover .se-layer-act,
.se-layer-act:focus-visible {
    opacity: 1;
}

.se-layer-act:hover {
    background: #e9f1fa;
    color: #37465c;
}

.se-layer-act.on {
    opacity: 1;
    color: #15baaa;
}

.se-layer-item.locked {
    border-style: dashed;
}

.se-layer-item.off .se-layer-name {
    opacity: 0.5;
    text-decoration: line-through;
}

.se-layer-item.se-dragging {
    opacity: 0.45;
    border-color: #15baaa;
}

.se-layer-item.se-drop-before {
    box-shadow: inset 0 2px 0 #15baaa;
}

.se-layer-item.se-drop-after {
    box-shadow: inset 0 -2px 0 #15baaa;
}

.se-sorting .se-layer-item {
    cursor: grabbing;
}

.night .se-layer-act {
    color: #7d8896;
}

.night .se-layer-act:hover {
    background: #31383f;
    color: #cfd8e3;
}

.night .se-layer-act.on {
    color: #5ee0cd;
}

.night .se-layer-item.locked {
    border-color: #3b444d;
}

.night .se-layer-item.se-dragging {
    border-color: #2f7d73;
}

.night .se-layer-item.se-drop-before {
    box-shadow: inset 0 2px 0 #5ee0cd;
}

.night .se-layer-item.se-drop-after {
    box-shadow: inset 0 -2px 0 #5ee0cd;
}

.se-status {
    flex: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    height: 1.35rem;
    padding: 0 0.5rem;
    background: #ffffff;
    border-top: 0.05rem solid #e3e8f1;
    font-size: 0.5rem;
    color: #64748b;
}

.night .se-status {
    background: #1c1e20;
    border-top-color: #343a40;
    color: #98a2b3;
}

.se-st-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.se-st-key {
    color: #94a3b8;
}

.night .se-st-key {
    color: #7d8794;
}

.se-stage.no-ruler .se-ruler-corner {
    display: none;
}

.se-stage.no-ruler .se-ruler-h {
    display: none;
}

.se-stage.no-ruler .se-ruler-v {
    display: none;
}

.se-stage.no-ruler .se-canvas-wrap {
    top: 0;
    left: 0;
}

/* 抽屉遮罩：只在窄屏 / 矮窗口且抽屉展开时出现 */
.se-scrim {
    display: none;
}

.se-shape-panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.night .se-shape-panel {
    background: #1c1e20;
}

.se-shape-tabs {
    flex: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    padding: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.se-shape-tabs::-webkit-scrollbar {
    display: none;
}

.se-shape-tabs.se-tabs-dragging {
    cursor: grabbing;
}

.night .se-shape-tabs {
    border-bottom-color: #343a40;
}

.se-shape-tab {
    flex: none;
    white-space: nowrap;
    padding: 0.2rem 0.5rem;
    border: 1px solid #d7dee8;
    border-radius: 3px;
    background: #ffffff;
    color: #475569;
    font-size: 0.5rem;
    cursor: pointer;
}

.night .se-shape-tab {
    border-color: #3a424c;
    background: #242a31;
    color: #b8c0cc;
}

.se-shape-tab.on {
    border-color: #15baaa;
    background: #e6f7f5;
    color: #0f766e;
}

.night .se-shape-tab.on {
    background: #163b39;
    color: #7fe3d4;
}

.se-shape-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        justify-content: center;
        align-content: start;
        gap: 0.35rem;
        flex: 1;
        overflow-y: auto;
        padding: 0.5rem;
}

.se-shape-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 0.3rem;
    border: 0.05rem solid #e2e8f0;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
}

.se-shape-cell:hover {
    border-color: #15baaa;
    background: #f0fbfa;
}

.night .se-shape-cell {
    border-color: #343a40;
    background: #242a31;
}

.night .se-shape-cell:hover {
    border-color: #15baaa;
    background: #163b39;
}

.se-shape-cell svg {
    width: 100%;
    height: 100%;
}

.se-shape-cell svg path {
    fill: #d7dee8;
    stroke: #475569;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.night .se-shape-cell svg path {
    fill: #3a424c;
    stroke: #b8c0cc;
}

.se-node-dot {
    pointer-events: all;
    cursor: move;
}

.se-node-dot:not(.se-node-handle):hover {
    fill: #d9f7f2;
    stroke: #0f766e;
}

.se-node-handle {
    cursor: crosshair;
}

.se-node-vhandle {
    cursor: alias;
}

.se-node-line {
    pointer-events: none;
}

.se-marquee {
    fill: #15baaa;
    fill-opacity: 0.1;
    stroke: #15baaa;
    pointer-events: none;
}

.se-export-panel {
    padding: 0.5rem;
}

.se-export-panel .layui-form-item{
    margin-bottom: 0.5rem;
}

.se-ctxmenu {
    position: fixed;
    z-index: 20000000;
    display: none;
    min-width: 10rem;
    max-height: calc(100vh - 16px);
    padding: 0.3rem;
    border: 1px solid #e2e9f4;
    border-radius: 3px;
    background: #ffffff;
    box-shadow: 0 0.7rem 2.1rem rgba(20, 36, 66, 0.2);
    color: #33415c;
    font-size: 0.6rem;
}

.se-ctxmenu.se-ctx-show {
    display: block;
}

.night .se-ctxmenu {
    border-color: #3d4144;
    background: #222527;
    color: #d9dcdf;
    box-shadow: 0 0.8rem 2.3rem rgba(0, 0, 0, 0.5);
}

.se-ctx-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    height: 1.2rem;
    padding: 0 0.5rem;
    border: 0;
    background: transparent;
    color: #33415c;
    font-size: 0.55rem;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.night .se-ctx-item {
    color: #d9dcdf;
}

.se-ctx-item:hover {
    background: #f1f5fd;
    color: #15baaa;
}

.night .se-ctx-item:hover {
    background: #2f3234;
    color: #5ee0cd;
}

.se-ctx-item.disabled {
    opacity: 0.36;
    pointer-events: none;
}

.se-ctx-item.se-ctx-danger {
    color: #dd5b5b;
}

.se-ctx-item.se-ctx-danger:hover {
    background: #fff1f1;
    color: #c94545;
}

.night .se-ctx-item.se-ctx-danger {
    color: #f08a8a;
}

.night .se-ctx-item.se-ctx-danger:hover {
    background: #3a2429;
    color: #ff9b9b;
}

.se-ctx-ico {
    display: inline-block;
    width: 0.85rem;
    flex: 0 0 0.85rem;
    text-align: center;
    font-size: 0.7rem;
    font-style: normal;
}

@media (pointer: coarse) {

    .se-ctx-sep {
        margin: 0.15rem 0;
    }

    .se-zbtn {
        width: 1.5rem;
        height: 1.5rem;
    }

    .se-zpct {
        height: 1.5rem;
    }

    .se-tool {
        width: 1.55rem;
        height: 1.55rem;
    }

    .se-layer-item {
        height: 1.9rem;
    }

    .se-layer-act {
        width: 1.35rem;
        height: 1.35rem;
    }
}

.se-ctx-key {
    margin-left: auto;
    padding: 0 0.25rem;
    border: 0.05rem solid #e2e9f4;
    border-radius: 0.2rem;
    background: #fafbfe;
    color: #9aa8bd;
    font-size: 0.5rem;
    font-family: inherit;
}

.night .se-ctx-key {
    border-color: #454548;
    background: #2b2e30;
    color: #9ba1a6;
}

.se-ctx-sep {
    height: 0.05rem;
    margin: 0.25rem 0.2rem;
    background: #e9eef6;
}

.night .se-ctx-sep {
    background: #3d4144;
}

.se-source-wrap {
    padding: 12px;
}

.se-source-area {
    width: 100%;
    height: 15rem;
    font-size: 0.6rem;
    line-height: 1.5;
    border: 1px solid #eee;
    padding: 0.5rem;
}

.se-help-wrap {
    padding: 18px;
    line-height: 2;
}

.se-checker-base {
    fill: #ffffff;
}

.se-checker-cell {
    fill: #e6e9ef;
}

.night .se-checker-base {
    fill: #2a2d30;
}

.night .se-checker-cell {
    fill: #35393d;
}

@media (max-width: 700px) {
    .se-side {
        width: 12.5rem;
    }

    .se-lab {
        flex-basis: 2.7rem;
    }

    .se-row2 {
        gap: 0.3rem;
    }

    .se-field > .se-clear-btn {
        min-width: 1.8rem;
        padding: 0 0.2rem;
    }
}

@media (max-width: 600px) {
    .se-side {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        width: min(15rem, 82vw);
        box-shadow: -0.4rem 0 1.2rem rgba(20, 36, 66, 0.18);
    }

    .se-side-bd {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .se-shape-grid {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
}

.layui-layer-msg {
    pointer-events: none;
}

@media (max-width: 820px), (max-height: 550px) {
    .se-main {
        flex-direction: column;
    }

    .se-tools {
        flex-direction: row;
        align-items: center;
        width: 100%;
        height: 1.75rem;
        padding: 0 0.2rem;
        border-right: 0;
        border-bottom: 0.05rem solid #e3e8f1;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        gap: 0.15rem;
    }

    .se-tools::-webkit-scrollbar {
        display: none;
    }

    .se-tools>* {
        flex: none;
    }

    .se-vsep {
        width: 0.05rem;
        height: 1.2rem;
        margin: 0 0.15rem;
    }

    .night .se-tools {
        border-right-color: transparent;
        border-bottom-color: #343a40;
    }

    .se-stage {
        min-height: 0;
    }

    .se-side {
        position: absolute;
        top: 1.75rem;
        right: 0;
        bottom: 0;
        z-index: 20;
        width: min(15rem, 82vw);
        box-shadow: -0.4rem 0 1.2rem rgba(20, 36, 66, 0.18);
    }

    .se-side-bd {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 820px), (max-height: 550px) {
    .se-app.drawer-open .se-scrim {
        position: absolute;
        top: 1.75rem;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 15;
        display: block;
        background: rgba(15, 23, 42, 0.26);
    }

    .se-ctxmenu {
        min-width: 11.5rem;
        max-height: calc(100vh - 1rem);
        padding: 0.25rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .se-ctx-ico {
        width: 1.1rem;
        height: 1.1rem;
    }

    .se-ctx-key {
        display: none;
    }
}

@media (max-width: 650px) {
    .se-shape-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 530px) {
    .se-shape-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 350px) {
    .se-shape-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .se-side {
        width: 100%;
    }
}

@media (max-width: 280px) {
    .se-shape-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.se-side .layui-input:disabled,
.se-side .layui-input[disabled] {
    background: #f4f6fa;
    border-color: #e7ecf5;
    color: #a3b0c4;
    cursor: not-allowed;
}

.se-side .layui-input:disabled::placeholder,
.se-side .layui-input[disabled]::placeholder {
    color: #a8b5c8;
}

.night .se-side .layui-input:disabled,
.night .se-side .layui-input[disabled] {
    background: #24272a;
    border-color: #343a40;
    color: #6f767d;
}

.night .se-side .layui-input:disabled::placeholder,
.night .se-side .layui-input[disabled]::placeholder {
    color: #6f767d;
}
