.kt-optin-admin {
    --kt-admin-accent: #0b57d0;
    --kt-admin-accent-2: #0ea5a4;
    --kt-admin-bg: #f3f7ff;
    --kt-admin-border: #dbe5f7;
    --kt-admin-text: #13213a;
    --kt-admin-muted: #5b6b86;
}

.kt-optin-admin .kt-admin-panel {
    margin-top: 12px;
    background: #ffffff;
    border: 1px solid #d3def2;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 18px 34px rgba(18, 40, 91, 0.09);
}

.kt-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 8px;
}

.kt-optin-admin h2,
.kt-optin-admin h3,
.kt-optin-admin h4 {
    color: var(--kt-admin-text);
}

.kt-optin-admin h3 {
    margin: 14px 0 8px;
}

.kt-optin-admin h4 {
    margin: 12px 0 8px;
}

.kt-optin-admin .description {
    color: var(--kt-admin-muted);
}

.kt-optin-admin .form-table th {
    color: #15305b;
    font-weight: 600;
    padding-top: 8px;
    padding-bottom: 8px;
    width: 220px;
}

.kt-optin-admin .form-table td {
    padding-top: 8px;
    padding-bottom: 8px;
}

.kt-optin-admin .form-table td input[type="text"],
.kt-optin-admin .form-table td select,
.kt-optin-admin .form-table td textarea {
    border-color: #c5d7f1;
    border-radius: 10px;
    box-shadow: inset 0 1px 2px rgba(15, 37, 80, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kt-optin-admin .form-table td input[type="text"]:focus,
.kt-optin-admin .form-table td select:focus,
.kt-optin-admin .form-table td textarea:focus {
    border-color: #6f95d9;
    box-shadow: 0 0 0 3px rgba(49, 101, 190, 0.12);
}

.kt-optin-admin .kt-warning {
    color: #8f1630;
    background: #fff1f4;
    border: 1px solid #ffd1dc;
    padding: 9px 12px;
    border-radius: 8px;
}

.kt-overview-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kt-overview-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--kt-admin-text);
}

.kt-overview-status strong {
    color: #091327;
}

.kt-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.kt-optin-admin .button.button-primary {
    background: var(--kt-admin-accent);
    border-color: var(--kt-admin-accent);
    box-shadow: none;
}

.kt-optin-admin .button.button-primary:hover,
.kt-optin-admin .button.button-primary:focus {
    filter: brightness(0.97);
}

.kt-optin-admin .button:not(.button-primary) {
    border-color: #c9d8f0;
    color: #17335d;
    background: #ffffff;
}

.kt-overview-table {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dbe5f4;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.kt-overview-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 4px 0 12px;
}

.kt-overview-filters input[type="search"],
.kt-overview-filters select {
    width: 100% !important;
    flex: 1 1 0;
    min-width: 220px;
    border: 1px solid #c5d7f1;
    border-radius: 10px;
    min-height: 36px;
    line-height: 1.3;
    box-sizing: border-box;
}

.kt-overview-filters > * {
    margin: 0;
}

.kt-overview-table thead th {
    background: #f6f9ff;
    color: #1b355e;
    font-weight: 600;
    border-bottom: 1px solid #e2ebf8;
    padding: 10px 12px;
}

.kt-overview-table tbody tr:hover {
    background: #fbfdff;
}

.kt-overview-table td {
    vertical-align: middle;
    padding: 10px 12px;
    border-bottom: 1px solid #edf2fb;
    color: #203a63;
}

.kt-overview-table td:last-child {
    white-space: nowrap;
}

.kt-overview-cell-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.kt-overview-table td:last-child .kt-inline-icon-form {
    display: inline-flex;
    margin-left: 6px;
}

.kt-overview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
}

.kt-overview-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #d3e2f6;
    background: #f4f8ff;
    color: #244474;
    font-size: 12px;
    line-height: 1.2;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kt-overview-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.kt-overview-stat-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #d3e2f6;
    background: #f4f8ff;
    color: #1e3a63;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.kt-overview-stat-chip.is-cr {
    border-color: #bad8c4;
    background: #ebf9f0;
    color: #0f6a3b;
    font-weight: 600;
}

