body {
    background: linear-gradient(180deg, #eef3fb 0%, #f7f9fd 100%);
    color: #16243d;
    font-family: Arial, sans-serif;
    margin: 0;
}

.platformShell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 2rem 1.2rem 3rem;
}

.platformHero {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.inlineFormActions {
    margin-bottom: 1rem;
}

.panelSummaryGrid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.summaryCard {
    background: linear-gradient(180deg, #ffffff 0%, #fbf2fb 100%);
    border: 1px solid #dde5f1;
    border-radius: 22px;
    box-shadow: 0 14px 35px rgba(18, 36, 61, 0.08);
    padding: 1.1rem;
}

.summaryCard span {
    color: #61708c;
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.summaryCard strong {
    display: block;
    font-size: 2rem;
    margin: 0.45rem 0;
}

.summaryCard p {
    margin: 0;
}

.platformHero h1 {
    font-size: 2.2rem;
    margin: 0.3rem 0 0.5rem;
}

.platformHero p,
.panelCard p {
    color: #61708c;
}

.eyebrow {
    color: #780576;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panelCard,
.planCard {
    background: #ffffff;
    border: 1px solid #dde5f1;
    border-radius: 22px;
    box-shadow: 0 14px 35px rgba(18, 36, 61, 0.08);
}

.panelCard {
    padding: 1.35rem;
}

.panelCard.narrow {
    margin: 0 auto;
    max-width: 420px;
}

.planGrid,
.panelGrid {
    display: grid;
    gap: 1rem;
}

.planGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.panelGrid {
    grid-template-columns: 380px minmax(0, 1fr);
}

.planCard {
    padding: 1.15rem;
}

.planCard span {
    color: #6e7b93;
    display: block;
    font-size: 0.88rem;
}

.planCard strong {
    display: block;
    font-size: 1.7rem;
    margin: 0.35rem 0 0.65rem;
}

.planCard p {
    margin: 0.2rem 0;
}

.stackedForm,
.twoCols {
    display: grid;
    gap: 1rem;
}

.twoCols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stackedForm label {
    display: block;
}

.stackedForm span {
    color: #51617d;
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.stackedForm input,
.stackedForm select,
.stackedForm textarea {
    border: 1px solid #d4dceb;
    border-radius: 14px;
    box-sizing: border-box;
    font: inherit;
    padding: 0.9rem 1rem;
    width: 100%;
}

.helperText {
    color: #61708c;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: -0.3rem 0 0;
}

.primaryButton,
.ghostButton {
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    padding: 0.9rem 1.1rem;
}

.primaryButton {
    background: #16243d;
    color: #ffffff;
}

.ghostButton {
    background: #ffffff;
    border: 1px solid #d4dceb;
    color: #16243d;
}

.alert {
    border-radius: 16px;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
}

.alert.error {
    background: #fff0f0;
    color: #9d2f2f;
}

.alert.success {
    background: #eef8ef;
    color: #257447;
}

.alert.info {
    background: #f8eaf8;
    color: #264a87;
}

.storesTableWrap {
    max-width: 100%;
    overflow-x: hidden;
}

.storesSectionTop {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.storesSectionTop h2 {
    margin: 0 0 0.35rem;
}

.storesSectionTop p {
    margin: 0;
}

.pagerPill {
    background: #f8eaf8;
    border-radius: 999px;
    color: #264a87;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    white-space: nowrap;
}

.storesTable {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

.storesTable th,
.storesTable td {
    border-bottom: 1px solid #e8edf5;
    padding: 0.95rem 0.6rem;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.storesTable th:nth-child(1),
.storesTable td:nth-child(1) {
    width: 34%;
}

.storesTable th:nth-child(2),
.storesTable td:nth-child(2),
.storesTable th:nth-child(3),
.storesTable td:nth-child(3),
.storesTable th:nth-child(4),
.storesTable td:nth-child(4) {
    width: 12%;
}

.storesTable th:nth-child(5),
.storesTable td:nth-child(5) {
    width: 14%;
}

.storesTable th:nth-child(6),
.storesTable td:nth-child(6) {
    width: 16%;
}

.storesTable td small {
    color: #687892;
    display: block;
    margin-top: 0.3rem;
}

.storeNote {
    background: #f7fafc;
    border: 1px solid #e3ebf7;
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
}

.storeDetailsToggle {
    margin-top: 0.75rem;
}

.storeDetailsToggle summary {
    align-items: center;
    background: #f7fafc;
    border: 1px solid #e3ebf7;
    border-radius: 14px;
    color: #16243d;
    cursor: pointer;
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
    list-style: none;
    padding: 0.8rem 0.9rem;
}

.storeDetailsToggle summary::-webkit-details-marker {
    display: none;
}

.storeDetailsToggle summary span {
    color: #16243d;
    font-size: 0.84rem;
    font-weight: 700;
}

.storeDetailsToggle summary small {
    color: #687892;
    font-size: 0.78rem;
}

.storeDetailsToggle[open] summary {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.storeDetailsBody {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.75rem;
}

.storeNote span {
    color: #61708c;
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.storeNote p {
    color: #16243d;
    line-height: 1.55;
    margin: 0;
    white-space: pre-wrap;
}

.storeUsagePanel {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid #e3ebf7;
    border-radius: 16px;
    margin-top: 0.75rem;
    padding: 0.85rem 0.95rem;
}

.storeUsagePanel.is-unavailable {
    background: #f8fafc;
}

.storeUsageHeader {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.storeUsageHeader span {
    color: #61708c;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.storeUsageHeader strong {
    color: #16243d;
    font-size: 0.92rem;
}

.storeUsageGrid {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.storeUsageItem {
    background: #f7fafc;
    border: 1px solid #ebf0f8;
    border-radius: 14px;
    padding: 0.75rem;
}

.storeUsageItem span {
    color: #687892;
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.storeUsageItem strong {
    color: #142746;
    display: block;
    font-size: 1rem;
    margin: 0.35rem 0;
}

.storeUsageItem small {
    color: #687892;
    display: block;
    line-height: 1.4;
    margin: 0;
}

.storesTable a {
    color: #1c4da1;
    display: inline-block;
    margin: 0 0.8rem 0.45rem 0;
    text-decoration: none;
    white-space: nowrap;
    word-break: keep-all;
}

.inlineActionForm {
    display: inline-block;
    margin: 0 0.8rem 0.45rem 0;
}

.inlineActionForm button {
    background: none;
    border: 0;
    color: #1c4da1;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.inlineActionForm button:hover,
.storesTable a:hover {
    text-decoration: underline;
}

.actionsCell {
    white-space: normal;
}

.storesPager {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.storesPagerMeta {
    color: #61708c;
    font-size: 0.9rem;
}

.storesPagerButton {
    display: inline-flex;
    justify-content: center;
    min-width: 108px;
    text-decoration: none;
}

.storesPagerButton.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    text-transform: capitalize;
}

.status-active {
    background: #e7f7ee;
    color: #26734a;
}

.status-past_due {
    background: #fff6df;
    color: #9a6b17;
}

.status-suspended {
    background: #fff0f0;
    color: #9d2f2f;
}

.status-open {
    background: #eef8ef;
    color: #257447;
}

.status-in_progress {
    background: #fff6df;
    color: #9a6b17;
}

.status-closed {
    background: #fff0f0;
    color: #9d2f2f;
}

.panelHeadingRow {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.panelHeadingRow h2 {
    margin-bottom: 0.35rem;
}

.ticketCountBadge {
    background: #f8eaf8;
    border-radius: 999px;
    color: #264a87;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
}

.ticketsPanel {
    margin-top: 1rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.06);
    padding: 1.2rem;
}

.supportTicketsShell {
    border: 1px solid #edf2fb;
}

.ticketsList {
    display: grid;
    gap: 1rem;
}

.ticketsBoard {
    display: grid;
    gap: 1rem;
    grid-template-columns: 290px minmax(0, 1fr);
}

.ticketsSidebar {
    display: grid;
    gap: 0.75rem;
    max-height: 70vh;
    overflow: auto;
    padding-right: 0.1rem;
}

.ticketListItem {
    background: #f7fafc;
    border: 1px solid rgba(120, 5, 118, 0.1);
    border-radius: 18px;
    color: #5c5959;
    display: block;
    padding: 0.95rem;
    text-decoration: none;
}

a.ticketListItem,
a.ticketListItem:link,
a.ticketListItem:visited,
a.ticketListItem:hover,
a.ticketListItem:active {
    color: #5c5959;
    text-decoration: none;
}

.ticketListItem.is-active {
    border-color: #780576;
    box-shadow: 0 10px 24px rgba(120, 5, 118, 0.12);
}

.ticketListTop,
.ticketListMeta {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.ticketListTop strong {
    color: #5c5959;
    font-size: 0.95rem;
    line-height: 1.35;
}

.ticketListMeta {
    color: #5c5959;
    font-size: 0.84rem;
    margin-top: 0.7rem;
    opacity: 0.72;
}

.ticketCard {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid rgba(120, 5, 118, 0.08);
    border-radius: 22px;
    padding: 1.1rem;
}

.ticketTopRow {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.ticketTopRow h3 {
    color: #5c5959;
    margin: 0.3rem 0 0;
}

.ticketBadges {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.priorityBadge {
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    text-transform: capitalize;
}

.priority-low {
    background: #edf1f7;
    color: #52627d;
}

.priority-medium {
    background: #f8eaf8;
    color: #264a87;
}

.priority-high {
    background: #fff6df;
    color: #9a6b17;
}

.priority-urgent {
    background: #fff0f0;
    color: #9d2f2f;
}

.ticketMeta {
    color: #5c5959;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    margin: 1rem 0 0.8rem;
    opacity: 0.78;
}

.ticketTimelineCard {
    background: #ffffff;
    border: 1px solid rgba(120, 5, 118, 0.08);
    border-radius: 18px;
    margin-top: 1rem;
    padding: 1rem;
}

.ticketTimelineHeading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ticketTimelineHeading h4 {
    color: #5c5959;
    margin: 0.25rem 0 0;
}

.ticketTimelineHeading small {
    color: #5c5959;
    opacity: 0.68;
}

.ticketTimeline {
    display: grid;
    gap: 0.8rem;
}

.ticketBubble {
    border-radius: 18px;
    padding: 1rem;
}

.ticketBubble-store {
    background: #f7fafc;
    border: 1px solid rgba(120, 5, 118, 0.08);
}

.ticketBubble-platform {
    background: #fbf2fb;
    border: 1px solid rgba(120, 5, 118, 0.14);
}

.ticketBubbleTop {
    align-items: center;
    color: #5c5959;
    display: flex;
    font-size: 0.85rem;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    opacity: 0.72;
}

.ticketBubble p {
    color: #5c5959;
    line-height: 1.65;
    margin: 0;
    white-space: pre-wrap;
}

.ticketLinks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.9rem 0 1rem;
}

.ticketLinks a {
    color: #780576;
    text-decoration: none;
}

.ticketUpdateForm {
    display: grid;
    gap: 0.9rem;
}

.ticketUpdateGrid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
}

.ticketUpdateForm label {
    display: block;
}

.ticketUpdateForm span {
    color: #5c5959;
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.ticketUpdateForm select,
.ticketUpdateForm textarea {
    background: #ffffff;
    color: #5c5959;
    border: 1px solid #d4dceb;
    border-radius: 14px;
    box-sizing: border-box;
    font: inherit;
    padding: 0.9rem 1rem;
    width: 100%;
}

.ticketNotesField textarea {
    min-height: 190px;
    resize: vertical;
}

.ticketAutoCloseNote {
    align-self: end;
    background: #f7fafc;
    border: 1px solid #e3ebf7;
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.ticketAutoCloseNote p {
    color: #61708c;
    margin: 0.35rem 0 0;
}

.ticketClosedNotice {
    background: #fff6df;
    border: 1px solid #f1dfad;
    border-radius: 14px;
    color: #7b5a12;
    padding: 0.9rem 1rem;
}

.emptyState {
    background: #f8fafc;
    border: 1px dashed #d4dceb;
    border-radius: 18px;
    color: #61708c;
    padding: 1rem;
}

code {
    background: #f1f5fb;
    border-radius: 6px;
    padding: 0.15rem 0.35rem;
}

@media (max-width: 960px) {
    .platformHero,
    .panelSummaryGrid,
    .panelGrid,
    .planGrid,
    .twoCols,
    .panelHeadingRow,
    .ticketTopRow,
    .storesSectionTop,
    .storesPager {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .ticketsBoard {
        grid-template-columns: 1fr;
    }

    .ticketUpdateGrid,
    .ticketTimelineHeading,
    .ticketBubbleTop {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .storeUsageGrid {
        grid-template-columns: 1fr;
    }

    .storesTable,
    .storesTable thead,
    .storesTable tbody,
    .storesTable tr,
    .storesTable th,
    .storesTable td {
        display: block;
        width: 100%;
    }

    .storesTable thead {
        display: none;
    }

    .storesTable tr {
        border: 1px solid #e8edf5;
        border-radius: 18px;
        margin-bottom: 1rem;
        padding: 0.85rem;
    }

    .storesTable td {
        border-bottom: 0;
        padding: 0.55rem 0;
    }

    .storesTable td:nth-child(2)::before {
        content: "Tipo: ";
        color: #61708c;
        font-weight: 700;
    }

    .storesTable td:nth-child(3)::before {
        content: "Plan: ";
        color: #61708c;
        font-weight: 700;
    }

    .storesTable td:nth-child(4)::before {
        content: "Estado: ";
        color: #61708c;
        font-weight: 700;
    }
}
