/* ============================================================
   Yumat Content Factory - Design Tokens & Base
   Mobile first: ทุกอย่างออกแบบจากจอเล็กขึ้นไป
   ============================================================ */

:root {
    /* Brand */
    --c-primary:        #2F6BFF;
    --c-primary-dark:   #1E4FD6;
    --c-primary-soft:   #EAF0FF;
    --c-accent:         #7A5AF8;
    --c-gradient:       linear-gradient(135deg, #2F6BFF 0%, #7A5AF8 100%);

    /* Semantic */
    --c-success:        #12B76A;
    --c-success-soft:   #E6F7EF;
    --c-warning:        #F79009;
    --c-warning-soft:   #FEF4E6;
    --c-danger:         #F04438;
    --c-danger-soft:    #FEECEB;
    --c-info:           #0BA5EC;
    --c-info-soft:      #E6F6FE;
    --c-secondary:      #667085;
    --c-secondary-soft: #F2F4F7;

    /* Surface */
    --c-bg:             #F6F8FB;
    --c-surface:        #FFFFFF;
    --c-surface-alt:    #FAFBFD;
    --c-border:         #E4E7EC;
    --c-border-strong:  #D0D5DD;

    /* Text */
    --c-text:           #101828;
    --c-text-muted:     #667085;
    --c-text-subtle:    #98A2B3;

    /* Shape */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 22px;
    --r-pill: 999px;

    /* Shadow */
    --sh-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --sh-sm: 0 2px 8px rgba(16, 24, 40, .06);
    --sh-md: 0 8px 24px rgba(16, 24, 40, .08);
    --sh-lg: 0 16px 40px rgba(16, 24, 40, .12);

    /* Layout */
    --sidebar-w:   264px;
    --topbar-h:    60px;
    --bottomnav-h: 68px;

    --font: 'Noto Sans Thai', -apple-system, 'Segoe UI', system-ui, sans-serif;
}

* { -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: -0.005em;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.02em; color: var(--c-text); }

a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }

.icon { flex-shrink: 0; vertical-align: -0.15em; }

.text-muted-2 { color: var(--c-text-muted) !important; }
.text-subtle   { color: var(--c-text-subtle) !important; }

/* ============================================================
   Layout
   ============================================================ */

.app-shell { min-height: 100vh; }

.app-main {
    padding: 16px 16px calc(var(--bottomnav-h) + 24px);
    max-width: 100%;
}

@media (min-width: 992px) {
    .app-main {
        margin-left: var(--sidebar-w);
        padding: 24px 28px 40px;
    }
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.page-head h1 {
    font-size: 1.35rem;
    margin: 0;
}

.page-head .subtitle {
    color: var(--c-text-muted);
    font-size: .875rem;
    margin: 2px 0 0;
}

@media (min-width: 768px) {
    .page-head h1 { font-size: 1.6rem; }
}

/* ============================================================
   Sidebar (desktop)
   ============================================================ */

.sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--c-surface);
    border-right: 1px solid var(--c-border);
    z-index: 1030;
    overflow-y: auto;
    overscroll-behavior: contain;
}

@media (min-width: 992px) { .sidebar { display: flex; flex-direction: column; } }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    background: var(--c-surface);
    z-index: 1;
}

.sidebar-logo {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--c-gradient);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700; font-size: .95rem;
    flex-shrink: 0;
}

.sidebar-brand strong { font-size: .95rem; line-height: 1.2; display: block; }
.sidebar-brand small  { color: var(--c-text-subtle); font-size: .7rem; }

.sidebar-nav { padding: 12px 12px 24px; flex: 1; }

.nav-group-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-text-subtle);
    padding: 14px 10px 6px;
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border-radius: var(--r-sm);
    color: var(--c-text-muted);
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background .15s, color .15s;
}

.nav-link-item:hover { background: var(--c-secondary-soft); color: var(--c-text); }

.nav-link-item.active {
    background: var(--c-primary-soft);
    color: var(--c-primary-dark);
    font-weight: 600;
}

.nav-link-item .nav-badge {
    margin-left: auto;
    background: var(--c-danger);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: var(--r-pill);
    display: grid;
    place-items: center;
}

.sidebar-footer {
    border-top: 1px solid var(--c-border);
    padding: 12px;
    position: sticky;
    bottom: 0;
    background: var(--c-surface);
}

