.sg-home-hero {
    min-height: 510px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(350px, .95fr);
    align-items: center;
    gap: 70px;
    padding: 70px 0 84px;
    border-bottom: 1px solid var(--sg-border);
}

.sg-home-hero__copy {
    max-width: 660px;
}

.sg-home-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(44px, 5vw, 76px);
    line-height: 1.08;
    letter-spacing: -.065em;
}

.sg-home-hero h1 em {
    color: var(--sg-accent-solid);
    font-style: normal;
}

.sg-home-hero__lead {
    max-width: 540px;
    margin-bottom: 28px;
    color: var(--sg-text-secondary);
    font-size: 18px;
    line-height: 1.7;
}

.sg-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.sg-home-hero__note {
    margin-bottom: 0;
    color: var(--sg-text-muted);
    font-size: 12px;
}

.sg-home-hero__note i {
    margin-right: 6px;
    color: var(--sg-accent-solid);
}

.sg-home-hero__signal {
    min-height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--sg-border-strong);
    border-radius: var(--sg-radius-lg);
    background:
        linear-gradient(90deg, rgba(20, 91, 66, .05) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(rgba(20, 91, 66, .05) 1px, transparent 1px) 0 0 / 28px 28px,
        var(--sg-surface-muted);
}

.sg-signal-grid {
    width: 180px;
    height: 180px;
    border: 1px solid rgba(20, 91, 66, .22);
    border-radius: 50%;
    box-shadow: 0 0 0 26px rgba(20, 91, 66, .045), 0 0 0 54px rgba(20, 91, 66, .035);
}

.sg-signal-card {
    position: absolute;
    z-index: 1;
    display: grid;
    gap: 3px;
    min-width: 172px;
    padding: 14px;
    border: 1px solid var(--sg-border-strong);
    border-radius: var(--sg-radius-md);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--sg-shadow-sm);
}

.sg-signal-card--top {
    top: 35px;
    left: 34px;
}

.sg-signal-card--bottom {
    right: 28px;
    bottom: 28px;
}

.sg-signal-card__label {
    color: var(--sg-text-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
}

.sg-signal-card strong {
    font-size: 14px;
    letter-spacing: .03em;
}

.sg-signal-card__status {
    margin-top: 8px;
    color: var(--sg-success);
    font-size: 10px;
    font-weight: 800;
}

.sg-signal-card__status i {
    width: 6px;
    height: 6px;
    display: inline-block;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--sg-success);
}

.sg-signal-card__metric {
    color: var(--sg-accent-solid);
    font-size: 25px;
    font-weight: 800;
}

.sg-signal-card__metric small {
    color: var(--sg-text-muted);
    font-size: 9px;
    letter-spacing: .08em;
}

.sg-home-section {
    padding: 86px 0;
    border-bottom: 1px solid var(--sg-border);
}

.sg-home-section--muted {
    background: var(--sg-surface-muted);
}

.sg-section-heading {
    max-width: 640px;
    margin-bottom: 34px;
}

.sg-section-heading h2 {
    margin-bottom: 11px;
    font-size: 34px;
    line-height: 1.2;
}

.sg-section-heading > p:last-child {
    margin-bottom: 0;
    color: var(--sg-text-secondary);
}

.sg-home-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sg-home-product {
    min-height: 114px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 23px 24px;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-md);
    background: var(--sg-surface);
    color: var(--sg-text);
}

.sg-home-product:hover,
.sg-home-product:focus {
    border-color: var(--sg-accent);
    box-shadow: var(--sg-shadow-sm);
    color: var(--sg-text);
    transform: translateY(-2px);
}

