:root {
    --sv-primary: #2563eb;
    --sv-primary-dark: #1e40af;
    --sv-primary-light: #dbeafe;
    --sv-bg: #ffffff;
    --sv-bg-secondary: #f8fafc;
    --sv-sidebar: #ffffff;
    --sv-card: #ffffff;
    --sv-card-soft: #f8fafc;
    --sv-border: #e2e8f0;
    --sv-text: #0f172a;
    --sv-muted: #64748b;
    --sv-muted-strong: #334155;
    --sv-success: #22c55e;
    --sv-warning: #f59e0b;
    --sv-danger: #ef4444;
    --sv-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    --sv-shadow-soft: 0 8px 24px rgba(15, 23, 42, .06);
    --sv-radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--sv-bg);
    color: var(--sv-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.sv-dashboard-body {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(37, 99, 235, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .42), transparent 70%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.sv-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.sv-container-narrow {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
}

.sv-section { padding: 76px 0; }
.sv-section-tight { padding: 48px 0; }
.sv-main { min-height: calc(100vh - 152px); }
.sv-muted { color: var(--sv-muted); }

.sv-kicker {
    color: var(--sv-primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.sv-navbar,
.sv-footer {
    border-color: var(--sv-border);
    border-style: solid;
}

.sv-navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-width: 0 0 1px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.sv-nav-inner,
.sv-footer-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sv-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--sv-text);
}

.sv-mark {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(37, 99, 235, .2);
    border-radius: var(--sv-radius);
    display: grid;
    place-items: center;
    background: var(--sv-primary);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .2);
}

.sv-nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--sv-muted);
    font-size: 14px;
    font-weight: 650;
}

.sv-nav-links a { transition: color .18s ease; }
.sv-nav-links a:hover,
.sv-nav-links a[aria-current="page"] { color: var(--sv-primary-dark); }

.sv-public-nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.sv-public-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: #ffffff;
    color: var(--sv-text);
    box-shadow: var(--sv-shadow-soft);
    cursor: pointer;
}

.sv-public-nav-toggle span:not(.sv-sr-only) {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--sv-text);
    transition: transform .18s ease, opacity .18s ease;
}

.sv-public-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sv-public-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.sv-public-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.sv-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sv-nav-actions,
.sv-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--sv-radius);
    border: 1px solid var(--sv-primary);
    background: #ffffff;
    color: var(--sv-primary);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.sv-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .16);
}

.sv-button-primary {
    border-color: var(--sv-primary);
    background: var(--sv-primary);
    color: #ffffff;
}

.sv-button-ghost {
    border-color: transparent;
    background: transparent;
    color: var(--sv-muted-strong);
}

.sv-button-danger {
    border-color: var(--sv-danger);
    background: #ffffff;
    color: var(--sv-danger);
}

.sv-button-danger:hover {
    background: #fef2f2;
    box-shadow: 0 12px 24px rgba(239, 68, 68, .14);
}

.sv-button-compact {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
}

.sv-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 999px;
    padding: 0 12px;
    color: var(--sv-primary-dark);
    background: var(--sv-primary-light);
    font-size: 13px;
    font-weight: 800;
}

.sv-card,
.sv-feature-card,
.sv-pricing-card,
.sv-form-panel {
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: var(--sv-card);
    box-shadow: var(--sv-shadow-soft);
}

.sv-card,
.sv-feature-card,
.sv-pricing-card {
    padding: 24px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.sv-card:hover,
.sv-feature-card:hover,
.sv-pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, .34);
    box-shadow: var(--sv-shadow);
}

.sv-card h2,
.sv-card h3,
.sv-feature-card h3,
.sv-pricing-card h3 { margin: 0 0 10px; }

.sv-card p,
.sv-feature-card p,
.sv-pricing-card p {
    margin: 0;
    color: var(--sv-muted);
    line-height: 1.65;
}

.sv-grid { display: grid; gap: 18px; }
.sv-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sv-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sv-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sv-section-header {
    max-width: 760px;
    margin-bottom: 34px;
}

.sv-section-header-centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.sv-section-header h1,
.sv-section-header h2 {
    margin: 10px 0 14px;
    font-size: clamp(32px, 4.6vw, 56px);
    line-height: 1.04;
}

.sv-section-header p {
    margin: 0;
    color: var(--sv-muted);
    font-size: 18px;
    line-height: 1.7;
}

.sv-hero { padding: 72px 0 54px; }

.sv-title {
    margin: 16px 0 18px;
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.06;
    font-weight: 800;
}

.sv-copy {
    color: var(--sv-muted);
    font-size: 17px;
    line-height: 1.7;
}

.sv-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.sv-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.sv-list li {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    gap: 10px;
    color: var(--sv-muted-strong);
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.sv-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--sv-success);
    flex: 0 0 auto;
    align-self: center;
}

.sv-status-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--sv-border);
}

.sv-status-list li:last-child {
    border-bottom: 0;
}

.sv-status-list li::before {
    display: none;
}

.sv-status-list li > strong,
.sv-status-list li > span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    line-height: 1.3;
}

.sv-price {
    font-size: 42px;
    font-weight: 800;
    margin: 18px 0 4px;
}

.sv-price small {
    color: var(--sv-muted);
    font-size: 15px;
    font-weight: 600;
}

.sv-pricing-card-featured {
    border-color: rgba(37, 99, 235, .55);
    position: relative;
}

.sv-faq { display: grid; gap: 12px; }

.sv-faq details {
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: #ffffff;
    padding: 18px 20px;
    box-shadow: var(--sv-shadow-soft);
}

.sv-faq summary {
    cursor: pointer;
    font-weight: 800;
}

.sv-faq p {
    color: var(--sv-muted);
    line-height: 1.7;
}

.sv-form-panel {
    padding: 26px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.sv-form-grid { display: grid; gap: 16px; }

.sv-share-form-row {
    align-items: start;
}

.sv-share-resource-hidden {
    display: none !important;
}

.sv-share-card {
    padding: 30px 36px;
    min-width: 0;
    max-width: 100%;
}

.sv-share-card:hover {
    transform: none;
}

.sv-share-card-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--sv-border);
}

.sv-share-card-header h3 {
    margin: 10px 0 8px;
    font-size: 24px;
}

.sv-share-card-header p {
    max-width: 760px;
}

.sv-share-form {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.sv-share-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
    align-items: start;
    min-width: 0;
}

.sv-share-form-grid > *,
.sv-share-resource-field {
    min-width: 0;
}

.sv-share-form-grid > * {
    min-width: 0;
}

.sv-share-form-actions {
    justify-content: flex-end;
    padding-top: 8px;
    margin-top: 0;
}

.sv-share-form-actions .sv-button {
    min-width: 230px;
}

.sv-settings-page {
    display: grid;
    gap: 18px;
}

.sv-settings-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--sv-shadow-soft);
}

.sv-settings-header h2 {
    margin: 4px 0 8px;
    font-size: 30px;
    line-height: 1.15;
}

.sv-settings-header p:not(.sv-kicker) {
    max-width: 720px;
    margin: 0;
    color: var(--sv-muted);
    line-height: 1.6;
}

.sv-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.sv-settings-grid > * {
    min-width: 0;
    max-width: 100%;
    height: 100%;
}

.sv-settings-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    height: 100%;
}

.sv-settings-card:hover,
.sv-settings-card .sv-card:hover {
    transform: none;
}

.sv-settings-card h2,
.sv-settings-card h3 {
    margin: 0;
    color: var(--sv-text);
    line-height: 1.2;
}

.sv-settings-card > .sv-muted,
.sv-settings-card > p {
    margin: 0;
    line-height: 1.65;
}

.sv-settings-card .sv-form-grid {
    gap: 14px;
}

.sv-settings-card .sv-form-actions {
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
    padding-top: 4px;
}

.sv-settings-card .sv-list {
    margin-top: 0;
}

.sv-settings-card .sv-list li {
    align-items: center;
}

.sv-settings-card form {
    min-width: 0;
}

.sv-settings-card .sv-button {
    min-width: 168px;
}

.sv-family-member-emergency-card {
    grid-column: 1 / -1;
    gap: 18px;
}

.sv-emergency-hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sv-border);
}

.sv-emergency-hero h2 {
    margin: 4px 0 8px;
}

.sv-emergency-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sv-primary), #7c3aed);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 18px 30px rgba(37, 99, 235, .22);
}

.sv-emergency-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sv-emergency-summary {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--sv-border);
    border-radius: 14px;
    background: var(--sv-card-soft);
}

.sv-emergency-summary span {
    color: var(--sv-muted);
    font-size: 13px;
    font-weight: 800;
}

