*{
    box-sizing:border-box;
}

html{
    width:100%;
    max-width:100%;
}

body{
    margin:0;
    background:#eef4f9;
    color:#0f172a;
    font:15px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.top{
    min-height:68px;
    padding:0 24px;
    background:#0f2747;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    box-shadow:0 4px 18px rgba(15,39,71,.18);
}

.admin-logo{
    display:flex;
    align-items:center;
    text-decoration:none;
}

.admin-logo img{
    display:block;
    width:auto;
    height:42px;
    max-width:225px;
    object-fit:contain;
}

.top nav{
    display:flex;
    align-items:center;
    gap:18px;
}

.top nav a{
    color:#fff;
    text-decoration:none;
    font-size:.86rem;
    font-weight:800;
}

.top nav a:hover{
    text-decoration:underline;
}

.wrap{
    width:min(1220px,100%);
    margin:24px auto;
    padding:0 16px 28px;
}

.panel{
    padding:20px;
    background:#fff;
    border:1px solid rgba(148,163,184,.18);
    border-radius:18px;
    box-shadow:0 5px 24px rgba(15,23,42,.08);
}

.narrow{
    max-width:440px;
    margin:60px auto;
}

.toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}

.toolbar form{
    display:flex;
    gap:8px;
}

.editor{
    display:grid;
    grid-template-columns:minmax(0,1fr) 330px;
    align-items:start;
    gap:18px;
}

.editor-main{
    min-width:0;
}

.side{
    position:sticky;
    top:18px;
}

label,
.field-group{
    display:block;
    margin-bottom:16px;
    color:#1e293b;
    font-weight:800;
}

input,
textarea,
select{
    width:100%;
    margin-top:6px;
    padding:11px 12px;
    border:1px solid #cbd5e1;
    border-radius:11px;
    background:#fff;
    color:#0f172a;
    outline:none;
    font:inherit;
    font-weight:550;
}

input:focus,
textarea:focus,
select:focus{
    border-color:#3b82f6;
    box-shadow:0 0 0 3px rgba(59,130,246,.13);
}

textarea{
    resize:vertical;
}

button,
.button{
    display:inline-flex;
    min-height:42px;
    padding:10px 16px;
    border:0;
    border-radius:11px;
    background:#2563eb;
    color:#fff;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font:inherit;
    font-weight:850;
    cursor:pointer;
}

button:hover,
.button:hover{
    filter:brightness(.96);
}

.button.secondary{
    background:#475569;
}

.two{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.generated-info{
    min-height:38px;
    margin:-4px 0 16px;
    padding:8px 11px;
    border-radius:10px;
    background:#f1f5f9;
    display:flex;
    align-items:center;
    gap:9px;
    color:#64748b;
    font-size:.76rem;
    font-weight:750;
}

.generated-info code{
    min-width:0;
    overflow:hidden;
    color:#334155;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.field-help{
    margin:7px 0 0;
    color:#64748b;
    font-size:.72rem;
    font-weight:600;
}

.featured-preview{
    position:relative;
    width:100%;
    min-height:165px;
    margin:7px 0 10px;
    overflow:hidden;
    border:1px dashed #94a3b8;
    border-radius:13px;
    background:#f8fafc;
    display:flex;
    align-items:center;
    justify-content:center;
}

.featured-preview img{
    display:block;
    width:100%;
    max-height:240px;
    object-fit:cover;
}

.featured-preview span{
    display:none;
    padding:20px;
    color:#64748b;
    text-align:center;
    font-size:.78rem;
    font-weight:750;
}

.featured-preview.is-empty img{
    display:none;
}

.featured-preview.is-empty span{
    display:block;
}

.upload-actions{
    display:flex;
    gap:8px;
}

.upload-button{
    margin:0;
}

.tag-cloud{
    margin:-5px 0 17px;
}

.tag-cloud-title{
    display:block;
    margin-bottom:7px;
    color:#64748b;
    font-size:.72rem;
    font-weight:850;
}

.tag-cloud-items{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.tag-chip{
    min-height:30px;
    padding:5px 9px;
    border:1px solid #cbd5e1;
    border-radius:999px;
    background:#f8fafc;
    color:#334155;
    font-size:.69rem;
    font-weight:800;
}

.tag-chip small{
    margin-left:4px;
    color:#94a3b8;
    font-size:.62rem;
}

.tag-chip:hover{
    border-color:#93c5fd;
    background:#eff6ff;
    color:#1d4ed8;
    filter:none;
}

.editor-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:6px;
}

table{
    width:100%;
    border-collapse:collapse;
}

th,
td{
    padding:12px;
    border-bottom:1px solid #e2e8f0;
    text-align:left;
}

td small{
    display:block;
    color:#64748b;
}

.error,
.success{
    padding:12px 14px;
    border-radius:11px;
    font-weight:750;
}

.error{
    background:#fee2e2;
    color:#991b1b;
}

.success{
    background:#dcfce7;
    color:#166534;
}

@media(max-width:850px){
    .top{
        padding:0 14px;
    }

    .admin-logo img{
        height:36px;
        max-width:180px;
    }

    .top nav{
        gap:11px;
    }

    .top nav a{
        font-size:.75rem;
    }

    .editor{
        grid-template-columns:1fr;
    }

    .side{
        position:static;
    }
}

@media(max-width:620px){
    .top{
        min-height:62px;
        gap:10px;
    }

    .admin-logo img{
        height:31px;
        max-width:145px;
    }

    .top nav a{
        font-size:0;
    }

    .top nav a::after{
        font-size:.72rem;
    }

    .top nav a:nth-child(1)::after{
        content:"Overzicht";
    }

    .top nav a:nth-child(2)::after{
        content:"Uitloggen";
    }

    .wrap{
        margin-top:14px;
        padding:0 10px 22px;
    }

    .panel{
        padding:15px;
        border-radius:15px;
    }

    .two{
        grid-template-columns:1fr;
    }

    .toolbar{
        flex-direction:column;
        align-items:stretch;
    }

    .toolbar form{
        width:100%;
    }

    .toolbar form input{
        min-width:0;
    }

    .upload-actions,
    .editor-actions{
        align-items:stretch;
        flex-direction:column;
    }

    .upload-actions .button,
    .editor-actions .button,
    .editor-actions button{
        width:100%;
    }
}