* {
    box-sizing: border-box;
}

:root {
    --sidebar-bg: #24384f;
    --sidebar-bg-deep: #1d2f44;
    --sidebar-text: #d9e6f5;
    --sidebar-muted: #9fb4cc;
    --sidebar-active: #ff8d2b;
    --page-bg: #f4f7fb;
    --card-bg: #ffffff;
    --line: #e6edf5;
    --line-strong: #dbe5f0;
    --text-main: #243449;
    --text-sub: #6d7d90;
    --topbar-blue: #2f7bd9;
    --success: #32b46a;
    --warning: #ff9a1a;
    --danger: #e75d5d;
    --shadow: 0 12px 28px rgba(33, 52, 79, 0.08);
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text-main);
    background: var(--page-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.admin-body {
    background: linear-gradient(180deg, #edf3fb 0%, #f8fbff 100%);
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 126px;
    flex: 0 0 126px;
    background: linear-gradient(180deg, #2a4561 0%, #22364d 100%);
    color: #dbe6f1;
    padding: 10px 0 14px;
    box-shadow: none;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 10px 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.sidebar-brand span {
    display: block;
    margin-top: 6px;
    color: #b5c4d5;
    font-size: 12px;
}

.sidebar-group {
    margin-top: 10px;
    flex: 1;
}

.sidebar-group-title {
    display: none;
}

.sidebar-menu {
    display: grid;
    gap: 0;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 0;
    color: #dbe6f1;
    font-size: 13px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.sidebar-menu-item.is-active {
    background: rgba(22, 37, 53, 0.42);
    color: #ffffff;
}

.sidebar-menu-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    flex: 0 0 6px;
}

.sidebar-menu-item.is-active .sidebar-menu-dot {
    background: #ffffff;
    box-shadow: none;
}

.sidebar-logout {
    display: block;
    margin: auto 12px 0;
    padding: 10px 0;
    border-radius: 6px;
    color: #ffffff;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    background: linear-gradient(90deg, #2f7bd9 0%, #5192ea 100%);
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 8px 24px rgba(47, 123, 217, 0.18);
}

.topbar-title-wrap h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.topbar-title-wrap p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.meta-chip,
.meta-user {
    min-width: 96px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    text-align: left;
}

.meta-chip span,
.meta-user span {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.76);
}

.meta-chip strong,
.meta-user strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
}

.admin-content {
    padding: 22px 24px 28px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.summary-card,
.toolbar-card,
.table-card,
.publish-card,
.stepper-card,
.success-card,
.tips-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.summary-card {
    padding: 18px 20px;
}

.summary-card span {
    display: block;
    color: var(--text-sub);
    font-size: 13px;
}

.summary-card strong {
    display: block;
    margin-top: 10px;
    font-size: 32px;
    font-weight: 700;
    color: #1e5fb6;
}

.summary-card p {
    margin: 10px 0 0;
    color: var(--text-sub);
    font-size: 13px;
}

.toolbar-card,
.table-card,
.publish-card,
.success-card,
.tips-card {
    padding: 20px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.card-head h2,
.card-head h3 {
    margin: 0;
    font-size: 20px;
}

.card-head p {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-sub);
}

.filter-grid,
.publish-form-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.publish-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.grid-span-2 {
    grid-column: span 2;
}

.filter-actions {
    grid-column: span 1;
    display: flex;
    gap: 10px;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.field-input,
.field-textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 11px 14px;
    background: #fbfdff;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field-input:focus,
.field-textarea:focus {
    border-color: #5a98ea;
    box-shadow: 0 0 0 4px rgba(90, 152, 234, 0.12);
    background: #ffffff;
    outline: none;
}

.field-textarea {
    resize: vertical;
    min-height: 128px;
}

.primary-button,
.secondary-button,
.captcha-button,
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.primary-button {
    background: linear-gradient(90deg, #2f7bd9 0%, #4a95f1 100%);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(47, 123, 217, 0.18);
}

.primary-button:hover {
    transform: translateY(-1px);
}

.secondary-button,
.captcha-button {
    background: #ffffff;
    border-color: var(--line-strong);
    color: var(--text-main);
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.alert-danger {
    background: rgba(231, 93, 93, 0.1);
    border: 1px solid rgba(231, 93, 93, 0.18);
    color: #b53f3f;
}

.alert-success {
    background: rgba(50, 180, 106, 0.1);
    border: 1px solid rgba(50, 180, 106, 0.18);
    color: #25844f;
}

.alert-warning {
    background: rgba(255, 154, 26, 0.1);
    border: 1px solid rgba(255, 154, 26, 0.22);
    color: #b56a00;
}

.table-wrap {
    overflow: auto;
}

.admin-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.admin-table thead th {
    padding: 13px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #4f647d;
    background: #f7fafd;
    border-bottom: 1px solid var(--line-strong);
}

.admin-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--text-main);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #f9fbff;
}

.title-cell strong {
    display: block;
    font-weight: 700;
}

.title-cell span {
    display: block;
    margin-top: 6px;
    color: var(--text-sub);
    font-size: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-badge.is-success {
    background: rgba(50, 180, 106, 0.12);
    color: #279556;
}

.status-badge.is-warning {
    background: rgba(255, 154, 26, 0.12);
    color: #d27c00;
}

.status-badge.is-muted {
    background: rgba(117, 135, 157, 0.12);
    color: #67798f;
}

.status-badge.is-default {
    background: rgba(47, 123, 217, 0.1);
    color: #2f7bd9;
}

.empty-row {
    text-align: center;
    color: var(--text-sub);
    padding: 28px 12px !important;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.page-link {
    background: #ffffff;
    border: 1px solid var(--line-strong);
    color: var(--text-main);
    min-width: 42px;
}

.page-link.is-current {
    background: #2f7bd9;
    border-color: #2f7bd9;
    color: #ffffff;
}

.page-link.is-disabled {
    opacity: 0.45;
}

.order-sync-section {
    padding: 10px 12px 10px;
}

.order-sync-section .card-head {
    margin-bottom: 8px;
    align-items: flex-end;
}

.order-sync-section .card-head h2 {
    font-size: 14px;
    line-height: 1.1;
}

.order-sync-section .card-head p {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.25;
}

.order-sync-section .primary-button {
    min-height: 28px;
    padding: 0 10px;
    font-size: 10px;
    border-radius: 6px;
    box-shadow: none;
}

.order-sync-section .admin-table {
    min-width: 780px;
}

.order-sync-section .admin-table thead th {
    padding: 6px 6px;
    font-size: 10px;
    color: #61758c;
    background: #f3f7fb;
    line-height: 1.2;
}

.order-sync-section .admin-table tbody td {
    padding: 4px 6px;
    font-size: 10px;
    line-height: 1.25;
}

.order-sync-section .title-cell strong {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
}

.order-sync-section .title-cell span {
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.2;
}

.order-sync-section .status-badge {
    min-width: 46px;
    padding: 2px 6px;
    font-size: 10px;
}

.sync-pagination {
    justify-content: flex-end;
    gap: 4px;
    margin-top: 8px;
}

.sync-pagination-summary {
    margin-right: 6px;
    color: #7c8da3;
    font-size: 10px;
}

.sync-page-link {
    min-width: 24px;
    min-height: 24px;
    padding: 0 6px;
    border-radius: 3px;
    font-size: 10px;
    background: #ffffff;
}

.sync-page-link.is-current {
    background: #2f7bd9;
    border-color: #2f7bd9;
}

.sync-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    color: #8394a8;
    font-size: 10px;
}

.shipping-pagination {
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 2px;
}

.shipping-pagination-summary {
    color: #7c8da3;
    font-size: 12px;
}

.shipping-page-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.shipping-page-link {
    min-width: 32px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 4px;
    border-color: #d8e1ec;
    font-size: 12px;
    box-shadow: none;
}

.shipping-page-link.is-current {
    background: #ffffff;
    border-color: #2f7bd9;
    color: #2f7bd9;
}

.shipping-page-ellipsis {
    color: #8c9bb0;
    font-size: 12px;
}

.source-order-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7fafe;
}

.source-order-page-link {
    min-width: 34px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #d6e0eb;
    border-radius: 4px;
    background: #ffffff;
    color: #57708d;
    font-size: 12px;
    font-weight: 600;
}

.source-order-page-link.is-current {
    background: #2f7bd9;
    border-color: #2f7bd9;
    color: #ffffff;
}

.source-order-page-panel {
    display: none;
}

.source-order-page-panel.is-current {
    display: grid;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.gift-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dfe7f0;
    border-radius: 12px;
    background: #ffffff;
}

.gift-thumb {
    height: 110px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef4fb 0%, #dce7f5 100%);
}

.gift-card strong {
    font-size: 13px;
    line-height: 1.5;
}

.gift-card span {
    color: #7a8ca1;
    font-size: 12px;
}

.gift-card em {
    color: #da5b3f;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}

.platform-choice-row {
    display: grid;
    gap: 12px;
}

.choice-chip {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #ffffff;
    color: #51667f;
    font-size: 14px;
    font-weight: 600;
}

.choice-chip.is-selected {
    border-color: #2f7bd9;
    background: rgba(47, 123, 217, 0.06);
    color: #2f7bd9;
}

.source-order-note-board {
    display: grid;
    gap: 12px;
}

.source-order-note-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #dce5f0;
    background: #fbfdff;
    font-size: 13px;
    line-height: 1.7;
}

.source-order-note-line strong {
    color: #244566;
}

.source-order-note-line span {
    color: #6f8197;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mini-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card {
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
    border: 1px solid var(--line);
}

.mini-card.is-soft {
    background: #f8fbff;
}

.mini-card span {
    display: block;
    color: var(--text-sub);
    font-size: 12px;
}

.mini-card strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    color: #1f5fb5;
}

.mini-card p {
    margin: 10px 0 0;
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.7;
}

.guest-body {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(47, 123, 217, 0.22) 0%, rgba(244, 247, 251, 0.96) 34%, #eff4fb 100%);
}

.guest-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.guest-panel {
    width: 100%;
    max-width: 520px;
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(223, 231, 241, 0.9);
    box-shadow: 0 24px 50px rgba(31, 54, 84, 0.14);
}

.guest-brand {
    margin-bottom: 18px;
}

.guest-brand span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(47, 123, 217, 0.08);
    color: #2f7bd9;
    font-size: 12px;
    font-weight: 700;
}

.guest-brand h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.guest-brand p {
    margin: 0;
    color: var(--text-sub);
    line-height: 1.7;
}

.auth-card {
    padding-top: 8px;
}

.auth-tabs {
    display: inline-flex;
    background: #f4f8fc;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 18px;
}

.auth-tabs a {
    padding: 10px 18px;
    border-radius: 10px;
    color: var(--text-sub);
    font-weight: 700;
}

.auth-tabs a.is-active {
    background: #ffffff;
    color: #2f7bd9;
    box-shadow: 0 6px 12px rgba(17, 45, 78, 0.08);
}

.auth-form {
    display: grid;
    gap: 14px;
}

.captcha-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.captcha-input-wrap {
    flex: 1;
}

.captcha-image {
    width: 148px;
    height: 48px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #f8fbff;
    cursor: pointer;
}

.publish-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
}

.publish-main {
    display: grid;
    gap: 18px;
}

.publish-side {
    min-width: 0;
}

.stepper-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 20px;
    margin-bottom: 18px;
}