.sv-emergency-summary strong {
    color: var(--sv-text);
    font-size: 24px;
    line-height: 1;
}

.sv-emergency-request-panel {
    display: grid;
    gap: 14px;
    min-height: 0;
}

.sv-emergency-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.sv-emergency-panel-header h3,
.sv-emergency-panel-header p {
    margin: 0;
}

.sv-emergency-panel-header p {
    margin-top: 6px;
}

.sv-emergency-search {
    display: grid;
    gap: 8px;
}

.sv-emergency-search span {
    color: var(--sv-text);
    font-weight: 850;
}

.sv-emergency-search input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--sv-border);
    border-radius: 14px;
    padding: 0 16px;
    background: #ffffff;
    color: var(--sv-text);
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.sv-emergency-search input:focus {
    border-color: var(--sv-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.sv-emergency-request-list {
    display: grid;
    gap: 12px;
    max-height: 360px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 8px 4px 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, .55) rgba(226, 232, 240, .85);
}

.sv-emergency-request-list::-webkit-scrollbar {
    width: 10px;
}

.sv-emergency-request-list::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, .85);
    border-radius: 999px;
}

.sv-emergency-request-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--sv-primary), #7c3aed);
    border: 2px solid rgba(226, 232, 240, .85);
    border-radius: 999px;
}

.sv-emergency-request-item[hidden],
.sv-emergency-empty[hidden] {
    display: none !important;
}

.sv-emergency-request-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--sv-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.sv-emergency-request-main {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    gap: 12px;
}

.sv-emergency-request-main > div:last-child {
    min-width: 0;
}

.sv-emergency-avatar {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: var(--sv-primary-light);
    color: var(--sv-primary-dark);
    font-weight: 900;
}

.sv-emergency-request-main strong,
.sv-emergency-request-main span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sv-emergency-request-main strong {
    color: var(--sv-text);
}

.sv-emergency-request-main span,
.sv-emergency-request-meta span:last-child,
.sv-emergency-empty span {
    color: var(--sv-muted);
}

.sv-emergency-request-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    padding-left: 52px;
}

.sv-emergency-request-item form {
    display: flex;
    justify-content: flex-start;
    padding-left: 52px;
}

.sv-emergency-request-item .sv-button {
    width: min(100%, 220px);
    min-width: 0;
}

.sv-emergency-empty {
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px dashed var(--sv-border);
    border-radius: 16px;
    background: var(--sv-card-soft);
    text-align: center;
}

.sv-emergency-empty strong {
    color: var(--sv-text);
}

.sv-mfa-card {
    gap: 18px;
}

.sv-mfa-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.sv-mfa-status-row strong {
    color: var(--sv-text);
}

.sv-mfa-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.sv-mfa-actions form {
    min-width: 0;
}

.sv-mfa-actions .sv-button {
    width: 100%;
}

.sv-mfa-action-form {
    display: flex;
}

.sv-mfa-inline-form {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 10px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: var(--sv-card-soft);
}

.sv-mfa-inline-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    padding: 0 14px;
    background: #ffffff;
}

.sv-mfa-inline-form .sv-field {
    margin: 0;
}

.sv-mfa-inline-form .sv-field span {
    display: block;
    margin-bottom: 8px;
    color: var(--sv-muted-strong);
    font-weight: 800;
}

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

.sv-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.sv-profile-actions {
    justify-content: flex-start;
}

.sv-profile-submit {
    width: 228px;
}

.sv-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--sv-muted-strong);
    font-weight: 800;
}

.sv-field input,
.sv-field select,
.sv-field textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: #ffffff;
    color: var(--sv-text);
    padding: 0 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.sv-field textarea {
    min-height: 140px;
    padding-top: 12px;
    resize: vertical;
}

.sv-field input:focus,
.sv-field select:focus,
.sv-field textarea:focus {
    border-color: var(--sv-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.sv-field select[multiple] {
    min-height: 52px;
    height: auto;
    padding: 8px 12px;
}

.sv-field .select2-container {
    width: 100% !important;
    max-width: 100%;
}

.sv-field .select2-container--securevault .select2-selection--single {
    min-height: 46px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: #ffffff;
    display: flex;
    align-items: center;
    outline: none !important;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.sv-field .select2-container--securevault .select2-selection--single:focus {
    outline: none !important;
}

.sv-field .select2-container--securevault.select2-container--focus .select2-selection--single,
.sv-field .select2-container--securevault.select2-container--open .select2-selection--single,
.sv-field .select2-container--securevault.select2-container--focus .select2-selection--multiple,
.sv-field .select2-container--securevault.select2-container--open .select2-selection--multiple {
    border-color: var(--sv-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.sv-field .select2-container--securevault .select2-selection__rendered {
    color: var(--sv-text);
    line-height: 46px;
    padding-left: 14px;
    padding-right: 42px;
}

.sv-field .select2-container--securevault .select2-selection__placeholder {
    color: var(--sv-muted);
}

.sv-field .select2-container--securevault .select2-selection__arrow {
    height: 44px;
    right: 12px;
}

.sv-field .select2-container--securevault .select2-selection__clear {
    color: var(--sv-muted);
    font-size: 20px;
    margin-right: 28px;
}

.sv-field .select2-container--securevault .select2-selection--multiple {
    min-height: 52px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: #ffffff;
    display: block;
    padding: 7px 10px;
    cursor: text;
    outline: none !important;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.sv-field .select2-container--securevault .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 36px;
    padding: 0;
    margin: 0;
    line-height: 1.2;
}

.sv-field .select2-container--securevault .select2-selection--multiple .select2-search--inline {
    display: flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
}

.sv-field .select2-container--securevault .select2-selection--multiple .select2-search__field {
    width: 100% !important;
    min-width: min(260px, 100%);
    min-height: 32px;
    margin: 0;
    border: 0;
    padding: 0 4px;
    color: var(--sv-text);
    font: inherit;
}

.sv-field .select2-container--securevault .select2-selection--multiple .select2-search__field:focus {
    box-shadow: none;
}

.sv-field .select2-container--securevault .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    margin: 0;
    border: 1px solid rgba(37, 99, 235, .22);
    border-radius: 999px;
    background: var(--sv-light-blue);
    color: var(--sv-dark-blue);
    padding: 0 10px;
    font-size: 13px;
    font-weight: 800;
}

.sv-field .select2-container--securevault .select2-selection--multiple .select2-selection__choice__remove {
    order: 2;
    border: 0;
    color: var(--sv-dark-blue);
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

.select2-container--securevault .select2-dropdown {
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    box-shadow: var(--sv-shadow-soft);
    overflow: hidden;
    z-index: 1200;
    max-width: min(720px, calc(100vw - 32px));
}

.select2-container--securevault .select2-dropdown.sv-family-member-dropdown,
.select2-container--securevault .select2-dropdown.sv-share-resource-dropdown {
    max-width: min(720px, calc(100vw - 32px));
}

.select2-container--securevault .select2-search--dropdown {
    padding: 10px;
}

.select2-container--securevault .select2-search--dropdown .select2-search__field {
    min-height: 40px;
    border: 1px solid var(--sv-border);
    border-radius: 10px;
    padding: 0 12px;
    outline: none !important;
}

.select2-container--securevault .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--sv-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.select2-container--securevault .select2-results__option {
    padding: 10px 14px;
    color: var(--sv-text);
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

.select2-container--securevault .select2-results > .select2-results__options {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
}

.select2-container--securevault .select2-results__option--highlighted[aria-selected] {
    background: var(--sv-primary);
    color: #ffffff;
}

.select2-container--securevault .select2-results__option[aria-selected="true"] {
    background: var(--sv-light-blue);
    color: var(--sv-dark-blue);
}

.sv-select2-fallback {
    min-height: 46px;
}

.sv-check-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--sv-muted-strong);
    line-height: 1.5;
}

.sv-check-field input { margin-top: 4px; }

.sv-alert {
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: #ffffff;
    padding: 14px 16px;
    margin: 16px auto;
    box-shadow: var(--sv-shadow-soft);
}

.sv-alert-success { border-color: rgba(34, 197, 94, .45); }
.sv-alert-danger { border-color: rgba(239, 68, 68, .45); }
.sv-alert-warning { border-color: rgba(245, 158, 11, .55); }

.sv-cta-band {
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: linear-gradient(135deg, #ffffff, var(--sv-primary-light));
    padding: 42px;
    box-shadow: var(--sv-shadow-soft);
}

.sv-footer {
    border-width: 1px 0 0;
    background: var(--sv-bg-secondary);
}

.sv-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 28px;
    padding: 46px 0;
}

.sv-footer a { color: var(--sv-muted); }
.sv-footer a:hover { color: var(--sv-primary-dark); }

.sv-auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background: var(--sv-bg-secondary);
}

.sv-auth-panel { width: min(480px, 100%); }

.sv-auth-header {
    margin: 22px 0;
}

.sv-auth-header h1 {
    margin: 0 0 8px;
    font-size: 32px;
}

.sv-dashboard-shell {
    height: 100vh;
    display: grid;
    grid-template-columns: 284px 1fr;
    background: var(--sv-bg-secondary);
    overflow: hidden;
}

.sv-sidebar-backdrop {
    display: none;
}

.sv-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid var(--sv-border);
    padding: 22px;
    box-shadow: 10px 0 30px rgba(15, 23, 42, .035);
    overflow-y: auto;
}

.sv-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sv-sidebar-close,
.sv-sidebar-toggle {
    display: none;
}

.sv-sidebar-section { margin-top: 26px; }

.sv-sidebar-label {
    margin: 0 0 10px;
    color: var(--sv-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.sv-sidebar-nav { display: grid; gap: 7px; }

.sv-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 12px;
    border-radius: var(--sv-radius);
    color: var(--sv-muted-strong);
    transition: background .18s ease, color .18s ease;
    border-left: 3px solid transparent;
}

.sv-sidebar-link:hover,
.sv-sidebar-link[aria-current="page"] {
    background: var(--sv-primary-light);
    color: var(--sv-primary-dark);
    border-left-color: var(--sv-primary);
}

.sv-sidebar-download {
    border-color: rgba(37, 99, 235, .24);
    background: var(--sv-primary);
    color: #ffffff;
}

.sv-sidebar-download:hover {
    background: var(--sv-primary-dark);
    color: #ffffff;
}

.sv-dashboard-main {
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 24px;
}

.sv-dashboard-topbar {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--sv-border);
    margin: -24px -24px 24px;
    padding: 0 24px;
    background: #ffffff;
}

.sv-dashboard-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sv-dropdown-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sv-dashboard-search {
    min-width: 220px;
}

.sv-icon-button {
    width: 42px;
    height: 42px;
    border-radius: var(--sv-radius);
    border: 1px solid var(--sv-border);
    background: #ffffff;
    color: var(--sv-primary-dark);
}

.sv-profile-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: #ffffff;
    padding: 7px 10px;
}

.sv-avatar {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sv-primary);
    color: #ffffff;
    font-weight: 800;
}