.sg-home-product__index {
    color: var(--sg-accent-solid);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.sg-home-product__body {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 3px;
}

.sg-home-product__body strong {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-home-product__body span {
    overflow: hidden;
    color: var(--sg-text-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-home-product > i {
    color: var(--sg-accent-solid);
    font-size: 13px;
}

.sg-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.sg-capability {
    padding-top: 18px;
    border-top: 2px solid var(--sg-accent-solid);
}

.sg-capability__number {
    color: var(--sg-accent-solid);
    font-size: 12px;
    font-weight: 800;
}

.sg-capability h3 {
    margin: 23px 0 9px;
    font-size: 19px;
}

.sg-capability p {
    margin-bottom: 0;
    color: var(--sg-text-secondary);
    font-size: 14px;
}

.sg-help-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sg-help-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 21px;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-md);
    background: var(--sg-surface);
    color: var(--sg-text);
}

.sg-help-link span {
    display: flex;
    align-items: center;
    gap: 11px;
}

.sg-help-link span i {
    color: var(--sg-accent-solid);
}

.sg-help-link strong {
    font-size: 14px;
}

.sg-help-link > i {
    color: var(--sg-accent-solid);
    font-size: 12px;
}

.sg-help-link:hover,
.sg-help-link:focus {
    border-color: var(--sg-accent);
    box-shadow: var(--sg-shadow-sm);
    color: var(--sg-text);
    transform: translateY(-2px);
}

.sg-auth {
    width: min(100%, 520px);
    margin: 34px auto 30px;
}

.sg-auth__intro {
    margin-bottom: 30px;
    text-align: center;
}

.sg-auth__intro h1 {
    margin-bottom: 9px;
    font-size: 40px;
}

.sg-auth__intro p:last-child {
    margin-bottom: 0;
    color: var(--sg-text-secondary);
}

.sg-auth__form {
    padding: 30px;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-lg);
    background: var(--sg-surface);
    box-shadow: var(--sg-shadow-sm);
}

.sg-auth__submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 24px;
}

.sg-auth__register {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 18px 0 24px;
    color: var(--sg-text-muted);
    font-size: 13px;
}

.sg-auth #linked-accounts,
.sg-auth #linkedAccounts {
    padding-top: 17px;
    border-top: 1px solid var(--sg-border);
}

/* v1.5.12 Password Reset keeps the same visual hierarchy as Login while
 * retaining each WHMCS reset route and native validation fragment. */
.sg-password-reset__step-intro {
    margin-bottom: 22px;
}

.sg-password-reset__step-intro h2 {
    margin: 0 0 7px;
    color: var(--sg-ink);
    font-size: 22px;
    line-height: 1.25;
}

.sg-password-reset__step-intro p:last-child {
    margin-bottom: 0;
    color: var(--sg-text-secondary);
    line-height: 1.65;
}

.sg-password-reset__form .sg-auth__submit-row {
    margin-top: 22px;
}

.sg-password-reset__form .sg-auth__submit-row > span {
    min-width: 1px;
}

.sg-password-reset__captcha {
    margin-top: 4px;
}

.sg-password-reset__strength .progress {
    height: 7px;
    margin: 8px 0 14px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--sg-surface-muted);
}

.sg-dashboard__intro,
.sg-page-intro__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.sg-dashboard__intro {
    margin-bottom: 34px;
}

.sg-dashboard__intro h1,
.sg-page-intro h1 {
    margin-bottom: 7px;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
}

.sg-dashboard__intro p:last-child,
.sg-page-intro p:last-child {
    margin-bottom: 0;
    color: var(--sg-text-secondary);
}

.sg-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 36px;
}

.sg-metric {
    min-height: 124px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 19px 21px;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-md);
    background: var(--sg-surface);
    color: var(--sg-text);
}

.sg-metric:hover,
.sg-metric:focus {
    border-color: var(--sg-accent);
    color: var(--sg-text);
    box-shadow: var(--sg-shadow-sm);
}

.sg-metric__label {
    color: var(--sg-text-secondary);
    font-size: 13px;
    font-weight: 650;
}

.sg-metric__value {
    font-size: 32px;
    line-height: 1;
}

.sg-metric > i {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: var(--sg-accent-solid);
    font-size: 12px;
}

.sg-dashboard__addon {
    margin-bottom: 26px;
}

.sg-dashboard__sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
}

.sg-dashboard-panel {
    min-width: 0;
}

.sg-dashboard-panel__header {
    min-height: 75px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--sg-border);
}

.sg-dashboard-panel__header .sg-eyebrow {
    margin-bottom: 5px;
}

.sg-dashboard-panel__header h2 {
    margin-bottom: 0;
    font-size: 21px;
}

.sg-dashboard-panel__body {
    padding: 18px 0;
    color: var(--sg-text-secondary);
}

