
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.card {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #E8E8E8 !important;
    padding: 12px 16px 0 !important;
    gap: 4px;
}

.tab-btn {
    padding: 8px 16px !important;
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent !important;
    color: #6B6B6B !important;
    position: relative;
    bottom: -1px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #E8500A, #FF6B2B) !important;
    color: white !important;
    box-shadow: 0 -2px 8px rgba(232, 80, 10, 0.2) !important;
}

.tab-btn:not(.active):hover {
    background: #F3F3F3 !important;
    color: #3A3A3A !important;
}

.tab-content {
    display: none;
    padding: 16px !important;
}

.tab-content.active {
    display: block;
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.style-btn {
    aspect-ratio: 1;
    border: 1.5px solid #E8E8E8 !important;
    border-radius: 8px !important;
    background: #FAFAFA !important;
    cursor: pointer !important;
    font-size: 15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    color: #1A1A1A !important;
    font-family: inherit;
    line-height: 1;
    padding: 4px !important;
    min-width: 0;
    overflow: hidden;
}

.style-btn:hover {
    border-color: #E8500A !important;
    background: #FFF5F0 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(232, 80, 10, 0.15) !important;
}

.style-btn.active-style {
    border-color: #E8500A !important;
    background: linear-gradient(135deg, #E8500A, #FF6B2B) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(232, 80, 10, 0.3);
}

.style-btn.clear-btn {
    border-color: #D1D1D1 !important;
    color: #6B6B6B !important;
}

.style-btn.clear-btn:hover {
    border-color: #e53935 !important;
    background: #fff5f5 !important;
    color: #e53935 !important;
}

.decorator-section {
    margin-bottom: 16px;
}

.decorator-label {
    font-size: 11px;
    font-weight: 600;
    color: #9E9E9E !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.decorator-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dec-btn {
    min-width: 38px;
    height: 38px !important;
    padding: 0 10px !important;
    border: 1.5px solid #E8E8E8 !important;
    border-radius: 8px !important;
    background: #FAFAFA !important;
    cursor: pointer !important;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    color: #1A1A1A !important;
    font-family: inherit;
}

.dec-btn:hover {
    border-color: #F5A623 !important;
    background: #FFFBF0 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.2);
}

.dec-btn:active {
    transform: translateY(0);
}

.editor-area {
    padding: 0 16px 16px;
}

.textarea-wrap {
    position: relative;
    border: 1.5px solid #E8E8E8 !important;
    border-radius: 10px !important;
    overflow: hidden;
    transition: border-color 0.2s;
}

.textarea-wrap:focus-within {
    border-color: #E8500A !important;
    box-shadow: 0 0 0 3px rgba(232, 80, 10, 0.08) !important;
}

#input-text {
    width: 100%;
    min-height: 260px;
    border: none !important;
    outline: none !important;
    padding: 16px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    color: #1A1A1A !important;
    background: #FFFFFF !important;
    resize: vertical;
}

#input-text::placeholder {
    color: #D1D1D1 !important;
}

.char-count {
    text-align: right;
    padding: 6px 12px 8px !important;
    font-size: 12px;
    color: #9E9E9E !important;
    background: #FFFFFF !important;
    border-top: 1px solid #F3F3F3 !important;
}

.char-count.warn {
    color: #F5A623 !important;
}

.char-count.over {
    color: #e53935;
}

.editor-footer {
    padding: 12px 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pro-tip {
    flex: 1;
    font-size: 12px;
    color: #6B6B6B !important;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 160px;
}

.pro-tip-icon {
    width: 18px;
    height: 18px;
    border: 1.5px solid #E8500A !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #E8500A !important;
    font-weight: 700;
    flex-shrink: 0;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    background: linear-gradient(135deg, #E8500A, #FF6B2B) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(232, 80, 10, 0.3);
    white-space: nowrap;
    font-family: inherit;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #C4400A, #E8500A) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(232, 80, 10, 0.4);
}

.copy-btn:active {
    transform: translateY(0) !important;
}

.copy-btn.copied {
    background: linear-gradient(135deg, #2e7d32, #43a047) !important;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.preview-header {
    padding: 16px 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E8E8E8;
}

.preview-title {
    font-size: 13px;
    font-weight: 700;
    color: #3A3A3A !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mobile-toggle {
    padding: 5px 12px !important;
    border: 1.5px solid #E8500A !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #E8500A !important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.mobile-toggle:hover,
.mobile-toggle.active {
    background: #E8500A !important;
    color: white !important;
}

.preview-body {
    padding: 16px 20px 20px !important;
    transition: all 0.3s;
}

.preview-body.mobile-view {
    max-width: 380px;
    margin: 0 auto;
}

.li-card {
    border: 1px solid #E8E8E8 !important;
    border-radius: 10px !important;
    padding: 16px !important;
    background: #FFFFFF !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
}

.li-profile {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.li-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #E8500A, #F5A623) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
}

.li-avatar-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    background: #44b244 !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
}

.li-name {
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
}

.li-meta {
    font-size: 12px;
    color: #9E9E9E !important;
    margin-top: 2px;
}

.li-content {
    font-size: 14px;
    color: #1A1A1A;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 60px;
}

.li-content-empty {
    color: #D1D1D1;
    font-style: italic;
}

.li-stats {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid #E8E8E8 !important;
    border-bottom: 1px solid #E8E8E8;
    margin-top: 12px;
    font-size: 12px;
    color: #9E9E9E !important;
}

.li-reactions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.li-actions {
    display: flex;
    justify-content: space-around;
    padding-top: 6px;
    gap: 4px;
}

.li-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #6B6B6B;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.li-action-btn:hover {
    background: #F3F3F3;
    color: #3A3A3A;
}

.preview-note {
    text-align: center;
    font-size: 11px;
    color: #D1D1D1;
    margin-top: 12px;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1A1A1A;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
    main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .style-grid {
        grid-template-columns: repeat(5, 1fr);
    }
	.li-actions {
    display:block;
    justify-content: space-around;
    padding-top: 6px;
    gap: 4px;
}
	.li-stats {
		display:block;
	}
	main{
		padding:0px;
	}

    .editor-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-btn {
        justify-content: center;
    }

    .pro-tip {
        justify-content: center;
    }

    .header-badge {
        display: none;
    }
}