:root {
    --bg: #f5f7fa;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --green: #16a34a;
    --green-dark: #087f3d;
    --navy: #0f172a;
    --sidebar: #0b1220;
    --text: #111827;
    --muted: #64748b;
    --light-text: #94a3b8;
    --border: #e5e7eb;
    --border-strong: #cbd5e1;
    --warning: #f59e0b;
    --danger: #dc2626;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.06);
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Manrope", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34rem),
        linear-gradient(180deg, #f8fafc 0%, var(--bg) 48%, #eef2f7 100%);
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

.panel-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.panel-shell-auth {
    display: block;
}

.panel-sidebar {
    background:
        linear-gradient(180deg, rgba(22, 163, 74, 0.1), transparent 34%),
        linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    color: #fff;
    padding: 22px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-brand {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.panel-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff8ed;
    padding: 6px;
}

.panel-brand strong,
.panel-brand span {
    display: block;
}

.panel-brand strong {
    font-size: 0.98rem;
    letter-spacing: -0.01em;
}

.panel-brand span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.78rem;
    line-height: 1.35;
}

.panel-nav {
    display: grid;
    gap: 4px;
}

.panel-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.panel-nav a::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.6);
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.08);
}

.panel-nav a.active,
.panel-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(2px);
}

.panel-nav a.active::before,
.panel-nav a:hover::before {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.sidebar-foot {
    margin-top: auto;
    display: grid;
    gap: 12px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
    line-height: 1.55;
}

.sidebar-foot p {
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.panel-main,
.panel-main-auth {
    padding: 26px;
    min-width: 0;
}

.auth-page-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.auth-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 22px;
}

.auth-page-header h1,
.panel-topbar h1 {
    margin: 0;
    font-size: clamp(1.65rem, 2.6vw, 1.8rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.auth-page-header p,
.topbar-copy {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 780px;
    line-height: 1.65;
    font-size: 0.95rem;
}

.auth-page-note,
.topbar-user {
    min-width: 240px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.76);
    color: var(--navy);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 4px;
}

.panel-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--green-dark);
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.topbar-user strong,
.topbar-user span {
    display: block;
}

.topbar-user strong {
    font-size: 0.94rem;
}

.topbar-user span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.notice {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-weight: 700;
    border: 1px solid transparent;
}

.notice.success {
    background: rgba(22, 163, 74, 0.1);
    color: #087f3d;
    border-color: rgba(22, 163, 74, 0.2);
}

.notice.error {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.18);
}

.auth-hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 22px;
    align-items: start;
}

.refined-auth-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
    align-items: stretch;
}

.auth-brand-card,
.auth-card,
.page-card,
.guide-card,
.stat-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-brand-card,
.auth-card,
.page-card {
    padding: 22px;
}

.auth-brand-card img {
    width: 210px;
    margin-bottom: 20px;
}

.auth-brand-card-pro {
    min-height: 100%;
    display: grid;
    align-content: start;
    gap: 0;
}

.auth-brand-card-pro img {
    width: 240px;
}

.auth-brand-card h2 {
    margin: 0 0 10px;
    font-size: clamp(1.45rem, 2.3vw, 1.9rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
    max-width: 540px;
}

.auth-brand-card p,
.section-head p,
.guide-card p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.94rem;
}

.credential-card {
    margin-top: 18px;
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(22, 163, 74, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.auth-panels {
    display: grid;
    gap: 14px;
}

.refined-auth-panels {
    align-content: start;
    max-width: 440px;
    width: 100%;
    justify-self: end;
}

.tab-row {
    display: inline-flex;
    background: #e8eef7;
    padding: 5px;
    border-radius: 12px;
    gap: 5px;
}

.auth-tab-row {
    width: 100%;
}

.tab-btn {
    padding: 10px 16px;
    border-radius: 9px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
    flex: 1 1 0;
    font-size: 0.94rem;
}

.tab-btn.active {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.auth-card h3,
.page-card h2,
.form-block h3,
.guide-card h3 {
    margin: 0 0 10px;
    font-size: 1.12rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.auth-form-card {
    width: 100%;
}

.auth-form-card .primary-btn {
    margin-top: 8px;
    align-self: start;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 400;
}

.auth-card label,
.form-block label,
.seller-auth-card label {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1f2937;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 11px 12px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(37, 99, 235, 0.75);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

input[type="file"] {
    padding: 10px;
    background: #f8fafc;
    font-size: 0.9rem;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.primary-btn,
.ghost-btn,
.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.94rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
    background: #fff;
    color: var(--primary-dark);
    border: 1px solid #bfdbfe;
}

.ghost-btn:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
    background: #eff6ff;
}

.danger-btn {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.16);
}

.danger-btn:hover {
    background: rgba(220, 38, 38, 0.12);
}

.full-width {
    width: 100%;
}

.small-btn {
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 0.86rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    position: relative;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -22px;
    top: -28px;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.06);
}

.stat-card strong {
    grid-column: 1;
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.stat-card span {
    grid-column: 1;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.9rem;
}

.stat-card small {
    grid-column: 1 / -1;
    color: var(--light-text);
    font-weight: 600;
}

.stat-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(22, 163, 74, 0.12));
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 900;
    z-index: 1;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.trust-strip article {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.09), rgba(255, 255, 255, 0.92));
    box-shadow: var(--shadow-soft);
}