/* ============================================================
   Topbar
   ============================================================ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    height: var(--topbar-h);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

@media (min-width: 992px) {
    .topbar { margin-left: var(--sidebar-w); padding: 0 28px; }
}

.topbar-title { font-weight: 600; font-size: .98rem; margin: 0; }

.avatar-circle {
    width: 34px; height: 34px;
    border-radius: var(--r-pill);
    background: var(--c-gradient);
    color: #fff;
    display: grid; place-items: center;
    font-size: .78rem; font-weight: 700;
    flex-shrink: 0;
}

.icon-btn {
    width: 38px; height: 38px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--c-text-muted);
    display: grid; place-items: center;
    position: relative;
    transition: background .15s;
}
.icon-btn:hover { background: var(--c-secondary-soft); color: var(--c-text); }

.icon-btn .dot {
    position: absolute; top: 7px; right: 7px;
    width: 8px; height: 8px;
    background: var(--c-danger);
    border: 2px solid var(--c-surface);
    border-radius: 50%;
}

/* ============================================================
   Bottom navigation (mobile)
   ============================================================ */

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottomnav-h);
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 1040;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 12px rgba(16, 24, 40, .06);
}

@media (min-width: 992px) { .bottom-nav { display: none; } }

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--c-text-subtle);
    font-size: .66rem;
    font-weight: 500;
    position: relative;
    padding-top: 6px;
}

.bottom-nav-item.active { color: var(--c-primary); font-weight: 600; }

.bottom-nav-item .nav-badge {
    position: absolute;
    top: 4px;
    left: 50%;
    margin-left: 4px;
    background: var(--c-danger);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    border-radius: var(--r-pill);
    display: grid; place-items: center;
}

/* ปุ่ม + ตรงกลาง - ยกสูงและเด่นกว่าปุ่มอื่น */
.bottom-nav-fab {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav-fab button {
    width: 56px; height: 56px;
    border-radius: var(--r-pill);
    border: 4px solid var(--c-bg);
    background: var(--c-gradient);
    color: #fff;
    box-shadow: 0 6px 18px rgba(47, 107, 255, .42);
    display: grid; place-items: center;
    transform: translateY(-16px);
    transition: transform .18s ease, box-shadow .18s ease;
}

.bottom-nav-fab button:active {
    transform: translateY(-16px) scale(.93);
    box-shadow: 0 3px 10px rgba(47, 107, 255, .38);
}

/* ============================================================
   Create bottom sheet
   ============================================================ */

.sheet-backdrop {
    position: fixed; inset: 0;
    background: rgba(16, 24, 40, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s;
    z-index: 1050;
}

.sheet-backdrop.show { opacity: 1; visibility: visible; }

.create-sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--c-surface);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    /* ต้องซ่อนจริง ๆ ไม่ใช่แค่ทำให้มองไม่เห็น
       ไม่งั้นตัว sheet จะยังรับคลิกอยู่และไปบังพื้นที่ว่างของหน้า */
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s cubic-bezier(.32, .72, 0, 1), visibility .28s;
    z-index: 1060;
    max-height: 85vh;
    overflow-y: auto;
}

.create-sheet.show {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .create-sheet {
        left: 50%;
        right: auto;
        bottom: 50%;
        width: 440px;
        transform: translate(-50%, 60%) scale(.96);
        border-radius: var(--r-lg);
        opacity: 0;
        transition: transform .24s ease, opacity .24s ease, visibility .24s;
    }
    .create-sheet.show { transform: translate(-50%, 50%); opacity: 1; }
}

.sheet-handle {
    width: 40px; height: 4px;
    background: var(--c-border-strong);
    border-radius: var(--r-pill);
    margin: 6px auto 14px;
}

@media (min-width: 768px) { .sheet-handle { display: none; } }

.sheet-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    margin-bottom: 9px;
    background: var(--c-surface);
    transition: border-color .15s, transform .1s, box-shadow .15s;
    color: var(--c-text);
}

.sheet-item:hover { border-color: var(--c-primary); box-shadow: var(--sh-sm); color: var(--c-text); }
.sheet-item:active { transform: scale(.985); }

.sheet-item-icon {
    width: 42px; height: 42px;
    border-radius: var(--r-md);
    display: grid; place-items: center;
    flex-shrink: 0;
    color: #fff;
}

