html, body {
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    background: #f4f6fa;
    color: #14293a;
}

body {
    margin: 0;
}

.admin-main-content {
    min-height: calc(100vh - 50px);
    background: #f4f6fa;
}

h1, h2 {
    font-family: Georgia, "Times New Roman", serif;
}

.page-subtitle {
    color: #5b6f7d;
    max-width: 62rem;
}

.panel-card {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(20, 41, 58, 0.08);
}

.product-image-preview {
    position: relative;
    width: 100%;
    min-height: 220px;
    overflow: hidden;
    border-radius: 10px;
    background: #f4f6fa;
}

.product-image-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image-fallback {
    z-index: 1;
}

.product-image-actual {
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1.2rem 1.3rem;
    border-radius: 22px;
    background: linear-gradient(160deg, #fffdf8, #f7ead2);
    box-shadow: inset 0 0 0 1px rgba(20, 41, 58, 0.06);
}

.stat-card span {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b0692b;
}

.stat-card strong {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.75rem;
}

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.code-area {
    min-height: 180px;
    font-family: Consolas, monospace;
}

/* Login uses the same blue/cyan palette as the administration panel. */
.login-shell { min-height: 100svh; display: grid; place-items: center; padding: 40px 24px; background: #f4f6fa; background-image: radial-gradient(ellipse at 5% 5%, #e2edfb 0, transparent 55%); }
.login-card { width: min(100%, 1040px); display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid #e1e7f0; box-shadow: 0 24px 70px #14293a12; }
.login-brand { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 42px; color: #fff; background: linear-gradient(145deg, #1f49a5, #173a86); overflow: hidden; }
.login-brand::after { content: ''; position: absolute; width: 340px; height: 340px; right: -210px; bottom: -190px; border: 48px solid #5cc8df28; border-radius: 50%; pointer-events: none; }
.login-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.login-logo:hover { color: #fff; }
.login-logo img { object-fit: contain; }
.login-logo strong { display: block; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.8px; }
.login-logo small { display: block; margin-top: 5px; font-size: 10px; letter-spacing: 3px; color: #bdeaf3; }
.login-brand-copy { padding: 66px 0 48px; position: relative; z-index: 1; }
.login-eyebrow { color: #bdeaf3; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
.login-brand h2 { font-family: inherit; color: #fff; font-size: clamp(28px, 3vw, 36px); font-weight: 650; line-height: 1.2; letter-spacing: -1px; margin: 18px 0; }
.login-brand p { color: #dce6fb; line-height: 1.7; font-size: 14px; max-width: 330px; margin: 0; }
.login-capabilities { display: grid; gap: 16px; margin-top: 30px; font-size: 13px; color: #eef5ff; }
.login-capabilities span { display: flex; gap: 12px; align-items: center; }
.login-capabilities svg { width: 19px; height: 19px; color: #83dbe9; }
.login-brand-footer { font-size: 11px; color: #c1d0ef; margin-top: auto; }
.login-access { padding: 72px 48px 34px; display: flex; flex-direction: column; }
.login-access-label { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: #1f49a5; }
.login-access h1 { font-family: inherit; font-size: 28px; font-weight: 650; letter-spacing: -.8px; color: #14293a; margin: 15px 0 10px; line-height: 1.2; }
.login-intro { color: #627287; font-size: 13px; line-height: 1.6; margin-bottom: 30px; }
.login-form { display: grid; gap: 20px; }
.login-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: #273a51; }
.login-input-wrap { display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #fbfcfe; border: 1px solid #d7dfeb; border-radius: 9px; transition: border-color .15s, box-shadow .15s; }
.login-input-wrap svg { width: 20px; height: 20px; flex-shrink: 0; color: #7a8aa1; }
.login-input-wrap:focus-within { border-color: #1f49a5; box-shadow: 0 0 0 3px #1f49a51a; }
.login-form input:not([type=hidden]) { display: block; min-width: 0; width: 100%; height: 48px; color: #14293a; background: transparent; border: 0; outline: 0; font: inherit; font-weight: 400; }
.login-form input::placeholder { color: #7d899b; opacity: 1; }
.login-submit { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 49px; margin-top: 6px; padding: 12px 18px; border: 0; border-radius: 9px; background: #1f49a5; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; }
.login-submit:hover { background: #173a86; }
.login-submit svg { width: 18px; height: 18px; }
.login-submit:focus-visible, .login-logo:focus-visible { outline: 3px solid #5cc8df; outline-offset: 4px; }
.login-help { color: #627287; font-size: 12px; text-align: center; line-height: 1.7; margin: 22px 0 36px; }
.login-access-footer { display: flex; align-items: center; justify-content: center; gap: 7px; padding-top: 22px; margin-top: auto; border-top: 1px solid #edf0f5; color: #6a788d; font-size: 11px; }
.login-access-footer svg { width: 14px; height: 14px; }
.login-error { display: flex; align-items: flex-start; gap: 10px; padding: 12px; margin-bottom: 20px; background: #fff2f2; color: #9a2834; border: 1px solid #f3d0d5; border-radius: 9px; font-size: 13px; overflow-wrap: anywhere; }
.login-error svg { flex-shrink: 0; width: 18px; height: 18px; }
@media (max-width: 760px) {
    .login-shell { padding: 24px 16px; }
    .login-card { max-width: 460px; grid-template-columns: 1fr; border-radius: 18px; }
    .login-brand { padding: 22px 28px; }
    .login-brand-copy, .login-brand-footer { display: none; }
    .login-logo img { width: 44px; height: 44px; }
    .login-logo strong { font-size: 24px; }
    .login-access { padding: 32px 28px 26px; }
    .login-access h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .login-submit, .login-input-wrap { transition: none; } }

.import-product-heading { display: flex; flex-wrap: wrap; gap: .4rem 1rem; overflow-wrap: anywhere; }
.import-product-details { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8rem; color: var(--mud-palette-text-secondary); margin-top: .3rem; overflow-wrap: anywhere; }
.import-product-actions { white-space: nowrap; width: 120px; }