.kt-overview-empty {
    text-align: center;
    color: #64748b;
    padding: 28px 14px;
}

.kt-overview-table code {
    background: #f4f7fd;
    border: 1px solid #e0e8f7;
    border-radius: 6px;
    padding: 2px 6px;
}

.kt-shortcode-list {
    margin-top: 10px;
}

.kt-shortcode-list summary {
    cursor: pointer;
    color: #1d3e6f;
    font-weight: 600;
}

.kt-shortcode-list ul {
    margin: 10px 0 0 16px;
}

.kt-shortcode-list li {
    margin: 6px 0;
}

.kt-table-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d0dcf1;
    border-radius: 8px;
    background: #ffffff;
    color: #2e4f7f;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}

.kt-table-icon-btn:hover,
.kt-table-icon-btn:focus {
    background: #f1f6ff;
    border-color: #bfd0ec;
    color: #1f4171;
}

.kt-table-icon-btn.is-copied {
    background: #e8f9f1;
    border-color: #8ed8b7;
    color: #0c6b45;
}

.kt-table-icon-btn.is-copy-error {
    background: #fff1f3;
    border-color: #f1b6c0;
    color: #a22b43;
}

.kt-table-icon-btn.is-danger {
    border-color: #f0c4cb;
    color: #a1273a;
    background: #fff8f9;
}

.kt-table-icon-btn.is-danger:hover,
.kt-table-icon-btn.is-danger:focus {
    background: #ffeef1;
    border-color: #e8a9b4;
    color: #8c1f32;
}

.kt-modal[hidden] {
    display: none !important;
}

.kt-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.kt-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.kt-modal__dialog {
    position: relative;
    width: min(760px, calc(100vw - 40px));
    max-height: calc(100vh - 60px);
    overflow: auto;
    margin: 30px auto;
    background: #ffffff;
    border: 1px solid #d9e4f5;
    border-radius: 12px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.26);
    padding: 20px 22px;
}

.kt-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #48628d;
    cursor: pointer;
}

.kt-modal__actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.kt-embed-help-section {
    margin-top: 16px;
    border-top: 1px solid #e8eef8;
    padding-top: 14px;
}

.kt-embed-help-section h4 {
    margin: 0 0 8px;
}

.kt-embed-help-section code {
    display: block;
    margin-top: 6px;
    padding: 8px 10px;
    background: #f7faff;
    border: 1px solid #dce7f8;
    border-radius: 8px;
    white-space: nowrap;
    overflow-x: auto;
}

body.kt-modal-open {
    overflow: hidden;
}

.kt-connection-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 9px;
}

.kt-connection-badge.is-connected {
    background: #e8f8ee;
    color: #146534;
    border: 1px solid #b8e5c8;
}

.kt-connection-badge.is-disconnected {
    background: #fdeced;
    color: #a61d24;
    border: 1px solid #f2c0c4;
}

.kt-btn-flat-primary.button.button-primary {
    background: #0b57d0;
    border-color: #0b57d0;
    box-shadow: none;
    text-shadow: none;
}

.kt-btn-flat-primary.button.button-primary:hover,
.kt-btn-flat-primary.button.button-primary:focus {
    background: #0948ab;
    border-color: #0948ab;
    filter: none;
}

.kt-btn-flat-primary.button.button-primary:disabled,
.kt-btn-flat-primary.button.button-primary[disabled] {
    background: #94abd2;
    border-color: #94abd2;
    color: #edf3ff;
}

.kt-form-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 10px;
}

.kt-form-toolbar h2 {
    margin: 0;
}

.kt-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.kt-inline-form input[type="text"] {
    min-width: 220px;
}

.kt-editor-section {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #dee7f6;
    border-radius: 14px;
    background: #ffffff;
    scroll-margin-top: 120px;
}

.kt-editor-flow-nav {
    position: sticky;
    top: 56px;
    z-index: 8;
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid #d7e2f5;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 20px rgba(18, 44, 96, 0.08);
}

.kt-editor-flow-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c8d8f1;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #31507d;
    text-decoration: none;
    background: #f6f9ff;
}

