.sg7g-admin-fields { padding: 4px 2px 10px; }
.sg7g-admin-intro { margin: 0 0 18px; padding: 12px 14px; background: #f6f7f7; border-left: 4px solid #2271b1; }
.sg7g-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sg7g-field { margin-bottom: 18px; }
.sg7g-field label { display: block; margin-bottom: 7px; font-weight: 600; }
.sg7g-field select, .sg7g-field input[type="text"], .sg7g-field input[type="url"] { min-height: 40px; }
.sg7g-file-row { display: flex; gap: 10px; align-items: center; }
.sg7g-file-row input[type="text"] { flex: 1; }
@media (max-width: 782px) { .sg7g-field-grid { grid-template-columns: 1fr; gap: 0; } .sg7g-file-row { align-items: stretch; flex-direction: column; } }

/* 7S Video & Music Gallery settings panel */
.sg7g-settings-page {
    max-width: none;
    margin-top: 10px;
}

.sg7g-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 12px;
    padding: 16px 20px;
    border: 1px solid #dcdcde;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(29, 35, 39, .055);
}

.sg7g-panel-header__identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sg7g-panel-header__mark {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 15px;
    background: #1d2327;
    color: #fff;
    font-size: 25px;
    font-weight: 750;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(29, 35, 39, .18);
}


.sg7g-panel-header h1 {
    margin: 0 0 3px;
    padding: 0;
    color: #1d2327;
    font-size: 25px;
    line-height: 1.15;
}

.sg7g-panel-header p {
    max-width: 760px;
    margin: 0;
    color: #646970;
    font-size: 14px;
    line-height: 1.45;
}

.sg7g-panel-header__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.sg7g-panel-view-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
    color: #3c434a;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}


.sg7g-panel-view-link .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.sg7g-panel-view-link:hover,
.sg7g-panel-view-link:focus {
    border-color: #1d2327;
    color: #1d2327;
}

.sg7g-settings-form {
    min-width: 0;
    margin: 0;
}

.sg7g-settings-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #dcdcde;
    border-radius: 16px;
    background: #f6f7f7;
    box-shadow: 0 8px 28px rgba(29, 35, 39, .05);
}

.sg7g-settings-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px 12px;
    background: #1d2327;
    scrollbar-width: thin;
}

.sg7g-settings-nav__item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 58px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #c3c4c7;
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.sg7g-settings-nav__item > .dashicons {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #8c8f94;
    font-size: 20px;
}

.sg7g-settings-nav__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.sg7g-settings-nav__copy strong {
    color: inherit;
    font-size: 13px;
    line-height: 1.25;
}

.sg7g-settings-nav__copy small {
    overflow: hidden;
    color: #8c8f94;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-settings-nav__item:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    transform: translateX(2px);
}

.sg7g-settings-nav__item.is-active {
    background: #fff;
    color: #1d2327;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}

.sg7g-settings-nav__item.is-active > .dashicons,
.sg7g-settings-nav__item.is-active .sg7g-settings-nav__copy small {
    color: #50575e;
}

.sg7g-settings-nav__item:focus-visible {
    outline: 2px solid #72aee6;
    outline-offset: 2px;
}

.sg7g-settings-content {
    min-width: 0;
    min-height: 0;
    padding: 22px;
    background: #f6f7f7;
}

.sg7g-settings-panel {
    margin: 0;
}

.sg7g-tabs-ready .sg7g-settings-panel {
    display: none;
    margin: 0;
}

.sg7g-tabs-ready .sg7g-settings-panel.is-active {
    display: block;
}

.sg7g-settings-card {
    overflow: hidden;
    margin: 0 0 14px;
    border: 1px solid #dcdcde;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(29, 35, 39, .04);
}

.sg7g-settings-card__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #eceef0;
    background: #fff;
}

.sg7g-settings-card__header > .dashicons {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: #f0f0f1;
    color: #1d2327;
    font-size: 18px;
    line-height: 34px;
}

.sg7g-settings-card__header h3 {
    margin: 0 0 4px;
    color: #1d2327;
    font-size: 15px;
    line-height: 1.35;
}

.sg7g-settings-card__header p {
    margin: 0;
    color: #646970;
    font-size: 12px;
    line-height: 1.45;
}

.sg7g-settings-card__body {
    padding: 20px;
}

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

.sg7g-settings-grid--single {
    grid-template-columns: minmax(260px, 520px);
}

.sg7g-settings-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sg7g-settings-stack {
    display: grid;
    gap: 12px;
}

.sg7g-setting-field {
    min-width: 0;
}

.sg7g-setting-field > label {
    display: block;
    margin-bottom: 7px;
    color: #1d2327;
    font-size: 13px;
    font-weight: 650;
}

.sg7g-setting-field input[type="text"],
.sg7g-setting-field input[type="number"],
.sg7g-setting-field select {
    width: 100%;
    max-width: none;
    min-height: 42px;
    box-sizing: border-box;
    border-color: #c3c4c7;
    border-radius: 8px;
    background: #fff;
}

.sg7g-setting-field input[type="text"]:focus,
.sg7g-setting-field input[type="number"]:focus,
.sg7g-setting-field select:focus {
    border-color: #1d2327;
    box-shadow: 0 0 0 1px #1d2327;
}

.sg7g-setting-field .description {
    max-width: 620px;
    margin: 7px 0 0;
    color: #72777c;
    font-size: 12px;
    line-height: 1.5;
}

.sg7g-setting-field--switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f6f7f7;
}

.sg7g-setting-field__copy {
    min-width: 0;
}

.sg7g-setting-field__copy strong {
    display: block;
    color: #1d2327;
    font-size: 13px;
    line-height: 1.4;
}

.sg7g-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    cursor: pointer;
}

.sg7g-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.sg7g-switch__track {
    position: relative;
    display: block;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #a7aaad;
    transition: background .18s ease, box-shadow .18s ease;
}

.sg7g-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    transition: transform .18s ease;
}

.sg7g-switch input:checked + .sg7g-switch__track {
    background: #1d2327;
}

.sg7g-switch input:checked + .sg7g-switch__track .sg7g-switch__thumb {
    transform: translateX(20px);
}

.sg7g-switch input:focus-visible + .sg7g-switch__track {
    box-shadow: 0 0 0 3px rgba(34, 113, 177, .25);
}

.sg7g-switch--small .sg7g-switch__track {
    width: 38px;
    height: 22px;
}

.sg7g-switch--small .sg7g-switch__thumb {
    width: 16px;
    height: 16px;
}

.sg7g-switch--small input:checked + .sg7g-switch__track .sg7g-switch__thumb {
    transform: translateX(16px);
}

.sg7g-choice-grid {
    display: grid;
    gap: 14px;
}

.sg7g-choice-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sg7g-choice-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sg7g-choice-option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.sg7g-choice-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.sg7g-choice-option__card {
    position: relative;
    display: flex;
    min-height: 106px;
    height: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dcdcde;
    border-radius: 11px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.sg7g-choice-option:hover .sg7g-choice-option__card {
    border-color: #8c8f94;
    transform: translateY(-1px);
}

.sg7g-choice-option > input:checked + .sg7g-choice-option__card {
    border-color: #1d2327;
    box-shadow: 0 0 0 2px rgba(29, 35, 39, .12);
}

.sg7g-choice-option > input:focus-visible + .sg7g-choice-option__card {
    outline: 2px solid #2271b1;
    outline-offset: 3px;
}

.sg7g-choice-option__icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: #f0f0f1;
    color: #1d2327;
    font-size: 18px;
    line-height: 34px;
}