.step-item {
    position: relative;
    padding: 16px 14px 16px 58px;
    border-radius: 14px;
    background: #f7f9fc;
    border: 1px dashed #dce5f1;
}

.step-item span {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbe6f2;
    color: #526780;
    font-weight: 700;
}

.step-item strong {
    display: block;
    font-size: 15px;
}

.step-item.is-active {
    background: rgba(47, 123, 217, 0.08);
    border-color: rgba(47, 123, 217, 0.18);
}

.step-item.is-active span,
.step-item.is-active-soft span {
    background: #2f7bd9;
    color: #ffffff;
}

.step-item.is-active-soft {
    background: rgba(47, 123, 217, 0.05);
    border-color: rgba(47, 123, 217, 0.16);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.platform-option,
.task-type-item,
.store-chip {
    position: relative;
    cursor: pointer;
}

.platform-option input,
.task-type-item input,
.store-chip input {
    position: absolute;
    opacity: 0;
    inset: 0;
    pointer-events: none;
}

.platform-option {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 14px 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.platform-option.is-selected {
    border-color: var(--platform-accent, #2f7bd9);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--platform-accent, #2f7bd9) 16%, transparent);
    background: #fbfdff;
}

.platform-visual {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-visual img {
    max-height: 38px;
    width: auto;
}

.platform-option span:last-child {
    font-size: 13px;
    font-weight: 700;
}

.platform-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--platform-accent, #2f7bd9) 12%, #ffffff);
    color: var(--platform-accent, #2f7bd9);
    font-size: 13px;
    font-weight: 800;
}

.task-button-row {
    margin-top: 14px;
}

.task-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(90deg, #2f7bd9 0%, #539af0 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.task-type-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.task-type-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
}

.task-type-item.is-selected {
    background: rgba(47, 123, 217, 0.04);
    border-color: rgba(47, 123, 217, 0.24);
}

.task-type-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #c7d4e4;
    background: #ffffff;
    flex: 0 0 16px;
}

.task-type-item.is-selected .task-type-check {
    background: #2f7bd9;
    border-color: #2f7bd9;
    box-shadow: inset 0 0 0 3px #ffffff;
}

.store-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.store-chip.is-selected {
    background: rgba(47, 123, 217, 0.06);
    border-color: rgba(47, 123, 217, 0.24);
    color: #2f7bd9;
}

.payment-card {
    background: linear-gradient(180deg, #fcfdff 0%, #f6f9fd 100%);
}

.payment-placeholder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(47, 123, 217, 0.05);
    border: 1px dashed rgba(47, 123, 217, 0.24);
}

.payment-placeholder strong {
    color: #2f7bd9;
    font-size: 16px;
}

.payment-placeholder span {
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.6;
}

.publish-actions,
.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tips-card h3 {
    margin: 0 0 12px;
    color: #d72323;
    font-size: 22px;
}

.tips-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text-main);
}

.tips-card li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 14px;
}

