.cc-shell {
    display: flex;
    height: 100vh;
    min-height: 0;
    background: #F8FAFC;
    color: #0F172A;
    font-family: var(--sos-font);
    overflow: hidden;
}

.cc-rail {
    width: 60px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 0;
    border-right: 1px solid rgba(226, 232, 240, 0.08);
    background: #0F172A;
}

.cc-rail__logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #E6C15A;
    color: #0F172A;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    text-decoration: none;
}

.cc-rail__btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #E2E8F0;
    display: grid;
    place-items: center;
    text-decoration: none;
    cursor: pointer;
}

.cc-rail__btn:hover {
    color: #E6C15A;
    background: rgba(230, 193, 90, 0.12);
}

.cc-rail__btn.active {
    color: #E6C15A;
    background: rgba(230, 193, 90, 0.18);
}

.cc-rail__btn.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 0 2px 2px 0;
    background: #E6C15A;
}

.cc-rail__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    background: #E6C15A;
    color: #0F172A;
    font-family: var(--sos-mono);
    font-size: 8px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.cc-rail__btn.active .cc-rail__badge {
    display: none;
}

.cc-rail__spacer {
    flex: 1;
}

.cc-rail__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E6C15A;
    box-shadow: 0 0 0 4px rgba(230, 193, 90, 0.22);
    margin-bottom: 8px;
}

.cc-rail__pulse--off {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px rgba(226, 232, 240, 0.7);
}

.cc-rail__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: #E6C15A;
    color: #0F172A;
    font-family: var(--sos-display);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.cc-workspace {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cc-topbar {
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(248, 250, 252, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #E2E8F0;
}

.cc-search {
    flex: 1;
    max-width: 420px;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #94A3B8;
}

.cc-search input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: #0F172A;
}

.cc-search:focus-within {
    border-color: #E6C15A;
    box-shadow: 0 0 0 3px rgba(230, 193, 90, 0.15);
}

.cc-iconbtn {
    position: relative;
    width: 36px;
    height: 36px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #334155;
    display: grid;
    place-items: center;
    cursor: pointer;
    text-decoration: none;
}

.cc-topbar .cc-iconbtn {
    margin-left: auto;
}

.cc-iconbtn:hover {
    border-color: #C7D2FE;
    color: #E6C15A;
}

.cc-note {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.cc-metrics {
    display: flex;
    align-items: stretch;
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid #E2E8F0;
    background: rgba(248, 250, 252, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #0F172A;
    flex-shrink: 0;
}

.cc-brand {
    min-width: 220px;
    padding: 14px 22px;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cc-brand__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-brand__name {
    font-family: var(--sos-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.03em;
    color: #0F172A;
}

.cc-brand__tag {
    font-family: var(--sos-mono);
    font-size: 10px;
    color: #0F172A;
    background: #E6C15A;
    border-radius: 999px;
    padding: 2px 7px;
}

.cc-brand__status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #334155;
    font-size: 11px;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.cc-brand__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E6C15A;
}

.cc-brand__dot--off {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px rgba(226, 232, 240, 0.7);
}

.cc-brand__meta {
    margin: 3px 0 0;
    color: #64748B;
    font-size: 10px;
    letter-spacing: 0.04em;
}

.cc-metrics__row {
    flex: 1;
    display: flex;
    overflow-x: auto;
}

.cc-metric {
    min-width: 120px;
    padding: 12px 18px;
    border-right: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cc-metric__label {
    font-family: var(--sos-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: 4px;
}

.cc-metric__value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--sos-display);
    font-size: 18px;
    font-weight: 650;
    line-height: 1;
    color: #0F172A;
}

.cc-metric__delta {
    font-family: var(--sos-mono);
    font-size: 11px;
    color: #0F172A;
}

.cc-metrics__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-left: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.cc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 8px;
    padding: 6px 12px;
    font-family: var(--sos-display);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.cc-btn--ghost {
    background: transparent;
    color: #334155;
}

.cc-btn--ghost:hover {
    background: rgba(230, 193, 90, 0.08);
    color: #0F172A;
}

.cc-btn--solid {
    background: #E6C15A;
    color: #0F172A;
    border-radius: 999px;
    box-shadow: none;
    transition: transform 160ms ease, background 160ms ease;
}

.cc-btn--solid:hover {
    background: #C9962A;
    color: #0F172A;
    transform: scale(1.03);
}

.cc-btn--solid:disabled {
    opacity: 0.4;
    cursor: default;
}

.cc-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0 20px 28px;
    background: #F8FAFC;
    color: #0F172A;
}

.cc-body:has(.cc-inbox) {
    overflow: hidden;
    padding: 0;
}

.cc-inbox {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 236px;
}

.cc-threads,
.cc-conversation,
.cc-customer {
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cc-threads {
    border-right: 1px solid rgba(15, 23, 42, 0.18);
}

.cc-customer {
    border-left: 1px solid rgba(15, 23, 42, 0.18);
    overflow: auto;
}

.cc-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 12px 8px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #F8FAFC;
    color: #0F172A;
}

.cc-search input,
.cc-composer input,
.cc-notes {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #0F172A;
    font: inherit;
    font-size: 13px;
}

.cc-search input::placeholder,
.cc-composer input::placeholder,
.cc-notes::placeholder {
    color: #0F172A;
}

.cc-filters {
    display: flex;
    gap: 4px;
    margin: 0 12px 8px;
    padding: 3px;
    border-radius: 8px;
    background: #F8FAFC;
}

.cc-filters button {
    flex: 1;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #0F172A;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 0;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    gap: 4px;
}

.cc-filters button.active {
    background: #0F172A;
    color: #E2E8F0;
}

.cc-filters em {
    font-style: normal;
    font-family: var(--sos-mono);
    font-size: 10px;
}

.cc-thread-list {
    overflow: auto;
    flex: 1;
}

.cc-thread {
    width: 100%;
    display: flex;
    gap: 10px;
    text-align: left;
    padding: 12px;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.18);
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.cc-thread:hover {
    background: #F8FAFC;
}

.cc-thread.active {
    background: #F8FAFC;
}

.cc-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #E2E8F0;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--sos-display);
}

.cc-avatar--sm {
    width: 26px;
    height: 26px;
    font-size: 10px;
}

.cc-thread__body {
    min-width: 0;
    flex: 1;
}

.cc-thread__top,
.cc-thread__sub,
.cc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cc-thread__name {
    font-size: 13px;
    font-weight: 650;
}

.cc-thread__time,
.cc-muted {
    color: #0F172A;
    font-size: 11px;
}

.cc-thread__sub {
    margin-top: 2px;
    justify-content: flex-start;
    gap: 6px;
}

.cc-thread__preview {
    margin-top: 4px;
    color: #0F172A;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-unread {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #0F172A;
    color: #E2E8F0;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.cc-channel {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: var(--sos-mono);
    font-size: 10px;
    font-weight: 500;
}

.cc-conversation .cc-muted,
.cc-conversation .cc-step {
    color: #0F172A;
}

.cc-conversation .cc-step.on {
    color: #0F172A;
}

.cc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.22);
}