.sv-auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--sv-primary-dark);
    font-weight: 700;
    font-size: 14px;
}

.sv-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.sv-toolbar-break {
    flex-basis: 100%;
    justify-content: flex-end;
}

.sv-create-panel {
    margin-bottom: 18px;
}

.sv-create-summary {
    display: none;
}

.sv-create-panel:not([open]) {
    display: none;
}

.sv-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sv-filter-row .sv-field {
    min-width: min(220px, 100%);
}

.sv-team-toolbar {
    align-items: center;
}

.sv-team-toolbar-actions {
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.sv-team-toolbar-actions .sv-field {
    width: min(360px, 34vw);
    min-width: 280px;
}

.sv-team-toolbar-actions .sv-button {
    white-space: nowrap;
}

.sv-table-card {
    overflow-x: auto;
    overflow-y: visible;
    padding: 0;
    margin-top: 16px;
}

.sv-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.sv-table th,
.sv-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--sv-border);
    text-align: left;
    vertical-align: top;
}

.sv-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    color: var(--sv-muted);
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sv-table tbody tr {
    transition: background .16s ease;
}

.sv-table tbody tr:hover {
    background: #f8fafc;
}

.sv-table tr:last-child td {
    border-bottom: 0;
}

.sv-table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 220px;
}

.sv-business-settings-grid,
.sv-business-workspace-summary,
.sv-employee-settings-grid,
.sv-employee-team-grid,
.sv-family-settings-grid {
    align-items: start;
}

.sv-business-settings-grid > *,
.sv-business-workspace-summary > *,
.sv-employee-settings-grid > *,
.sv-employee-team-grid > *,
.sv-family-settings-grid > * {
    min-width: 0;
}

.sv-business-settings-grid .sv-form-actions,
.sv-employee-settings-grid .sv-form-actions,
.sv-family-settings-grid .sv-form-actions {
    flex-wrap: wrap;
}

.sv-table-actions .sv-action-menu summary {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
}

.sv-field [type="search"] + select,
.sv-field select[data-employee-select] {
    margin-top: 10px;
}

.sv-employee-picker {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.sv-employee-search {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--sv-border);
    border-radius: 12px;
    padding: 0 14px;
    outline: none;
}

.sv-employee-search:focus {
    border-color: var(--sv-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.sv-employee-options {
    display: grid;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    border: 1px solid var(--sv-border);
    border-radius: 14px;
    background: var(--sv-card-soft);
    min-width: 0;
}

.sv-employee-option {
    cursor: pointer;
    min-width: 0;
}

.sv-employee-option[hidden],
.sv-employee-empty[hidden] {
    display: none !important;
}

.sv-employee-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sv-employee-option-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid var(--sv-border);
    border-radius: 12px;
    background: #ffffff;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
    min-width: 0;
}

.sv-employee-option-body strong,
.sv-employee-option-body small {
    display: block;
    overflow-wrap: anywhere;
}

.sv-employee-option-body small {
    color: var(--sv-muted);
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.sv-employee-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--sv-primary-light);
    color: var(--sv-primary);
    opacity: 0;
    transform: scale(.8);
    transition: opacity .16s ease, transform .16s ease;
    flex: 0 0 auto;
    font-weight: 900;
}

.sv-employee-option input:checked + .sv-employee-option-body {
    border-color: var(--sv-primary);
    background: var(--sv-primary);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, .18);
}

.sv-employee-option input:checked + .sv-employee-option-body small {
    color: rgba(255, 255, 255, .86);
}

.sv-employee-option input:checked + .sv-employee-option-body .sv-employee-check {
    background: #ffffff;
    color: var(--sv-primary);
    opacity: 1;
    transform: scale(1);
}

.sv-employee-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
    min-width: 0;
}

.sv-employee-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(37, 99, 235, .22);
    border-radius: 999px;
    background: var(--sv-primary-light);
    color: var(--sv-primary-dark);
    padding: 7px 10px;
    font-weight: 800;
    cursor: pointer;
    max-width: 100%;
}

.sv-employee-chip small {
    color: var(--sv-muted);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.sv-member-selection {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: min(320px, 46vh);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    border: 1px solid var(--sv-border);
    border-radius: 14px;
    background: var(--sv-card-soft);
}

.sv-member-option {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.sv-member-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sv-member-option span {
    display: block;
    min-height: 62px;
    padding: 12px 14px;
    border: 1px solid var(--sv-border);
    border-radius: 12px;
    background: #ffffff;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.sv-member-option strong,
.sv-member-option small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sv-member-option small {
    margin-top: 3px;
    color: var(--sv-muted);
}

.sv-member-option input:checked + span {
    border-color: var(--sv-primary);
    background: var(--sv-primary);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .18);
}

.sv-member-option input:checked + span::after {
    content: "Selected";
    display: inline-flex;
    margin-top: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.sv-member-option input:checked + span small {
    color: rgba(255, 255, 255, .82);
}

.sv-table-actions form {
    display: inline-flex;
    margin: 0;
}

.sv-action-menu {
    position: relative;
    display: inline-block;
}

.sv-action-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid var(--sv-border);
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    color: var(--sv-primary-dark);
    font-weight: 800;
    list-style: none;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

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

.sv-action-menu summary:hover {
    border-color: var(--sv-primary);
    background: var(--sv-primary-light);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .12);
}

.sv-action-panel {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: #ffffff;
    box-shadow: var(--sv-shadow-soft);
    min-width: min(360px, 78vw);
    max-width: 460px;
}

.sv-table .sv-action-panel {
    min-width: min(360px, 70vw);
}

.sv-action-menu form {
    margin: 0;
}

.sv-action-menu input,
.sv-action-menu select,
.sv-action-menu textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--sv-border);
    border-radius: 10px;
    padding: 8px 10px;
}

.sv-admin-user-actions {
    min-width: 132px;
}

.sv-admin-manage-menu {
    width: 100%;
}

.sv-admin-manage-menu summary {
    width: 100%;
    min-width: 112px;
}

.sv-admin-manage-panel {
    gap: 8px;
    min-width: min(240px, 72vw);
    padding: 12px;
}

.sv-admin-manage-header {
    display: grid;
    gap: 3px;
    padding: 0 2px 8px;
    border-bottom: 1px solid var(--sv-border);
    margin-bottom: 2px;
}