.sheet-item strong { display: block; font-size: .92rem; font-weight: 600; }
.sheet-item small  { color: var(--c-text-muted); font-size: .78rem; }

.tone-primary  { background: var(--c-primary); }
.tone-gradient { background: var(--c-gradient); }
.tone-success  { background: var(--c-success); }
.tone-warning  { background: var(--c-warning); }

/* ============================================================
   Cards
   ============================================================ */

.card-x {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
}

.card-x-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--c-border);
}

.card-x-head h2 { font-size: .95rem; margin: 0; font-weight: 600; }
.card-x-body { padding: 16px 17px; }
.card-x-body.tight { padding: 6px 8px; }

/* ---- Stat card ---- */

.stat-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 15px;
    box-shadow: var(--sh-xs);
    display: block;
    color: inherit;
    height: 100%;
    transition: box-shadow .18s, transform .18s, border-color .18s;
}

.stat-card:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
    border-color: var(--c-border-strong);
    color: inherit;
}

.stat-icon {
    width: 38px; height: 38px;
    border-radius: var(--r-md);
    display: grid; place-items: center;
    margin-bottom: 11px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.stat-label { font-size: .78rem; color: var(--c-text-muted); }

.stat-unit { font-size: .82rem; font-weight: 500; color: var(--c-text-subtle); margin-left: 3px; }

.trend-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: .72rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: var(--r-pill);
}

.trend-up   { background: var(--c-success-soft); color: var(--c-success); }
.trend-down { background: var(--c-danger-soft);  color: var(--c-danger); }
.trend-flat { background: var(--c-secondary-soft); color: var(--c-secondary); }

@media (min-width: 768px) {
    .stat-card { padding: 17px; }
    .stat-value { font-size: 1.7rem; }
}

/* soft tone backgrounds */
.soft-primary   { background: var(--c-primary-soft);   color: var(--c-primary); }
.soft-success   { background: var(--c-success-soft);   color: var(--c-success); }
.soft-warning   { background: var(--c-warning-soft);   color: var(--c-warning); }
.soft-danger    { background: var(--c-danger-soft);    color: var(--c-danger); }
.soft-info      { background: var(--c-info-soft);      color: var(--c-info); }
.soft-secondary { background: var(--c-secondary-soft); color: var(--c-secondary); }

/* ============================================================
   Badges / status
   ============================================================ */

.badge-x {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    white-space: nowrap;
}

/* ============================================================
   Content list item
   ============================================================ */

.content-row {
    display: flex;
    gap: 12px;
    padding: 11px 9px;
    border-radius: var(--r-md);
    transition: background .15s;
    color: inherit;
}

.content-row:hover { background: var(--c-surface-alt); color: inherit; }

.content-thumb {
    width: 52px; height: 52px;
    border-radius: var(--r-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--c-secondary-soft);
    display: grid; place-items: center;
    color: var(--c-text-subtle);
}

.content-row-title {
    font-size: .875rem;
    font-weight: 600;
    margin: 0 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-row-meta {
    font-size: .75rem;
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ============================================================
   Empty state
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 34px 18px;
    color: var(--c-text-muted);
}

.empty-state .empty-icon {
    width: 54px; height: 54px;
    border-radius: var(--r-lg);
    background: var(--c-secondary-soft);
    color: var(--c-text-subtle);
    display: grid; place-items: center;
    margin: 0 auto 12px;
}

.empty-state p { font-size: .86rem; margin: 0; }

/* ============================================================
   Forms / buttons
   ============================================================ */

.form-control, .form-select {
    border-radius: var(--r-sm);
    border-color: var(--c-border-strong);
    font-size: .9rem;
    padding: .55rem .8rem;
    min-height: 44px;      /* แตะง่ายบนมือถือ */
}

.form-control:focus, .form-select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3.5px rgba(47, 107, 255, .13);
}

.form-label { font-size: .82rem; font-weight: 600; margin-bottom: 5px; color: var(--c-text); }