.cc-head__who {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cc-head__name {
    font-family: var(--sos-display);
    font-weight: 650;
    font-size: 14px;
}

.cc-head__meta {
    color: #0F172A;
    font-size: 11px;
    display: flex;
    gap: 8px;
}

.cc-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cc-tabs button {
    border: 0;
    background: transparent;
    color: #0F172A;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    cursor: pointer;
}

.cc-tabs button.active {
    background: #0F172A;
    color: #E2E8F0;
}

.cc-tabs .cc-resolve {
    background: rgba(15, 23, 42, 0.12);
    color: #0F172A;
}

.cc-feed {
    flex: 1;
    overflow: auto;
    padding: 18px 22px 12px;
    background: #F8FAFC;
}

.cc-empty {
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    color: #0F172A;
    padding: 24px;
}

.cc-msg {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.cc-bubble {
    max-width: min(460px, 100%);
    background: #F8FAFC;
    color: #0F172A;
    border: 1px solid rgba(15, 23, 42, 0.22);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cc-bubble__text {
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.45;
}

.cc-bubble__meta {
    margin-top: 6px;
    color: #0F172A;
    font-size: 10px;
    font-family: var(--sos-mono);
}

.cc-photo {
    display: block;
    width: min(240px, 100%);
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.cc-product {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.18);
}

.cc-product img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.cc-product__name {
    font-weight: 650;
    font-size: 13px;
}

.cc-product__price {
    color: #0F172A;
    font-family: var(--sos-mono);
    font-size: 12px;
    margin-top: 4px;
}

.cc-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.cc-keys button {
    border: 1px solid rgba(15, 23, 42, 0.28);
    background: #F8FAFC;
    color: #0F172A;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.cc-keys button:hover {
    border-color: rgba(15, 23, 42, 0.18);
    color: #0F172A;
}

.cc-composer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.22);
    background: #F8FAFC;
}

.cc-composer input {
    color: #0F172A;
}

.cc-composer input::placeholder {
    color: #0F172A;
}

.cc-composer .cc-btn--solid {
    background: #E6C15A;
    color: #0F172A;
    box-shadow: none;
}

.cc-composer .cc-btn--solid:hover {
    background: #C9962A;
    color: #0F172A;
}

.cc-icon-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0F172A;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.cc-icon-btn:hover,
.cc-icon-btn.active {
    color: #0F172A;
    background: rgba(15, 23, 42, 0.12);
}

.cc-tray {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 8px;
}

.cc-chip {
    border: 1px solid rgba(15, 23, 42, 0.28);
    background: #F8FAFC;
    color: #0F172A;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.cc-chip:hover {
    border-color: rgba(15, 23, 42, 0.18);
    color: #0F172A;
}

.cc-orders,
.cc-stock {
    flex: 1;
    overflow: auto;
    padding: 16px 18px 24px;
    background: #F8FAFC;
    color: #0F172A;
}

.cc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cc-section-head h2 {
    margin: 0;
    font-family: var(--sos-display);
    font-size: 16px;
    font-weight: 650;
}

.cc-order {
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.18);
}