.success-card {
    max-width: 920px;
}

.success-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(50, 180, 106, 0.12);
    color: #279556;
    font-weight: 700;
}

.success-card h2 {
    margin: 16px 0 10px;
    font-size: 34px;
}

.success-card p {
    margin: 0 0 22px;
    color: var(--text-sub);
    line-height: 1.8;
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.success-grid div {
    padding: 16px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid var(--line);
}

.success-grid span {
    display: block;
    color: var(--text-sub);
    font-size: 12px;
}

.success-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 16px;
}

.source-order-progress {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.source-order-progress-label {
    color: #8da0b7;
    font-size: 28px;
    font-weight: 700;
}

.source-order-layout {
    align-items: start;
}

.source-order-static-chip {
    pointer-events: none;
}

.source-order-store-note {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: #fbfdff;
    color: var(--text-main);
    font-size: 14px;
}

.source-order-tips h3 {
    font-size: 20px;
}

.shipping-switch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.store-link-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
}

.store-link-chip:hover {
    text-decoration: none;
    border-color: rgba(47, 123, 217, 0.24);
}

.store-link-chip.is-selected {
    background: rgba(47, 123, 217, 0.06);
    border-color: rgba(47, 123, 217, 0.24);
    color: #2f7bd9;
}

#shipping-address {
    padding: 12px 14px;
}