.btn {
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: .875rem;
    padding: .55rem 1.05rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.btn-sm { min-height: 36px; padding: .32rem .8rem; font-size: .8rem; }

.btn-primary {
    background: var(--c-primary);
    border-color: var(--c-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--c-primary-dark);
    border-color: var(--c-primary-dark);
}

.btn-gradient {
    background: var(--c-gradient);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(47, 107, 255, .3);
}
.btn-gradient:hover { color: #fff; filter: brightness(1.06); }

.btn-soft {
    background: var(--c-secondary-soft);
    border: 1px solid transparent;
    color: var(--c-text);
}
.btn-soft:hover { background: var(--c-border); color: var(--c-text); }

/* ============================================================
   Alerts / flash
   ============================================================ */

.flash-stack {
    position: fixed;
    top: calc(var(--topbar-h) + 10px);
    right: 14px;
    left: 14px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

@media (min-width: 768px) { .flash-stack { left: auto; width: 380px; } }

.flash-item {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    background: var(--c-surface);
    box-shadow: var(--sh-lg);
    border-left: 4px solid var(--c-primary);
    font-size: .875rem;
    animation: flashIn .28s ease;
}

.flash-item.type-success { border-left-color: var(--c-success); }
.flash-item.type-danger  { border-left-color: var(--c-danger); }
.flash-item.type-warning { border-left-color: var(--c-warning); }

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Auth page
   ============================================================ */

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px 16px;
    background:
        radial-gradient(900px 420px at 10% -10%, rgba(47, 107, 255, .16), transparent 60%),
        radial-gradient(760px 420px at 100% 0%, rgba(122, 90, 248, .14), transparent 55%),
        var(--c-bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
    padding: 28px 24px;
}

.auth-logo {
    width: 54px; height: 54px;
    border-radius: var(--r-lg);
    background: var(--c-gradient);
    color: #fff;
    display: grid; place-items: center;
    margin: 0 auto 14px;
    box-shadow: 0 8px 20px rgba(47, 107, 255, .32);
}

.demo-account {
    border: 1px dashed var(--c-border-strong);
    border-radius: var(--r-md);
    padding: 11px 13px;
    background: var(--c-surface-alt);
    font-size: .78rem;
}

.demo-account button {
    background: none;
    border: none;
    padding: 0;
    color: var(--c-primary);
    font-weight: 600;
    font-size: .78rem;
}

/* ============================================================
   Misc
   ============================================================ */

.divider-y { height: 1px; background: var(--c-border); margin: 12px 0; }

/* เส้นคั่นแบบ "คลาสเสริม" สำหรับแถวที่มีเนื้อหา
   ห้ามใช้ .divider-y กับแถวที่มีเนื้อหา เพราะมันบังคับ height:1px แล้วเนื้อหาจะล้นทับกัน */
.divider-top { border-top: 1px solid var(--c-border); }

.scroll-x {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scroll-x::-webkit-scrollbar { display: none; }

.chip {
    flex-shrink: 0;
    padding: 6px 13px;
    border-radius: var(--r-pill);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    font-size: .8rem;
    font-weight: 500;
    color: var(--c-text-muted);
    white-space: nowrap;
}

.chip.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
    font-weight: 600;
}

.skeleton {
    background: linear-gradient(90deg, #EEF1F5 25%, #F7F9FC 50%, #EEF1F5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite;
    border-radius: var(--r-sm);
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border-strong); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-subtle); }

@media print {
    .sidebar, .topbar, .bottom-nav, .create-sheet, .sheet-backdrop { display: none !important; }
    .app-main { margin: 0; padding: 0; }
}

/* ============================================================
   Facebook post preview
   ============================================================ */

.fb-preview {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
    color: #050505;
    max-width: 100%;
}

.fb-preview.is-mobile  { max-width: 400px; margin: 0 auto; }
.fb-preview.is-desktop { max-width: 560px; margin: 0 auto; }

.fb-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 12px 8px;
}

.fb-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fb-avatar-letter {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
}

.fb-page-name {
    font-weight: 600;
    font-size: 15px;
    color: #050505;
}

.fb-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: #65676B;
}

