.nss-customer-hub {
    --nss-hub-bg: linear-gradient(145deg, #fffdf8 0%, #f6ece8 45%, #f3f7f8 100%);
    --nss-hub-card: #ffffff;
    --nss-hub-ink: #2f2622;
    --nss-hub-muted: #706863;
    --nss-hub-border: rgba(141, 109, 94, 0.2);
    --nss-hub-primary: #b67563;
    --nss-hub-primary-ink: #fffaf8;
    --nss-hub-shadow: 0 20px 48px rgba(64, 44, 34, 0.12);
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px;
    background: var(--nss-hub-bg);
    border-radius: 24px;
    box-shadow: var(--nss-hub-shadow);
    color: var(--nss-hub-ink);
    font-family: "DM Serif Display", Georgia, serif;
}

.nss-customer-hub * {
    box-sizing: border-box;
}

.nss-customer-hub h2,
.nss-customer-hub h3,
.nss-customer-hub h4,
.nss-customer-hub p,
.nss-customer-hub label,
.nss-customer-hub button,
.nss-customer-hub input,
.nss-customer-hub textarea,
.nss-customer-hub a,
.nss-customer-hub span {
    font-family: "Manrope", "Segoe UI", sans-serif;
}

.nss-customer-hub__hero h2 {
    margin: 4px 0 8px;
    font-size: 2rem;
    line-height: 1.2;
}

.nss-customer-hub__eyebrow {
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--nss-hub-muted);
    margin: 0;
}

.nss-customer-hub__hero p {
    margin: 0;
    color: var(--nss-hub-muted);
}

.nss-customer-hub__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.nss-customer-hub__tab,
.nss-customer-hub__button {
    border: 1px solid var(--nss-hub-border);
    background: #fff;
    color: var(--nss-hub-ink);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nss-customer-hub__tab.is-active,
.nss-customer-hub__button--primary {
    background: var(--nss-hub-primary);
    color: var(--nss-hub-primary-ink);
    border-color: var(--nss-hub-primary);
}

.nss-customer-hub__button--ghost {
    background: rgba(255, 255, 255, 0.8);
}

.nss-customer-hub__panel {
    margin-top: 16px;
    background: var(--nss-hub-card);
    border: 1px solid var(--nss-hub-border);
    border-radius: 18px;
    padding: 16px;
}

.nss-customer-hub__panel h3 {
    margin-top: 0;
}

.nss-customer-hub__cards {
    display: grid;
    gap: 10px;
}

.nss-customer-hub__card {
    border: 1px solid var(--nss-hub-border);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
}

.nss-customer-hub__card h4 {
    margin: 0 0 6px;
}

.nss-customer-hub__meta {
    display: grid;
    gap: 4px;
    color: var(--nss-hub-muted);
    font-size: 0.9rem;
}

.nss-customer-hub__inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nss-customer-hub__panel-head {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.nss-customer-hub__form-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.nss-customer-hub__form-grid label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
}

.nss-customer-hub__form-grid input,
.nss-customer-hub__form-grid textarea {
    border: 1px solid var(--nss-hub-border);
    border-radius: 12px;
    padding: 10px 12px;
    width: 100%;
}

.nss-customer-hub__field-full {
    grid-column: 1 / -1;
}

.nss-customer-hub__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.nss-customer-hub__checkbox input {
    margin-top: 4px;
    width: auto;
}

.nss-customer-hub__status {
    margin-top: 10px;
    min-height: 24px;
    font-size: 0.9rem;
    color: #7a2f2f;
}

.nss-customer-hub__media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.nss-customer-hub__media-card {
    border: 1px solid var(--nss-hub-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.nss-customer-hub__media-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
}

.nss-customer-hub__media-body {
    padding: 10px;
}

.nss-customer-hub__manage-panel {
    margin-top: 10px;
    border-top: 1px dashed var(--nss-hub-border);
    padding-top: 10px;
}

.nss-customer-hub__manage-grid {
    display: grid;
    gap: 10px;
}

.nss-customer-hub__manage-intro {
    margin: 0;
    color: var(--nss-hub-muted);
    font-size: 0.88rem;
}

.nss-customer-hub__manage-field {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
}

.nss-customer-hub__manage-field input,
.nss-customer-hub__manage-grid select {
    border: 1px solid var(--nss-hub-border);
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
}

.nss-customer-hub__manage-grid select {
    min-width: 130px;
}

.nss-customer-hub__manage-message,
.nss-customer-hub__manage-error {
    margin: 0;
    font-size: 0.9rem;
}

.nss-customer-hub__button--danger {
    border-color: #c2410c;
    color: #9a3412;
}

.nss-customer-hub__button--danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (min-width: 900px) {
    .nss-customer-hub {
        padding: 28px;
    }

    .nss-customer-hub__nav {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .nss-customer-hub__form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nss-customer-hub__media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