#shipping-address .card-head {
    margin-bottom: 10px;
}

#shipping-address .card-head h2 {
    font-size: 16px;
}

#shipping-address .card-head p {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.25;
}

#shipping-address .shipping-switch-row {
    gap: 6px;
    margin-bottom: 10px;
}

#shipping-address .store-link-chip {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 11px;
}

#shipping-address .filter-grid {
    gap: 8px;
}

#shipping-address .field-input {
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 8px;
}

#shipping-address .primary-button,
#shipping-address .secondary-button {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 11px;
}

#shipping-address .admin-table {
    min-width: 880px;
}

#shipping-address .admin-table thead th {
    padding: 6px 6px;
    font-size: 10px;
    line-height: 1.2;
}

#shipping-address .admin-table tbody td {
    padding: 4px 6px;
    font-size: 10px;
    line-height: 1.25;
}

#shipping-address .title-cell strong {
    font-size: 10px;
    line-height: 1.2;
}

#shipping-address .title-cell span {
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.2;
}

#shipping-address .shipping-pagination {
    gap: 6px;
    margin-top: 10px;
}

#shipping-address .shipping-pagination-summary {
    font-size: 10px;
}

#shipping-address .shipping-page-group {
    gap: 4px;
}

#shipping-address .shipping-page-link {
    min-width: 24px;
    min-height: 24px;
    padding: 0 6px;
    font-size: 10px;
}