.sv-admin-manage-header span {
    color: var(--sv-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}

.sv-admin-manage-header small {
    color: var(--sv-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.sv-admin-manage-panel .sv-button,
.sv-admin-manage-panel form,
.sv-admin-manage-panel form .sv-button {
    width: 100%;
}

.sv-admin-manage-panel .sv-button {
    justify-content: center;
}

.sv-admin-actions-dialog {
    width: min(560px, calc(100vw - 32px));
}

.sv-admin-actions-panel {
    display: grid;
    gap: 18px;
    width: 100%;
}

.sv-admin-actions-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sv-admin-actions-summary > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--sv-border);
    border-radius: 14px;
    background: var(--sv-card-soft);
}

.sv-admin-actions-summary span {
    color: var(--sv-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.sv-admin-actions-summary strong {
    color: var(--sv-text);
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.sv-admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sv-admin-actions-grid form {
    display: flex;
    margin: 0;
}

.sv-admin-actions-grid .sv-button,
.sv-admin-actions-grid form .sv-button {
    width: 100%;
    justify-content: center;
}

.sv-plan-actions {
    min-width: 260px;
}

.sv-dialog {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    overflow: visible;
}

.sv-dialog::backdrop {
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(3px);
}

.sv-confirm-dialog {
    width: min(480px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    overflow: visible;
}

.sv-confirm-dialog::backdrop {
    background: rgba(15, 23, 42, .52);
    backdrop-filter: blur(3px);
}

.sv-confirm-dialog-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--sv-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .26);
}

.sv-confirm-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--sv-primary-light);
    color: var(--sv-primary-dark);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.sv-confirm-dialog-icon.is-danger {
    background: #fef2f2;
    color: var(--sv-danger);
}

.sv-confirm-dialog h2 {
    margin: 3px 0 8px;
    color: var(--sv-text);
    font-size: 20px;
}

.sv-confirm-dialog p {
    margin: 0;
    color: var(--sv-muted-strong);
    line-height: 1.6;
}

.sv-confirm-dialog-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.sv-share-master-panel {
    width: min(560px, calc(100vw - 32px));
}

.sv-share-master-field {
    display: grid;
    grid-column: 1 / -1;
    gap: 8px;
}

.sv-share-master-field label {
    color: var(--sv-text);
    font-weight: 850;
}

.sv-password-confirm-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.sv-password-confirm-wrap input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--sv-border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--sv-text);
    font: inherit;
    padding: 0 16px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.sv-password-confirm-wrap input:focus {
    border-color: var(--sv-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.sv-share-master-error {
    margin: 0;
    color: var(--sv-danger);
    font-size: 14px;
    font-weight: 800;
}

.sv-share-form-error {
    margin: 0 0 18px;
}

.sv-button-danger-solid {
    border-color: var(--sv-danger);
    background: var(--sv-danger);
    color: #ffffff;
}

.sv-button-danger-solid:hover {
    background: #dc2626;
    box-shadow: 0 12px 24px rgba(239, 68, 68, .2);
}

.sv-dialog-panel {
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 0;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .22);
}

.sv-dialog-panel.sv-form-panel {
    width: 100%;
}

.sv-dialog .sv-employee-options {
    max-height: min(260px, 38vh);
}

.sv-family-member-dialog {
    display: grid;
    gap: 18px;
}

.sv-family-member-dialog-actions {
    align-items: center;
    justify-content: flex-end;
}

.sv-family-member-dialog-actions .sv-button,
.sv-family-member-remove-form .sv-button {
    width: 168px;
}

.sv-family-member-remove-form {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--sv-border);
}

.sv-dashboard-section {
    margin-top: 18px;
}

.sv-employee-hero,
.sv-workspace-panel,
.sv-family-shared-panel,
.sv-family-personal-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--sv-shadow-soft);
}

.sv-employee-hero h2,
.sv-workspace-panel h2,
.sv-family-shared-panel h2,
.sv-family-personal-panel h2 {
    margin: 12px 0 8px;
}

.sv-employee-hero p,
.sv-workspace-panel p,
.sv-family-shared-panel p,
.sv-family-personal-panel p {
    max-width: 760px;
    margin: 0;
    color: var(--sv-muted);
}

.sv-family-shared-panel {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.sv-family-personal-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.sv-employee-hero-panel {
    min-width: 190px;
    padding: 18px;
    border: 1px solid rgba(37, 99, 235, .24);
    border-radius: 16px;
    background: var(--sv-primary-light);
    color: var(--sv-dark-blue);
}

.sv-employee-hero-panel span {
    display: block;
    margin-bottom: 6px;
    color: var(--sv-muted);
    font-size: .86rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sv-employee-hero-panel strong {
    display: block;
    font-size: 1.1rem;
}

.sv-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    background: #eef2ff;
    color: var(--sv-dark-blue);
    font-weight: 800;
    letter-spacing: 0;
}

.sv-info-icon-blue {
    background: var(--sv-primary-light);
    color: var(--sv-primary);
}

.sv-info-icon-green {
    background: #dcfce7;
    color: #15803d;
}

.sv-info-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.sv-info-card-title h3 {
    margin: 0;
}

.sv-empty-state {
    padding: 18px;
    border: 1px dashed var(--sv-border);
    border-radius: 14px;
    background: var(--sv-card-soft);
}

.sv-empty-state h3 {
    margin: 0 0 8px;
}

.sv-empty-state-compact {
    min-height: 0;
    padding: 18px;
}

.sv-empty-state-compact h3 {
    margin-bottom: 0;
}

.sv-responsive-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.sv-list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--sv-border);
    border-radius: 14px;
    background: var(--sv-card-soft);
}

.sv-list-card div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.sv-list-card span:not(.sv-status-pill) {
    color: var(--sv-muted);
}

.sv-sharing-overview-grid {
    align-items: stretch;
}

.sv-sharing-table-section {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.sv-sharing-section-card {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.sv-sharing-section-card > .sv-card-header {
    padding: 22px 24px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: #ffffff;
    box-shadow: var(--sv-shadow-soft);
}

.sv-sharing-section-card .sv-table-card {
    margin-top: 0;
}

.sv-sharing-table .sv-table {
    min-width: 900px;
}

.sv-family-sharing-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.sv-share-summary-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: #ffffff;
    box-shadow: var(--sv-shadow-soft);
}

.sv-share-summary-card span {
    color: var(--sv-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.sv-share-summary-card strong {
    color: var(--sv-text);
    font-size: 34px;
    line-height: 1;
}

.sv-share-summary-card small {
    color: var(--sv-muted);
    line-height: 1.45;
}

.sv-family-sharing-tabs {
    display: grid;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
}

.sv-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: #ffffff;
    box-shadow: var(--sv-shadow-soft);
    min-width: 0;
    max-width: 100%;
}

.sv-tab-button {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0 18px;
    background: transparent;
    color: var(--sv-muted-strong);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.sv-tab-button:hover {
    border-color: rgba(37, 99, 235, .22);
    color: var(--sv-primary);
}

.sv-tab-button.is-active {
    background: var(--sv-primary);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .20);
}

.sv-tab-panel {
    display: grid;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
}

.sv-tab-panel[hidden] {
    display: none !important;
}

.sv-family-folder-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.sv-family-share-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

.sv-family-share-form-grid > * {
    min-width: 0;
}

.sv-family-share-form-grid > .sv-family-member-select-field.sv-field {
    grid-column: 1 / -1;
}

.sv-family-share-form-grid > .sv-family-recipient-scope-field.sv-field {
    grid-column: 1 / -1;
}

.sv-field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--sv-text);
    font-weight: 700;
}

.sv-recipient-scope-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sv-recipient-scope-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--sv-border);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.sv-recipient-scope-option:has(input:checked) {
    border-color: var(--sv-primary);
    background: var(--sv-light-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.sv-recipient-scope-option input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--sv-primary);
    flex: 0 0 auto;
}

.sv-recipient-scope-option strong,
.sv-recipient-scope-option small {
    display: block;
    min-width: 0;
}

.sv-recipient-scope-option strong {
    color: var(--sv-text);
    font-weight: 700;
    line-height: 1.25;
}

.sv-recipient-scope-option small {
    margin-top: 4px;
    color: var(--sv-muted);
    line-height: 1.35;
}

.sv-family-share-form-grid > .sv-share-resource-field.sv-field {
    grid-column: auto;
}

.sv-family-sharing-table .sv-table {
    min-width: 980px;
}

.sv-share-list-stack,
.sv-list-stack {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.sv-share-access-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--sv-border);
    border-radius: 14px;
    background: var(--sv-card-soft);
}

.sv-share-access-row > div:first-child {
    min-width: 0;
}

.sv-share-access-row strong {
    display: block;
    color: var(--sv-text);
    overflow-wrap: anywhere;
}