.trust-strip strong {
    color: var(--green-dark);
    font-size: 0.95rem;
}

.trust-strip span {
    color: var(--muted);
    font-size: 0.88rem;
}

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

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.22rem;
    letter-spacing: -0.025em;
}

.step-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.step-badges span {
    border-radius: 999px;
    padding: 8px 12px;
    background: #eef2ff;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.84rem;
}

.step-badges span.active {
    background: rgba(22, 163, 74, 0.12);
    color: #087f3d;
}

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

.professional-product-form {
    align-items: start;
}

.form-block,
.guide-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.verification-panel {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), rgba(22, 163, 74, 0.07));
}

.category-first-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(22, 163, 74, 0.1));
    border-color: rgba(37, 99, 235, 0.15);
}

.category-first-card p,
.dynamic-help-text,
.category-panel-head span {
    color: var(--muted);
    font-size: 0.9rem;
}

.image-standard-note {
    display: grid;
    gap: 4px;
    margin: 12px 0 4px;
    padding: 12px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(22, 163, 74, 0.07));
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.image-standard-note strong {
    color: var(--navy);
}

.image-count-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.existing-image-grid,
.raw-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.existing-image-grid figure {
    margin: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fafc;
}

.existing-image-grid img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    background: #fff;
}

.existing-image-grid figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.image-delete-control {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    font-size: 0.72rem;
    font-weight: 650;
    cursor: pointer;
}

.image-delete-control input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: var(--danger);
}

.raw-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.raw-detail-grid textarea {
    min-height: 110px;
    font-size: 0.88rem;
    font-weight: 500;
}

.drop-upload {
    min-height: 150px;
    align-content: center;
    justify-items: center;
    text-align: center;
    padding: 22px;
    margin-top: 12px;
    border: 1.5px dashed #93c5fd;
    border-radius: 14px;
    background:
        radial-gradient(circle at center top, rgba(37, 99, 235, 0.08), transparent 55%),
        #f8fbff;
    cursor: pointer;
}

.drop-upload input {
    max-width: 320px;
    border: 0;
    background: transparent;
    padding: 8px 0 0;
}

.drop-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #dbeafe;
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 0.78rem;
}

.drop-title {
    margin-top: 8px;
    font-weight: 900;
    color: var(--navy);
}