#shipping-address .shipping-page-ellipsis {
    font-size: 10px;
}

#shipping-address .empty-row {
    padding: 18px 8px !important;
    font-size: 10px;
}

.compact-data-section .card-head h2 {
    font-size: 18px;
}

.compact-data-section .card-head p {
    font-size: 12px;
}

.compact-data-section .field-input {
    padding: 9px 12px;
    font-size: 13px;
}

.compact-data-section .primary-button,
.compact-data-section .secondary-button,
.compact-data-section .page-link,
.compact-data-section .store-link-chip {
    min-height: 38px;
    font-size: 13px;
}

.compact-data-section .admin-table thead th {
    padding: 11px 10px;
    font-size: 12px;
}

.compact-data-section .admin-table tbody td {
    padding: 12px 10px;
    font-size: 13px;
}

.compact-data-section .title-cell strong {
    font-size: 13px;
}

.compact-data-section .title-cell span {
    font-size: 11px;
}

.compact-data-section .empty-row {
    font-size: 13px;
}

@media (max-width: 1200px) {
    .platform-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .publish-layout {
        grid-template-columns: 1fr;
    }

    .source-order-progress {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        width: auto;
        height: auto;
        position: static;
        border-radius: 0 0 24px 24px;
    }

    .summary-grid,
    .success-grid,
    .stepper-card,
    .mini-grid,
    .mini-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-actions {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .admin-topbar {
        padding: 16px;
        display: block;
    }

    .topbar-meta {
        margin-top: 14px;
        justify-content: flex-start;
    }

    .admin-content,
    .toolbar-card,
    .table-card,
    .publish-card,
    .tips-card,
    .success-card,
    .anchor-card {
        padding: 16px;
    }

    .summary-grid,
    .success-grid,
    .stepper-card,
    .platform-grid,
    .publish-form-grid,
    .filter-grid,
    .mini-grid,
    .mini-grid-3 {
        grid-template-columns: 1fr;
    }

    .filter-actions,
    .grid-span-2 {
        grid-column: span 1;
    }

    .captcha-row,
    .payment-placeholder,
    .publish-actions,
    .success-actions,
    .card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .guest-panel {
        padding: 24px 18px;
    }
}