.sv-share-access-row p {
    margin-top: 4px;
}

.sv-feature-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.sv-feature-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--sv-border);
    border-radius: 999px;
    background: var(--sv-card-soft);
    color: var(--sv-muted);
    font-weight: 800;
}

.sv-feature-strip span.is-active {
    border-color: rgba(37, 99, 235, .34);
    background: var(--sv-primary-light);
    color: var(--sv-dark-blue);
}

.sv-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.sv-dialog-header h3 {
    margin: 0 0 4px;
}

.sv-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--sv-border);
    border-radius: 999px;
    background: #fff;
    color: var(--sv-text);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.sv-dialog-close:hover {
    border-color: var(--sv-primary);
    color: var(--sv-primary);
    background: var(--sv-primary-light);
}

.sv-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.sv-tool-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sv-tool-output,
.sv-tool-result {
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: var(--sv-bg-secondary);
    padding: 16px;
    min-height: 64px;
    overflow-wrap: anywhere;
}

.sv-tool-output code {
    color: var(--sv-text);
    font-weight: 800;
    line-height: 1.6;
}

.sv-tool-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.sv-character-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
    color: var(--sv-muted-strong);
    font-size: 14px;
}

.sv-strength-meter {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.sv-strength-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--sv-danger);
    transition: width .2s ease, background .2s ease;
}

.sv-strength-meter span[data-strength="medium"] {
    background: var(--sv-warning);
}

.sv-strength-meter span[data-strength="strong"] {
    background: var(--sv-success);
}

.sv-permission-list {
    display: grid;
    gap: 10px;
    max-height: 360px;
    overflow: auto;
    margin: 14px 0;
    padding-right: 6px;
}

.sv-step-grid,
.sv-permission-grid {
    display: grid;
    gap: 12px;
}

.sv-step-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 16px 0 22px;
}

.sv-step-grid span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 12px;
    background: var(--sv-primary-light);
    color: var(--sv-dark-blue);
    font-size: 13px;
    font-weight: 800;
}

.sv-permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.sv-permission-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--sv-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--sv-muted);
    font-size: 14px;
    font-weight: 700;
}

.sv-permission-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--sv-border);
    border-radius: 14px;
    background: var(--sv-card-soft);
}

.sv-permission-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: -14px -14px 10px;
    padding: 14px;
    border-bottom: 1px solid var(--sv-border);
    background: var(--sv-card-soft);
}

.sv-permission-card h4 {
    margin: 0;
}

.sv-permission-card small {
    display: block;
    margin-top: 3px;
    color: var(--sv-muted);
    font-size: 12px;
    font-weight: 700;
}

.sv-link-button {
    border: 0;
    background: transparent;
    color: var(--sv-primary);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    padding: 3px 0;
}

.sv-link-button:hover {
    color: var(--sv-dark-blue);
}

.sv-permission-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin-bottom: 8px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #ffffff;
    color: var(--sv-muted-strong);
    font-weight: 750;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.sv-permission-option:last-child {
    margin-bottom: 0;
}

.sv-permission-option:hover {
    border-color: rgba(37, 99, 235, .28);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.sv-permission-option.is-selected {
    border-color: rgba(37, 99, 235, .42);
    background: var(--sv-primary-light);
    color: var(--sv-dark-blue);
}

.sv-permission-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--sv-primary);
}

.sv-permission-option span {
    overflow-wrap: anywhere;
}

.sv-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: #ffffff;
    box-shadow: var(--sv-shadow-soft);
}

.sv-pagination-summary {
    margin: 0;
    color: var(--sv-muted);
    font-size: 14px;
    font-weight: 700;
}

.sv-pagination-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.sv-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--sv-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--sv-muted-strong);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.sv-page-button:hover {
    border-color: var(--sv-primary);
    color: var(--sv-primary-dark);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .12);
}

.sv-page-button.is-active {
    border-color: var(--sv-primary);
    background: var(--sv-primary);
    color: #ffffff;
}

.sv-page-button.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.sv-status-indicator,
.sv-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 28px;
    border-radius: 999px;
    padding: 5px 11px;
    background: var(--sv-primary-light);
    color: var(--sv-primary-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.sv-status-indicator::before,
.sv-status-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: .9;
}

.sv-status-success {
    background: #dcfce7;
    color: #15803d;
}

.sv-status-warning {
    background: #fef3c7;
    color: #b45309;
}

.sv-install-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
    gap: 24px;
    align-items: stretch;
}

.sv-install-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
}

