/* ============================================================================
   spa_chat_maker.css — SPA Phase 2-A (preview_chat_maker_01 inline 변환)
   원본: preview_chat_maker_01.html 의 <style> 영역.
   제외: body·#fsite-app-bottom-nav·material-symbols 블록 (shell 이 처리).
   ID prefix: cm- (chat-maker)
   ============================================================================ */
.cm-app {
    width: 100%;
    background: #F6F6F6;
    min-height: 100%;
}

.cm-header {
    background: #fff;
    padding: 16px 20px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #f0f0f0;
    transform: translateZ(0);
    isolation: isolate;
    backface-visibility: hidden;
}
.cm-header__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.cm-header__back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    cursor: pointer;
    border-radius: 50%;
    margin-left: -6px;
}
.cm-header__back:active { background: rgba(0,0,0,0.05); }
.cm-header__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.cm-tabs { display: flex; gap: 0; }
.cm-tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    letter-spacing: -0.3px;
    word-break: keep-all;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.cm-tab.active {
    color: #1a1a1a;
    border-bottom-color: #002C5F;
}
.cm-tab__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}

.cm-list {
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cm-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    gap: 14px;
    align-items: center;
}
.cm-card:active {
    background: #fafafa;
    transform: scale(0.98);
}
.cm-card--urgent { border-left: 3px solid #ef4444; }
.cm-card__thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
    overflow: hidden;
}
.cm-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cm-card__content { flex: 1; min-width: 0; }
.cm-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.cm-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cm-card__grade {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.2px;
    vertical-align: middle;
    margin-left: 4px;
}
.cm-card__grade--silver-bright { background: linear-gradient(135deg, #b0c0d2, #8da5be); }
.cm-card__grade--bronze { background: linear-gradient(135deg, #d4956a, #b87340); }
.cm-card__grade--gold { background: linear-gradient(135deg, #f5c542, #d49a2c); }
.cm-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
}
.cm-card__buyer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.cm-card__buyer-name {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    letter-spacing: -0.2px;
}
.cm-card__buyer-time {
    font-size: 11px;
    color: #bbb;
}
.cm-card__preview {
    font-size: 13px;
    color: #767676;
    letter-spacing: -0.2px;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-content { display: none; }
.cm-content.active { display: block; }

.cm-empty {
    text-align: center;
    padding: 60px 20px;
    color: #bbb;
}
.cm-empty .material-symbols-rounded {
    font-size: 48px;
    margin-bottom: 12px;
    color: #ddd;
}
.cm-empty__text {
    font-size: 14px;
    letter-spacing: -0.3px;
    word-break: keep-all;
}
