.editor-workspace{
    display:grid;
    gap:14px;
}

.editor-workspace .card{
    background:rgba(2,6,23,.82);
    color:#e5e7eb;
    border:1px solid rgba(255,255,255,.14);
    box-shadow:0 18px 34px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.03);
}

.editor-surface-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.editor-management-grid{
    display:grid;
    grid-template-columns:minmax(320px,.88fr) minmax(0,1.12fr);
    gap:14px;
    align-items:start;
}

.editor-stack{
    display:grid;
    gap:14px;
}

.editor-card{
    display:grid;
    gap:14px;
}

.editor-title{
    margin:0;
}

.editor-copy,
.editor-help,
.editor-empty{
    color:#cbd5e1;
    font-size:12px;
    line-height:1.5;
}

.editor-form-stack,
.editor-panel-stack{
    display:grid;
    gap:12px;
}

.editor-record-grid{
    display:grid;
    gap:12px;
}

.editor-bar-list{
    display:grid;
    gap:10px;
}

.editor-record{
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
    background:rgba(2,6,23,.7);
    padding:14px;
    display:grid;
    gap:12px;
}

.editor-bar-record{
    grid-template-columns:72px minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    padding:10px 12px;
}

.editor-bar-record .editor-record-thumb{
    width:72px;
    min-width:72px;
    max-width:72px;
    aspect-ratio:1/1;
    object-fit:cover;
    padding:0;
}

.editor-bar-record .editor-record-thumb.contain{
    object-fit:contain;
    padding:6px;
}

.editor-bar-record .editor-record-head{
    display:contents;
}

.editor-bar-record .editor-record-main{
    align-self:center;
}

.editor-bar-record .editor-record-actions{
    align-self:center;
}

.editor-record-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}

.editor-record-main{
    display:grid;
    gap:4px;
    min-width:0;
}

.editor-record-main strong{
    font-size:16px;
}

.editor-record-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    color:#cbd5e1;
    font-size:12px;
}

.editor-record-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
    justify-content:flex-end;
}

.editor-record-thumb{
    width:100%;
    max-width:280px;
    height:auto;
    aspect-ratio:16/9;
    object-fit:cover;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.16);
    background:rgba(2,6,23,.72);
}

.editor-record-thumb.contain{
    object-fit:contain;
    padding:8px;
}

.editor-record-thumb-empty{
    display:grid;
    place-items:center;
    color:#cbd5e1;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.editor-record-body{
    display:grid;
    gap:12px;
}

.editor-inline-form{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:flex-end;
}

.editor-inline-form button,
.editor-inline-form .btn{
    margin:0;
}

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

.editor-kv{
    border:1px solid rgba(255,255,255,.12);
    border-radius:10px;
    background:rgba(2,6,23,.68);
    padding:12px;
    display:grid;
    gap:6px;
}

.editor-kv span{
    color:#94a3b8;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.editor-kv strong{
    font-size:20px;
    line-height:1.2;
    color:#fff;
}

.editor-note-list{
    margin:0;
    padding-left:18px;
    color:#cbd5e1;
    display:grid;
    gap:8px;
    font-size:12px;
}

.editor-filter-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    align-items:end;
}

.editor-filter-row button{
    margin:0;
}

.editor-compact-value{
    min-width:88px;
    text-align:center;
    font-size:34px;
    line-height:1;
    font-weight:800;
    color:#fff;
    padding:12px;
    border-radius:12px;
    background:rgba(148,163,184,.2);
    border:1px solid rgba(255,255,255,.12);
}

.editor-token-box{
    border:1px solid rgba(255,255,255,.12);
    border-radius:10px;
    background:rgba(2,6,23,.68);
    padding:12px;
    display:grid;
    gap:8px;
}

.editor-token-box span{
    color:#94a3b8;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.editor-token-box code{
    display:block;
    font-size:13px;
    color:#fff;
    word-break:break-all;
}

@media (max-width: 1080px){
    .editor-management-grid,
    .editor-kv-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 720px){
    .editor-record-head,
    .editor-filter-row{
        grid-template-columns:1fr;
        display:grid;
    }

    .editor-bar-record{
        grid-template-columns:60px minmax(0,1fr);
    }

    .editor-bar-record .editor-record-thumb{
        width:60px;
        min-width:60px;
        max-width:60px;
    }

    .editor-bar-record .editor-record-actions{
        grid-column:1 / -1;
        justify-content:flex-start;
    }

    .editor-record-actions{
        justify-content:flex-start;
    }

    .editor-record-thumb{
        max-width:100%;
    }
}