.drop-copy {
    max-width: 360px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.category-detail-panel {
    display: none;
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: #ffffff;
}

.category-panel-head {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.category-panel-head strong {
    font-size: 1rem;
}

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

.category-gated {
    display: none;
}

.category-gated.is-visible {
    display: block;
}

.submit-row.category-gated.is-visible {
    display: flex;
}

.image-guide-grid.category-gated.is-visible {
    display: grid;
}

.clean-list,
.ordered-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.85;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    vertical-align: top;
}

th {
    color: #475569;
    background: #f8fafc;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 900;
}

tbody tr {
    transition: background 0.16s ease, transform 0.16s ease;
}

tbody tr:nth-child(even) {
    background: #fbfdff;
}

tbody tr:hover {
    background: #eff6ff;
}

td strong {
    color: var(--navy);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.status-pill.approved {
    background: rgba(22, 163, 74, 0.11);
    color: #087f3d;
}

.status-pill.pending {
    background: rgba(37, 99, 235, 0.11);
    color: #1d4ed8;
}

.status-pill.draft {
    background: rgba(100, 116, 139, 0.13);
    color: #475569;
}

.status-pill.rejected,
.status-pill.cancelled,
.status-pill.hidden {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.status-pill.out_of_stock,
.status-pill.processing {
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
}

.status-pill.shipped,
.status-pill.confirmed {
    background: rgba(37, 99, 235, 0.11);
    color: #1d4ed8;
}

.status-pill.delivered {
    background: rgba(22, 163, 74, 0.11);
    color: #087f3d;
}

.tip-box {
    display: inline-flex;
    align-items: center;
    align-self: start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.1);
    color: #087f3d;
    border: 1px solid rgba(22, 163, 74, 0.16);
    font-weight: 900;
    font-size: 0.82rem;
    white-space: nowrap;
}

.image-guide-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.submit-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.form-span {
    grid-column: 1 / -1;
}

.inline-order-form {
    display: grid;
    gap: 8px;
    min-width: 210px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 220px auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.bulk-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.select-all-control,
.table-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.select-all-control {
    margin-right: auto;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.selection-count {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.bulk-action-bar select {
    width: min(250px, 100%);
}

.product-table-wrap table {
    min-width: 960px;
}

.variant-editor-wrap {
    overflow-x: auto;
    margin: 12px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.variant-editor-table {
    min-width: 1320px;
}

.variant-editor-table th,
.variant-editor-table td {
    padding: 9px;
}

.variant-editor-table input,
.variant-editor-table select {
    min-width: 118px;
    padding: 9px 10px;
    border-radius: 9px;
}

.variant-editor-table input[type="file"] {
    min-width: 190px;
}

.product-thumb {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 6px;
}

.table-subtext {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 250px;
}

.action-stack form {
    margin: 0;
}

.danger-zone-card {
    border-color: rgba(220, 38, 38, 0.2);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.04), #fff);
}

.import-log-table {
    margin-top: 16px;
}

/* Seller Hub density pass: lighter typography and tighter marketplace controls. */
body {
    font-size: 14px;
    line-height: 1.48;
    color: #111827;
}

.panel-shell {
    grid-template-columns: 232px minmax(0, 1fr);
}

.panel-sidebar {
    padding: 16px 12px;
    gap: 14px;
}

.panel-brand {
    grid-template-columns: 46px 1fr;
    padding: 9px;
    border-radius: 13px;
}

.panel-brand img {
    width: 46px;
    height: 46px;
}

.panel-brand strong {
    font-size: 0.88rem;
    font-weight: 700;
}

.panel-brand span,
.sidebar-foot {
    font-size: 0.74rem;
}

.panel-nav a {
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 600;
}

.panel-main,
.panel-main-auth {
    padding: 18px;
}

.page-card,
.form-block,
.guide-card,
.auth-card,
.auth-brand-card {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.auth-brand-card,
.auth-card,
.page-card {
    padding: 17px;
}

.form-block,
.guide-card {
    padding: 15px;
}

.section-head {
    margin-bottom: 12px;
}

.section-head h2,
.page-card h2 {
    font-size: 1.06rem;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.auth-card h3,
.form-block h3,
.guide-card h3 {
    margin-bottom: 8px;
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.auth-brand-card p,
.section-head p,
.guide-card p,
.dynamic-help-text,
.category-first-card p,
.category-panel-head span,
.image-count-note,
.table-subtext {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.5;
}

.auth-card label,
.form-block label,
.seller-auth-card label {
    gap: 5px;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

input,
select,
textarea {
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.86rem;
    font-weight: 400;
}

textarea {
    min-height: 92px;
}

input::placeholder,
textarea::placeholder {
    color: #a8b4c5;
    font-size: 0.8rem;
    font-weight: 350;
}

.primary-btn,
.ghost-btn,
.danger-btn {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 650;
}

.small-btn {
    padding: 7px 10px;
    font-size: 0.78rem;
}

.filter-bar {
    gap: 8px;
    margin-bottom: 12px;
    padding: 9px;
    box-shadow: none;
}

.bulk-action-bar {
    gap: 8px;
    margin-bottom: 10px;
}

.select-all-control {
    padding: 8px 10px;
}

th,
td {
    padding: 10px 11px;
    font-size: 0.84rem;
}

th {
    background: #f3f6fa;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

tbody tr:hover {
    background: #f8fafc;
}

.variant-editor-wrap {
    margin: 10px 0;
    border-radius: 10px;
}

.variant-editor-table {
    min-width: 980px;
}

.variant-editor-table th,
.variant-editor-table td {
    padding: 7px;
}

.variant-editor-table input,
.variant-editor-table select {
    min-width: 104px;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 0.82rem;
}

.variant-editor-table input[type="file"] {
    min-width: 165px;
}

.category-detail-panel {
    padding: 12px;
    border-radius: 10px;
}

.category-panel-head strong {
    font-size: 0.88rem;
    font-weight: 650;
}

.category-detail-grid {
    gap: 10px;
}

.existing-image-grid {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 10px;
}

.existing-image-grid figure {
    padding: 8px;
    border-radius: 11px;
}

.existing-image-grid img {
    height: 104px;
    border-radius: 8px;
}

.image-standard-note {
    padding: 10px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.drop-upload {
    min-height: 126px;
    padding: 16px;
}

.drop-title {
    font-weight: 650;
}

@media (max-width: 1200px) {
    .panel-shell {
        grid-template-columns: 1fr;
    }

    .panel-sidebar {
        position: static;
        height: auto;
    }

    .auth-hero,
    .content-grid,
    .grid-form,
    .image-guide-grid,
    .category-detail-grid,
    .filter-bar,
    .trust-strip {
        grid-template-columns: 1fr;
    }

    .refined-auth-hero {
        grid-template-columns: 1fr;
    }

    .refined-auth-panels {
        max-width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 14px;
    }

    .panel-main,
    .panel-main-auth {
        padding: 14px;
    }

    .panel-topbar,
    .section-head,
    .auth-page-header {
        flex-direction: column;
    }

    .auth-brand-card,
    .auth-card,
    .page-card,
    .form-block,
    .guide-card {
        padding: 16px;
    }

    .refined-auth-hero {
        grid-template-columns: 1fr;
    }

    .refined-auth-panels,
    .auth-page-note,
    .topbar-user {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .auth-tab-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

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

    .stat-card {
        padding: 14px;
    }

    .stat-icon {
        width: 34px;
        height: 34px;
    }

    .tip-box {
        white-space: normal;
    }
}