.fb-more { color: #65676B; font-size: 18px; letter-spacing: 1px; }

.fb-caption {
    padding: 2px 12px 10px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 15px;
}

.fb-hashtags {
    padding: 0 12px 10px;
    color: #1877F2;
    font-size: 14.5px;
    word-break: break-word;
}

.fb-image-wrap { background: #f0f2f5; line-height: 0; }

.fb-image { width: 100%; height: auto; display: block; }

.fb-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #F2F3F5;
    border-top: 1px solid #E4E6EB;
}

.fb-link-domain {
    font-size: 11px;
    color: #65676B;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.fb-link-title {
    font-weight: 600;
    font-size: 15px;
    color: #050505;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fb-link-desc {
    font-size: 13px;
    color: #65676B;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.fb-cta-btn {
    flex-shrink: 0;
    background: #E4E6EB;
    color: #050505;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 13px;
    border-radius: 6px;
    white-space: nowrap;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fb-actions {
    display: flex;
    justify-content: space-around;
    padding: 7px 8px;
    border-top: 1px solid #E4E6EB;
    color: #65676B;
    font-size: 13.5px;
    font-weight: 600;
}

/* ============================================================
   Create / Edit content
   ============================================================ */

.step-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    margin-bottom: 14px;
    overflow: hidden;
}

.step-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-border);
}

.step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--c-primary-soft);
    color: var(--c-primary-dark);
    display: grid; place-items: center;
    font-size: .78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-head h2 { font-size: .95rem; margin: 0; font-weight: 600; }
.step-head .step-sub { font-size: .75rem; color: var(--c-text-subtle); }
.step-body { padding: 16px; }

/* เลือกเพจแบบการ์ด */
.page-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.page-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: var(--c-surface);
}

.page-option:hover { border-color: var(--c-border-strong); }

.page-option.selected {
    border-color: var(--c-primary);
    background: var(--c-primary-soft);
}

.page-option img,
.page-option .letter {
    width: 32px; height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.page-option .letter {
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: .85rem;
}

.page-option .name {
    font-size: .82rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* การ์ดแคปชันที่ AI สร้าง */
.caption-option {
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 12px 13px;
    margin-bottom: 9px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    background: var(--c-surface);
}

.caption-option:hover { border-color: var(--c-border-strong); box-shadow: var(--sh-sm); }

.caption-option.selected {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}

.caption-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.caption-option-text {
    font-size: .855rem;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--c-text);
    max-height: 190px;
    overflow-y: auto;
}

/* แกลเลอรีภาพ AI */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 9px;
}

.image-option {
    position: relative;
    border: 2.5px solid transparent;
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--c-secondary-soft);
    aspect-ratio: 1;
    transition: border-color .15s;
}

.image-option img { width: 100%; height: 100%; object-fit: cover; display: block; }

.image-option.selected { border-color: var(--c-primary); }

.image-option .check {
    position: absolute;
    top: 6px; right: 6px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: none;
    place-items: center;
}

.image-option.selected .check { display: grid; }

/* แถบ action ล่างสุดบนมือถือ */
.action-bar {
    position: sticky;
    bottom: calc(var(--bottomnav-h) + 8px);
    z-index: 10;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    padding: 11px 13px;
}

@media (min-width: 992px) { .action-bar { bottom: 14px; } }

.char-counter { font-size: .74rem; color: var(--c-text-subtle); }
.char-counter.over { color: var(--c-danger); font-weight: 600; }

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, rgba(47,107,255,.12), rgba(122,90,248,.12));
    color: var(--c-accent);
}

.btn-loading { position: relative; pointer-events: none; opacity: .75; }

.spin { animation: spin 1s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Ads Wizard
   ============================================================ */

.wizard-steps {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.wizard-steps::-webkit-scrollbar { display: none; }

.wizard-step {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 5px 9px;
    border-radius: var(--r-pill);
    font-size: .74rem;
    color: var(--c-text-subtle);
    white-space: nowrap;
    transition: background .15s, color .15s;
}

a.wizard-step:hover { background: var(--c-secondary-soft); color: var(--c-text); }

.wizard-step.done    { color: var(--c-success); }
.wizard-step.current { background: var(--c-primary-soft); color: var(--c-primary-dark); font-weight: 600; }

.wizard-step-num {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--c-secondary-soft);
    display: grid; place-items: center;
    font-size: .68rem;
    font-weight: 700;
    flex-shrink: 0;
}

.wizard-step.done .wizard-step-num    { background: var(--c-success-soft); color: var(--c-success); }
.wizard-step.current .wizard-step-num { background: var(--c-primary); color: #fff; }

.wizard-step-label { display: none; }

@media (min-width: 640px) { .wizard-step-label { display: inline; } }

/* การ์ดตัวเลือกในแต่ละขั้น */
.pick-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}

.pick-card:hover { border-color: var(--c-border-strong); }

.pick-card.selected,
.pick-card:has(input:checked) {
    border-color: var(--c-primary);
    background: var(--c-primary-soft);
}

.pick-card strong { font-size: .88rem; font-weight: 600; }
.pick-card small  { font-size: .76rem; }

/* ผลค้นหาความสนใจ */
.interest-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
    max-height: 260px;
    overflow-y: auto;
    z-index: 20;
}

