.dk-admin-shell {
    height: 100%;
    padding: 26px 30px 32px;
    overflow-y: auto;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.04), transparent 32%),
        #0b0f19;
    color: #e8edf6;
}

.dk-admin-header,
.dk-workspace-heading,
.dk-module-head,
.dk-toolbar,
.dk-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dk-admin-header {
    padding-bottom: 18px;
    border-bottom: 1px solid #1f2a3d;
}

.dk-admin-eyebrow,
.dk-workspace-heading p,
.dk-confirm-card > p,
.dk-picker-hud p {
    margin: 0 0 6px;
    color: #8ea8ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}

.dk-admin-header h1,
.dk-workspace-heading h2,
.dk-confirm-card h2,
.dk-picker-hud h2 {
    margin: 0;
    color: #f8fafc;
    font-weight: 700;
}

.dk-admin-header h1 { font-size: 25px; }
.dk-workspace-heading h2 { font-size: 17px; }
.dk-admin-header > div > p:last-child {
    margin: 8px 0 0;
    color: #8794aa;
    font-size: 12px;
}

.dk-button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #2a3850;
    border-radius: 7px;
    background: #101827;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}

.dk-button:hover:not(:disabled) { border-color: #526581; color: #fff; transform: translateY(-1px); }
.dk-button:disabled { cursor: not-allowed; opacity: .42; }
.dk-button-primary { border-color: #4f46e5; background: #4f46e5; color: #fff; }
.dk-button-primary:hover:not(:disabled) { background: #6366f1; }
.dk-button-danger { border-color: #713442; background: #26141b; color: #fda4af; }
.dk-button-success { border-color: #235d4e; background: #10251f; color: #6ee7b7; }
.dk-button-muted { background: #0e1624; }

.dk-status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin: 18px 0;
    padding: 0 14px;
    border: 1px solid #5b4a16;
    border-radius: 7px;
    background: #17140d;
    color: #fbbf24;
    font-size: 12px;
}
.dk-status.is-success { border-color: #235d4e; background: #0f1d1a; color: #6ee7b7; }
.dk-status.is-error { border-color: #713442; background: #211218; color: #fda4af; }

.dk-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.dk-metrics article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 18px;
    border: 1px solid #233149;
    border-radius: 9px;
    background: #0e1625;
}
.dk-metrics span { color: #7890b2; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.dk-metrics strong { color: #f8fafc; font-size: 24px; }

.dk-toolbar {
    padding: 12px 14px;
    border: 1px solid #233149;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: #0e1625;
}
.dk-tabs { display: flex; gap: 6px; }
.dk-tabs button {
    min-width: 100px;
    padding: 9px 14px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #8290a7;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.dk-tabs button.is-active { background: #26334a; color: #fff; }
.dk-bulk-actions { display: flex; gap: 8px; }

.dk-workspace {
    min-height: 355px;
    padding: 18px;
    border: 1px solid #233149;
    border-radius: 0 0 9px 9px;
    background: #0c1320;
}
.dk-workspace-heading { margin-bottom: 16px; }
.dk-filters,
.dk-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(150px, .7fr);
    gap: 12px;
}
.dk-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dk-field-wide { grid-column: span 2; }
.dk-filters { margin-bottom: 12px; }
.dk-filters label,
.dk-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #9aa8bc;
    font-size: 11px;
    font-weight: 600;
}
.dk-field em { color: #fda4af; font-style: normal; }
.dk-filters input,
.dk-filters select,
.dk-field input,
.dk-field select,
.dk-field textarea,
.dk-rule-row input,
.dk-rule-row select {
    width: 100%;
    border: 1px solid #2a3850;
    border-radius: 6px;
    background: #09111d;
    color: #e5eaf2;
    outline: none;
}
.dk-filters input,
.dk-filters select,
.dk-field input,
.dk-field select { height: 38px; padding: 0 11px; }
.dk-field textarea { padding: 10px 11px; resize: vertical; }
.dk-filters input:focus,
.dk-filters select:focus,
.dk-field input:focus,
.dk-field select:focus,
.dk-field textarea:focus,
.dk-rule-row input:focus,
.dk-rule-row select:focus { border-color: #6366f1; }
.dk-is-invalid { border-color: #e45f73 !important; }

.dk-card-list { display: grid; gap: 8px; }
.dk-card {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    padding: 9px 11px;
    border: 1px solid #202e43;
    border-radius: 7px;
    background: #101827;
}
.dk-card-state { width: 5px; height: 30px; border-radius: 6px; background: #34d399; }
.dk-card.is-locked .dk-card-state { background: #fb7185; }
.dk-card-main { min-width: 0; }
.dk-card-main strong { display: block; overflow: hidden; color: #eef2f8; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.dk-card-main span { color: #74849c; font-size: 10px; }
.dk-state-label { color: #6ee7b7; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.dk-card.is-locked .dk-state-label { color: #fda4af; }
.dk-card-actions { display: flex; gap: 6px; }
.dk-card-actions .dk-button { min-height: 30px; padding: 0 10px; font-size: 10px; }
.dk-empty { padding: 54px 20px; color: #66758d; text-align: center; font-size: 12px; }

.dk-module {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #233149;
    border-radius: 7px;
}
.dk-module legend { padding: 0 8px; color: #aab7cb; font-size: 11px; font-weight: 700; }
.dk-module-head { color: #8998ae; font-size: 11px; }
.dk-entity-list { display: grid; gap: 6px; margin-top: 10px; }
.dk-entity-item { padding: 8px 10px; border: 1px solid #1e2a3d; border-radius: 5px; background: #09111d; color: #8898af; font: 10px monospace; }
.dk-rule-list { display: grid; gap: 7px; }
.dk-rule-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 100px 34px; gap: 7px; }
.dk-rule-row input,
.dk-rule-row select { height: 34px; padding: 0 9px; font-size: 11px; }
.dk-rule-remove { border: 1px solid #713442; border-radius: 5px; background: #26141b; color: #fda4af; cursor: pointer; }
.dk-text-button { margin-top: 9px; border: 0; background: transparent; color: #93a8ff; font-size: 11px; cursor: pointer; }
.dk-toggle-stack { display: flex; flex-direction: column; justify-content: center; gap: 12px; color: #a8b4c7; font-size: 11px; }
.dk-toggle-stack input { accent-color: #6366f1; }
.dk-field-error,
.dk-form-error { min-height: 17px; margin: 8px 0 0; color: #fb7185; font-size: 11px; }
.dk-form-actions { justify-content: flex-end; margin-top: 14px; }
.dk-form-actions .dk-button-danger { margin-right: auto; }

.dk-confirm-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 8, 15, .82);
}
.dk-confirm-card { width: min(390px, calc(100% - 40px)); padding: 24px; border: 1px solid #713442; border-radius: 9px; background: #101622; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.dk-confirm-card span { display: block; margin: 12px 0 22px; color: #aeb8c8; font-size: 12px; line-height: 1.65; }
.dk-confirm-card > div { display: flex; justify-content: flex-end; gap: 8px; }

.dk-picker-hud {
    position: fixed;
    left: 50%;
    bottom: 42px;
    z-index: 100;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 28px;
    width: min(720px, calc(100vw - 48px));
    padding: 18px 22px;
    border: 1px solid #3a4c69;
    border-left: 4px solid #6366f1;
    border-radius: 8px;
    background: #0b111d;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .58);
    transform: translateX(-50%);
    color: #e7ecf4;
}
.dk-picker-hud h2 { font-size: 16px; }
.dk-picker-hud span { color: #93a0b4; font-size: 11px; }
.dk-picker-hud > strong { align-self: center; color: #a5b4fc; font-size: 21px; }
.dk-picker-hud dl { grid-column: 1 / -1; display: flex; gap: 10px; margin: 0; }
.dk-picker-hud dl div { display: flex; align-items: center; gap: 6px; color: #7f8ca1; font-size: 10px; }
.dk-picker-hud dt { padding: 4px 7px; border: 1px solid #34445d; border-radius: 4px; background: #131d2c; color: #dce4ef; font-weight: 800; }
.dk-picker-hud dd { margin: 0; }

.dk-picker-hud.hidden,
.dk-confirm-overlay.hidden { display: none; }

@media (max-width: 1040px) {
    .dk-admin-shell { padding: 20px; }
    .dk-card { grid-template-columns: 7px minmax(0, 1fr) auto; }
    .dk-state-label { display: none; }
    .dk-card-actions { flex-wrap: wrap; justify-content: flex-end; }
}