.kt-editor-flow-link:hover {
    border-color: #a8c2e9;
    background: #edf4ff;
    color: #234472;
}

.kt-editor-flow-link.is-active {
    border-color: #1f5fbf;
    background: #1f5fbf;
    color: #ffffff;
}

.kt-editor-section-title {
    margin: 0 0 10px;
    font-size: 18px;
}

#kt-fields-builder {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.kt-fields-table-wrap {
    overflow-x: auto;
    padding-bottom: 2px;
}

.kt-field-table-head {
    display: grid;
    grid-template-columns: 92px minmax(240px, 1.7fr) minmax(190px, 1.2fr) 132px 132px 52px;
    gap: 8px;
    align-items: center;
    margin: 12px 0 8px;
    padding: 0 6px;
    min-width: 890px;
    color: #3b4f73;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.kt-field-table-head span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kt-field-row {
    padding: 10px;
    border: 1px solid #d2def3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(17, 46, 96, 0.05);
}

.kt-field-key-hidden {
    display: none;
}

.kt-field-main {
    display: grid;
    grid-template-columns: 92px minmax(240px, 1.7fr) minmax(190px, 1.2fr) 132px 132px 52px;
    gap: 8px;
    align-items: center;
    min-width: 890px;
}

.kt-field-main > * {
    min-width: 0;
}

.kt-field-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.kt-field-row input[type="text"],
.kt-field-row select {
    width: 100%;
    border-color: #c6d8f1;
    border-radius: 8px;
}

.kt-field-row textarea {
    width: 100%;
    border-color: #c6d8f1;
    border-radius: 8px;
    min-height: 92px;
    resize: vertical;
}

.kt-field-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #324768;
    font-size: 12px;
}

.kt-field-toggle input[type="checkbox"] {
    margin: 0;
}

.kt-field-drag-handle {
    border: 1px solid #d3deef;
    border-radius: 8px;
    background: #f7faff;
    color: #59739f;
    cursor: grab;
    font-size: 16px;
    line-height: 1;
    width: 32px;
    height: 32px;
    padding: 0;
    touch-action: none;
}

.kt-field-drag-handle:hover {
    background: #eef4ff;
}

.kt-field-drag-handle:active {
    cursor: grabbing;
}

.kt-field-drag-handle:focus {
    outline: 2px solid rgba(44, 101, 198, 0.28);
    outline-offset: 1px;
}

.kt-field-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.kt-row-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid #d3deef;
    border-radius: 8px;
    background: #f7faff;
    color: #4d6d99;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.kt-row-toggle:hover {
    background: #eef4ff;
    color: #274d84;
}

.kt-row-toggle:focus {
    outline: 2px solid rgba(44, 101, 198, 0.28);
    outline-offset: 1px;
}

.kt-row-toggle-icon {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -2px;
    transition: transform 0.15s ease, margin-top 0.15s ease;
}

.kt-field-row.is-expanded .kt-row-toggle-icon {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.kt-remove-field-row-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #e7c6cc;
    border-radius: 8px;
    background: #fff5f6;
    color: #ab3048;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.kt-remove-field-row-icon:hover {
    background: #ffe8ec;
    color: #97263e;
}

.kt-remove-field-row-icon:focus {
    outline: 2px solid rgba(171, 48, 72, 0.24);
    outline-offset: 1px;
}

.kt-field-row-placeholder {
    border: 2px dashed #9ab4df;
    border-radius: 12px;
    background: #f4f8ff;
    min-height: 66px;
}

.kt-field-row.ui-sortable-helper {
    box-shadow: 0 10px 28px rgba(27, 59, 112, 0.16);
}

.kt-field-row.is-dragging {
    opacity: 0.65;
}

.kt-field-row.is-drag-target {
    outline: 2px dashed #8aaae0;
    outline-offset: 2px;
}

.kt-field-details {
    margin-top: 8px;
    border-top: 1px dashed #d4e0f4;
    padding-top: 10px;
}

.kt-field-section-label {
    font-size: 13px;
    font-weight: 700;
    color: #1f3557;
    margin: 0 0 8px;
}