.interest-item {
    padding: 9px 12px;
    cursor: pointer;
    font-size: .84rem;
    border-bottom: 1px solid var(--c-border);
}

.interest-item:last-child { border-bottom: none; }
.interest-item:hover      { background: var(--c-primary-soft); }
.interest-item strong     { font-weight: 600; display: block; }

.interest-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.interest-chip .btn-remove {
    background: none;
    border: none;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0 0 2px;
    opacity: .7;
}

.interest-chip .btn-remove:hover { opacity: 1; }

/* ============================================================
   AI Assistant chat
   ============================================================ */

.chat-window {
    height: 52vh;
    min-height: 320px;
    overflow-y: auto;
    padding: 16px;
    background: var(--c-surface-alt);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 992px) { .chat-window { height: 58vh; } }

.chat-empty {
    margin: auto;
    text-align: center;
    color: var(--c-text-muted);
    max-width: 460px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 88%;
}

@media (min-width: 768px) { .chat-msg { max-width: 74%; } }

.chat-msg.from-user { align-self: flex-end; align-items: flex-end; }
.chat-msg.from-ai   { align-self: flex-start; align-items: flex-start; }

.chat-bubble {
    padding: 10px 14px;
    border-radius: var(--r-lg);
    font-size: .875rem;
    line-height: 1.6;
    word-break: break-word;
    white-space: normal;
}

.from-user .chat-bubble {
    background: var(--c-primary);
    color: #fff;
    border-bottom-right-radius: var(--r-sm);
}

.from-ai .chat-bubble {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-bottom-left-radius: var(--r-sm);
}

.chat-msg.pending .chat-bubble {
    color: var(--c-text-subtle);
    font-style: italic;
}

.chat-time {
    font-size: .68rem;
    color: var(--c-text-subtle);
    margin-top: 2px;
    padding: 0 4px;
}

.chat-input {
    padding: 12px 14px;
    border-top: 1px solid var(--c-border);
    background: var(--c-surface);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.chat-input textarea {
    resize: none;
    min-height: 44px;
    max-height: 140px;
    overflow-y: auto;
}

.suggestion-chip {
    cursor: pointer;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
}

.suggestion-chip:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

/* ตารางในหน้า dashboard */
.table > :not(caption) > * > * { padding: .55rem .5rem; }
.table thead th { font-weight: 600; border-bottom: 1px solid var(--c-border); }

/* ======================================================================
   ปฏิทินคอนเทนต์
   ====================================================================== */

.flip-x { transform: scaleX(-1); }

.cal-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.cal-title {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0 4px;
    min-width: 0;
    flex: 1;
}

.cal-wrap {
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-surface);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-head {
    background: var(--c-surface-alt);
    border-bottom: 1px solid var(--c-border);
}

.cal-dayname {
    padding: 7px 4px;
    text-align: center;
    font-size: .74rem;
    font-weight: 600;
    color: var(--c-text-subtle);
}

.cal-cell {
    min-height: 92px;
    padding: 4px;
    border-right: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* เส้นขอบขวาสุดซ้ำกับกรอบ .cal-wrap */
.cal-cell:nth-child(7n) { border-right: none; }

.cal-week .cal-cell { min-height: 220px; }

.cal-cell.is-muted { background: var(--c-surface-alt); }
.cal-cell.is-muted .cal-daynum { color: var(--c-text-subtle); }
.cal-cell.is-past:not(.is-today) .cal-daynum { color: var(--c-text-muted); }

.cal-cell.is-today {
    background: var(--c-primary-soft);
    box-shadow: inset 0 0 0 2px var(--c-primary);
}

.cal-cell.is-drop-target {
    background: var(--c-success-soft);
    box-shadow: inset 0 0 0 2px var(--c-success);
}

.cal-cell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.cal-daynum {
    font-size: .78rem;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.6;
    padding: 0 3px;
}

.cal-cell.is-today .cal-daynum { color: var(--c-primary-dark); }

.cal-count {
    font-size: .62rem;
    font-weight: 600;
    color: var(--c-text-subtle);
    background: var(--c-secondary-soft);
    border-radius: var(--r-pill);
    padding: 0 5px;
}

.cal-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    /* จำกัดความสูงไม่ให้ช่องเดียวดันตารางทั้งเดือนยืด */
    max-height: 132px;
}

.cal-week .cal-items { max-height: none; }

.cal-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 2px 5px;
    border-radius: var(--r-sm);
    font-size: .68rem;
    line-height: 1.45;
    text-decoration: none;
    border-left: 3px solid var(--dot, var(--c-secondary));
    overflow: hidden;
}