.sg7g-choice-option__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding-right: 18px;
}

.sg7g-choice-option__copy strong {
    color: #1d2327;
    font-size: 13px;
    line-height: 1.35;
}

.sg7g-choice-option__copy small {
    color: #72777c;
    font-size: 11px;
    line-height: 1.45;
}

.sg7g-choice-option__check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    color: #1d2327;
    font-size: 18px;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .15s ease, transform .15s ease;
}

.sg7g-choice-option > input:checked + .sg7g-choice-option__card .sg7g-choice-option__check {
    opacity: 1;
    transform: scale(1);
}

.sg7g-input-with-suffix {
    display: flex;
    align-items: stretch;
}

.sg7g-input-with-suffix input {
    border-radius: 8px 0 0 8px !important;
}

.sg7g-input-with-suffix > span {
    display: grid;
    min-width: 44px;
    padding: 0 10px;
    place-items: center;
    border: 1px solid #c3c4c7;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: #f0f0f1;
    color: #646970;
    font-size: 12px;
    font-weight: 650;
}

.sg7g-network-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sg7g-network-option {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    background: #fff;
}

.sg7g-network-option__mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: #1d2327;
    color: #fff;
    font-size: 11px;
    font-weight: 750;
}

.sg7g-network-option strong {
    overflow: hidden;
    color: #1d2327;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-slug-field {
    display: flex;
    align-items: stretch;
}

.sg7g-slug-field > span {
    display: flex;
    max-width: 170px;
    align-items: center;
    overflow: hidden;
    padding: 0 10px;
    border: 1px solid #c3c4c7;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #f0f0f1;
    color: #646970;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-slug-field input {
    border-radius: 0 8px 8px 0 !important;
}

.sg7g-slug-preview {
    display: block;
    overflow: hidden;
    margin-top: 7px;
    color: #50575e;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sg7g-color-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    background: #fff;
}

.sg7g-color-field > label {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    cursor: pointer;
}

.sg7g-color-field__swatch {
    display: block;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 9px;
    background: var(--sg7g-swatch);
}

.sg7g-color-field label > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.sg7g-color-field strong {
    color: #1d2327;
    font-size: 12px;
}

.sg7g-color-field code {
    color: #72777c;
    font-size: 10px;
}