.kt-field-extra {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 12px 16px;
    margin-top: 10px;
}

.kt-field-meta {
    display: grid;
    gap: 4px;
    align-content: start;
}

.kt-field-meta input,
.kt-field-meta select,
.kt-field-meta textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.kt-field-options-row {
    grid-column: 1 / -1;
}

.kt-field-options-row.is-hidden {
    display: none;
}

.kt-field-tagging {
    grid-column: 1 / -1;
    border-top: 1px solid #dbe5f4;
    margin-top: 2px;
    padding-top: 12px;
}

.kt-field-tagging-rules {
    display: grid;
    gap: 8px;
}

.kt-field-tagging-rule {
    display: grid;
    grid-template-columns: minmax(160px, 0.9fr) minmax(200px, 1fr) minmax(260px, 1.2fr) 36px;
    gap: 8px;
    align-items: center;
}

.kt-field-tagging-tag-picker {
    position: relative;
}

.kt-field-tagging-search {
    width: 100%;
}

.kt-field-tagging-search[hidden] {
    display: none;
}

.kt-field-tagging-selected {
    display: flex;
    align-items: center;
    min-height: 38px;
}

.kt-field-tagging-selected[hidden] {
    display: none;
}

.kt-field-tagging-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f6ff;
    color: #163866;
    border: 1px solid #cfe0f7;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    max-width: 100%;
}

.kt-field-tagging-chip.is-new {
    background: #ecf9f7;
    border-color: #c5ece5;
    color: #0c5e69;
}

.kt-field-tagging-chip-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kt-field-tagging-chip-remove {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: 0.7;
}

.kt-field-tagging-chip-remove:hover {
    opacity: 1;
}

.kt-remove-tagging-rule {
    width: 32px;
    height: 32px;
    border: 1px solid #c9d6ea;
    border-radius: 8px;
    background: #ffffff;
    color: #1f3557;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.kt-remove-tagging-rule:hover {
    background: #f3f7ff;
    border-color: #b8cceb;
    color: #172b47;
}

.kt-remove-tagging-rule:focus {
    outline: 2px solid rgba(44, 101, 198, 0.24);
    outline-offset: 1px;
}

.kt-remove-tagging-rule-icon {
    font-size: 20px;
    line-height: 1;
    font-weight: 600;
    margin-top: -1px;
}

.kt-field-tagging-suggestions {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #c4d6f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(16, 40, 84, 0.15);
    padding: 6px;
    display: grid;
    gap: 4px;
}

.kt-field-tagging-suggestions[hidden] {
    display: none !important;
}

.kt-field-tagging-suggestion {
    border: 0;
    background: #f6f9ff;
    color: #1f4271;
    border-radius: 8px;
    text-align: left;
    padding: 7px 10px;
    font-size: 12px;
    cursor: pointer;
}

.kt-field-tagging-suggestion:hover {
    background: #eaf2ff;
}

.kt-field-tagging-suggestion.is-create {
    background: #ecf7f9;
    color: #0e5f6c;
    font-weight: 600;
}

.kt-field-tagging-actions {
    margin-top: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.kt-field-tagging-status {
    display: block;
    min-height: 16px;
    color: #607395;
}

@media (max-width: 1280px) {
    .kt-field-tagging-rule {
        grid-template-columns: 1fr 1fr;
    }

    .kt-field-tagging-rule .kt-field-tagging-tag-picker {
        grid-column: 1 / -1;
    }

    .kt-field-tagging-rule .kt-remove-tagging-rule {
        justify-self: start;
    }
}

.kt-field-meta span {
    color: #33486d;
    font-size: 12px;
    font-weight: 600;
}

.kt-field-tagging > span {
    font-size: 13px;
    font-weight: 700;
    color: #1f3557;
    margin-bottom: 2px;
}

.kt-field-hidden-note {
    margin: 8px 0 0;
    color: #607395;
    font-size: 12px;
}

.kt-label-tag-picker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-height: 44px;
    border: 1px solid #c6d8f1;
    border-radius: 10px;
    background: #fff;
    padding: 8px;
}

.kt-form-label-picker,
.kt-target-tags-picker {
    width: 100%;
    max-width: 620px;
}