.sg-dashboard-panel__body .card,
.sg-dashboard-panel__body .panel {
    border: 0;
    box-shadow: none;
}

.sg-dashboard-panel__list {
    display: grid;
}

.sg-dashboard-panel__item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid var(--sg-border);
    color: var(--sg-text-secondary);
}

.sg-dashboard-panel__item:hover,
.sg-dashboard-panel__item:focus {
    color: var(--sg-accent-solid);
}

.sg-dashboard-panel__item-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: var(--sg-radius-sm);
    background: var(--sg-surface-emphasis);
    color: var(--sg-accent-solid);
    font-size: 11px;
}

.sg-dashboard-panel__item-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-dashboard-panel__item-arrow {
    color: var(--sg-text-muted);
    font-size: 11px;
}

.sg-dashboard-panel__footer {
    padding-top: 15px;
}

.sg-page-intro {
    margin-bottom: 34px;
}

.sg-services .sg-page-intro__row {
    align-items: center;
}

.sg-service-list {
    display: grid;
    gap: 12px;
}

.sg-service-card {
    padding: 22px 24px;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-md);
    background: var(--sg-surface);
    box-shadow: var(--sg-shadow-sm);
}

.sg-service-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--sg-border);
}

.sg-service-card__identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.sg-service-card__mark {
    width: 39px;
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: var(--sg-radius-md);
    background: var(--sg-surface-emphasis);
    color: var(--sg-accent-solid);
}

.sg-service-card h2 {
    margin-bottom: 2px;
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-service-card__domain {
    display: block;
    overflow: hidden;
    color: var(--sg-text-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-service-card__details {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 20px;
    padding-top: 18px;
}

.sg-service-card__detail {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.sg-service-card__label {
    color: var(--sg-text-muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .03em;
}

.sg-service-card__value {
    color: var(--sg-text);
    font-size: 15px;
    font-weight: 650;
}

.sg-service-card__value small {
    color: var(--sg-text-muted);
    font-size: 12px;
    font-weight: 500;
}

.sg-service-card__action {
    text-align: right;
}

.sg-empty-state {
    padding: 38px 24px;
    border: 1px dashed var(--sg-border-strong);
    border-radius: var(--sg-radius-md);
    background: var(--sg-surface);
    text-align: center;
}

.sg-empty-state--large {
    padding: 70px 24px;
}

.sg-empty-state__mark {
    width: 47px;
    height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--sg-surface-emphasis);
    color: var(--sg-accent-solid);
}

.sg-empty-state h2 {
    margin-bottom: 7px;
    font-size: 21px;
}

.sg-empty-state p {
    margin-bottom: 22px;
    color: var(--sg-text-secondary);
}

.sg-account .sg-page-intro {
    margin-bottom: 25px;
}

.sg-account-tabs {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--sg-border);
    white-space: nowrap;
}

.sg-account-tabs a {
    position: relative;
    padding: 10px 0 13px;
    color: var(--sg-text-muted);
    font-size: 13px;
    font-weight: 650;
}

.sg-account-tabs a:hover,
.sg-account-tabs a:focus,
.sg-account-tabs a.is-active {
    color: var(--sg-text);
}

.sg-account-tabs a.is-active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--sg-accent-solid);
    content: "";
}

.sg-form-section {
    padding: 28px 0 31px;
    border-bottom: 1px solid var(--sg-border);
}

.sg-form-section__heading {
    margin-bottom: 22px;
}

.sg-form-section__heading h2 {
    margin-bottom: 5px;
    font-size: 21px;
}

.sg-form-section__heading p {
    margin-bottom: 0;
    color: var(--sg-text-muted);
    font-size: 13px;
}

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

.sg-form-field--wide {
    grid-column: span 2;
}

.sg-preferences {
    margin-top: 5px;
    padding-top: 18px;
    border-top: 1px solid var(--sg-border);
}

.sg-preferences h3 {
    margin-bottom: 13px;
    font-size: 15px;
}

.sg-preferences__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.sg-marketing-opt-in {
    border-bottom: 0;
}

.sg-marketing-opt-in .sg-checkbox span {
    display: grid;
    gap: 3px;
}

.sg-marketing-opt-in small {
    color: var(--sg-text-muted);
    font-size: 12px;
    font-weight: 400;
}

/* Standalone registration keeps the native marketingoptin checkbox contract
 * and gives its two states equal, touch-friendly presentation. */
.sg-register-marketing__choice {
    width: min(100%, 220px);
    margin-top: 15px;
}

.sg-register-marketing__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
    white-space: nowrap;
}