.cal-item[draggable="true"] { cursor: grab; }
.cal-item.is-dragging { opacity: .4; }

.cal-item-time {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.cal-item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cal-list-day { margin-bottom: 16px; }

.cal-list-date {
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 6px;
    padding-left: 2px;
}

.cal-list-date.is-today { color: var(--c-primary); }

@media (max-width: 575.98px) {
    .cal-cell { min-height: 74px; padding: 3px 2px; }
    .cal-items { max-height: 96px; }
    .cal-item { font-size: .62rem; padding: 1px 3px; border-left-width: 2px; }
    /* จอแคบไม่มีที่พอทั้งเวลาและหัวเรื่อง - เหลือหัวเรื่องอย่างเดียว */
    .cal-item-time { display: none; }
    .cal-week .cal-cell { min-height: 160px; }
}

/* ======================================================================
   ประวัติการใช้งาน
   ====================================================================== */

.log-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
}

.log-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    /* เผื่อ soft-* กำหนดแค่สีพื้น จึงใช้ currentColor ทำวงในให้เห็นชัด */
    box-shadow: inset 0 0 0 3px currentColor;
    margin-top: 6px;
}

.log-meta {
    font-size: .7rem;
    background: var(--c-surface-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    padding: 8px 10px;
    margin: 4px 0 0;
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ======================================================================
   AI Video Studio
   ====================================================================== */

/* ---- การ์ดโปรเจกต์ ---- */
.video-card {
    display: block;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    height: 100%;
}

.video-card:hover {
    border-color: var(--c-primary);
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
}

.video-thumb {
    position: relative;
    background: var(--c-secondary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--c-text-subtle);
}

/* สัดส่วนคงที่ ป้องกันหน้ากระตุกตอนภาพโหลด */
.ratio-9-16  { aspect-ratio: 9 / 16; }
.ratio-1-1   { aspect-ratio: 1 / 1; }
.ratio-4-5   { aspect-ratio: 4 / 5; }
.ratio-16-9  { aspect-ratio: 16 / 9; }

.video-duration,
.video-ratio-tag {
    position: absolute;
    font-size: .66rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: var(--r-pill);
    background: rgba(0, 0, 0, .68);
    color: #fff;
    line-height: 1.6;
}

.video-duration  { right: 6px; bottom: 6px; }
.video-ratio-tag { left: 6px; top: 6px; }

.video-card-body { padding: 9px 11px; }

.video-card-title {
    font-size: .82rem;
    font-weight: 600;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* ---- แถบความคืบหน้า ---- */
.video-progress {
    height: 5px;
    border-radius: var(--r-pill);
    background: var(--c-secondary-soft);
    overflow: hidden;
    margin: 4px 0;
}

.video-progress.lg { height: 9px; }

.video-progress > span {
    display: block;
    height: 100%;
    border-radius: var(--r-pill);
    background: var(--c-primary);
    transition: width .5s ease;
}

.budget-bar {
    height: 8px;
    border-radius: var(--r-pill);
    background: var(--c-secondary-soft);
    overflow: hidden;
}

.budget-bar > span {
    display: block;
    height: 100%;
    background: var(--c-success);
    border-radius: var(--r-pill);
    transition: width .4s ease;
}

.budget-bar > span.near { background: var(--c-warning); }
.budget-bar > span.over { background: var(--c-danger); }

/* ---- กล่องเลือกแบบการ์ด ---- */
.pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.pick-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 11px 12px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    color: var(--c-text-muted);
}

.pick-card:hover  { border-color: var(--c-border-strong); }

.pick-card.selected {
    border-color: var(--c-primary);
    background: var(--c-primary-soft);
    color: var(--c-primary-dark);
}

.pick-card.disabled {
    opacity: .55;
    cursor: not-allowed;
}

.pick-card-title { font-size: .84rem; font-weight: 600; color: var(--c-text); }
.pick-card-hint  { font-size: .7rem; color: var(--c-text-subtle); line-height: 1.4; }

.chip-radio {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-pill);
    font-size: .82rem;
    cursor: pointer;
    background: var(--c-surface);
}

.chip-radio.selected {
    border-color: var(--c-primary);
    background: var(--c-primary-soft);
    color: var(--c-primary-dark);
    font-weight: 600;
}

.chip-count {
    font-size: .66rem;
    font-weight: 700;
    background: var(--c-secondary-soft);
    border-radius: var(--r-pill);
    padding: 0 5px;
    margin-left: 4px;
}

/* ตัวอย่างสัดส่วนภาพเล็ก ๆ ในการ์ดเลือก */
.ratio-preview {
    display: block;
    width: 26px;
    background: var(--c-secondary);
    border-radius: 3px;
    margin-bottom: 2px;
}

.ratio-preview.ratio-9-16 { height: 46px; width: 26px; }
.ratio-preview.ratio-1-1  { height: 30px; width: 30px; }
.ratio-preview.ratio-4-5  { height: 38px; width: 30px; }
.ratio-preview.ratio-16-9 { height: 22px; width: 39px; }

/* ---- สื่อในโปรเจกต์ ---- */
.asset-tile.is-primary { border-color: var(--c-primary); }

.asset-thumb {
    position: relative;
    aspect-ratio: 1;
    background: var(--c-secondary-soft);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    overflow: hidden;
    display: block;
}

.asset-thumb img { width: 100%; height: 100%; object-fit: cover; }

.asset-flag {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: .62rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: var(--r-pill);
}

.library-pick {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.library-pick img { width: 100%; height: 100%; object-fit: cover; }
.library-pick.selected { border-color: var(--c-primary); }

.library-pick-check {
    position: absolute;
    inset: auto 6px 6px auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
}

.library-pick.selected .library-pick-check { display: flex; }

/* ---- Storyboard ---- */
.scene-card { transition: opacity .15s, border-color .15s; }
.scene-card.is-dragging { opacity: .45; }
.scene-card.is-locked   { border-color: var(--c-warning); }

.scene-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--c-primary-soft);
    color: var(--c-primary-dark);
    font-size: .78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.drag-handle {
    cursor: grab;
    color: var(--c-text-subtle);
    display: inline-flex;
}

.drag-handle:active { cursor: grabbing; }

.scene-media {
    position: relative;
    width: 86px;
    aspect-ratio: 9 / 16;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--c-secondary-soft);
    flex-shrink: 0;
}