.kt-form-label-current {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 0;
}

.kt-form-label-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef5ff;
    border: 1px solid rgba(11, 87, 208, 0.2);
    color: #123969;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.kt-form-label-chip-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kt-form-label-remove {
    border: 0;
    background: transparent;
    color: #365a8f;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.kt-target-tags-current {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 0;
}

.kt-target-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f6ff;
    color: #163866;
    border: 1px solid #cfe0f7;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.kt-target-tag-chip.is-new {
    background: #ecf9f7;
    border-color: #c5ece5;
    color: #0c5e69;
}

.kt-target-tag-chip-text {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kt-target-tag-remove {
    border: 0;
    background: transparent;
    color: #3a5f91;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.kt-target-tag-empty {
    color: #5f7294;
    font-size: 12px;
}

.kt-target-tag-suggestions {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #c4d6f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(16, 40, 84, 0.15);
    padding: 6px;
    display: grid;
    gap: 4px;
}

.kt-label-tag-suggestions[hidden],
.kt-target-tag-suggestions[hidden] {
    display: none !important;
}

.kt-target-tag-suggestion {
    border: 0;
    background: #f6f9ff;
    color: #1f4271;
    border-radius: 8px;
    text-align: left;
    padding: 7px 10px;
    font-size: 12px;
    cursor: pointer;
}

.kt-target-tag-suggestion:hover {
    background: #eaf2ff;
}

.kt-target-tag-suggestion.is-create {
    background: #ecf7f9;
    color: #0e5f6c;
    font-weight: 600;
}

.kt-label-tag-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    background: #eef5ff;
    border: 1px solid rgba(11, 87, 208, 0.2);
    color: #123969;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.kt-label-tag-text {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kt-label-tag-clear {
    border: 0;
    background: transparent;
    color: #365a8f;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.kt-label-tag-search {
    width: 100%;
    min-width: 0;
    border: 1px solid #c5d7f1;
    border-radius: 8px;
    padding: 8px 10px;
    background: #ffffff;
    line-height: 1.3;
    color: #1c355a;
    box-shadow: none;
}

.kt-label-tag-search:focus {
    outline: none;
    border-color: #6f95d9;
    box-shadow: 0 0 0 3px rgba(49, 101, 190, 0.12);
}

.kt-label-tag-suggestions {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #c4d6f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(16, 40, 84, 0.15);
    padding: 6px;
    display: grid;
    gap: 4px;
}

.kt-label-suggestion {
    border: 0;
    background: #f6f9ff;
    color: #1f4271;
    border-radius: 8px;
    text-align: left;
    padding: 7px 10px;
    font-size: 12px;
    cursor: pointer;
}

.kt-label-suggestion:hover {
    background: #eaf2ff;
}

.kt-label-suggestion.is-create {
    background: #ecf7f9;
    color: #0e5f6c;
    font-weight: 600;
}

.kt-label-suggestion-empty {
    padding: 7px 10px;
    font-size: 12px;
    color: #5f7294;
}

.kt-admin-preview-canvas {
    border: 1px solid #cfdcf2;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #f4f8ff;
}

.kt-style-config-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}

.kt-style-design-preview-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
    gap: 14px;
    align-items: start;
    margin-top: 18px;
}

.kt-form-save-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    position: sticky;
    bottom: 10px;
    z-index: 9;
    padding: 10px 12px;
    border: 1px solid #d7e2f5;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 26px rgba(19, 47, 101, 0.12);
}

.kt-form-save-row .submit {
    margin: 0;
    padding: 0;
}

.kt-style-settings-panel,
.kt-style-preview-panel {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #d7e2f5;
    border-radius: 14px;
    padding: 12px 14px;
}

.kt-style-preview-panel {
    position: static;
    align-self: start;
}

.kt-live-preview-frame {
    width: 100%;
    min-height: 480px;
    border: 1px solid #cfdcf2;
    border-radius: 12px;
    background: #f4f8ff;
}

.kt-preview-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.kt-preview-panel-head h4 {
    margin: 0;
}

