.vmin-page {
    --vmin-blue: #246bfd;
    --vmin-blue-hover: #1556dc;
    --vmin-navy: #0f1f3d;
    --vmin-text: #344054;
    --vmin-muted: #667085;
    --vmin-border: #e4eaf2;
    --vmin-surface: #fff;
    color: var(--vmin-navy);
    display: grid;
    gap: 24px;
    width: 100%;
}

.vmin-page *,
.vmin-page *::before,
.vmin-page *::after {
    box-sizing: border-box;
}

.vmin-page h1,
.vmin-page h2,
.vmin-page h3,
.vmin-page p,
.vmin-page dl,
.vmin-page dd {
    margin: 0;
}

.vmin-page button,
.vmin-page input,
.vmin-page select {
    font: inherit;
}

.vmin-icon {
    display: block;
    height: 20px;
    width: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.vmin-page-header,
.vmin-category-header {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.vmin-page-header h1,
.vmin-category-header h1,
.vmin-connect-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
}

.vmin-page-header p,
.vmin-category-header p,
.vmin-connect-header p {
    color: var(--vmin-muted);
    font-size: 14px;
    margin-top: 6px;
}

.vmin-header-filters {
    align-items: center;
    display: flex;
    gap: 12px;
}

.vmin-search,
.vmin-select,
.vmin-activity-filters > label {
    align-items: center;
    background: var(--vmin-surface);
    border: 1px solid var(--vmin-border);
    border-radius: 9px;
    display: flex;
    min-height: 42px;
}

.vmin-search {
    color: var(--vmin-muted);
    gap: 10px;
    min-width: min(320px, 32vw);
    padding: 0 13px;
}

.vmin-search input,
.vmin-select select,
.vmin-activity-filters input,
.vmin-activity-filters select,
.vmin-form-grid input,
.vmin-form-grid select {
    background: transparent;
    border: 0;
    color: var(--vmin-navy);
    min-width: 0;
    outline: none;
    width: 100%;
}

.vmin-search input::placeholder {
    color: #98a2b3;
}

.vmin-select {
    min-width: 156px;
    padding: 0 11px;
}

.vmin-filter-submit {
    align-items: center;
    background: #fff;
    border: 1px solid var(--vmin-border);
    border-radius: 9px;
    color: var(--vmin-navy);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
    width: 42px;
}

.vmin-filter-submit:hover {
    background: #edf3ff;
    border-color: #b8cdfd;
    color: var(--vmin-blue);
}

.vmin-filter-submit:focus-visible {
    outline: 3px solid rgb(36 107 253 / 25%);
    outline-offset: 2px;
}

.vmin-search:focus-within,
.vmin-select:focus-within,
.vmin-activity-filters > label:focus-within,
.vmin-form-grid label:focus-within {
    border-color: var(--vmin-blue);
    box-shadow: 0 0 0 3px rgb(36 107 253 / 12%);
}

.vmin-category-tabs,
.vmin-details-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.vmin-category-tabs a {
    background: var(--vmin-surface);
    border: 1px solid var(--vmin-border);
    border-radius: 8px;
    color: var(--vmin-text);
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 14px;
    text-decoration: none;
}

.vmin-category-tabs a:hover,
.vmin-category-tabs a:focus-visible {
    border-color: #b8cdfd;
    color: var(--vmin-blue);
}

.vmin-category-tabs a.is-active {
    background: var(--vmin-blue);
    border-color: var(--vmin-blue);
    color: #fff;
}

.vmin-provider-section {
    display: grid;
    gap: 14px;
}

.vmin-section-heading {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.vmin-section-heading h2,
.vmin-panel-heading h2 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.vmin-section-heading p,
.vmin-panel-heading p {
    color: var(--vmin-muted);
    font-size: 13px;
    margin-top: 3px;
}

.vmin-section-heading > span {
    align-items: center;
    background: #edf3ff;
    border-radius: 999px;
    color: #1953c7;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    height: 26px;
    justify-content: center;
    min-width: 26px;
    padding: 0 8px;
}

.vmin-provider-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vmin-provider-card {
    background: var(--vmin-surface);
    border: 1px solid var(--vmin-border);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgb(15 31 61 / 4%);
    display: flex;
    flex-direction: column;
    min-height: 196px;
    padding: 18px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.vmin-provider-card:hover {
    border-color: #cbd8ec;
    box-shadow: 0 8px 22px rgb(15 31 61 / 7%);
    transform: translateY(-1px);
}

.vmin-provider-main {
    align-items: flex-start;
    display: flex;
    gap: 13px;
}

.vmin-provider-main > div {
    min-width: 0;
}

.vmin-provider-logo {
    align-items: center;
    background: color-mix(in srgb, var(--vmin-provider-colour) 12%, white);
    border: 1px solid color-mix(in srgb, var(--vmin-provider-colour) 22%, white);
    border-radius: 10px;
    color: var(--vmin-provider-colour);
    display: inline-flex;
    flex: 0 0 48px;
    font-size: 14px;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    padding: 5px;
    text-align: center;
    text-transform: none;
}

.vmin-provider-title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vmin-provider-title-row h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.vmin-provider-main p {
    color: var(--vmin-muted);
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.55;
    margin-top: 6px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.vmin-provider-card footer {
    align-items: flex-end;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}

.vmin-provider-card footer small {
    color: var(--vmin-muted);
    display: block;
    font-size: 11px;
    line-height: 1.35;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vmin-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 6px;
    line-height: 1.2;
    padding: 5px 8px;
    white-space: nowrap;
}

.vmin-badge > span {
    background: currentColor;
    border-radius: 50%;
    height: 5px;
    width: 5px;
}

.vmin-badge-success { background: #eaf8ef; color: #15803d; }
.vmin-badge-info { background: #edf4ff; color: #1d5fd0; }
.vmin-badge-warning { background: #fff6e7; color: #b45309; }
.vmin-badge-danger { background: #fff0f0; color: #dc2626; }
.vmin-badge-neutral { background: #f2f4f7; color: #667085; }

.vmin-card-actions,
.vmin-details-actions,
.vmin-sync-actions,
.vmin-form-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.vmin-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 650;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.vmin-button-small {
    min-height: 34px;
    padding: 0 12px;
}

.vmin-button-primary { background: var(--vmin-blue); color: #fff; }
.vmin-button-primary:hover { background: var(--vmin-blue-hover); }
.vmin-button-secondary { background: #fff; border-color: var(--vmin-border); color: var(--vmin-navy); }
.vmin-button-secondary:hover { background: #f8fafc; border-color: #cbd5e1; }
.vmin-button-danger { background: #fff; border-color: #fecaca; color: #dc2626; }
.vmin-button-danger:hover { background: #fff1f2; }

.vmin-button:focus-visible,
.vmin-menu summary:focus-visible,
.vmin-category-tabs a:focus-visible,
.vmin-details-tabs a:focus-visible,
.vmin-back-link:focus-visible {
    outline: 3px solid rgb(36 107 253 / 25%);
    outline-offset: 2px;
}

.vmin-button:disabled,
.vmin-button[disabled] {
    cursor: not-allowed;
    opacity: .5;
}

.vmin-menu {
    position: relative;
}

.vmin-menu summary {
    align-items: center;
    background: #fff;
    border: 1px solid var(--vmin-border);
    border-radius: 8px;
    color: var(--vmin-text);
    cursor: pointer;
    display: flex;
    height: 34px;
    justify-content: center;
    list-style: none;
    width: 36px;
}

.vmin-menu summary::-webkit-details-marker { display: none; }

.vmin-menu > div {
    background: #fff;
    border: 1px solid var(--vmin-border);
    border-radius: 9px;
    box-shadow: 0 14px 32px rgb(15 31 61 / 15%);
    min-width: 168px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
}

.vmin-menu a,
.vmin-menu button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--vmin-navy);
    cursor: pointer;
    display: block;
    font-size: 13px;
    padding: 9px 10px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.vmin-menu a:hover,
.vmin-menu button:hover { background: #f5f7fb; }
.vmin-menu .is-danger { color: #dc2626; }

.vmin-empty-state {
    align-items: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 56px 24px;
    text-align: center;
}

.vmin-empty-state > span {
    align-items: center;
    background: #edf3ff;
    border-radius: 10px;
    color: var(--vmin-blue);
    display: flex;
    height: 48px;
    justify-content: center;
    margin-bottom: 14px;
    width: 48px;
}

.vmin-empty-state h2 { font-size: 17px; }
.vmin-empty-state p { color: var(--vmin-muted); font-size: 13px; margin: 5px 0 18px; }

.vmin-back-link {
    align-items: center;
    color: var(--vmin-muted);
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    justify-self: start;
    text-decoration: none;
}

.vmin-back-link:hover { color: var(--vmin-blue); }
.vmin-back-link .vmin-icon { height: 17px; width: 17px; }

.vmin-category-header {
    background: #fff;
    border: 1px solid var(--vmin-border);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgb(15 31 61 / 4%);
    min-height: 140px;
    padding: 24px;
}

.vmin-category-illustration {
    align-items: center;
    background: #edf3ff;
    border-radius: 12px;
    color: var(--vmin-blue);
    display: flex;
    flex: 0 0 74px;
    height: 74px;
    justify-content: center;
}

.vmin-category-illustration .vmin-icon { height: 38px; width: 38px; }

.vmin-details-page { gap: 18px; }

.vmin-details-hero,
.vmin-panel,
.vmin-connect-card {
    background: #fff;
    border: 1px solid var(--vmin-border);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgb(15 31 61 / 4%);
}

.vmin-details-hero {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 22px 24px;
}

.vmin-details-provider {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.vmin-details-provider h1 { font-size: 24px; font-weight: 700; }
.vmin-details-provider p { color: var(--vmin-muted); font-size: 13px; margin-top: 5px; }

.vmin-connection-meta {
    border-top: 1px solid var(--vmin-border);
    display: grid;
    gap: 16px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 18px;
}

.vmin-connection-meta div,
.vmin-detail-list div {
    min-width: 0;
}

.vmin-connection-meta dt,
.vmin-detail-list dt {
    color: var(--vmin-muted);
    font-size: 11px;
    font-weight: 600;
}

.vmin-connection-meta dd,
.vmin-detail-list dd {
    color: var(--vmin-navy);
    font-size: 13px;
    font-weight: 650;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.vmin-details-tabs {
    background: #fff;
    border: 1px solid var(--vmin-border);
    border-radius: 10px;
    padding: 0 14px;
}

.vmin-details-tabs a {
    border-bottom: 2px solid transparent;
    color: var(--vmin-muted);
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 650;
    padding: 14px 12px 12px;
    text-decoration: none;
}

.vmin-details-tabs a.is-active {
    border-color: var(--vmin-blue);
    color: var(--vmin-blue);
}

.vmin-overview-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vmin-panel { padding: 20px; }

.vmin-panel-heading {
    align-items: center;
    border-bottom: 1px solid var(--vmin-border);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.vmin-panel-heading > a {
    align-items: center;
    color: var(--vmin-blue);
    display: inline-flex;
    font-size: 12px;
    font-weight: 650;
    gap: 4px;
    text-decoration: none;
    white-space: nowrap;
}

.vmin-panel-heading > a .vmin-icon { height: 16px; width: 16px; }

.vmin-detail-list { display: grid; gap: 0; }
.vmin-detail-list div { align-items: center; border-bottom: 1px solid #eef1f5; display: flex; gap: 16px; justify-content: space-between; padding: 10px 0; }
.vmin-detail-list div:last-child { border-bottom: 0; }
.vmin-detail-list dd { max-width: 62%; text-align: right; }

.vmin-inline-alert {
    background: #f4f7ff;
    border: 1px solid #cfddff;
    border-radius: 9px;
    color: #284b89;
    display: grid;
    font-size: 13px;
    gap: 3px;
    margin-top: 14px;
    padding: 12px 14px;
}

.vmin-inline-alert-danger { background: #fff4f4; border-color: #fecaca; color: #991b1b; }
.vmin-inline-alert span { line-height: 1.45; }

.vmin-entity-list {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vmin-entity-list > div,
.vmin-recent-list > div {
    align-items: center;
    border-bottom: 1px solid #eef1f5;
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 11px 0;
}

.vmin-entity-list > div { grid-template-columns: auto minmax(0, 1fr) auto; }
.vmin-entity-list > div:nth-last-child(-n+2) { border-bottom: 0; }
.vmin-entity-list strong,
.vmin-recent-list strong { font-size: 13px; }
.vmin-entity-list small,
.vmin-recent-list small,
.vmin-recent-list span { color: var(--vmin-muted); font-size: 12px; }

.vmin-check {
    align-items: center;
    background: #eaf8ef;
    border-radius: 7px;
    color: #15803d;
    display: flex;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.vmin-check .vmin-icon { height: 15px; width: 15px; }
.vmin-recent-list > div { grid-template-columns: auto minmax(0, 1.4fr) minmax(90px, .7fr) minmax(120px, .8fr); }

.vmin-empty-compact {
    color: var(--vmin-muted);
    font-size: 13px;
    padding: 18px 8px;
    text-align: center;
}

.vmin-settings-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.vmin-settings-form legend {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.vmin-toggle-row {
    align-items: center;
    border-bottom: 1px solid #eef1f5;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 13px 0;
}

.vmin-toggle-row span { display: grid; gap: 3px; }
.vmin-toggle-row strong { font-size: 13px; }
.vmin-toggle-row small { color: var(--vmin-muted); font-size: 12px; }

.vmin-toggle-row input[type="checkbox"] {
    appearance: none;
    background: #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    flex: 0 0 40px;
    height: 22px;
    position: relative;
    transition: background-color 160ms ease;
    width: 40px;
}

.vmin-toggle-row input[type="checkbox"]::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgb(15 31 61 / 25%);
    content: "";
    height: 18px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: transform 160ms ease;
    width: 18px;
}

.vmin-toggle-row input[type="checkbox"]:checked { background: var(--vmin-blue); }
.vmin-toggle-row input[type="checkbox"]:checked::after { transform: translateX(18px); }

.vmin-form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
}

.vmin-form-grid label { display: grid; font-size: 12px; font-weight: 650; gap: 7px; }
.vmin-form-grid input,
.vmin-form-grid select,
.vmin-activity-filters input,
.vmin-activity-filters select { background: #fff; border: 1px solid var(--vmin-border); border-radius: 8px; min-height: 42px; padding: 0 12px; }

.vmin-form-actions {
    border-top: 1px solid var(--vmin-border);
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
}

.vmin-sync-metrics {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.vmin-sync-metrics article { border-right: 1px solid var(--vmin-border); display: grid; gap: 6px; padding: 8px 16px; }
.vmin-sync-metrics article:first-child { padding-left: 0; }
.vmin-sync-metrics article:last-child { border-right: 0; }
.vmin-sync-metrics span { color: var(--vmin-muted); font-size: 12px; }
.vmin-sync-metrics strong { font-size: 18px; overflow-wrap: anywhere; }

.vmin-table-scroll {
    margin: 0 -20px -20px;
    overflow-x: auto;
}

.vmin-table {
    border-collapse: collapse;
    min-width: 720px;
    width: 100%;
}

.vmin-table th,
.vmin-table td {
    border-bottom: 1px solid #eef1f5;
    font-size: 12px;
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}

.vmin-table th { background: #f8fafc; color: #475467; font-weight: 700; }
.vmin-table tbody tr:hover { background: #fbfcfe; }
.vmin-table td { color: var(--vmin-text); }

.vmin-activity-filters {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1fr) 150px 150px 150px auto;
    margin-bottom: 16px;
}

.vmin-activity-filters .vmin-search { min-width: 0; }
.vmin-activity-filters > label { border: 0; min-width: 0; }
.vmin-pagination { border-top: 1px solid var(--vmin-border); margin-top: 20px; padding-top: 14px; }

.vmin-webhook-summary {
    align-items: flex-start;
    display: grid;
    gap: 20px;
    grid-template-columns: auto minmax(0, 1fr);
}

.vmin-webhook-icon {
    align-items: center;
    background: #edf3ff;
    border-radius: 10px;
    color: var(--vmin-blue);
    display: flex;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.vmin-connect-header { display: grid; gap: 2px; }

.vmin-connect-layout {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
}

.vmin-connect-steps {
    background: #fff;
    border: 1px solid var(--vmin-border);
    border-radius: 12px;
    list-style: none;
    margin: 0;
    padding: 12px;
}

.vmin-connect-steps li {
    display: grid;
    gap: 11px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 13px 12px;
    position: relative;
}

.vmin-connect-steps li::after {
    background: var(--vmin-border);
    content: "";
    height: 22px;
    left: 25px;
    position: absolute;
    top: 44px;
    width: 1px;
}

.vmin-connect-steps li:last-child::after { display: none; }
.vmin-connect-steps li > span { align-items: center; border: 1px solid #cbd5e1; border-radius: 50%; color: var(--vmin-muted); display: flex; font-size: 11px; font-weight: 700; height: 26px; justify-content: center; width: 26px; }
.vmin-connect-steps li.is-current { background: #edf3ff; border-radius: 9px; }
.vmin-connect-steps li.is-current > span { background: var(--vmin-blue); border-color: var(--vmin-blue); color: #fff; }
.vmin-connect-steps div { display: grid; gap: 4px; }
.vmin-connect-steps strong { font-size: 13px; }
.vmin-connect-steps small { color: var(--vmin-muted); font-size: 11px; line-height: 1.45; }

.vmin-connect-card {
    justify-self: stretch;
    max-width: 760px;
    padding: 28px;
}

.vmin-connect-card h2 { font-size: 21px; margin-top: 18px; }
.vmin-connect-card > p { color: var(--vmin-muted); font-size: 13px; line-height: 1.6; margin-top: 7px; }

.vmin-reassurance-list { display: grid; gap: 0; margin-top: 20px; }
.vmin-reassurance-list > div { align-items: center; border-bottom: 1px solid #eef1f5; display: grid; gap: 12px; grid-template-columns: auto minmax(0, 1fr); padding: 12px 0; }
.vmin-reassurance-list > div > span { align-items: center; background: #edf3ff; border-radius: 8px; color: var(--vmin-blue); display: flex; height: 36px; justify-content: center; width: 36px; }
.vmin-reassurance-list > div > span .vmin-icon { height: 18px; width: 18px; }
.vmin-reassurance-list > div > div { display: grid; gap: 3px; }
.vmin-reassurance-list strong { font-size: 13px; }
.vmin-reassurance-list small { color: var(--vmin-muted); font-size: 11px; }

.vmin-connect-cta { margin-top: 22px; width: 100%; }
.vmin-connect-note { color: var(--vmin-muted); display: block; font-size: 11px; margin-top: 8px; text-align: center; }

@media (max-width: 1180px) {
    .vmin-provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vmin-activity-filters { grid-template-columns: minmax(200px, 1fr) 150px 150px; }
    .vmin-activity-filters .vmin-button { grid-column: span 1; }
}

@media (max-width: 900px) {
    .vmin-page-header { align-items: stretch; flex-direction: column; }
    .vmin-header-filters { width: 100%; }
    .vmin-search { flex: 1; min-width: 0; }
    .vmin-details-hero { grid-template-columns: minmax(0, 1fr); }
    .vmin-details-actions { grid-row: 2; }
    .vmin-connection-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vmin-overview-grid { grid-template-columns: 1fr; }
    .vmin-sync-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vmin-sync-metrics article:nth-child(2) { border-right: 0; }
    .vmin-sync-metrics article:nth-child(n+3) { border-top: 1px solid var(--vmin-border); margin-top: 10px; padding-top: 16px; }
    .vmin-connect-layout { grid-template-columns: 1fr; }
    .vmin-connect-steps { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); overflow-x: auto; }
    .vmin-connect-steps li::after { display: none; }
    .vmin-connect-card { max-width: none; }
}

@media (max-width: 700px) {
    .vmin-page { gap: 18px; }
    .vmin-page-header h1,
    .vmin-category-header h1,
    .vmin-connect-header h1 { font-size: 1.625rem; }
    .vmin-provider-grid { grid-template-columns: 1fr; }
    .vmin-header-filters { align-items: stretch; flex-direction: column; }
    .vmin-select { width: 100%; }
    .vmin-filter-submit { align-self: flex-end; }
    .vmin-category-header { align-items: flex-start; }
    .vmin-category-illustration { flex-basis: 54px; height: 54px; width: 54px; }
    .vmin-details-provider { align-items: flex-start; }
    .vmin-details-actions { align-items: stretch; flex-direction: column; }
    .vmin-details-actions .vmin-button { width: 100%; }
    .vmin-details-actions .vmin-menu { align-self: flex-end; }
    .vmin-connection-meta { grid-template-columns: 1fr 1fr; }
    .vmin-entity-list { grid-template-columns: 1fr; }
    .vmin-entity-list > div:nth-last-child(-n+2) { border-bottom: 1px solid #eef1f5; }
    .vmin-entity-list > div:last-child { border-bottom: 0; }
    .vmin-recent-list > div { grid-template-columns: auto minmax(0, 1fr); }
    .vmin-recent-list > div > small,
    .vmin-recent-list > div > span { grid-column: 2; }
    .vmin-form-grid { grid-template-columns: 1fr; }
    .vmin-activity-filters { grid-template-columns: 1fr 1fr; }
    .vmin-activity-filters .vmin-search { grid-column: 1 / -1; }
    .vmin-activity-filters .vmin-button { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .vmin-provider-card,
    .vmin-panel,
    .vmin-details-hero,
    .vmin-connect-card { padding: 16px; }
    .vmin-provider-card footer { align-items: flex-start; flex-direction: column; }
    .vmin-card-actions { justify-content: flex-end; width: 100%; }
    .vmin-connection-meta { grid-template-columns: 1fr; }
    .vmin-detail-list div { align-items: flex-start; flex-direction: column; gap: 4px; }
    .vmin-detail-list dd { max-width: none; text-align: left; }
    .vmin-sync-metrics { grid-template-columns: 1fr; }
    .vmin-sync-metrics article { border-bottom: 1px solid var(--vmin-border); border-right: 0; padding: 12px 0; }
    .vmin-sync-metrics article:nth-child(n+3) { margin-top: 0; }
    .vmin-sync-actions,
    .vmin-form-actions { align-items: stretch; flex-direction: column; }
    .vmin-sync-actions .vmin-button,
    .vmin-form-actions .vmin-button { width: 100%; }
    .vmin-activity-filters { grid-template-columns: 1fr; }
    .vmin-activity-filters > * { grid-column: 1 !important; }
    .vmin-webhook-summary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .vmin-page *,
    .vmin-page *::before,
    .vmin-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