.sv-extension-status-card {
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background: var(--sv-card-soft);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sv-install-steps {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.sv-install-steps li {
    border: 1px solid var(--sv-border);
    border-radius: 12px;
    background: var(--sv-card-soft);
    padding: 16px;
}

.sv-install-steps strong,
.sv-install-steps span {
    display: block;
}

.sv-install-steps strong {
    color: var(--sv-text);
    margin-bottom: 6px;
}

.sv-install-steps span {
    color: var(--sv-muted);
    line-height: 1.55;
}

.sv-install-steps code {
    color: var(--sv-primary-dark);
    font-weight: 800;
}

.sv-fade-in {
    animation: svFadeIn .5s ease both;
}

/* Presentation-only polish: tighter rhythm, cleaner hierarchy, and safer responsive sizing. */
.sv-dashboard-main {
    padding: 20px;
}

.sv-dashboard-topbar {
    min-height: 64px;
    margin: -20px -20px 20px;
    padding: 0 20px;
}

.sv-dashboard-title-row h1,
.sv-dashboard-topbar h1,
.sv-toolbar h2,
.sv-settings-header h2,
.sv-card h2,
.sv-form-panel h2 {
    font-size: clamp(24px, 2.1vw, 32px);
    line-height: 1.15;
    letter-spacing: 0;
}

.sv-card h3,
.sv-feature-card h3,
.sv-pricing-card h3,
.sv-form-panel h3,
.sv-share-card-header h3 {
    font-size: clamp(19px, 1.45vw, 24px);
    line-height: 1.22;
    letter-spacing: 0;
}

.sv-dashboard-topbar p,
.sv-toolbar p,
.sv-card p,
.sv-feature-card p,
.sv-pricing-card p,
.sv-form-panel p,
.sv-muted {
    line-height: 1.55;
}

.sv-grid {
    gap: 16px;
}

.sv-dashboard-section {
    margin-top: 16px;
}

.sv-card,
.sv-feature-card,
.sv-pricing-card {
    padding: 20px;
}

.sv-form-panel,
.sv-share-card {
    padding: 22px;
}

.sv-card,
.sv-form-panel,
.sv-table-card,
.sv-dialog-panel {
    min-width: 0;
}

.sv-card > :last-child,
.sv-form-panel > :last-child {
    margin-bottom: 0;
}

.sv-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 11px;
    font-size: 15px;
}

.sv-button-compact {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.sv-form-row,
.sv-form-grid,
.sv-share-form,
.sv-settings-page {
    gap: 14px;
}

.sv-field label {
    margin-bottom: 7px;
    line-height: 1.3;
}

.sv-field input,
.sv-field select,
.sv-field textarea,
.sv-field .select2-container--securevault .select2-selection--single {
    min-height: 44px;
    border-radius: 11px;
}

.sv-field textarea {
    min-height: 112px;
}

.sv-toolbar {
    gap: 12px;
    margin-bottom: 16px;
}

.sv-filter-row {
    gap: 9px;
}

.sv-table-card {
    border-radius: var(--sv-radius);
}

.sv-table {
    min-width: min(720px, 100%);
}

.sv-table th,
.sv-table td {
    padding: 13px 16px;
    line-height: 1.45;
}

.sv-table th {
    font-size: 11px;
}

.sv-table-actions {
    gap: 7px;
    min-width: 0;
}

.sv-status-pill,
.sv-badge,
.sv-status-indicator {
    line-height: 1;
    white-space: nowrap;
}

.sv-settings-grid {
    gap: 16px;
}

.sv-settings-card {
    gap: 14px;
}

.sv-settings-card .sv-button {
    min-width: 150px;
}

.sv-sidebar {
    padding: 20px;
}

.sv-sidebar-section {
    margin-top: 22px;
}

.sv-sidebar-nav {
    gap: 6px;
}

.sv-sidebar-link {
    min-height: 46px;
}

@keyframes svFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1020px) {
    .sv-grid-4,
    .sv-grid-3,
    .sv-step-grid,
    .sv-permission-grid,
    .sv-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .sv-install-hero { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
    .sv-dashboard-main {
        padding: 18px;
    }

    .sv-dashboard-topbar {
        margin: -18px -18px 18px;
        padding: 0 18px;
    }

    .sv-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1320px) {
    .sv-share-form-grid,
    .sv-family-share-form-grid {
        grid-template-columns: 1fr;
    }

    .sv-family-share-form-grid > .sv-family-member-select-field.sv-field,
    .sv-family-share-form-grid > .sv-family-recipient-scope-field.sv-field,
    .sv-family-share-form-grid > .sv-share-resource-field.sv-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    .sv-dashboard-body {
        overflow: auto;
    }

    .sv-section { padding: 56px 0; }
    .sv-hero { padding: 54px 0 42px; }

    .sv-nav-inner {
        min-height: 68px;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 0;
    }

    .sv-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .sv-public-nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .sv-public-nav-menu {
        display: none;
        order: 3;
        width: 100%;
        margin: 4px 0 0;
        padding: 14px;
        border: 1px solid var(--sv-border);
        border-radius: calc(var(--sv-radius) + 2px);
        background: rgba(255, 255, 255, .98);
        box-shadow: var(--sv-shadow-soft);
    }

    .sv-public-nav-menu.is-open {
        display: grid;
        gap: 12px;
    }

    .sv-nav-links,
    .sv-nav-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .sv-nav-links a {
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .sv-nav-links a:hover,
    .sv-nav-links a[aria-current="page"] {
        background: var(--sv-primary-light);
    }

    .sv-nav-actions .sv-button {
        width: 100%;
    }

    .sv-grid-2,
    .sv-grid-3,
    .sv-grid-4,
    .sv-step-grid,
    .sv-permission-grid,
    .sv-footer-grid,
    .sv-form-row,
    .sv-dashboard-shell { grid-template-columns: 1fr; }

    .sv-dashboard-shell {
        display: block;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .sv-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        height: 100vh;
        z-index: 70;
        width: min(84vw, 320px);
        transform: translateX(-105%);
        transition: transform .22s ease;
        border-right: 1px solid var(--sv-border);
        border-bottom: 0;
    }

    .sv-sidebar-open .sv-sidebar {
        transform: translateX(0);
    }

    .sv-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 60;
        background: rgba(15, 23, 42, .38);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }

    .sv-sidebar-open .sv-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sv-sidebar-close,
    .sv-sidebar-toggle {
        display: inline-grid;
        place-items: center;
    }

    .sv-dashboard-main {
        min-height: 100vh;
        height: auto;
        overflow-y: visible;
        padding: 16px;
    }

    .sv-dashboard-topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
        margin: -16px -16px 18px;
    }

    .sv-dropdown-row {
        width: 100%;
        flex-wrap: wrap;
    }

    .sv-dashboard-search {
        flex: 1 1 100%;
        min-width: 0;
    }

    .sv-profile-chip {
        max-width: 100%;
    }

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

    .sv-filter-row,
    .sv-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sv-button,
    .sv-filter-row .sv-field,
    .sv-actions .sv-button {
        width: 100%;
    }

    .sv-card,
    .sv-feature-card,
    .sv-pricing-card,
    .sv-form-panel,
    .sv-share-card {
        padding: 18px;
    }

    .sv-grid,
    .sv-grid-2,
    .sv-grid-3,
    .sv-grid-4 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sv-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .sv-settings-card .sv-form-actions {
        flex-direction: column;
    }

    .sv-team-toolbar {
        align-items: stretch;
    }

    .sv-team-toolbar-actions {
        margin-left: 0;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sv-team-toolbar-actions .sv-field {
        flex: 1 1 260px;
        width: auto;
        min-width: 0;
    }

    .sv-team-toolbar-actions .sv-button {
        flex: 0 0 auto;
        width: auto;
    }

    .sv-settings-card .sv-form-actions form {
        width: 100%;
    }

    .sv-emergency-hero,
    .sv-emergency-panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .sv-emergency-summary-grid,
    .sv-emergency-request-item {
        grid-template-columns: 1fr;
    }

    .sv-emergency-request-meta,
    .sv-emergency-request-item form {
        justify-content: flex-start;
        padding-left: 0;
    }

    .sv-emergency-request-item .sv-button {
        width: 100%;
    }

    .sv-share-card {
        padding: 22px;
    }

    .sv-share-card-header {
        margin-bottom: 18px;
        padding-bottom: 16px;
    }

    .sv-share-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sv-family-sharing-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sv-tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .sv-tab-button {
        white-space: nowrap;
    }

    .sv-family-folder-form,
    .sv-family-share-form-grid {
        grid-template-columns: 1fr;
    }

    .sv-recipient-scope-options {
        grid-template-columns: 1fr;
    }

    .sv-family-folder-form .sv-button {
        width: 100%;
    }

    .sv-family-sharing-table .sv-table {
        min-width: 760px;
    }

    .sv-share-form-actions {
        justify-content: stretch;
    }

    .sv-share-form-actions .sv-button {
        width: 100%;
        min-width: 0;
    }

    .sv-mfa-actions,
    .sv-mfa-inline-form {
        grid-template-columns: 1fr;
    }

    .sv-mfa-status-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .sv-admin-actions-summary,
    .sv-admin-actions-grid {
        grid-template-columns: 1fr;
    }

    .sv-table-card {
        margin-left: -2px;
        margin-right: -2px;
        border-radius: 12px;
    }

    .sv-table {
        min-width: 680px;
    }

    .sv-table th,
    .sv-table td {
        padding: 13px 12px;
    }

    .sv-table-actions {
        min-width: 180px;
    }

    .sv-table-actions .sv-button,
    .sv-table-actions form {
        width: auto;
    }

    .sv-share-access-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .sv-share-access-row .sv-table-actions {
        width: 100%;
        min-width: 0;
    }

    .sv-action-panel {
        min-width: min(320px, 74vw);
    }

    .sv-employee-options {
        max-height: 240px;
        padding: 6px;
    }

    .sv-employee-option-body {
        align-items: flex-start;
        min-height: auto;
        padding: 10px;
    }

    .sv-employee-chip {
        width: 100%;
        justify-content: space-between;
    }

    .sv-member-selection {
        grid-template-columns: 1fr;
    }

    .sv-family-member-dialog-actions,
    .sv-family-member-remove-form {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .sv-family-member-dialog-actions .sv-button,
    .sv-family-member-remove-form .sv-button {
        width: 100%;
    }

    .sv-employee-hero,
    .sv-workspace-panel,
    .sv-family-shared-panel,
    .sv-family-personal-panel,
    .sv-list-card {
        align-items: stretch;
        flex-direction: column;
    }

    .sv-employee-hero-panel {
        min-width: 0;
        width: 100%;
    }

    .sv-feature-strip span {
        flex: 1 1 160px;
        justify-content: center;
    }

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

    .sv-pagination-links {
        justify-content: flex-start;
    }

    .sv-confirm-dialog-panel {
        gap: 14px;
        padding: 22px;
    }

    .sv-confirm-dialog-actions {
        flex-direction: column-reverse;
    }

    .sv-confirm-dialog-actions .sv-button {
        width: 100%;
    }

    .sv-password-confirm-wrap {
        grid-template-columns: 1fr;
    }

    .sv-password-confirm-wrap .sv-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .sv-container,
    .sv-container-narrow { width: min(100% - 24px, 1180px); }
    .sv-family-sharing-summary {
        grid-template-columns: 1fr;
    }
    .sv-share-summary-card strong {
        font-size: 28px;
    }
    .sv-title { font-size: 34px; }
    .sv-cta-band { padding: 26px; }
}

/* Premium UI refinement layer: presentation only, preserving the existing SecureVault theme. */
:where(.sv-main, .sv-dashboard-main) {
    font-size: 15px;
    line-height: 1.55;
}

:where(.sv-main, .sv-dashboard-main) h1,
:where(.sv-main, .sv-dashboard-main) h2,
:where(.sv-main, .sv-dashboard-main) h3,
:where(.sv-main, .sv-dashboard-main) h4 {
    letter-spacing: 0;
    text-wrap: balance;
}

:where(.sv-main, .sv-dashboard-main) h1 {
    font-size: clamp(26px, 2.2vw, 38px);
    font-weight: 750;
    line-height: 1.12;
}

:where(.sv-main, .sv-dashboard-main) h2 {
    font-size: clamp(22px, 1.65vw, 30px);
    font-weight: 740;
    line-height: 1.16;
}

:where(.sv-main, .sv-dashboard-main) h3 {
    font-size: clamp(17px, 1.15vw, 22px);
    font-weight: 720;
    line-height: 1.22;
}

:where(.sv-main, .sv-dashboard-main) p,
:where(.sv-main, .sv-dashboard-main) li,
:where(.sv-main, .sv-dashboard-main) small {
    line-height: 1.55;
}

.sv-container {
    width: min(1160px, calc(100% - 36px));
}

.sv-section {
    padding: 60px 0;
}

.sv-section-tight {
    padding: 40px 0;
}

.sv-section-header {
    margin-bottom: 28px;
}

.sv-section-header p,
.sv-copy {
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.62;
}

.sv-title {
    margin: 14px 0 16px;
    font-size: clamp(34px, 3.7vw, 50px);
    font-weight: 780;
    line-height: 1.08;
}

.sv-hero {
    padding: 62px 0 48px;
}

.sv-card,
.sv-feature-card,
.sv-pricing-card,
.sv-form-panel,
.sv-table-card,
.sv-share-card,
.sv-settings-header,
.sv-share-summary-card,
.sv-sharing-section-card > .sv-card-header {
    border-radius: 11px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
}

.sv-card,
.sv-feature-card,
.sv-pricing-card {
    padding: 18px;
}

.sv-form-panel,
.sv-share-card {
    padding: 20px;
}

.sv-card:hover,
.sv-feature-card:hover,
.sv-pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

.sv-card h2,
.sv-card h3,
.sv-feature-card h3,
.sv-pricing-card h3,
.sv-form-panel h2,
.sv-form-panel h3 {
    margin-bottom: 8px;
}

.sv-grid,
.sv-settings-grid,
.sv-sharing-table-section,
.sv-family-sharing-tabs,
.sv-responsive-list {
    gap: 14px;
}

.sv-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.sv-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.sv-grid-2,
.sv-settings-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.sv-dashboard-main {
    padding: 18px;
}

.sv-dashboard-shell {
    grid-template-columns: 252px minmax(0, 1fr);
}

.sv-dashboard-topbar {
    min-height: 60px;
    margin: -18px -18px 18px;
    padding: 0 18px;
}

.sv-dashboard-title-row h1,
.sv-dashboard-topbar h1 {
    margin: 0;
    font-size: clamp(20px, 1.45vw, 26px);
    font-weight: 740;
}

.sv-dashboard-title-row p,
.sv-dashboard-topbar p {
    margin: 3px 0 0;
    font-size: 14px;
}

.sv-sidebar {
    padding: 16px;
}

.sv-sidebar-section {
    margin-top: 18px;
}

.sv-sidebar-label {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: .03em;
}

.sv-sidebar-nav {
    gap: 5px;
}

.sv-sidebar-link {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 14px;
}

.sv-sidebar {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color .18s ease;
}

.sv-sidebar:hover,
.sv-sidebar:focus-within {
    scrollbar-color: rgba(37, 99, 235, .28) transparent;
}

.sv-sidebar::-webkit-scrollbar {
    width: 8px;
}

.sv-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sv-sidebar::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background-color: transparent;
    background-clip: padding-box;
    transition: background-color .18s ease;
}

.sv-sidebar:hover::-webkit-scrollbar-thumb,
.sv-sidebar:focus-within::-webkit-scrollbar-thumb {
    background-color: rgba(37, 99, 235, .28);
}

.sv-sidebar:hover::-webkit-scrollbar-thumb:hover,
.sv-sidebar:focus-within::-webkit-scrollbar-thumb:hover {
    background-color: rgba(30, 64, 175, .38);
}

.sv-toolbar {
    gap: 12px;
    margin-bottom: 14px;
}

.sv-filter-row {
    gap: 8px;
}

.sv-button,
.sv-page-button,
.sv-tab-button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 720;
}

.sv-button:hover,
.sv-page-button:hover,
.sv-tab-button:hover {
    transform: translateY(-1px);
}

.sv-button-compact {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
}

.sv-actions,
.sv-nav-actions,
.sv-form-actions,
.sv-table-actions {
    gap: 8px;
}

.sv-badge,
.sv-status-pill,
.sv-status-indicator {
    min-height: 24px;
    padding: 0 10px;
    gap: 7px;
    font-size: 12px;
    font-weight: 720;
}

.sv-status-indicator::before,
.sv-status-pill::before {
    width: 8px;
    height: 8px;
}

.sv-table-card {
    margin-top: 14px;
    overflow-x: auto;
    overflow-y: visible;
}

.sv-table {
    min-width: 720px;
}

.sv-table th,
.sv-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

.sv-table th {
    font-size: 11px;
    font-weight: 780;
    letter-spacing: .035em;
}

.sv-table-actions {
    align-items: center;
    min-width: 0;
}

.sv-field {
    min-width: 0;
}

.sv-field label,
.sv-mfa-inline-form .sv-field span {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 720;
    line-height: 1.25;
}

.sv-field input,
.sv-field select,
.sv-field textarea,
.sv-field .select2-container--securevault .select2-selection--single,
.sv-employee-search,
.sv-mfa-inline-form input {
    min-height: 42px;
    border-radius: 10px;
    padding-left: 13px;
    padding-right: 13px;
}

.sv-field textarea {
    min-height: 96px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.sv-form-row,
.sv-form-grid,
.sv-share-form,
.sv-settings-page {
    gap: 12px;
}

.sv-share-card-header,
.sv-card-header {
    gap: 12px;
}

.sv-share-card-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.sv-share-summary-card {
    gap: 6px;
    padding: 18px;
}

.sv-share-summary-card strong {
    font-size: clamp(26px, 2.1vw, 32px);
    font-weight: 760;
}

.sv-settings-header {
    align-items: center;
    padding: 18px 20px;
}

.sv-settings-header h2 {
    margin: 3px 0 6px;
    font-size: clamp(22px, 1.7vw, 28px);
}

.sv-settings-card {
    gap: 12px;
}

.sv-mfa-card {
    gap: 14px;
}

.sv-mfa-actions {
    gap: 10px;
}

.sv-mfa-inline-form {
    padding: 12px;
}

.sv-empty-state {
    padding: 16px;
    border-radius: 12px;
}

.sv-list-card,
.sv-employee-hero,
.sv-workspace-panel,
.sv-family-shared-panel,
.sv-family-personal-panel {
    padding: 18px;
    gap: 16px;
}

.sv-price {
    margin: 14px 0 4px;
    font-size: clamp(32px, 3vw, 38px);
    font-weight: 760;
}

@media (max-width: 1180px) {
    .sv-container {
        width: min(100% - 32px, 1160px);
    }

    .sv-dashboard-main {
        padding: 16px;
    }

    .sv-dashboard-topbar {
        margin: -16px -16px 16px;
        padding: 0 16px;
    }

    .sv-section {
        padding: 52px 0;
    }
}

@media (max-width: 800px) {
    .sv-container,
    .sv-container-narrow {
        width: min(100% - 24px, 1160px);
    }

    .sv-title {
        font-size: clamp(32px, 9vw, 42px);
    }

    .sv-section {
        padding: 44px 0;
    }

    .sv-dashboard-main {
        padding: 14px;
    }

    .sv-dashboard-topbar {
        margin: -14px -14px 16px;
        padding: 14px;
    }

    .sv-card,
    .sv-feature-card,
    .sv-pricing-card,
    .sv-form-panel,
    .sv-share-card {
        padding: 16px;
    }

    .sv-button,
    .sv-page-button,
    .sv-tab-button {
        min-height: 40px;
        width: auto;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .sv-table {
        min-width: 640px;
    }

    .sv-table th,
    .sv-table td {
        padding: 11px 12px;
    }

    .sv-settings-header {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Dashboard overflow containment: UI-only safeguards for cards, sections, tables, and forms. */
.sv-dashboard-shell,
.sv-dashboard-main,
.sv-dashboard-section,
.sv-toolbar,
.sv-filter-row,
.sv-actions,
.sv-dropdown-row,
.sv-card,
.sv-feature-card,
.sv-pricing-card,
.sv-form-panel,
.sv-table-card,
.sv-share-card,
.sv-settings-header,
.sv-sharing-section-card,
.sv-tabs-nav,
.sv-tab-panel,
.sv-list-card,
.sv-empty-state {
    min-width: 0;
    max-width: 100%;
}

.sv-dashboard-main {
    overflow-x: clip;
}

@supports not (overflow-x: clip) {
    .sv-dashboard-main {
        overflow-x: hidden;
    }
}

.sv-card,
.sv-feature-card,
.sv-pricing-card,
.sv-form-panel,
.sv-share-card,
.sv-table-card,
.sv-settings-header,
.sv-list-card,
.sv-empty-state {
    overflow-wrap: anywhere;
}

.sv-grid > *,
.sv-form-row > *,
.sv-form-grid > *,
.sv-filter-row > *,
.sv-toolbar > *,
.sv-actions > *,
.sv-settings-grid > *,
.sv-share-form-grid > *,
.sv-family-share-form-grid > *,
.sv-family-folder-form > *,
.sv-business-settings-grid > *,
.sv-employee-settings-grid > *,
.sv-family-settings-grid > *,
.sv-dashboard-title-row > *,
.sv-dropdown-row > * {
    min-width: 0;
    max-width: 100%;
}

.sv-table-card {
    width: 100%;
    max-width: 100%;
}

.sv-table {
    width: 100%;
    min-width: 100%;
}

.sv-sharing-table .sv-table,
.sv-family-sharing-table .sv-table {
    min-width: 100%;
}

.sv-table th,
.sv-table td {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.sv-table td:nth-child(2),
.sv-table td a,
.sv-table td code {
    overflow-wrap: anywhere;
}

.sv-table-actions {
    max-width: 100%;
}

.sv-table-actions form,
.sv-table-actions .sv-button {
    max-width: 100%;
}

.sv-tabs-nav {
    overflow-x: visible;
    flex-wrap: wrap;
}

.sv-tab-button {
    white-space: normal;
}

.sv-field,
.sv-field input,
.sv-field select,
.sv-field textarea,
.sv-field .select2-container,
.sv-field .select2-container--securevault {
    width: 100%;
    max-width: 100%;
}

.sv-field .select2-container--securevault .select2-selection--multiple .select2-search__field {
    min-width: 0;
}

.select2-container--securevault .select2-dropdown {
    max-width: calc(100vw - 32px);
    overflow-x: hidden;
}

.sv-team-toolbar-actions {
    max-width: 100%;
    flex-wrap: wrap;
}

.sv-team-toolbar-actions .sv-field {
    width: min(100%, 340px);
    min-width: min(100%, 260px);
}

.sv-profile-chip,
.sv-sidebar-link,
.sv-button,
.sv-page-button {
    max-width: 100%;
}

.sv-profile-chip span,
.sv-sidebar-link,
.sv-button,
.sv-page-button {
    overflow-wrap: anywhere;
}

.sv-main img,
.sv-dashboard-main img,
.sv-main svg,
.sv-dashboard-main svg,
.sv-main canvas,
.sv-dashboard-main canvas,
.sv-main iframe,
.sv-dashboard-main iframe {
    max-width: 100%;
}

/* Input and filter restoration: compact SaaS controls without changing behavior. */
.sv-field input,
.sv-field select,
.sv-field textarea,
.sv-field .select2-container--securevault .select2-selection--single {
    min-height: 46px;
    border-radius: 12px;
    font-size: 15px;
}

.sv-field input,
.sv-field select {
    padding-left: 14px;
    padding-right: 14px;
}

.sv-field textarea {
    min-height: 118px;
}

.sv-card.sv-filter-row,
form.sv-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.sv-card.sv-filter-row {
    padding: 16px;
}

.sv-filter-row .sv-field {
    flex: 1 1 220px;
    width: auto;
    min-width: min(220px, 100%);
    max-width: none;
}

.sv-card.sv-filter-row .sv-field:first-of-type,
form.sv-filter-row .sv-field:first-of-type {
    flex: 2 1 320px;
}

.sv-filter-row .sv-button,
.sv-filter-row button,
.sv-filter-row a.sv-button {
    flex: 0 0 auto;
    min-height: 46px;
}

.sv-dashboard-search,
.sv-toolbar .sv-field,
.sv-team-toolbar-actions .sv-field {
    width: auto;
}

.sv-dashboard-search {
    flex: 0 1 260px;
    min-width: min(220px, 100%);
}

.sv-toolbar .sv-field {
    flex: 1 1 240px;
    min-width: min(220px, 100%);
}

.sv-team-toolbar-actions .sv-field {
    flex: 1 1 300px;
    width: min(100%, 360px);
}

@media (max-width: 800px) {
    .sv-card.sv-filter-row,
    form.sv-filter-row {
        align-items: stretch;
        flex-direction: column;
    }

    .sv-filter-row .sv-field,
    .sv-card.sv-filter-row .sv-field:first-of-type,
    form.sv-filter-row .sv-field:first-of-type,
    .sv-filter-row .sv-button,
    .sv-filter-row button,
    .sv-filter-row a.sv-button,
    .sv-dashboard-search,
    .sv-toolbar .sv-field,
    .sv-team-toolbar-actions .sv-field {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }
}

/* Admin add-user permissions UI: keep checkboxes compact inside permission cards. */
.sv-permission-grid {
    align-items: start;
}

.sv-permission-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.sv-permission-card-header {
    align-items: center;
    margin: -12px -12px 8px;
    padding: 12px;
}

.sv-permission-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin: 0;
    padding: 9px 10px;
}

.sv-permission-option input[type="checkbox"],
.sv-check-field input[type="checkbox"],
.sv-field input[type="checkbox"],
.sv-field input[type="radio"] {
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    accent-color: var(--sv-primary);
}

.sv-permission-option span {
    min-width: 0;
    color: var(--sv-muted-strong);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
}

.sv-check-field {
    align-items: center;
}

.sv-check-field input[type="checkbox"] {
    margin-top: 0;
}

@media (max-width: 800px) {
    .sv-permission-card {
        padding: 10px;
    }

    .sv-permission-card-header {
        margin: -10px -10px 8px;
        padding: 10px;
    }
}

/* Admin Add User wizard */
.sv-admin-user-wizard {
    display: grid;
    gap: 18px;
}

.sv-wizard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.sv-wizard-header h3,
.sv-wizard-panel-heading h4 {
    margin: 0;
}

.sv-wizard-header .sv-muted,
.sv-wizard-panel-heading .sv-muted,
.sv-wizard-note p {
    margin-bottom: 0;
}

.sv-wizard-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--sv-primary-light);
}

.sv-wizard-progress span {
    display: block;
    width: 33.333%;
    height: 100%;
    border-radius: inherit;
    background: var(--sv-primary);
    transition: width .22s ease;
}

.sv-wizard-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sv-wizard-step {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid var(--sv-border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--sv-muted-strong);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.sv-wizard-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: var(--sv-primary-light);
    color: var(--sv-primary);
    font-size: 13px;
    font-weight: 900;
}

.sv-wizard-step strong {
    min-width: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.sv-wizard-step.is-active {
    border-color: rgba(37, 99, 235, .42);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: var(--sv-dark-blue);
    box-shadow: 0 14px 32px rgba(37, 99, 235, .10);
}

.sv-wizard-step.is-active span,
.sv-wizard-step.is-complete span {
    background: var(--sv-primary);
    color: #ffffff;
}

.sv-wizard-step.is-complete span::before {
    content: "✓";
}

.sv-wizard-step.is-complete span {
    font-size: 0;
}

.sv-wizard-step.is-complete span::before {
    font-size: 13px;
}

.sv-wizard-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--sv-border);
    border-radius: 16px;
    background: #ffffff;
}

.sv-wizard-panel[hidden] {
    display: none;
}

.sv-wizard-panel-heading {
    display: grid;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sv-border);
}

.sv-wizard-check-field {
    min-height: 46px;
    align-self: end;
    margin: 0 0 1px;
}

.sv-wizard-note {
    padding: 14px 16px;
    background: var(--sv-card-soft);
}

.sv-wizard-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--sv-dark-blue);
    font-size: 15px;
}