.scene-media img { width: 100%; height: 100%; object-fit: cover; }

.scene-media-change {
    position: absolute;
    inset: auto 0 0 0;
    border: none;
    background: rgba(0, 0, 0, .68);
    color: #fff;
    font-size: .64rem;
    padding: 3px 0;
    cursor: pointer;
}

.scene-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
}

.scene-mini {
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--r-sm);
    flex-shrink: 0;
}

/* ---- หน้าตรวจงาน ---- */
.video-player {
    width: 100%;
    max-height: 62vh;
    border-radius: var(--r-md);
    background: #000;
    display: block;
    margin: 0 auto;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--c-surface-alt);
    border: 1px dashed var(--c-border-strong);
    border-radius: var(--r-md);
    color: var(--c-text-subtle);
    max-height: 62vh;
}

.voice-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---- กล่องแจ้งเตือนในหน้า ---- */
.alert-x {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--r-md);
    font-size: .86rem;
}

@media (max-width: 575.98px) {
    .pick-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .scene-media { width: 62px; }
    .video-player, .video-placeholder { max-height: 52vh; }
}

/* โค้ด/พาธยาว ๆ ในการ์ด - inline element จะดันล้นออกนอกกรอบ ต้องบังคับเป็นบล็อก */
.code-block {
    display: block;
    font-size: .72rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-all;
    max-width: 100%;
}