.cc-order__id {
    font-family: var(--sos-mono);
    font-size: 12px;
}

.cc-steps {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.cc-step {
    font-family: var(--sos-mono);
    font-size: 10px;
    color: #0F172A;
}

.cc-step.on {
    color: #0F172A;
}

.cc-stock-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.18);
}

.cc-stock-item strong {
    display: block;
    font-size: 13px;
}

.cc-stock-item span {
    color: #0F172A;
    font-family: var(--sos-mono);
    font-size: 11px;
}

.cc-qty {
    text-align: right;
    font-family: var(--sos-mono);
}

.cc-qty b {
    color: #0F172A;
    font-size: 16px;
}

.cc-note {
    margin-top: 16px;
    color: #0F172A;
    font-size: 12px;
    line-height: 1.45;
}

.cc-side {
    padding: 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.18);
}

.cc-side h3 {
    margin: 0 0 8px;
    font-family: var(--sos-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0F172A;
    font-weight: 500;
}

.cc-stat {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.cc-stat b {
    font-family: var(--sos-display);
    font-size: 18px;
    font-weight: 650;
}

.cc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cc-tag {
    border-radius: 999px;
    padding: 2px 8px;
    background: #F8FAFC;
    color: #0F172A;
    font-size: 11px;
}

.cc-history {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.18);
    font-size: 12px;
}

.cc-suggest {
    margin: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.08);
    color: #0F172A;
    font-size: 12px;
    line-height: 1.45;
}

.cc-suggest strong {
    display: block;
    color: #0F172A;
    font-size: 11px;
    margin-bottom: 4px;
}

.cc-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--sos-mono);
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
}

.cc-status--Pending,
.cc-status--Draft { color: #0F172A; background: rgba(15, 23, 42, 0.1); }
.cc-status--Confirmed { color: #0F172A; background: rgba(15, 23, 42, 0.1); }
.cc-status--Paid { color: #0F172A; background: rgba(15, 23, 42, 0.12); }
.cc-status--Packed { color: #0F172A; background: rgba(15, 23, 42, 0.12); }
.cc-status--Shipped { color: #0F172A; background: rgba(15, 23, 42, 0.1); }
.cc-status--Completed { color: #0F172A; background: rgba(15, 23, 42, 0.12); }
.cc-status--Cancelled { color: #0F172A; background: rgba(15, 23, 42, 0.12); }

.cc-notes {
    min-height: 64px;
    resize: vertical;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 8px;
    padding: 8px;
    background: #F8FAFC;
}

.cc-link {
    color: #0F172A;
    font-size: 12px;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .cc-inbox {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .cc-customer {
        display: none;
    }
}

.cc-back {
    display: none;
}

@media (max-width: 760px) {
    .cc-brand {
        display: none;
    }

    .cc-inbox {
        grid-template-columns: 1fr;
    }

    .cc-threads {
        display: none;
    }

    .cc-inbox--list .cc-threads {
        display: flex;
    }

    .cc-inbox--list .cc-conversation,
    .cc-inbox--list .cc-customer {
        display: none;
    }

    .cc-back {
        display: grid;
    }
}