.sg7g-color-field small {
    max-width: 420px;
    color: #646970;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}

.sg7g-color-field input[type="color"] {
    width: 42px;
    height: 34px;
    padding: 2px;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.sg7g-popular-color-setting {
    max-width: 620px;
    margin-top: 16px;
}

.sg7g-panel-note {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 9px;
    background: #f0f6fc;
    color: #50575e;
    font-size: 12px;
    line-height: 1.5;
}

[data-sg7g-dependent-content] {
    transition: opacity .18s ease;
}

[data-sg7g-dependent-section].is-inactive [data-sg7g-dependent-content] {
    opacity: .5;
}

.sg7g-dependent-field {
    max-width: 520px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 10px;
    background: #f6f7f7;
    transition: opacity .18s ease;
}

.sg7g-dependent-field.is-inactive {
    opacity: .48;
}

.sg7g-settings-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 8px -22px -22px;
    padding: 15px 20px;
    border: 0;
    border-top: 1px solid #dcdcde;
    border-radius: 0;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -8px 20px rgba(29, 35, 39, .045);
    backdrop-filter: blur(10px);
}

.sg7g-settings-actions__status {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sg7g-settings-actions__status .dashicons {
    color: #646970;
}

.sg7g-settings-actions p {
    margin: 0;
    color: #646970;
    font-size: 12px;
}

.sg7g-settings-form.is-dirty .sg7g-settings-actions__status .dashicons,
.sg7g-settings-form.is-dirty .sg7g-settings-actions p {
    color: #b26200;
}

.sg7g-settings-actions .button-primary {
    min-height: 40px;
    padding: 0 20px;
    border-radius: 8px;
}


/* Typography settings */
[data-sg7g-typography-custom] {
    transition: opacity .18s ease;
}

[data-sg7g-typography-custom].is-inactive {
    opacity: .5;
}

.sg7g-typography-preview-card {
    margin-bottom: 20px;
}

.sg7g-typography-preview-card > .sg7g-settings-card {
    margin-bottom: 0;
    box-shadow: 0 6px 18px rgba(29, 35, 39, .07);
}

.sg7g-typography-preview-card .sg7g-settings-card__body {
    padding: 0;
}

.sg7g-typography-source-card .sg7g-settings-card__body {
    padding: 16px 20px;
}

.sg7g-typography-source-card .sg7g-choice-option__card {
    min-height: 0;
    align-items: center;
    padding: 14px 16px;
}

.sg7g-typography-source-card .sg7g-choice-option__copy {
    justify-content: center;
    gap: 3px;
}

.sg7g-typography-source-card .sg7g-choice-option__check {
    top: 50%;
    transform: translateY(-50%) scale(.7);
}

.sg7g-typography-source-card .sg7g-choice-option > input:checked + .sg7g-choice-option__card .sg7g-choice-option__check {
    transform: translateY(-50%) scale(1);
}

.sg7g-typography-preview {
    overflow: hidden;
    background: #fff;
}

.sg7g-typography-preview__toolbar {
    display: block;
    padding: 14px;
    border-bottom: 1px solid #dcdcde;
    background: #fff;
}

.sg7g-typography-preview__status {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 10px;
}

.sg7g-typography-preview__status strong {
    color: #1d2327;
    font-size: 13px;
    line-height: 1.3;
}

.sg7g-typography-preview__status span {
    color: #646970;
    font-size: 11px;
    line-height: 1.3;
}

.sg7g-typography-preview__devices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sg7g-typography-preview__device {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 98px;
    grid-template-columns: minmax(130px, .8fr) minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 11px;
    border: 1px solid #dcdcde;
    border-radius: 11px;
    background: #fff;
    color: #50575e;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.sg7g-typography-preview__device:hover {
    border-color: #8c8f94;
    color: #1d2327;
    transform: translateY(-1px);
}

.sg7g-typography-preview__device.is-active {
    border-color: #1d2327;
    background: #fff;
    color: #1d2327;
    box-shadow: 0 0 0 2px rgba(29, 35, 39, .12);
}

.sg7g-typography-preview__device:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 3px;
}

.sg7g-typography-preview__device-visual {
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 6.8;
    min-height: 64px;
    box-sizing: border-box;
    overflow: hidden;
    gap: 4px;
    padding: 6px;
    border-radius: 8px;
    background: #f0f0f1;
}

.sg7g-typography-preview__device-visual i {
    display: block;
    min-width: 0;
    min-height: 0;
    border-radius: 3px;
    background: #787c82;
}

.sg7g-typography-preview__device-visual--desktop {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.sg7g-typography-preview__device-visual--desktop i:first-child {
    grid-column: span 2;
    grid-row: span 2;
    background: #50575e;
}

.sg7g-typography-preview__device-visual--mobile {
    width: 58%;
    min-width: 70px;
    justify-self: center;
    aspect-ratio: 9 / 12;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    padding: 5px;
}

.sg7g-typography-preview__device-visual--mobile i:first-child {
    grid-column: 1 / -1;
    background: #50575e;
}

.sg7g-typography-preview__device-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.sg7g-typography-preview__device-copy strong {
    color: #1d2327;
    font-size: 13px;
    line-height: 1.35;
}

.sg7g-typography-preview__device-copy small {
    color: #72777c;
    font-size: 11px;
    line-height: 1.4;
}

.sg7g-typography-preview__device-check {
    width: 18px;
    height: 18px;
    color: #1d2327;
    font-size: 18px;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .15s ease, transform .15s ease;
}

.sg7g-typography-preview__device.is-active .sg7g-typography-preview__device-check {
    opacity: 1;
    transform: scale(1);
}

.sg7g-typography-preview__stage {
    display: block;
    min-height: 0;
    padding: 24px;
    overflow: hidden;
    background: #f6f7f7;
}

.sg7g-typography-preview__canvas {
    display: block;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #171717;
    transition: width .2s ease, max-width .2s ease, padding .2s ease;
}

.sg7g-typography-preview__featured-sample,
.sg7g-typography-preview__normal-card,
.sg7g-typography-preview__single {
    min-width: 0;
}

.sg7g-typography-preview__samples {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

.sg7g-typography-preview__sample-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 0 12px 14px;
    border: 1px solid #dcdcde;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.sg7g-typography-preview__sample-card > .sg7g-typography-preview__sample-label {
    margin: 0 -12px 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e4e7;
    color: #1d2327;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.sg7g-typography-preview__sample-label {
    display: block;
    margin-bottom: 6px;
    color: #646970;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.sg7g-typography-preview__featured-visual,
.sg7g-typography-preview__card-visual {
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    padding: 6px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #f0f0f1;
}

.sg7g-typography-preview__featured-visual::before,
.sg7g-typography-preview__card-visual::before {
    position: absolute;
    inset: 6px;
    border-radius: 4px;
    content: "";
}

.sg7g-typography-preview__showcase {
    display: grid;
    min-height: 0;
    flex: 0 0 auto;
    gap: 14px;
}

.sg7g-typography-preview__showcase-item {
    display: block;
    min-width: 0;
    min-height: 0;
}

.sg7g-typography-preview__showcase[data-layout="editorial_1_4"] {
    grid-template-columns: minmax(0, 2.6fr) repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    align-items: start;
}

.sg7g-typography-preview__showcase[data-layout="editorial_1_4"] .sg7g-typography-preview__showcase-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.sg7g-typography-preview__showcase[data-layout="editorial_1_4"] .sg7g-typography-preview__showcase-item:nth-child(n+2) {
    grid-column: span 1;
}

.sg7g-typography-preview__showcase[data-layout="editorial_2_3"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    align-items: start;
}

.sg7g-typography-preview__showcase[data-layout="editorial_2_3"] .sg7g-typography-preview__showcase-item:nth-child(-n+2) {
    grid-column: span 3;
}

.sg7g-typography-preview__showcase[data-layout="editorial_2_3"] .sg7g-typography-preview__showcase-item:nth-child(n+3) {
    grid-column: span 2;
}

.sg7g-typography-preview__featured-visual {
    min-height: 0;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
}

.sg7g-typography-preview__featured-visual--lead {
    --sg7g-preview-block: #50575e;
}

.sg7g-typography-preview__featured-visual::before {
    background: var(--sg7g-preview-block, #787c82);
}

.sg7g-typography-preview__media-icon {
    position: absolute;
    bottom: 7px;
    left: 7px;
    width: 16px;
    height: 16px;
    color: #fff;
    font-size: 16px;
    line-height: 16px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .75));
}

.sg7g-typography-preview__featured-visual > .sg7g-typography-preview__metrics {
    position: absolute;
    top: 7px;
    left: 7px;
    margin: 0;
    color: rgba(255, 255, 255, .94);
    font-size: 9px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .75);
}

.sg7g-typography-preview__card-copy {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.sg7g-typography-preview__featured-title {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    margin-top: 4px;
    color: inherit;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.13;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-typography-preview__showcase-item .sg7g-typography-preview__featured-title {
    margin-top: 5px;
}

.sg7g-typography-preview__metrics {
    display: block;
    flex: 0 0 auto;
    margin-top: 5px;
    color: #646970;
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
}

.sg7g-typography-preview__normal-card {
    align-self: stretch;
}

.sg7g-typography-preview__card-visual {
    aspect-ratio: 16 / 9;
}

.sg7g-typography-preview__card-visual::before {
    background: #50575e;
}

.sg7g-typography-preview__card-title {
    min-width: 0;
    overflow: hidden;
    margin: 5px 0 0;
    color: inherit;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-typography-preview__single {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 14px;
    padding: 20px;
    border: 1px solid #dcdcde;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.sg7g-typography-preview__single-title {
    margin: 0 0 10px;
    color: inherit;
    font-size: 54px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.025em;
}

.sg7g-typography-preview__body-text {
    margin: 0;
    color: #3c434a;
    font-size: 18px;
    line-height: 1.48;
}

.sg7g-typography-preview__mobile-navigation {
    display: none;
}

.sg7g-typography-preview__stage[data-device="mobile"] .sg7g-typography-preview__mobile-navigation {
    position: sticky;
    z-index: 4;
    bottom: 0;
    display: grid;
    height: 42px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 8px;
    background: #141619;
    box-shadow: 0 -5px 18px rgba(0, 0, 0, .2);
    color: #fff;
}

.sg7g-typography-preview__mobile-navigation-item {
    display: flex;
    min-width: 0;
    height: 42px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 2px;
    color: rgba(255, 255, 255, .82);
    font-size: 8px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.sg7g-typography-preview__mobile-navigation-item.is-active {
    border-radius: 8px;
    background: #a13b43;
    color: #fff;
}

.sg7g-typography-preview__mobile-navigation-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
}

.sg7g-typography-preview__mobile-navigation-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sg7g-typography-preview__mobile-navigation-icon .sg7g-icon-fill {
    fill: currentColor;
    stroke: none;
}

.sg7g-typography-preview__stage[data-device="mobile"] {
    padding: 16px 20px;
}

.sg7g-typography-preview__stage[data-device="mobile"] .sg7g-typography-preview__canvas {
    width: min(100%, 390px);
    margin: 0 auto;
    padding: 0;
}

.sg7g-typography-preview__stage[data-device="mobile"] .sg7g-typography-preview__showcase,
.sg7g-typography-preview__stage[data-device="mobile"] .sg7g-typography-preview__showcase[data-layout="editorial_1_4"],
.sg7g-typography-preview__stage[data-device="mobile"] .sg7g-typography-preview__showcase[data-layout="editorial_2_3"] {
    flex: 0 0 auto;
    align-content: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-template-areas: none;
    gap: 10px;
}

.sg7g-typography-preview__stage[data-device="mobile"] .sg7g-typography-preview__featured-visual {
    min-height: 0;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
}

.sg7g-typography-preview__stage[data-device="mobile"] .sg7g-typography-preview__showcase[data-layout="editorial_1_4"] .sg7g-typography-preview__showcase-item:nth-child(1),
.sg7g-typography-preview__stage[data-device="mobile"] .sg7g-typography-preview__showcase[data-layout="editorial_1_4"] .sg7g-typography-preview__showcase-item:nth-child(2),
.sg7g-typography-preview__stage[data-device="mobile"] .sg7g-typography-preview__showcase[data-layout="editorial_1_4"] .sg7g-typography-preview__showcase-item:nth-child(3) {
    grid-area: auto;
}

.sg7g-typography-preview__stage[data-device="mobile"] .sg7g-typography-preview__showcase[data-layout="editorial_1_4"] .sg7g-typography-preview__showcase-item:nth-child(1),
.sg7g-typography-preview__stage[data-device="mobile"] .sg7g-typography-preview__showcase[data-layout="editorial_2_3"] .sg7g-typography-preview__showcase-item:nth-child(-n+2) {
    grid-column: 1 / -1;
}

.sg7g-typography-preview__stage[data-device="mobile"] .sg7g-typography-preview__showcase[data-layout="editorial_2_3"] .sg7g-typography-preview__showcase-item:nth-child(n+3) {
    grid-column: auto;
}

.sg7g-typography-preview__stage[data-device="mobile"] .sg7g-typography-preview__samples {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.sg7g-typography-control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sg7g-typography-control-group {
    min-width: 0;
    padding: 15px;
    border: 1px solid #dcdcde;
    border-radius: 11px;
    background: #f6f7f7;
}

.sg7g-typography-control-group > header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sg7g-typography-control-group > header .dashicons {
    width: 18px;
    height: 18px;
    color: #646970;
    font-size: 18px;
    line-height: 18px;
}

.sg7g-typography-control-group h4 {
    margin: 0;
    color: #1d2327;
    font-size: 14px;
    line-height: 1.35;
}

.sg7g-typography-control-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sg7g-typography-control-fields .sg7g-setting-field {
    min-width: 0;
}

.sg7g-typography-control-fields .sg7g-setting-field label {
    margin-bottom: 5px;
    font-size: 12px;
}

.sg7g-typography-control-fields select,
.sg7g-typography-control-fields input[type="number"] {
    width: 100%;
    max-width: none;
}

@media (max-width: 782px) {
    .sg7g-typography-preview__devices {
        width: 100%;
        box-sizing: border-box;
        grid-template-columns: minmax(0, 1fr);
    }

    .sg7g-typography-preview__device {
        grid-template-columns: minmax(110px, .75fr) minmax(0, 1fr) 20px;
    }

    .sg7g-typography-preview__stage {
        padding: 14px;
    }

    .sg7g-typography-control-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .sg7g-typography-preview__showcase,
    .sg7g-typography-preview__samples {
        grid-template-columns: minmax(0, 1fr);
    }

    .sg7g-typography-preview__samples {
        gap: 12px;
    }

    .sg7g-typography-preview__showcase,
    .sg7g-typography-preview__showcase[data-layout="editorial_1_4"],
    .sg7g-typography-preview__showcase[data-layout="editorial_2_3"] {
        flex: 0 0 auto;
        grid-template-rows: none;
    }

    .sg7g-typography-preview__featured-visual {
        min-height: 0;
        flex: 0 0 auto;
        aspect-ratio: 16 / 9;
    }

    .sg7g-typography-preview__single {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .sg7g-typography-control-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Featured settings inside the new card structure */
.sg7g-settings-card .sg7g-setting-field--wide {
    grid-column: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.sg7g-settings-card .sg7g-setting-label {
    display: none;
}

.sg7g-settings-card .sg7g-setting-field--wide > .description {
    margin: 0 0 14px;
}

.sg7g-settings-card .sg7g-featured-order,
.sg7g-settings-card .sg7g-featured-order-empty {
    max-width: none;
}

@media (max-width: 1180px) {
    .sg7g-network-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sg7g-choice-grid--3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .sg7g-settings-shell {
        grid-template-columns: 1fr;
    }

    .sg7g-settings-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        scroll-snap-type: x proximity;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .sg7g-settings-nav__item {
        flex: 0 0 auto;
        width: auto;
        min-height: 46px;
    }

    .sg7g-settings-nav__copy small {
        display: none;
    }

    .sg7g-settings-nav__item:hover {
        transform: none;
    }

    .sg7g-settings-content {
        min-height: 0;
    }

}

@media (max-width: 782px) {
    .sg7g-settings-page {
        margin-right: 10px;
    }

    .sg7g-panel-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 16px;
    }

    .sg7g-panel-header__identity,
    .sg7g-panel-header__meta {
        width: 100%;
    }

    .sg7g-panel-header__meta {
        flex-wrap: wrap;
    }

    .sg7g-panel-view-link {
        min-height: 44px;
    }

    .sg7g-panel-view-link {
        flex: 1 1 auto;
        justify-content: center;
    }

    .sg7g-settings-content {
        padding: 16px 12px 18px;
    }

    .sg7g-settings-grid,
    .sg7g-choice-grid--2,
    .sg7g-color-grid {
        grid-template-columns: 1fr;
    }

    .sg7g-settings-card__header,
    .sg7g-settings-card__body {
        padding: 16px;
    }

    .sg7g-choice-option__card {
        min-height: 0;
    }

    .sg7g-setting-field input[type="text"],
    .sg7g-setting-field input[type="number"],
    .sg7g-setting-field select {
        font-size: 16px;
    }

    .sg7g-setting-field--switch {
        gap: 14px;
    }

    .sg7g-settings-actions {
        position: static;
        align-items: stretch;
        flex-direction: column;
        margin: 8px -12px -18px;
    }

    .sg7g-settings-actions .button-primary {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .sg7g-panel-header__identity {
        align-items: flex-start;
    }

    .sg7g-panel-header__mark {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 21px;
    }

    .sg7g-network-grid {
        grid-template-columns: 1fr;
    }

    .sg7g-setting-field--switch,
    .sg7g-color-field,
    .sg7g-tool-option {
        align-items: flex-start;
    }

    .sg7g-slug-field {
        display: block;
    }

    .sg7g-slug-field > span {
        max-width: none;
        min-height: 34px;
        border-right: 1px solid #c3c4c7;
        border-bottom: 0;
        border-radius: 8px 8px 0 0;
    }

    .sg7g-slug-field input {
        border-radius: 0 0 8px 8px !important;
    }
}

/* Source validation and live preview */
.sg7g-source-feedback {
    min-height: 22px;
    margin-top: 8px;
    font-weight: 600;
}

.sg7g-source-feedback.is-valid { color: #087f5b; }
.sg7g-source-feedback.is-invalid { color: #b32d2e; }
.sg7g-source-feedback.is-neutral { color: #646970; }

.sg7g-preview-panel {
    margin-top: 4px;
    padding: 18px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #f6f7f7;
}

.sg7g-preview-panel__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.sg7g-preview-panel__header h3 {
    margin: 0;
    font-size: 15px;
}

.sg7g-preview-panel__header span {
    color: #646970;
    font-size: 12px;
}

.sg7g-player-preview {
    overflow: hidden;
    min-height: 120px;
    border-radius: 8px;
    background: #fff;
}

.sg7g-player-preview > p {
    margin: 0;
    padding: 36px 24px;
    color: #646970;
    text-align: center;
}

.sg7g-preview-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
}

.sg7g-preview-frame iframe,
.sg7g-player-preview video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.sg7g-preview-frame--spotify,
.sg7g-preview-frame--apple_music,
.sg7g-preview-frame--soundcloud,
.sg7g-preview-frame--deezer {
    aspect-ratio: auto;
    background: transparent;
}

.sg7g-preview-frame--spotify iframe { height: 352px; }
.sg7g-preview-frame--spotify-track iframe,
.sg7g-preview-frame--spotify-episode iframe { height: 152px; }
.sg7g-preview-frame--apple_music iframe { height: 450px; }
.sg7g-preview-frame--apple-music-song iframe { height: 175px; }
.sg7g-preview-frame--soundcloud iframe,
.sg7g-preview-frame--deezer iframe { height: 300px; }
.sg7g-preview-frame--soundcloud-set iframe { height: 450px; }
.sg7g-player-preview video {
    max-height: 520px;
    background: #111;
}

.sg7g-player-preview audio {
    display: block;
    width: calc(100% - 32px);
    margin: 34px 16px;
}

/* Media list */
.post-type-sg7g_media .column-sg7g_thumbnail { width: 110px; }
.post-type-sg7g_media .column-sg7g_media_type { width: 90px; }
.post-type-sg7g_media .column-sg7g_source { width: 150px; }

.sg7g-admin-cover {
    display: block;
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 7px;
    background: #f0f0f1;
}

.sg7g-admin-cover--empty {
    background: linear-gradient(135deg, #f0f0f1, #dcdcde);
}

@media (max-width: 782px) {
    .sg7g-preview-panel__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* Featured content settings */
.sg7g-setting-field--wide {
    grid-column: 1 / -1;
    margin-top: 24px;
    padding: 0;
    border: 0;
    background: transparent;
}

.sg7g-setting-label {
    display: block;
    margin-bottom: 7px;
    color: #1d2327;
    font-size: 15px;
    font-weight: 700;
}


.sg7g-featured-order {
    max-width: 900px;
    margin: 16px 0 0;
    padding: 0;
}

.sg7g-featured-order__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    margin: 0 0 9px;
    padding: 8px 12px 8px 9px;
    border: 1px solid #dcdcde;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .025);
    transition: border-color .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.sg7g-featured-order__item:hover {
    border-color: #a7aaad;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
}

.sg7g-featured-order__item.is-reserve {
    opacity: .68;
    background: #f8f9f9;
}

.sg7g-featured-order__position {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: #1d2327;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.sg7g-featured-order__item.is-reserve .sg7g-featured-order__position {
    background: #8c8f94;
}

.sg7g-featured-order__handle {
    flex: 0 0 auto;
    padding: 13px 3px;
    color: #646970;
    font-size: 18px;
    line-height: 1;
    cursor: grab;
    user-select: none;
}

.sg7g-featured-order__handle:active {
    cursor: grabbing;
}

.sg7g-featured-order__image {
    flex: 0 0 96px;
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 7px;
    background: #f0f0f1;
}

.sg7g-featured-order__image--empty {
    display: block;
    background: linear-gradient(135deg, #f0f0f1, #dcdcde);
}

.sg7g-featured-order__content {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.sg7g-featured-order__content strong {
    overflow: hidden;
    color: #1d2327;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-featured-order__content small {
    color: #646970;
}

.sg7g-featured-order__placeholder {
    height: 70px;
    margin-bottom: 9px;
    border: 1px dashed #8c8f94;
    border-radius: 9px;
    background: #f6f7f7;
}

.sg7g-featured-order-empty {
    max-width: 900px;
    margin: 16px 0 0;
    padding: 15px 17px;
    border: 1px dashed #c3c4c7;
    border-radius: 9px;
    background: #f6f7f7;
    color: #50575e;
}

.post-type-sg7g_media .column-sg7g_featured {
    width: 90px;
}

@media (max-width: 782px) {
    .sg7g-featured-order__item {
        align-items: flex-start;
    }

    .sg7g-featured-order__position {
        margin-top: 8px;
    }

    .sg7g-featured-order__image {
        flex-basis: 80px;
        width: 80px;
        height: 45px;
    }
}

@media (max-width: 520px) {
    .sg7g-featured-order__item {
        gap: 8px;
        padding-right: 9px;
    }

    .sg7g-featured-order__position {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        margin-top: 6px;
    }

    .sg7g-featured-order__handle {
        display: block;
        padding: 10px 1px;
        font-size: 16px;
    }

    .sg7g-featured-order__image {
        flex-basis: 60px;
        width: 60px;
        height: 34px;
        margin-top: 3px;
    }

    .sg7g-featured-order__content strong {
        display: -webkit-box;
        overflow: hidden;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .sg7g-featured-order__content small {
        font-size: 11px;
        line-height: 1.35;
    }
}

/* Modern statistics and transfer surfaces. */
.sg7g-admin-modern-page {
    max-width: 1440px;
    margin-top: 20px;
}

.sg7g-panel-view-link--primary {
    border-color: #1d2327;
    background: #1d2327;
    color: #fff;
}

.sg7g-panel-view-link--primary:hover,
.sg7g-panel-view-link--primary:focus {
    border-color: #000;
    background: #000;
    color: #fff;
}

.sg7g-admin-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 18px;
    padding: 13px 15px;
    border: 1px solid #dcdcde;
    border-radius: 11px;
    background: #f6f7f7;
    color: #3c434a;
}

.sg7g-admin-note > .dashicons {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: #2271b1;
    font-size: 18px;
}

.sg7g-admin-note p {
    margin: 0;
    line-height: 1.55;
}

.sg7g-admin-note--warning {
    border-color: #dba617;
    background: #fff8e5;
}

.sg7g-admin-note--warning > .dashicons { color: #996800; }

.sg7g-admin-note--error {
    border-color: #d63638;
    background: #fcf0f1;
}

.sg7g-admin-note--error > .dashicons { color: #b32d2e; }

.sg7g-admin-card {
    box-sizing: border-box;
    border: 1px solid #dcdcde;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(29, 35, 39, .04);
}

.sg7g-admin-card__title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sg7g-admin-card__title > .dashicons {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: #f0f0f1;
    color: #1d2327;
    font-size: 19px;
    line-height: 36px;
}

.sg7g-admin-card__title h2 {
    margin: 0 0 4px;
}

.sg7g-admin-card__title p {
    margin: 0;
    color: #646970;
}

/* Statistics. */
.sg7g-stat-live-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #c3e6ca;
    border-radius: 10px;
    background: #f0f8f1;
    color: #006b20;
    font-size: 11px;
    font-weight: 700;
}

.sg7g-stat-live-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00a32a;
}

.sg7g-stat-live-status.is-updating > span { animation: sg7g-stat-pulse 1s ease-in-out infinite; }
.sg7g-stat-live-status.is-error { border-color: #f0c2c3; background: #fcf0f1; color: #b32d2e; }
.sg7g-stat-live-status.is-error > span { background: #d63638; }

@keyframes sg7g-stat-pulse {
    50% { opacity: .35; }
}

.sg7g-stat-summary-group > h2 {
    margin: 0 0 10px;
    color: #1d2327;
    font-size: 16px;
}

.sg7g-stat-summary-group--likes .sg7g-stat-card__icon { background: #a13b43; }

.sg7g-stat-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.sg7g-stat-card {
    display: flex;
    min-height: 128px;
    box-sizing: border-box;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid #dcdcde;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(29, 35, 39, .04);
}

.sg7g-stat-card__icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: #1d2327;
    color: #fff;
    font-size: 21px;
    line-height: 42px;
}

.sg7g-stat-card__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.sg7g-stat-card__copy > span {
    color: #50575e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.sg7g-stat-card__copy > strong {
    margin: 7px 0 5px;
    color: #1d2327;
    font-size: clamp(27px, 3vw, 40px);
    font-weight: 650;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sg7g-stat-card__copy > small {
    overflow: hidden;
    color: #757575;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-stat-panel {
    margin-bottom: 18px;
    padding: 22px;
}

.sg7g-stat-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.sg7g-stat-panel__header h2 {
    font-size: 17px;
    line-height: 1.35;
}

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

.sg7g-stat-chart {
    display: grid;
    grid-template-columns: repeat(30, minmax(10px, 1fr));
    align-items: end;
    gap: 5px;
    min-height: 286px;
    padding: 12px 2px 0;
    border-bottom: 1px solid #dcdcde;
}

.sg7g-stat-chart__day {
    display: grid;
    height: 250px;
    min-width: 0;
    grid-template-rows: 22px 1fr 28px;
    align-items: end;
    text-align: center;
}

.sg7g-stat-chart__value {
    overflow: hidden;
    color: #646970;
    font-size: 10px;
    line-height: 1;
    opacity: 0;
    text-overflow: ellipsis;
    transition: opacity .15s ease;
}

.sg7g-stat-chart__day:hover .sg7g-stat-chart__value,
.sg7g-stat-chart__day:focus-within .sg7g-stat-chart__value { opacity: 1; }

.sg7g-stat-chart__bar {
    display: block;
    width: min(22px, 76%);
    height: var(--sg7g-stat-height, 2%);
    min-height: 3px;
    margin: 0 auto;
    border-radius: 5px 5px 1px 1px;
    background: #1d2327;
}

.sg7g-stat-chart__label {
    overflow: hidden;
    padding-top: 7px;
    color: #646970;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.sg7g-stat-top-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sg7g-stat-top-list li {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid #eceef0;
}

.sg7g-stat-top-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.sg7g-stat-top-list__image {
    display: block;
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f0f1;
}

.sg7g-stat-top-list__image--empty { background: linear-gradient(135deg, #f0f0f1, #dcdcde); }

.sg7g-stat-top-list li > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.sg7g-stat-top-list a {
    overflow: hidden;
    color: #1d2327;
    font-weight: 650;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-stat-top-list a:hover,
.sg7g-stat-top-list a:focus-visible { color: #135e96; }

.sg7g-stat-top-list small {
    overflow: hidden;
    color: #646970;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-stat-top-list strong {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.sg7g-stat-empty {
    margin: 0;
    padding: 18px;
    border-radius: 9px;
    background: #f6f7f7;
    color: #646970;
    text-align: center;
}

.sg7g-stat-table-wrap { overflow-x: auto; }

.sg7g-stat-table {
    border: 0;
    box-shadow: none;
}

.sg7g-stat-table th:not(:first-child),
.sg7g-stat-table td:not(:first-child) {
    text-align: right;
    white-space: nowrap;
}

.sg7g-stat-table th:nth-child(2),
.sg7g-stat-table td:nth-child(2) { text-align: left; }

.sg7g-stat-table td:first-child { min-width: 260px; }

.sg7g-stat-table td:first-child small {
    display: block;
    margin-top: 4px;
    color: #646970;
}

.sg7g-stat-trend {
    display: inline-block;
    min-width: 48px;
    font-weight: 650;
    text-align: right;
}

.sg7g-stat-trend--up { color: #008a20; }
.sg7g-stat-trend--down { color: #b32d2e; }
.sg7g-stat-trend--flat { color: #646970; }
.sg7g-stat-panel--table .tablenav { margin: 18px 0 0; }

/* Transfer. */
.sg7g-settings-section-heading {
    margin: 0 0 18px;
}

.sg7g-settings-section-heading h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.sg7g-settings-section-heading p {
    margin: 0;
    color: #646970;
}

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

.sg7g-tools-card,
.sg7g-tools-preview {
    padding: 24px;
}

.sg7g-tools-card--demo {
    grid-column: 1 / -1;
}

.sg7g-tools-card__header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
}

.sg7g-tools-card__icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #1d2327;
    color: #fff;
    font-size: 21px;
    line-height: 44px;
}

.sg7g-tools-card__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #72777c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sg7g-tools-card h2,
.sg7g-tools-preview h2 {
    margin: 0;
    font-size: 19px;
}

.sg7g-tools-card > p {
    min-height: 62px;
    margin: 0 0 18px;
    color: #50575e;
    line-height: 1.6;
}

.sg7g-tools-feature-list {
    display: grid;
    gap: 9px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.sg7g-tools-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #3c434a;
}

.sg7g-tools-feature-list .dashicons {
    width: 17px;
    height: 17px;
    color: #008a20;
    font-size: 17px;
}

.sg7g-tools-form {
    display: grid;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #eceef0;
}

.sg7g-tools-demo {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: stretch;
    gap: 28px;
}

.sg7g-tools-demo__copy > p {
    max-width: 760px;
    margin: 0 0 18px;
    color: #50575e;
    line-height: 1.6;
}

.sg7g-tools-demo__copy .sg7g-tools-feature-list {
    margin-bottom: 0;
}

.sg7g-tools-demo__form {
    align-content: center;
    padding: 20px;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    background: #f6f7f7;
}

.sg7g-tools-demo__status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3c434a;
    font-weight: 600;
}

.sg7g-tools-demo__status .dashicons-yes-alt {
    color: #008a20;
}

.sg7g-tools-demo__status .dashicons-info-outline {
    color: #2271b1;
}

.sg7g-tools-demo__form > small {
    color: #646970;
    line-height: 1.45;
}

.sg7g-tool-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 14px;
    border-radius: 10px;
    background: #f6f7f7;
}

.sg7g-tool-option__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.sg7g-tool-option__copy strong {
    color: #1d2327;
    font-size: 12px;
}

.sg7g-tool-option__copy small {
    color: #646970;
    font-size: 11px;
    line-height: 1.45;
}

.sg7g-tools-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    justify-self: start;
    min-height: 40px !important;
}

.sg7g-tools-submit .dashicons {
    width: 17px;
    height: 17px;
    font-size: 17px;
    line-height: 17px;
}

.sg7g-tool-upload {
    display: grid;
    min-height: 146px;
    box-sizing: border-box;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 20px;
    border: 1px dashed #a7aaad;
    border-radius: 11px;
    background: #f6f7f7;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.sg7g-tool-upload:hover {
    border-color: #1d2327;
    background: #fff;
}

.sg7g-tool-upload > .dashicons {
    width: 30px;
    height: 30px;
    color: #1d2327;
    font-size: 30px;
}

.sg7g-tool-upload strong { color: #1d2327; }
.sg7g-tool-upload small { color: #646970; }
.sg7g-tool-upload input { max-width: 100%; margin-top: 7px; }

.sg7g-tools-preview { margin-top: 18px; }

.sg7g-tools-preview__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.sg7g-tools-preview__header p {
    margin: 0;
    color: #646970;
}

.sg7g-import-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 22px;
}

.sg7g-import-summary__box {
    min-width: 0;
    padding: 15px;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    background: #f8f9fa;
}

.sg7g-import-summary__box strong,
.sg7g-import-summary__box span { display: block; }

.sg7g-import-summary__box strong {
    margin-bottom: 5px;
    font-size: 22px;
    line-height: 1.15;
}

.sg7g-import-summary__box span {
    color: #646970;
    font-size: 11px;
    line-height: 1.35;
}

.sg7g-import-table-wrap {
    margin-top: 20px;
    overflow-x: auto;
}

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

.sg7g-import-state {
    display: inline-block;
    margin: 2px 5px 2px 0;
    font-size: 12px;
    font-weight: 650;
}

.sg7g-import-state--new { color: #008a20; }
.sg7g-import-state--existing,
.sg7g-import-state--warning { color: #996800; }

.sg7g-import-options {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #dcdcde;
}

.sg7g-import-options fieldset { margin: 0 0 18px; }
.sg7g-import-options legend { margin-bottom: 11px; }

.sg7g-import-strategies {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.sg7g-import-strategy {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.sg7g-import-strategy input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.sg7g-import-strategy > span {
    display: flex;
    min-height: 82px;
    box-sizing: border-box;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.sg7g-import-strategy strong {
    color: #1d2327;
    font-size: 12px;
}

.sg7g-import-strategy small {
    color: #646970;
    font-size: 11px;
    line-height: 1.45;
}

.sg7g-import-strategy input:checked + span {
    border-color: #1d2327;
    box-shadow: 0 0 0 2px rgba(29, 35, 39, .12);
}

.sg7g-import-strategy input:focus-visible + span {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.sg7g-import-actions { margin-top: 18px; }
.sg7g-import-cancel { margin-top: 12px; }

@media (max-width: 1180px) {
    .sg7g-stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sg7g-stat-chart { overflow-x: auto; grid-template-columns: repeat(30, minmax(22px, 1fr)); }
    .sg7g-import-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .sg7g-panel-header__meta { flex-wrap: wrap; justify-content: flex-end; }
    .sg7g-tools-grid,
    .sg7g-stat-columns { grid-template-columns: 1fr; }
    .sg7g-tools-demo { grid-template-columns: 1fr; gap: 18px; }
    .sg7g-tools-card > p { min-height: 0; }
}

@media (max-width: 782px) {
    .sg7g-admin-modern-page { margin-top: 10px; }
    .sg7g-stat-cards,
    .sg7g-import-strategies { grid-template-columns: 1fr; }
    .sg7g-import-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sg7g-stat-panel,
    .sg7g-tools-card,
    .sg7g-tools-preview { padding: 18px; }
    .sg7g-stat-panel__header,
    .sg7g-tools-preview__header { align-items: stretch; flex-direction: column; }
    .sg7g-stat-top-list li { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 10px; }
    .sg7g-stat-top-list__image { width: 80px; height: 45px; }
    .sg7g-stat-table td:first-child { min-width: 220px; }
    .sg7g-tools-submit { width: 100%; justify-self: stretch; }
    .sg7g-tool-upload input { width: 100%; }
}

@media (max-width: 520px) {
    .sg7g-stat-card {
        min-height: 0;
        padding: 16px;
    }

    .sg7g-stat-card__copy > strong {
        font-size: 30px;
    }

    .sg7g-stat-top-list li {
        grid-template-columns: 64px minmax(0, 1fr);
        align-items: start;
    }

    .sg7g-stat-top-list__image {
        grid-row: 1 / span 2;
        width: 64px;
        height: 36px;
    }

    .sg7g-stat-top-list li > strong {
        grid-column: 2;
        justify-self: start;
        font-size: 13px;
    }

    .sg7g-import-summary {
        grid-template-columns: 1fr;
    }

    .sg7g-tools-card__header {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sg7g-settings-nav__item,
    .sg7g-choice-option__card,
    .sg7g-switch__track,
    .sg7g-switch__thumb,
    .sg7g-featured-order__item,
    .sg7g-tool-upload,
    [data-sg7g-dependent-content] {
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .sg7g-stat-live-status.is-updating > span { animation: none !important; }
}


/* Hero image picker */
.sg7g-setting-field--image {
    margin-top: 18px;
    margin-bottom: 20px;
}

.sg7g-image-picker {
    display: grid;
    grid-template-columns: minmax(220px, 420px) auto;
    gap: 14px;
    align-items: end;
    margin-top: 8px;
}

.sg7g-image-picker__preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 6;
    overflow: hidden;
    border: 1px dashed #c7c7c7;
    border-radius: 8px;
    background: #f6f7f7;
    color: #8c8f94;
}

.sg7g-image-picker__preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sg7g-image-picker__preview .dashicons {
    width: 34px;
    height: 34px;
    font-size: 34px;
}

.sg7g-image-picker__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-bottom: 2px;
}

@media (max-width: 782px) {
    .sg7g-image-picker {
        grid-template-columns: 1fr;
    }
}

/* Theme-size controls, Hero typography and category icon set */
.sg7g-typography-custom-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    transition: opacity .18s ease;
}

.sg7g-typography-custom-fields.is-inactive {
    opacity: .42;
    pointer-events: none;
}


.sg7g-hero-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sg7g-hero-type-group {
    padding: 14px;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    background: #fff;
}

.sg7g-hero-type-group > strong {
    display: block;
    margin-bottom: 10px;
    color: #1d2327;
    font-size: 12px;
}

.sg7g-hero-type-group .sg7g-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sg7g-media-menu-order-settings {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e4e7;
}

.sg7g-media-menu-order-settings__heading {
    margin-bottom: 12px;
}

.sg7g-media-menu-order-settings__heading > strong {
    display: block;
    margin-bottom: 3px;
    color: #1d2327;
    font-size: 13px;
}

.sg7g-media-menu-order-settings__heading .description {
    margin: 0;
}

.sg7g-media-menu-order {
    display: grid;
    gap: 7px;
    max-width: 720px;
}

.sg7g-media-menu-order__item {
    display: grid;
    grid-template-columns: 34px 56px minmax(0, 1fr) 28px;
    min-height: 44px;
    box-sizing: border-box;
    align-items: center;
    gap: 9px;
    padding: 6px 10px 6px 6px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

.sg7g-media-menu-order__item strong {
    overflow: hidden;
    color: #1d2327;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg7g-media-menu-order__handle {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #787c82;
    cursor: grab;
}

.sg7g-media-menu-order__handle:hover,
.sg7g-media-menu-order__handle:focus-visible {
    background: #f0f0f1;
    color: #1d2327;
    outline: 2px solid #2271b1;
    outline-offset: 1px;
}

.sg7g-media-menu-order__handle:active {
    cursor: grabbing;
}

.sg7g-media-menu-order__icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    color: #50575e;
}

.sg7g-media-menu-order__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sg7g-media-menu-order__icon .sg7g-icon-fill {
    fill: currentColor;
    stroke: none;
}

.sg7g-media-menu-order__position {
    display: inline-grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: #f0f0f1;
    color: #646970;
    font-size: 11px;
    font-weight: 700;
}

.sg7g-media-menu-order__placeholder {
    min-height: 44px;
    border: 1px dashed #2271b1;
    border-radius: 8px;
    background: #f0f6fc;
}

.sg7g-category-icon-picker {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.sg7g-category-icon-picker.is-open {
    z-index: 60;
}

.sg7g-category-icon-picker__toggle {
    display: inline-flex;
    min-width: 68px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 7px;
    background: #fff;
    color: #1d2327;
    cursor: pointer;
}

.sg7g-media-menu-order__item .sg7g-category-icon-picker__toggle {
    min-width: 56px;
    min-height: 34px;
    gap: 3px;
    padding: 4px 5px;
}

.sg7g-media-menu-order__item .sg7g-category-icon-picker__toggle .sg7g-media-menu-order__icon {
    width: 22px;
    height: 22px;
}

.sg7g-category-icon-picker__toggle:hover,
.sg7g-category-icon-picker__toggle:focus-visible,
.sg7g-category-icon-picker.is-open .sg7g-category-icon-picker__toggle {
    border-color: #2271b1;
    color: #135e96;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 0;
}

.sg7g-category-icon-picker__toggle > .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    transition: transform .16s ease;
}

.sg7g-category-icon-picker.is-open .sg7g-category-icon-picker__toggle > .dashicons {
    transform: rotate(180deg);
}

.sg7g-category-icon-picker__panel {
    position: fixed;
    z-index: 100100;
    top: 0;
    right: auto;
    left: 0;
    width: min(322px, calc(100vw - 40px));
    max-height: calc(100vh - 56px);
    box-sizing: border-box;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #c3c4c7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .17);
}

.sg7g-category-icon-picker__panel[hidden] {
    display: none !important;
}

.sg7g-category-icon-picker__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    gap: 7px;
}

.sg7g-category-icon-picker__option {
    position: relative;
    display: inline-flex;
    min-width: 0;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #f6f7f7;
    color: #50575e;
    cursor: pointer;
}

.sg7g-category-icon-picker__option:hover,
.sg7g-category-icon-picker__option:focus-visible {
    border-color: #2271b1;
    background: #f0f6fc;
    color: #135e96;
    outline: 0;
    box-shadow: 0 0 0 1px #2271b1;
}

.sg7g-category-icon-picker__option.is-selected {
    border-color: #2271b1;
    background: #eaf4fc;
    color: #135e96;
    box-shadow: inset 0 0 0 1px #2271b1;
}

.sg7g-category-icon-picker__option svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sg7g-category-icon-picker__option .sg7g-icon-fill {
    fill: currentColor;
    stroke: none;
}

.sg7g-category-icon-picker__option > .dashicons {
    position: absolute;
    top: -5px;
    right: -5px;
    display: none;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #2271b1;
    color: #fff;
    font-size: 17px;
    line-height: 17px;
}

.sg7g-category-icon-picker__option.is-selected > .dashicons {
    display: block;
}

@media (max-width: 1100px) {
    .sg7g-hero-type-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    .sg7g-typography-custom-fields,
    .sg7g-hero-type-group .sg7g-settings-grid {
        grid-template-columns: 1fr;
    }

    .sg7g-category-icon-picker__panel {
        width: min(300px, calc(100vw - 30px));
    }
}

.sg7g-typography-control-fields > .sg7g-typography-custom-fields {
    grid-column: 1 / -1;
}

/* ==========================================================================
   Visual Featured layout selector
   ========================================================================== */
.sg7g-featured-layout-field {
    min-width: 0;
    margin: 2px 0 18px;
    padding: 0;
    border: 0;
}

.sg7g-featured-layout-field > legend {
    margin: 0 0 9px;
    padding: 0;
    color: #1d2327;
    font-size: 13px;
    font-weight: 600;
}

.sg7g-featured-layout-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sg7g-featured-layout-option {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.sg7g-featured-layout-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.sg7g-featured-layout-option__card {
    position: relative;
    display: block;
    height: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #dcdcde;
    border-radius: 11px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.sg7g-featured-layout-option:hover .sg7g-featured-layout-option__card {
    border-color: #8c8f94;
    transform: translateY(-1px);
}

.sg7g-featured-layout-option > input:checked + .sg7g-featured-layout-option__card {
    border-color: #1d2327;
    box-shadow: 0 0 0 2px rgba(29, 35, 39, .12);
}

.sg7g-featured-layout-option > input:focus-visible + .sg7g-featured-layout-option__card {
    outline: 2px solid #2271b1;
    outline-offset: 3px;
}

.sg7g-featured-layout-preview {
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 5.2;
    min-height: 104px;
    box-sizing: border-box;
    overflow: hidden;
    gap: 5px;
    padding: 7px;
    border-radius: 8px;
    background: #f0f0f1;
}

.sg7g-featured-layout-preview i,
.sg7g-featured-layout-preview__lead,
.sg7g-featured-layout-preview__support i {
    display: block;
    min-width: 0;
    min-height: 0;
    border-radius: 3px;
    background: #50575e;
}

.sg7g-featured-layout-preview--mosaic {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
}

.sg7g-featured-layout-preview--mosaic .sg7g-featured-layout-preview__lead {
    height: 100%;
}

.sg7g-featured-layout-preview__support {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.sg7g-featured-layout-preview__support i {
    background: #787c82;
}

.sg7g-featured-layout-preview--two-three {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.sg7g-featured-layout-preview--two-three > i:nth-child(-n+2) {
    grid-column: span 3;
    background: #50575e;
}

.sg7g-featured-layout-preview--two-three > i:nth-child(n+3) {
    grid-column: span 2;
    background: #787c82;
}

.sg7g-featured-layout-option__copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 26px 0 2px;
}

.sg7g-featured-layout-option__copy strong {
    color: #1d2327;
    font-size: 13px;
    line-height: 1.35;
}

.sg7g-featured-layout-option__copy small {
    color: #72777c;
    font-size: 11px;
    line-height: 1.4;
}

.sg7g-featured-layout-option__check {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 18px;
    height: 18px;
    color: #1d2327;
    font-size: 18px;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .15s ease, transform .15s ease;
}

.sg7g-featured-layout-option > input:checked + .sg7g-featured-layout-option__card .sg7g-featured-layout-option__check {
    opacity: 1;
    transform: scale(1);
}

.sg7g-featured-layout-field > .description {
    margin-top: 8px;
}

@media (max-width: 782px) {
    .sg7g-featured-layout-choices {
        grid-template-columns: 1fr;
    }

    .sg7g-featured-layout-preview {
        min-height: 94px;
    }
}


/* ==========================================================================
   Hero Area typography settings layout
   ========================================================================== */
.sg7g-typography-control-group--hero {
    grid-column: 1 / -1;
}

.sg7g-typography-control-group--hero .sg7g-typography-custom-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sg7g-typography-control-group--hero .sg7g-hero-type-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 2px;
}

.sg7g-typography-control-group--hero .sg7g-hero-type-group {
    min-width: 0;
}

.sg7g-typography-control-group--hero .sg7g-hero-type-group .sg7g-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sg7g-typography-control-group--hero .sg7g-input-with-suffix {
    min-width: 0;
}

.sg7g-typography-control-group--hero .sg7g-input-with-suffix input {
    min-width: 0;
    flex: 1 1 auto;
}

.sg7g-typography-control-group--hero .sg7g-input-with-suffix > span {
    flex: 0 0 auto;
}

@media (max-width: 1280px) {
    .sg7g-typography-control-group--hero .sg7g-typography-custom-fields,
    .sg7g-typography-control-group--hero .sg7g-hero-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .sg7g-typography-control-group--hero .sg7g-typography-custom-fields,
    .sg7g-typography-control-group--hero .sg7g-hero-type-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sg7g-typography-control-group--hero .sg7g-hero-type-group .sg7g-settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .sg7g-typography-control-group--hero .sg7g-hero-type-group .sg7g-settings-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