.sv-wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.sv-wizard-actions .sv-form-actions {
    margin: 0;
}

.sv-admin-user-wizard .sv-permission-grid {
    max-height: min(560px, 58vh);
    overflow: auto;
    padding-right: 4px;
}

@media (max-width: 900px) {
    .sv-wizard-header,
    .sv-wizard-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sv-wizard-actions > span {
        display: none;
    }

    .sv-wizard-actions .sv-button,
    .sv-wizard-actions .sv-form-actions,
    .sv-wizard-actions .sv-form-actions .sv-button {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .sv-wizard-steps {
        grid-template-columns: 1fr;
    }

    .sv-wizard-panel {
        padding: 14px;
    }
}

/* Table text polish: keep long names, emails, owners, recipients, and labels tidy. */
.sv-table {
    table-layout: fixed;
}

.sv-table th,
.sv-table td {
    vertical-align: middle;
}

.sv-table td:not(:last-child),
.sv-table th:not(:last-child) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sv-table td:not(:last-child) > strong,
.sv-table td:not(:last-child) > span,
.sv-table td:not(:last-child) > a,
.sv-table td:not(:last-child) > code,
.sv-table td:not(:last-child) .sv-muted {
    display: inline;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.sv-table td:not(:last-child) br {
    display: none;
}

.sv-table td:not(:last-child) br + .sv-muted::before,
.sv-table td:not(:last-child) br + span::before {
    content: " ";
}

.sv-table td[colspan],
.sv-table td:last-child,
.sv-table th:last-child {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.sv-table td[colspan] {
    text-align: left;
}