.sg-register-marketing__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--sg-border-strong);
    border-radius: var(--sg-radius-sm);
    background: var(--sg-surface);
}

.sg-register-marketing__option {
    min-height: 42px;
    padding: 8px 14px;
    border: 0;
    border-radius: 0;
    background: var(--sg-surface);
    color: var(--sg-text-secondary);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.sg-register-marketing__option + .sg-register-marketing__option {
    border-left: 1px solid var(--sg-border-strong);
}

.sg-register-marketing__option:hover,
.sg-register-marketing__option:focus {
    background: var(--sg-surface-muted);
    color: var(--sg-text);
    outline: none;
}

.sg-register-marketing__option.is-selected {
    background: var(--sg-success);
    color: #fff;
}

.sg-register-marketing__input:focus-visible + .sg-register-marketing__options {
    outline: 2px solid rgba(239, 127, 26, .72);
    outline-offset: 2px;
}

/* v1.3.4 registration presentation: the native registration form, field
 * names, password strength handler, and submit contract stay untouched. */
body.sg-page-clientregister #registration {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

body.sg-page-clientregister #registration .sg-register-card,
body.sg-page-clientregister #registration .sg-register-marketing {
    margin-bottom: 18px !important;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-lg);
    box-shadow: var(--sg-shadow-sm);
}

body.sg-page-clientregister #registration .sg-register-card .card-body,
body.sg-page-clientregister #registration .sg-register-marketing .card-body {
    padding: 24px !important;
}

body.sg-page-clientregister #registration .sg-register-card .card-title,
body.sg-page-clientregister #registration .sg-register-marketing .card-title {
    margin-bottom: 21px;
    color: var(--sg-ink);
    font-size: 1.08rem;
    font-weight: 750;
}

body.sg-page-clientregister #registration .sg-register-card .row {
    margin-right: -8px;
    margin-left: -8px;
}

body.sg-page-clientregister #registration .sg-register-card .row > [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

body.sg-page-clientregister #registration .sg-register-card .form-group {
    margin-bottom: 16px;
}

body.sg-page-clientregister #registration .sg-register-card--personal .form-group {
    min-height: 36px;
}

body.sg-page-clientregister #registration #inputCountry,
body.sg-page-clientregister #registration #inputCurrency,
body.sg-page-clientregister #registration #inputSecurityQId {
    min-height: 36px;
}

body.sg-page-clientregister #registration #containerPassword {
    align-items: stretch;
}

body.sg-page-clientregister #registration #containerPassword > [class*="col-"] {
    display: flex;
}

body.sg-page-clientregister #registration #containerPassword > [class*="col-"] > .form-group,
body.sg-page-clientregister #registration #containerPassword .password-strength-meter {
    width: 100%;
}

body.sg-page-clientregister #registration #containerPassword .generate-password {
    width: 100%;
    min-height: 36px;
}

body.sg-page-clientregister #registration #containerPassword .password-strength-meter {
    align-self: center;
    padding-top: 2px;
}

body.sg-page-clientregister #registration #containerPassword .password-strength-meter .progress {
    margin-bottom: 7px;
}

body.sg-page-clientregister #registration #containerPassword #passwordStrengthTextLabel {
    margin-bottom: 0;
    line-height: 1.35;
}

body.sg-page-clientregister #registration #passwdFeedback {
    margin-bottom: 16px;
}

body.sg-page-clientregister #registration .sg-register-marketing {
    border-color: var(--sg-border);
    box-shadow: none;
}

body.sg-page-clientregister #registration .sg-register-marketing .card-title {
    margin-bottom: 8px;
}

body.sg-page-clientregister #registration .sg-register-marketing p {
    color: var(--sg-text-secondary);
}

.sg-cancellation-page {
    max-width: 760px;
    margin: 0 auto;
}

.sg-cancellation-page > h1 {
    margin: 0 0 24px;
    color: var(--sg-ink);
    font-size: var(--sg-type-page);
}

