.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-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: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 14px;
    border-bottom: 1px solid #dcdcde;
    background: #fff;
}

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

.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: inline-flex;
    flex: 0 0 auto;
    gap: 3px;
    padding: 3px;
    border: 1px solid #dcdcde;
    border-radius: 9px;
    background: #f6f7f7;
}

.sg7g-typography-preview__device {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #50575e;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.sg7g-typography-preview__device .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}

.sg7g-typography-preview__device:hover {
    color: #1d2327;
}

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

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

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

.sg7g-typography-preview__canvas {
    display: block;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    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__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;
    overflow: hidden;
    background-color: #151515;
}

.sg7g-typography-preview__showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 16px;
}

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

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

.sg7g-typography-preview__featured-visual--lead {
    background:
        radial-gradient(circle at 43% 48%, rgba(99, 151, 114, .72), transparent 23%),
        linear-gradient(135deg, #030605, #17231c 52%, #020302);
}

.sg7g-typography-preview__featured-visual--blue {
    background: linear-gradient(150deg, #6288a0, #506d86 45%, #b67c83);
}

.sg7g-typography-preview__featured-visual--orange {
    background: radial-gradient(circle at 62% 46%, #f08b45, #5d2b20 43%, #161013 76%);
}

.sg7g-typography-preview__featured-visual--silver {
    background: linear-gradient(145deg, #7896a3, #d7dde0 48%, #314c65);
}

.sg7g-typography-preview__featured-visual--night {
    background: radial-gradient(circle at 60% 58%, #d34d44, #203a67 35%, #080a13 76%);
}

.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-copy,
.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-card .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__secondary {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 32px;
    margin-top: 30px;
}

.sg7g-typography-preview__card-visual {
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 55% 50%, rgba(16, 154, 112, .55), transparent 22%),
        repeating-linear-gradient(90deg, #0a261a 0 3px, #193e29 3px 5px, #0d1710 5px 8px);
}

.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;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 2px 8px;
}

.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__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 {
    grid-template-columns: minmax(0, 1fr);
}

.sg7g-typography-preview__stage[data-device="mobile"] .sg7g-typography-preview__showcase-support {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.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__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .sg7g-typography-preview__devices {
        width: 100%;
        box-sizing: border-box;
    }

    .sg7g-typography-preview__device {
        flex: 1 1 0;
        justify-content: center;
    }

    .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__secondary {
        grid-template-columns: minmax(0, 1fr);
    }

    .sg7g-typography-preview__secondary {
        gap: 24px;
    }

    .sg7g-typography-preview__single {
        padding-right: 0;
        padding-left: 0;
    }
}

@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__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-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-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; }
}
