.smart-edit-overlay{position:fixed;inset:0;z-index:230;display:none;place-items:center;padding:22px;background:rgba(3,4,7,.88);backdrop-filter:blur(14px)}
.smart-edit-overlay.open{display:grid}
.smart-edit-shell{width:min(1040px,calc(100vw - 44px));max-height:calc(100vh - 44px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #373a42;border-radius:20px;background:#17181c;box-shadow:0 30px 100px rgba(0,0,0,.7)}
.smart-edit-head{height:58px;display:flex;align-items:center;gap:12px;padding:0 18px;border-bottom:1px solid #2d3036}
.smart-edit-head b{font-size:17px}.smart-edit-head span{color:#8d929d;font-size:12px}.smart-edit-head button{margin-left:auto;width:36px;height:36px;border:1px solid #3a3d45;border-radius:10px;background:#24262b;color:#e9ebef;font-size:20px;cursor:pointer}
.smart-edit-body{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;padding:18px;overflow:auto}
.smart-edit-workspace{min-width:0;display:flex;flex-direction:column;align-items:center;gap:12px}
.smart-edit-stage{position:relative;max-width:100%;overflow:hidden;border:1px solid #3a3d45;border-radius:15px;background:#0d0e11;box-shadow:0 18px 50px rgba(0,0,0,.42);cursor:crosshair;touch-action:none}
.smart-edit-stage img{width:100%;height:100%;display:block;object-fit:fill;pointer-events:none;user-select:none}
.smart-edit-pin{position:absolute;width:27px;height:31px;display:grid;place-items:center;padding:0 0 5px;border:2px solid white;border-radius:50% 50% 50% 4px;background:#1597ff;color:#fff;font-size:12px;font-weight:800;line-height:1;transform:translate(-50%,-85%) rotate(-45deg);box-shadow:0 5px 14px rgba(0,0,0,.48);pointer-events:none}
.smart-edit-pin span{transform:rotate(45deg)}
.smart-edit-tools{display:flex;align-items:center;gap:7px;padding:6px;border:1px solid #30333a;border-radius:11px;background:#202227}
.smart-edit-tools button{height:34px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#b8bdc6;cursor:pointer}.smart-edit-tools button:hover:not(:disabled){background:#2e3138;color:#fff}.smart-edit-tools button.on{background:#30343c;color:#fff}.smart-edit-tools button:disabled{opacity:.35;cursor:not-allowed}
.smart-edit-side{display:flex;flex-direction:column;gap:12px}.smart-edit-side h3{margin:2px 0 0;font-size:15px}.smart-edit-side p{margin:0;color:#9297a1;font-size:12px;line-height:1.65}
.smart-edit-markers{min-height:48px;display:flex;align-content:flex-start;flex-wrap:wrap;gap:7px;padding:9px;border:1px solid #30333a;border-radius:11px;background:#202227}
.smart-edit-empty{align-self:center;color:#767b84;font-size:12px}
.smart-edit-chip{height:30px;display:flex;align-items:center;gap:7px;padding:0 7px 0 9px;border:1px solid #3c414b;border-radius:9px;background:#292c32;color:#eef1f5;font-size:12px}.smart-edit-chip i{width:17px;height:17px;display:grid;place-items:center;border-radius:50%;background:#1597ff;color:#fff;font-size:10px;font-style:normal}.smart-edit-chip button{width:18px;height:18px;padding:0;border:0;border-radius:50%;background:#3a3e47;color:#cdd1d8;cursor:pointer}
.smart-edit-prompt{box-sizing:border-box;width:100%;min-height:150px;resize:vertical;padding:12px;border:1px solid #363a42;border-radius:11px;outline:0;background:#202227;color:#eef1f5;font:inherit;line-height:1.6}.smart-edit-prompt:focus{border-color:#5d9cff;box-shadow:0 0 0 3px rgba(70,145,255,.12)}
.smart-edit-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#8b9099;font-size:12px}.smart-edit-generate{height:44px;border:0;border-radius:11px;background:#f4f5f7;color:#17181b;font-weight:800;cursor:pointer}.smart-edit-generate:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:760px){.smart-edit-overlay{padding:10px}.smart-edit-shell{width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.smart-edit-body{grid-template-columns:1fr}.smart-edit-side{min-height:260px}.smart-edit-prompt{min-height:110px}}