.sg-cancellation-card {
    border-color: var(--sg-border);
    box-shadow: var(--sg-shadow-sm);
}

.sg-cancellation-form .form-text {
    display: block;
    max-width: 460px;
    margin: 8px auto 0;
}

.sg-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 25px;
}

/* v1.5.8 Account UI Modernization Phase A.  These styles only provide the
 * shared presentation shell for the four account surfaces in this release. */
.sg-account-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.sg-account-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid var(--sg-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.sg-account-status--warning {
    border-color: #ead8ac;
    background: #fff9e9;
    color: #765018;
}

.sg-account-status--success {
    border-color: #b8d9c9;
    background: #edf8f2;
    color: #1d6647;
}

.sg-account-page-note {
    margin: -8px 0 4px;
    color: var(--sg-text-muted);
    font-size: 13px;
}

.sg-password-input-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sg-password-input-row .form-control {
    min-width: 0;
    flex: 1 1 auto;
}

.sg-password-input-row .generate-password {
    min-height: 43px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.sg-security-section .alert {
    margin-bottom: 20px;
}

.sg-security-block + .sg-security-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--sg-border);
}

.sg-security-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sg-email-list-wrap {
    margin-top: 4px;
}

.sg-email-page .sg-email-list {
    margin-bottom: 0;
    overflow: hidden;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius-md);
    border-spacing: 0;
    box-shadow: var(--sg-shadow-sm);
}

.sg-email-page .sg-email-list > thead > tr > th {
    padding: 13px 15px;
    background: var(--sg-surface-muted);
    color: var(--sg-text-secondary);
    font-size: 12px;
    font-weight: 750;
}

body.sg-body .sg-email-page .sg-email-list > tbody > tr > td {
    padding: 15px;
    background: var(--sg-surface);
    vertical-align: middle;
}

body.sg-body .sg-email-page .sg-email-list > tbody > tr:hover > td {
    background: var(--sg-surface-muted);
}

.sg-email-page .sg-email-list > tbody > tr {
    cursor: pointer;
    transition: background-color var(--sg-transition), box-shadow var(--sg-transition);
}

.sg-email-page .sg-email-list__action {
    width: 1%;
    white-space: nowrap;
}

.sg-email-page .sg-email-view {
    border-color: var(--sg-border-strong);
    background: var(--sg-surface);
    color: var(--sg-text);
}

.sg-email-page .sg-email-view:hover,
.sg-email-page .sg-email-view:focus {
    border-color: var(--sg-accent-solid);
    background: var(--sg-accent-soft);
    color: var(--sg-text);
}

.sg-email-loading {
    padding: 34px 20px;
    color: var(--sg-text-muted);
}

@media (max-width: 700px) {
    .sg-password-input-row {
        flex-direction: column;
    }

    .sg-password-input-row .generate-password {
        width: 100%;
    }

    body.sg-body .sg-email-page .sg-email-list {
        display: block;
        overflow: visible;
        border: 0;
        box-shadow: none;
    }

    .sg-email-page .sg-email-list > thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }

    .sg-email-page .sg-email-list > tbody,
    .sg-email-page .sg-email-list > tbody > tr,
    body.sg-body .sg-email-page .sg-email-list > tbody > tr > td {
        display: block;
    }

    .sg-email-page .sg-email-list > tbody > tr {
        margin-bottom: 12px;
        padding: 10px 15px;
        border: 1px solid var(--sg-border);
        border-radius: var(--sg-radius-md);
        background: var(--sg-surface);
        box-shadow: var(--sg-shadow-sm);
    }

    body.sg-body .sg-email-page .sg-email-list > tbody > tr > td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 14px;
        padding: 7px 0;
        border: 0;
        background: transparent;
        text-align: right;
    }

    .sg-email-page .sg-email-list > tbody > tr > td::before {
        flex: 0 0 auto;
        color: var(--sg-text-muted);
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        text-align: left;
    }

    .sg-email-page .sg-email-list > tbody > tr > td:nth-child(2) {
        align-items: flex-start;
    }

    .sg-email-page .sg-email-list > tbody > tr > td:last-child {
        margin-top: 5px;
        padding-top: 12px;
        border-top: 1px solid var(--sg-border);
    }
}