.kt-preview-unsaved-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: #fff8e6;
    border: 1px solid #f5d67a;
    border-radius: 8px;
    color: #6b5900;
    min-height: 200px;
}

.kt-preview-unsaved-notice .dashicons {
    flex-shrink: 0;
    color: #b5930d;
    margin-top: 2px;
}

.kt-preview-unsaved-notice p {
    margin: 0;
    line-height: 1.5;
}

.kt-admin-preview-canvas.is-reloading {
    opacity: 0.8;
    transition: opacity 0.18s ease;
}

.kt-style-input-stack {
    display: grid;
    grid-template-columns: 220px minmax(140px, 1fr);
    gap: 8px;
    align-items: center;
}

.kt-style-input-stack .is-disabled {
    opacity: 0.45;
}

.kt-style-settings-panel .form-table td > select,
.kt-style-settings-panel .kt-style-input-stack > select {
    width: 220px;
    max-width: 100%;
}

.kt-toggle-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.kt-toggle-control input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.kt-toggle-slider {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #d2ddec;
    transition: background 0.18s ease;
}

.kt-toggle-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(21, 40, 76, 0.24);
    transition: transform 0.18s ease;
}

.kt-toggle-control input[type="checkbox"]:checked + .kt-toggle-slider {
    background: #0b57d0;
}

.kt-toggle-control input[type="checkbox"]:checked + .kt-toggle-slider::after {
    transform: translateX(18px);
}

.kt-toggle-control input[type="checkbox"]:focus + .kt-toggle-slider {
    box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.2);
}

.kt-toggle-label {
    color: #17345e;
    font-weight: 600;
}

.kt-editor-section-privacy .kt-privacy-toggle-row td,
.kt-editor-section-privacy .kt-privacy-fullrow td {
    padding-left: 0;
    padding-right: 0;
}

.kt-editor-section-privacy .kt-privacy-text-row .description,
.kt-editor-section-privacy .kt-gdpr-text-row .description {
    margin-top: 10px;
}

.kt-editor-section-privacy .kt-privacy-toggle-row + .kt-privacy-fullrow td {
    padding-top: 10px;
}

.kt-editor-section-privacy .kt-privacy-toggle-row {
    border-top: 1px solid #e6eef9;
}

.kt-editor-section-privacy .kt-privacy-toggle-row:first-child {
    border-top: 0;
}

/* Preview fine-tuning now lives in assets/css/klicktipp-frontend.css
 * under .kt-unified-preview-canvas to keep block/editor preview parity.
 */

@media (max-width: 1200px) {
    .kt-editor-flow-nav {
        position: static;
    }

    .kt-field-table-head {
        display: none;
        min-width: 0;
    }

    .kt-field-main {
        grid-template-columns: 1fr 1fr;
        min-width: 0;
    }

    .kt-field-actions {
        justify-content: flex-start;
        grid-column: 1 / -1;
    }

    .kt-field-extra {
        grid-template-columns: 1fr;
    }

    .kt-style-config-layout,
    .kt-style-design-preview-layout {
        grid-template-columns: 1fr;
    }

    .kt-style-preview-panel {
        position: static;
        top: auto;
    }

    .kt-style-input-stack {
        grid-template-columns: 1fr;
    }

    .kt-style-settings-panel .form-table td > select,
    .kt-style-settings-panel .kt-style-input-stack > select {
        width: 100%;
    }

    .kt-overview-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 780px) {
    .kt-inline-form input[type="text"] {
        min-width: 0;
    }

    .kt-overview-compact,
    .kt-form-toolbar {
        align-items: flex-start;
    }

    .kt-overview-filters {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Premium hint styling */
.kt-auth-overlay-hint,
.kt-settings-hint {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fff8e6;
    border: 1px solid #f5d67a;
    border-radius: 8px;
    color: #6b5000;
    font-size: 13px;
    line-height: 1.5;
}

.kt-auth-overlay-hint strong,
.kt-settings-hint strong {
    color: #5a4400;
}

.kt-settings-hint {
    margin-top: 12px;
}

/* Input error state */
.kt-input-error {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 1px #d63638 !important;
    background-color: #fff8f8 !important;
}
