.marklane-admin-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 16px;
}

.marklane-admin-main {
    flex: 1 1 760px;
    min-width: 0;
}

.marklane-admin-sidebar {
    flex: 0 0 300px;
    display: grid;
    gap: 16px;
}

.marklane-side-card {
    padding: 18px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.marklane-side-card h2 {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
}

.marklane-side-card p {
    margin: 0 0 12px;
    color: #50575e;
}

.marklane-side-card p:last-child {
    margin-bottom: 0;
}

.marklane-side-card__section + .marklane-side-card__section {
    margin-top: 0;
}

.marklane-side-card__divider {
    margin: 16px 0;
    border: 0;
    border-top: 1px solid #dcdcde;
}

.marklane-accordion {
    margin-top: 16px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    border-left: 4px solid #72aee6;
}

.marklane-accordion > summary {
    display: block;
    margin: 0;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    color: #1d2327;
    background: #fff;
}

.marklane-accordion > summary:hover {
    background: #f6f7f7;
}

.marklane-accordion > summary:focus {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

.marklane-accordion > summary::-webkit-details-marker {
    display: none;
}

.marklane-accordion > summary::before {
    content: "\25B6";
    display: inline-block;
    margin-right: 8px;
    font-size: 11px;
    line-height: 1;
    transition: transform 0.15s ease;
}

.marklane-accordion[open] > summary::before {
    transform: rotate(90deg);
}

.marklane-accordion__body {
    border-top: 1px solid #dcdcde;
}

.marklane-accordion__body .widefat,
.marklane-accordion__body .notice.inline {
    margin: 0;
}

.marklane-accordion__body .widefat {
    border: 0;
    box-shadow: none;
}

.marklane-accordion__body .notice.inline + .notice.inline {
    margin-top: 12px;
}

.marklane-label-with-help {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.marklane-help-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #646970;
    cursor: help;
    vertical-align: middle;
}

.marklane-help-tip:hover,
.marklane-help-tip:focus-visible {
    color: #2271b1;
    outline: none;
}

.marklane-help-tip .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.marklane-help-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    z-index: 20;
    display: none;
    min-width: 220px;
    max-width: 320px;
    padding: 8px 10px;
    border-radius: 4px;
    background: #1d2327;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.marklane-help-tip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    display: none;
    border: 6px solid transparent;
    border-top-color: #1d2327;
}

.marklane-help-tip:hover::after,
.marklane-help-tip:hover::before,
.marklane-help-tip:focus-visible::after,
.marklane-help-tip:focus-visible::before {
    display: block;
}

@media (max-width: 1080px) {
    .marklane-admin-layout {
        flex-direction: column;
    }

    .marklane-admin-sidebar {
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}
